Results Computation

This section covers the post-processing pipeline that transforms the raw linear system solution u = K−1f into the physical quantities available in the GearMaster results viewer: nodal displacements, strains, stresses, and strain energy density.

All post-processing code lives in GM_modules/Meshfree/src/solver/mlpg/ and follows a stateless, pure-function design: every routine takes arrays as input and returns new arrays; no internal state is mutated.

1. Post-Processing Pipeline

  1. Displacement extraction — Unpack uflat (size 2N) into per-node (N, 3) array; set uz = 0 (2D model).
  2. Reaction forces — Compute R = Ku − f at constrained DOFs.
  3. Strain recovery — Weighted Superconvergent Patch Recovery with Constraints (SPR-C): evaluate strain at Gauss points of the Delaunay triangles of the cloud (setting recovery_sampling; legacy: regular background grid), then fit a local polynomial per node.
  4. Stress recovery — Apply constitutive law: σ = D ε per node.
  5. Derived stress fields — Von Mises, signed Von Mises, principal stresses, maximum shear, stress intensity.
  6. Derived strain fields — Von Mises strain, principal strains.
  7. Strain energy density — U0 = ½ εTσ.
  8. ASED Lazzarin-Berto — node-wise averaged SED field over radius R0 and origin-based display zone in the viewer; direct integral ASED — ½∫εTDε of the MLS strain at Gauss points over the control volume (no nodal recovery, recommended).

The results settings (results_n_gauss, recovery_sampling, results_refine_levels) act on the stored solution: changing them recomputes the results without a re-solve.

2. Solver Context

The solver stores in-memory the data needed for on-demand post-processing in the SolverResults.solver_context dictionary:

KeyTypeDescription
nodes_2d(N, 2) float64Node coordinates (xy)
support_radii(N,) float64Per-node MLS support radii
D_per_node(N, 3, 3) float64Per-node constitutive matrices
weight_namestrMLS weight function used in assembly
mls_basisstrMLS polynomial basis
u_flat(2N,) float64Displacement solution vector
Note: solver_context is intentionally not serialised to the .gmmfr results file. It is available only during the current session. If a results file is reloaded, post-processing must be re-triggered by re-running the analysis.

3. Output Quantities Summary

QuantitySymbolShapeUnitsFunction
Displacementu(N, 3)mmTimestepResult.displacement
Reaction forcesR(N, 3)NTimestepResult.reaction_forces
Voigt strain[εxx, εyy, γxy](N, 3)—compute_nodal_strain()
Voigt stress[σxx, σyy, τxy](N, 3)MPacompute_nodal_stress()
Von Mises stressσVM(N,)MPavon_mises_stress()
Signed Von Misessign(σh) ⋅ σVM(N,)MPasigned_von_mises_stress()
Principal stressesσ1, σ2(N,)MPaprincipal_stresses()
Max shear stressτmax(N,)MPamax_shear_stress()
Stress intensityσ1 − σ2(N,)MPastress_intensity()
Von Mises strainεVM(N,)—von_mises_strain()
Principal strainsε1, ε2(N,)—principal_strains()
Strain energy densityU0(N,)MPastrain_energy_density()
Averaged SED (Lazzarin-Berto)ASED(N,)MPaased_lazzarin_berto()

4. Sub-Pages