Skip to content

Treloar rubber — material modeling for a flexible coupling

1. Set the acceptance criteria

This example uses Treloar's rubber data to discover a hyperelastic material law for a hypothetical flexible shaft coupling.

Assume that the coupling operates under axial and planar stretches of 1–3, equibiaxial stretches of 1–1.5, and simple shear up to \(|\gamma|=1.5\).

For this example, a suitable model should achieve an overall \(R^2\) of at least 0.99, an \(R^2\) of at least 0.98 for each measured loading mode, and a maximum nominal stress error of 0.15 MPa within the specified operating ranges.

Before using the material law in a coupling simulation, verify its numerical behavior and its implementation in the target solver.

2. Prepare the input

The example uses the Large deformation sheet of the Treloar.xlsx supplement by Wang, Liu and Xie. It contains 80 resampled pairs per mode. Convert nominal strain to stretch by adding one and keep nominal stress in MPa. For equibiaxial loading, copy the same stretch and stress into both observed components. Store pure shear as planar,pure_shear. The table contains axial stretch and nominal axial stress for that branch. The article on PubMed Central includes a Supplementary Materials section with the ZIP file.

The Treloar benchmark used the Kaggle digitization. The example CSV has a different sampling grid.

Branch Rows Stretch range
Uniaxial tension 80 1–7.63623
Equibiaxial tension 80 1–4.45
Planar tension 80 1–4.92793

The three paths are fitted together. The coupling's torsional response needs separate shear evidence because the planar branch constrains an extension with one in-plane stretch fixed.

TestType,Tag,Stretch_1,Stretch_2,Stretch_3,Stress_1,Stress_2
planar,pure_shear,1,,,0,

3. Configure and run Rend

Configure Rend

Use INCOMPRESSIBLE_ISOTROPIC to model the rubber as volume-preserving and direction independent. Select the three measured loading paths through their listed upper stretches so the numerical checks extend beyond the illustrative service window. The script leaves shear probes unset. The standard search uses uniform weights and a variance-scaled target of 1e-3.

Enable reference-state stability and strong ellipticity checks during the search, using a finite-difference step of 0.04 for the strong ellipticity check.

After the search, enable the constitutive checks and all four finite-element checks.

Set export_json=True to save the discovered material laws and export_uhyper=True to automatically generate Abaqus UHYPER files for supported models. These files can then be used for independent verification in Abaqus/Standard.

See the validation guide for details.

Run the tutorial

Install the Rend wheel, then save treloar.csv and treloar.py in the same folder. You can also copy the script below into a file named treloar.py. Open a terminal in that folder and run:

python treloar.py

he script uses a maximum of 5,000 generations, as in the recorded run below. For your first run, set max_generations=500 and live_plot=True to watch the search progress. Open the generated result.html to compare models.

Complete Python script

"""Treloar rubber with multiaxial checks and Abaqus UHYPER export."""

from pathlib import Path

from rend import (
    SearchPhysicsChecks,
    StrongEllipticityCheck,
    PostSearchChecks,
    ConstitutiveChecks,
    DeformationRange as Range,
    FEChecks,
    MaterialProfile,
    MaterialRegressor,
    StressUnit,
    ValidationRanges,
)

CSV = "treloar.csv"


if __name__ == "__main__":
    regressor = MaterialRegressor(
        csv_path=Path(__file__).with_name(CSV),
        name="Treloar rubber – solver prequalification",
        profile=MaterialProfile.INCOMPRESSIBLE_ISOTROPIC,
        stress_unit=StressUnit.MPA,
        max_generations=5000,  # Use 500 for a first exploratory run.
        live_plot=False,  # Set True to watch the search progress.
        target_mse=1e-3,
        validation_ranges=ValidationRanges(
            uniaxial=Range(1.0, 7.63623),
            biaxial=Range(1.0, 4.45),
            planar=Range(1.0, 4.92793),
            shear=None,
            volumetric=None,
        ),
        search_checks=SearchPhysicsChecks(
            strong_ellipticity=StrongEllipticityCheck(step=0.04),
            reference_stability=True,
        ),
        post_search_checks=PostSearchChecks(
            constitutive=ConstitutiveChecks(
                stress=True,
                tangent=True,
                objectivity=True,
                stress_covariance=True,
                material_symmetry=True,
                reference=True,
                domain=True,
                max_states=80,
            ),
            fe=FEChecks(kinematic=True, robustness=True, benchmark=True, convergence=True),
        ),
        export_json=True,
        export_uhyper=True,
        verbose=True,
    )
    result = regressor.run()
    if result.error:
        raise RuntimeError(result.error)
    if result.cancelled:
        raise SystemExit(130)
    print("Report:", result.report_path)

Recorded runs

Run Generation cap Recorded stop Rows Curves Elapsed Returned models
Standard 5,000 Reached generation cap 240 3 3 h 14 min 20 s 9

Elapsed time includes discovery, report generation and exports.

4. Compare the candidates

Run Model Why inspect it Complexity Weighted MSE (MPa²) Overall R² Configured coverage gaps
Standard 1 Lowest weighted MSE 45 0.0024634 0.99706 —
Standard 5 Simpler candidate within the fit and service tolerances 27 0.0038284 0.99543 —

Both models pass the enabled checks and cover all three configured characterization paths. Overall R² exceeds 0.99 for both, and each measured mode exceeds 0.98. Their peak errors on the CSV rows inside the three service windows stay below 0.15 MPa. Equibiaxial tension has the largest such error for both models.

Model 5 reduces complexity from 45 to 27 and gives up 0.00163 in overall R². Its peak planar error in the service window is lower than Model 1's, while its uniaxial and equibiaxial peak errors increase slightly. Carry Model 5 forward first and keep Model 1 as the lower-MSE comparison.

Candidate Uniaxial peak error (MPa) Equibiaxial peak error (MPa) Planar peak error (MPa)
Standard, model 1 0.046307 0.091314 0.064526
Standard, model 5 0.057114 0.094485 0.047621

Standard, model 1 compared with the supplied stress observations

Standard, model 1.

Standard, model 5 compared with the supplied stress observations

Standard, model 5.

Standard: equations, branch scores and checks
Loading or tag Model 1 Model 5
Uniaxial 0.99952 0.99765
Biaxial 0.98887 0.98701
Planar 0.99381 0.99211
uniaxial 0.99952 0.99765
1:1 0.98887 0.98701
pure_shear 0.99381 0.99211
Reported check Model 1 Model 5
Sampled strong ellipticity Passed Passed
Reference tangent PSD Passed Passed
Float64 audit Passed Passed
Stress Passed Passed
Tangent Passed Passed
Frame indifference Passed Passed
Stress covariance Passed Passed
Material symmetry Passed Passed
Reference state Passed Passed
Energy domain Passed Passed
FEM kinematics Passed Passed
FEM robustness Passed Passed
Affine patch benchmark Passed Passed
Free-DOF convergence Passed Passed
Compiled UHYPER energy and invariant derivatives at three states Matched reference Matched reference
Reaction force (loaded face) Passed Passed
Volume-averaged first Piola stress Passed Passed
Integrated total FE energy Passed Passed
Newton solve (coarse) Passed Passed
Newton solve (fine) Passed Passed
Sampled common interval Model 1 Model 5
Uniaxial λ 0.03164841061–8.356441172 λ 0.03398011762–8.042502969
Biaxial λ 0.3475735329–5.60442834 λ 0.3534028004–5.395115404
Planar λ 0.1216456504–8.216850391 λ 0.1261551609–7.899846016
Shear γ -8.128266442–8.128266442 γ -7.870110743–7.870110743

Model 1: model_001.json

\[ W(\mathbf F)=c_1(\bar I_1-3)-c_2\bigl(\sqrt{c_3-(\bar I_1-3)}-\sqrt{c_3}\bigr) +c_4\ln\bigl(1+c_5(\bar I_2-3)\bigr) \]
\[ \begin{aligned} c_1&=-0.08348613560402,\qquad c_2=3.426084494474,\qquad c_3=67.94193268\\ c_4&=0.7510185453107,\qquad c_5=0.02892891272301 \end{aligned} \]
Original report equation
\[ W_{\mathrm{raw}}(\mathbf F)=((-0.30490804 \cdot ((\bar{I}_1(F) - 3) \cdot 0.27380759)) - (-0.80366027 \cdot (((\sqrt{(67.94193268 - (\bar{I}_1(F) - 3))} \cdot -4.56191730) + \ln((((\bar{I}_2(F) - 3) \cdot 2.59815502) + 89.81170654))) \cdot 0.93449754))) + 24.86228561 \]

Model 5: model_005.json

\[ W(\mathbf F)=-c_1\bigl(\sqrt{c_2-(\bar I_1-3)}-\sqrt{c_2}\bigr) +\ln\bigl(1+c_3(\bar I_2-3)\bigr) \]
\[ c_1=2.23601484,\qquad c_2=62.75289917,\qquad c_3=0.01090657129441 \]
Original report equation
\[ W_{\mathrm{raw}}(\mathbf F)=((\sqrt{(62.75289917 - (\bar{I}_1(F) - 3))} \cdot -2.23601484) + \ln(((\bar{I}_2(F) - 3) + 91.68784332))) + 13.19458866 \]

5. Apply the result and check its limits

Model 5 uses a square-root term in \(\bar I_1\) and a logarithmic term in \(\bar I_2\). Model 1 adds a linear term in \(\bar I_1\) and has a slightly lower axial peak error. Model 5 stays within the 0.15 MPa tolerance on all three measured service paths, so use it to start the coupling's external solver checks.

  1. Evaluate model_005.json on the uniaxial, equibiaxial and planar states in the table. Use the same traction and incompressibility conventions when checking nominal stress independently.
  2. Take model_005_uhyper.f90, model_005_abaqus.inp and model_005_abaqus.expected.json from the report directory. Rend verified energy and invariant derivatives with the compiled Fortran routine at three states. The next step is to run the generated deck in Abaqus/Standard and compare displacement, stress and reaction balance against the manifest.
  3. Check both shear signs through \(|\gamma|=1.5\) against independent measurements before using the law for torque. If the shear stress error exceeds 0.15 MPa, include shear measurements in a new fit and reserve a separate shear path for validation. Then check mesh and increment sensitivity in the coupling geometry under combined torque and axial load.