Understanding Rend's mathematics¶
This page explains the mathematical quantities used by Rend and shown in its reports, including deformation gradients, strain-energy functions, stress measures, invariants and fitting metrics. These definitions help interpret the discovered equations and compare material models.
Deformation and stress¶
A deformation is described by the deformation gradient \(\mathbf F\in\mathbb R^{3\times3}\), its volume ratio \(J=\det\mathbf F>0\), and the right Cauchy–Green tensor \(\mathbf C=\mathbf F^\mathsf T\mathbf F\).
Rend searches for a scalar strain-energy density \(W(\mathbf F)\), with optional reference fiber directions. For a compressible hyperelastic solid, the nominal (first Piola–Kirchhoff) stress is:
For an incompressible material, the stress includes a pressure term needed to satisfy the constraint \(J=1\):
The pressure \(p\) depends on boundary conditions. For example, uniaxial experiments usually have stress-free lateral surfaces. Do not interpret the raw energy gradient as a complete incompressible stress without the appropriate constraint treatment.
The CSV records nominal stress for uniaxial, biaxial, planar and shear loadings, but Cauchy pressure for volumetric loading. The numerical stress units are taken from the CSV exactly as provided (CSV guide).
Planar axial stress¶
For incompressible planar measurements \(F=\operatorname{diag}(\lambda,1,1/\lambda)\). With \(G=\partial W/\partial F\), the normal traction condition \(P_{33}=0\) gives \(P_{11}=G_{11}-G_{33}/\lambda^2\), the derivative along the volume-preserving planar path.
For compressible planar measurements \(F=\operatorname{diag}(\lambda,1,t)\) with recorded thickness stretch \(t\). The fit compares measured \(P_{11}\) with \(\partial W/\partial F_{11}\) at fixed thickness and includes the boundary target \(P_{33}=0\). The constrained reaction \(P_{22}\) is masked in both cases.
How the fit is scored¶
Rust fits a set of nominal stress targets \(\mathcal O_i\) at each observation \(i\). The row weight \(w_i\) is the product of its group and endpoint weights. Each included component receives the same row weight, so a row with three targets contributes that weight three times to the denominator.
| Loading | Incompressible targets | Compressible targets |
|---|---|---|
| Uniaxial | Measured \(P_{11}\). The fiber profiles also include the free-face target \(P_{22}=0\). | Measured \(P_{11}\) and free-face targets \(P_{22}=P_{33}=0\). |
| Biaxial | \(P_{11}\) and \(P_{22}\). A single supplied stress declares equal nominal stresses. | Same two in-plane targets, plus the free-face target \(P_{33}=0\). |
| Planar | Measured \(P_{11}\). | Measured \(P_{11}\) and the free-face target \(P_{33}=0\). |
| Shear | Measured \(P_{ij}\) selected by the tag. | Measured \(P_{ij}\) selected by the tag. |
| Volumetric | Unsupported. | Three equal diagonal targets \(P_{ii}=-pJ^{2/3}\) at \(F=J^{1/3}\mathbf I\). |
Other components are masked. Rust differentiates the energy with float32 automatic differentiation and, for incompressible fits, eliminates pressure by imposing \(P_{33}=0\). It recomputes clear_mse on the full dataset with physics and parsimony penalties excluded. These penalties can influence which candidates are returned.
The early stop uses a variance-scaled threshold:
The full-data check uses the data-only MSE above. Rust pools all \(N\) finite nominal targets from the table, including prescribed zeros, reconstructed targets and all three converted volumetric components. It computes \(s_P^2\) as their unweighted sample variance with an \(N-1\) denominator. It uses 1.0 when \(N\leq1\) or the variance is below \(10^{-12}\). With identical targets, unit weights and no variance fallback, 1e-3 roughly corresponds to an R² of 0.999. target_mse is dimensionless, and clear_mse has units of stress squared.
Why R² differs from MSE¶
The HTML report pools the supplied observations without weights, globally and by loading mode and tag. Python reconstructs the measured deformation gradients and uses centered float64 differences. For incompressible normal loads it perturbs the measured stretch with \(J=1\), which eliminates pressure using \(P_{33}=0\). The score includes both biaxial stresses when both were supplied. It omits free-face targets, copied biaxial stresses and inferred pressure curves.
For volumetric CSV rows, R² compares the supplied pressure with the predicted mean Cauchy pressure \(p=-\operatorname{tr}(\mathbf P\mathbf F^\mathsf T)/(3J)\). It counts each pressure observation once.
A perfect fit gives R² = 1. R² can be negative. A constant-data tag may have undefined per-tag R² even when a global R² can be computed. The weighting, target components and stress measures can all affect how R² and clear_mse rank models.
Strain invariants and fiber directions¶
Common isotropic quantities are:
Volume-normalized invariants are \(\bar I_1=J^{-2/3}I_1\) and \(\bar I_2=J^{-4/3}I_2\). Directional invariants for a reference fiber \(\mathbf a\) include \(I_4=\mathbf a\cdot\mathbf C\mathbf a\) and \(I_5=\mathbf a\cdot\mathbf C^2\mathbf a\). Operators can subtract reference values. The operator guide lists their implemented definitions, which are not always the unshifted textbook invariants.