Skip to main content

Module spherical_tensor

Module spherical_tensor 

Source
Expand description

Isotropic diagonal tensor ii * I (SphericalTensor). Isotropic diagonal tensor (SphericalTensor) — an OpenFOAM primitive that stores only the single scalar ii of ii * I.

ii is a dimensionless f64. Because the tensor is a scalar multiple of the identity, its operations reduce to scalar arithmetic (trace 3*ii, determinant ii³, inverse 1/ii).

Structs§

SphericalTensor
Isotropic diagonal tensor: represents ii * I where I is the 3×3 identity. Maps to Foam::SphericalTensor<scalar> (SphericalTensorI.H).

Functions§

det
Determinant = ii³.
inv
Inverse = SphericalTensor(1/ii).
lerp
Linear interpolation (1-t)*a + t*b between two spherical tensors.
mag_sqr
Frobenius norm squared = 3*ii².
tr
Trace tr = 3*ii.