morphogen.homogenization.tensors¶
Small dense algebra of the integration kernels (numba): 3 x 3 tensors, their Voigt components, the eigen-decomposition of symmetric tensors and the divided differences of the logarithm (functions of symmetric tensors, Daleckii-Krein), and Gaussian elimination.
Voigt order (11, 22, 33, 23, 31, 12): strains with engineering shears, stresses with
their tensor components. Second-order tensors of 9 components (deformation gradients,
first Piola-Kirchhoff stresses) are stored row by row: iJ -> 3 i + J.
- morphogen.homogenization.tensors.strain_voigt(t, out)[source]¶
Engineering Voigt components of a symmetric tensor (a strain).
- morphogen.homogenization.tensors.stress_tensor(v, out)[source]¶
Symmetric tensor of Voigt stress components.
- morphogen.homogenization.tensors.elastic_stress(d, strain, out, e6, s6)[source]¶
out = D : strain(tensors) for the elasticity matrixd(Voigt).
- morphogen.homogenization.tensors.symmetrize(a)[source]¶
A square matrix replaced by its symmetric part, in place (the consistent tangents of the points for the conjugate gradients).
- morphogen.homogenization.tensors.inverse3(a, out)[source]¶
Inverse of a 3 x 3 matrix; returns its determinant.
- morphogen.homogenization.tensors.gauss_solve(a, b, n, m)[source]¶
Solve
a[:n, :n] x = b[:n, :m]in place by Gaussian elimination with partial pivoting:breceivesx,ais overwritten. Returns 1 ifais singular.
- morphogen.homogenization.tensors.eigh3(a, w, v)[source]¶
Eigenvalues
wand orthonormal eigenvectors (columns ofv) of a symmetric 3 x 3 matrix, by Jacobi’s method (accurate for close eigenvalues);ais overwritten.