Implemented in: results_stress_recovery.py
Once the smooth nodal strain array ε (N, 3) has been obtained via SPR-C (see Strain Recovery), nodal stress is computed by applying the per-node constitutive law:
where Di is the 3×3 constitutive matrix for node i (plane stress or plane strain, depending on the material formulation assigned to that node's entity). The vectorised implementation uses:
np.einsum("nij,nj->ni", D_per_node, strain)
which is equivalent to a batched matrix-vector product: σ[n] = D[n] ⋅ ε[n] for each node n.
The Von Mises equivalent stress for plane analysis (2D, Voigt stress [σxx, σyy, τxy]) is:
This is the standard Von Mises criterion for yielding under combined stress states. It reduces to |σxx| for uniaxial stress and to √3 |τxy| for pure shear.
Note on the out-of-plane component: Since σzz is not zero for plane strain, the formula above is an approximation in the plane-strain case. For plane stress, σzz = 0 and the formula is exact.
The in-plane principal stresses are the eigenvalues of the 2D stress tensor:
with σ1 ≥ σ2 (maximum and minimum principal stresses). The radius R = √[(Δσ/2)2 + τxy2] is the radius of the Mohr's circle.
The standard Von Mises stress is always non-negative. To distinguish tensile from compressive stress states, GearMaster provides the signed Von Mises stress:
The sign is determined by the hydrostatic component σh = (σ1 + σ2)/2: positive (tensile) when the average principal stress is positive, negative (compressive) otherwise.
| Quantity | Formula | Function |
|---|---|---|
| Maximum shear stress | τmax = (σ1 − σ2) / 2 | max_shear_stress() |
| Stress intensity | SI = σ1 − σ2 | stress_intensity() |
τmax is the half-range of the Mohr's circle, and SI = 2τmax (stress intensity, also called Tresca equivalent stress) is the diameter.
| Quantity | Symbol | Formula | Function |
|---|---|---|---|
| Voigt stress | [σxx, σyy, τxy] | σ = D ε | compute_nodal_stress() |
| Von Mises | σVM | √(σxx2 + σyy2 − σxxσyy + 3τxy2) | von_mises_stress() |
| Signed Von Mises | σVM,signed | sign(σ1+σ2) ⋅ σVM | signed_von_mises_stress() |
| Principal 1 | σ1 | (σxx+σyy)/2 + R | principal_stresses() |
| Principal 2 | σ2 | (σxx+σyy)/2 − R | principal_stresses() |
| Max shear | τmax | (σ1−σ2)/2 | max_shear_stress() |
| Stress intensity | SI | σ1−σ2 | stress_intensity() |