Public Member Functions | |
def | allocateArrays |
for allocation of required arrays for fdtd method | |
def | update |
for update sound field |
A simple 1, 2, 3 dimensional fdtd class
def openacoustics.fdtd.Fdtd.allocateArrays | ( | self, | ||
XYZ | ||||
) |
for allocation of required arrays for fdtd method
XYZ | tuple of number of elements in each direction |
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
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 ) |
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 ) |