pyvale.dataio.tensortools module

Symmetric tensor assembly and small-strain invariants in Cartesian axes.

class EStrainShear(*values)[source]

Bases: Enum

TENSOR = 1
ENGINEERING = 2
assemble_strain_tensor(normal, shear, *, shear_convention)[source]

Assemble (…, 3, 3) from normal (…, xx/yy/zz) and shear (…, xy/xz/yz).

Engineering shear gamma_ij equals 2 epsilon_ij. Missing out-of-plane strain must be supplied explicitly; no plane-stress or plane-strain assumption is made.

calc_principal_strains(tensor)[source]

Return (…, 3) principal strains in descending order (first = maximum).

calc_equivalent_strain(tensor)[source]

Return sqrt(2/3 epsilon_dev:epsilon_dev), the deviatoric equivalent strain.

This small-strain measure excludes volumetric strain. It is not the stress-style sqrt(3/2 s:s) expression or accumulated equivalent plastic strain.