full_3x3_to_voigt_6_stress

torch_sim.elastic.full_3x3_to_voigt_6_stress(stress)[source]

Form a 6 component stress vector in Voigt notation from a 3x3 matrix.

Parameters:

stress (Tensor) – Tensor of shape (…, 3, 3) containing stress components

Returns:

6-component stress vector [σxx, σyy, σzz, σyz, σxz, σxy]

following Voigt notation

Return type:

Tensor