pub fn return_mapping_batch(
pts: &mut SoaMaterialPoints,
e: f64,
nu: f64,
h: f64,
)Expand description
Radial return mapping for isotropic J2 plasticity (batch, linear isotropic hardening).
Updates both the stress and accumulated plastic strain in place.
Algorithm (per point):
- Elastic trial stress (already in
pts.stress_*) - Compute trial Von Mises:
σ_vm_trial - If trial < yield: elastic step, do nothing
- Else: plastic correction — scale deviatoric back to yield surface
e,nu— elastic constantsh— isotropic hardening modulus (H = dσ_y / dp̄)