MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / mass_matrix

Method mass_matrix

pythran/fem/rod.py:84–89  ·  view source on GitHub ↗

Lumped mass, returned as the diagonal of the matrix. http://kis.tu.kielce.pl/mo/COLORADO_FEM/colorado/IFEM.Ch31.pdf, p 31-7

(self)

Source from the content-addressed store, hash-verified

82 [-sincos, -sin2 , sincos, sin2 , ],])
83
84 def mass_matrix(self):
85 """
86 Lumped mass, returned as the diagonal of the matrix.
87 http://kis.tu.kielce.pl/mo/COLORADO_FEM/colorado/IFEM.Ch31.pdf, p 31-7
88 """
89 return 0.5 * self.mass * np.array([1.0, 1.0, 1.0, 1.0])
90
91def main():
92 p_a = Node('A', 1.0, 1.0)

Callers 3

add_elementMethod · 0.45
KMMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected