Classes | |
class | Fem2D |
for calculating 2-dimensional sound field with fem More... | |
class | Fem3D |
for calculating 3-dimensional sound field with fem More... | |
Functions | |
def | getAtArbitraryPoint |
for calculating quantities at arbitrary point. | |
def | isInner |
for judging inner point | |
Variables | |
tuple | K |
K = array([[3*(T2+T3), T3, T2, 0, -4*T2, -4*T3], [ T3, 3*(T1+T3), T1, -4*T1, 0, -4*T3], [ T2, T1, 3*(T1+T2), -4*T1, -4*T2, 0], [ 0, -4*T1, -4*T1, 8*(T1+T2+T3), -8*T3, -8*T2], [ -4*T2, 0, -4*T2, -8*T3, 8*(T1+T2+T3), -8*T1], [ -4*T3, -4*T3, 0, -8*T2, -8*T1, 8*(T1+T2+T3)]])/6. | |
tuple | M |
M = array([[6.,-1.,-1.,-4., 0., 0. |
def openacoustics.fem.getAtArbitraryPoint | ( | self, | ||
abpoint, | ||||
phis, | ||||
elms, | ||||
nodes | ||||
) |
for calculating quantities at arbitrary point.
abpoint | cordinate of arbitrary point | |
potential | quantities of nodes index matrix of element cordinate matrix of element's nodes |
phi | potential quantity at arbitrary point | |
phix | partial difference of potential quantity in x-direction at arbitrary point | |
phiy | partial difference of potential quantity in y-direction at arbitrary pointfor calculating quantities at arbitrary point. |
tuple openacoustics::fem.M |
Initial value:
array([[6., -1., -1., 0., -4., 0.], [-1., 6., -1., 0., 0., -4.], [-1., -1., 6., -4., 0., 0.], [0., 0., -4., 32., 16., 16.], [-4., 0., 0., 16., 32., 16.], [0., -4., 0., 16., 16., 32.]])
], [-1., 6.,-1., 0.,-4., 0.], [-1.,-1., 6., 0., 0.,-4.], [-4., 0., 0.,32.,16.,16.], [0.,-4., 0.,16.,32.,16.], [0., 0.,-4.,16.,16.,32.]])*S/180.