openacoustics.fdtd.Fdtd Class Reference

for calculating 1-3 dimensional sound field with fdtd More...

List of all members.

Public Member Functions

def allocateArrays
 for allocation of required arrays for fdtd method
def update
 for update sound field


Detailed Description

for calculating 1-3 dimensional sound field with fdtd

A simple 1, 2, 3 dimensional fdtd class

Member Function Documentation

def openacoustics.fdtd.Fdtd.allocateArrays (   self,
  XYZ 
)

for allocation of required arrays for fdtd method

Parameters:
XYZ tuple of number of elements in each direction
Return values:
K bulk modulus filled by zero
Ro density filled by zero
zp potential resistance filled by zero
zv flow resistance filled by zero
P1 arrays of sound pressure ( current in time )
P2 arrays of sound pressure ( next in time )
V1 arrays of particle velocity ( current in time )
V2 arrays of particle velocity ( next in time )

def openacoustics.fdtd.Fdtd.update (   self,
  dt,
  dxyz,
  K,
  Ro,
  zp,
  zv,
  P1,
  P2,
  V1,
  V2 
)

for update sound field

Parameters:
K bulk modulus
Ro density
zp potential resistance
zv flow resistance
P1 arrays of sound pressure ( current in time )
P2 arrays of sound pressure ( next in time )
V1 arrays of particle velocity ( current in time )
V2 arrays of particle velocity ( next in time )
Return values:
P1 arrays of updated sound pressure ( current in time )
P2 arrays of updated sound pressure ( next in time )
V1 arrays of updated particle velocity ( current in time )
V2 arrays of updated particle velocity ( next in time )


The documentation for this class was generated from the following file:

Generated on Wed Dec 24 13:58:45 2008 for OpenAcoustics by  doxygen 1.5.5