Public Member Functions | |
def | Gn |
partial difference of green function in normal direction | |
def | G |
green function | |
def | createMatrix |
create A matrix | |
def | createSourceMatrix |
create matrix of sound sources |
A simple 2-dimensional bem class for calculating sound field with line element
def openacoustics.bem.Bem2D.Gn | ( | self, | ||
k, | ||||
rm, | ||||
rn, | ||||
en | ||||
) |
partial difference of green function in normal direction
k | wave number | |
rm | cordinate vector of middle point of m-th elemtn | |
rn | cordinate vector of middle point of n-th elemtn | |
en | normal vector of n-th element |
val | calculated value |
def openacoustics.bem.Bem2D.G | ( | self, | ||
k, | ||||
rm, | ||||
rn | ||||
) |
green function
k | wave number | |
rm | cordinate vector of middle point of m-th element | |
rn | cordinate vector of middle point of n-th element |
val | calculated value |
def openacoustics.bem.Bem2D.createMatrix | ( | self, | ||
r, | ||||
nv, | ||||
S, | ||||
k, | ||||
w, | ||||
ro0, | ||||
beta | ||||
) |
create A matrix
r | cordinates of middle point of elements | |
nv | normal vector of elements | |
S | areas of surfaces | |
k | wave number | |
w | angular frequency | |
ro0 | density of air | |
beta | admittance of whole element |
A | calculated A matrix |
def openacoustics.bem.Bem2D.createSourceMatrix | ( | self, | ||
rs, | ||||
r, | ||||
k | ||||
) |
create matrix of sound sources
rs | cordinates of points of sources | |
r | cordinates of middle points of elements | |
k | wave numberTODO: multiple source is not implemented |