CSV input specification¶
Rend accepts a comma-separated file with a header row and one observation per row. Required headers are TestType and Tag (alternatively test_type/mode and id). Provide numerical Stretch_1, optionally Stretch_2 and Stretch_3, and Stress_1, optionally Stress_2. Fill indexed components in order without leaving a gap. Rend uses the stresses as supplied, and stress_unit labels the values without converting between Pa, kPa and MPa.
TestType,Tag,Stretch_1,Stretch_2,Stretch_3,Stress_1,Stress_2
uniaxial,rubber_x,1.00,,,0.0,
uniaxial,rubber_x,1.10,,,0.12,
biaxial,1:1,1.10,1.10,,0.17,0.16
planar,tension,1.20,,,0.40,
planar,compression,0.90,,,-0.23,
shear,fs,0.20,,,0.04,
This example describes an incompressible isotropic material. For an incompressible anisotropic uniaxial curve, add measured Stretch_2, because the remaining stretch is reconstructed as \(\lambda_3=1/(\lambda_1\lambda_2)\). Do not reuse the isotropic assumption of equal lateral stretches.
TestType |
Inputs | Observed target and interpretation |
|---|---|---|
uniaxial |
Incompressible isotropic: \(\lambda_1\); incompressible anisotropic: measured \(\lambda_1,\lambda_2\); compressible: \(\lambda_1,\lambda_2[,\lambda_3]\) | Stress_1 is measured nominal \(P_{11}\). Missing lateral stretches for compressible data are assumed equal only when Stretch_3 is omitted. |
biaxial |
Incompressible: \(\lambda_1[,\lambda_2]\); compressible: measured \(\lambda_1,\lambda_2,\lambda_3\) | Stress_1[, Stress_2] is \(P_{11}[,P_{22}]\). A single stress declares both equibiaxial stretches and equal nominal stresses. |
planar |
Incompressible: only \(\lambda_1\). Compressible: \(\lambda_1,1,\lambda_3\) with measured thickness stretch. | Stress_1 is nominal \(P_{11}\). |
shear |
Engineering shear \(\gamma\) | Stress_1 is nominal shear \(P_{ij}\) at the tag-selected plane. |
volumetric |
Volume ratio \(J>0\) | Stress_1 is Cauchy pressure \(p\), positive in compression (compressible profiles only). |
For incompressible biaxial rows, omitting Stretch_2 sets \(\lambda_2=\lambda_1\). Omitting Stress_2 on an equibiaxial row makes Rust use \(P_{22}=P_{11}\) as a fitting target. Supply both stresses unless their equality is established by the measurements or by the material symmetry in those loading directions. For fiber and cubic profiles, equal stretches alone do not establish equal stresses.
See the example workflows for prepared datasets and source information.
If you use an agent or an LLM to prepare your experimental data, the data preparation skill provides guidance on converting your measurements into Rend's CSV format.
Planar tension and compression¶
Use axial stretch ratio \(\lambda_1>0\). The reference value is 1, compression is below 1 and tension is above 1. Axis 2 is constrained to unit stretch and the thickness face on axis 3 is traction-free. The only measured target is \(P_{11}\). Leave the constrained-direction reaction \(P_{22}\) and all other stress fields blank.
For incompressible profiles only Stretch_1 is supplied. Rend reconstructs \(F=\operatorname{diag}(\lambda_1,1,1/\lambda_1)\). Pressure elimination imposes \(P_{33}=0\), so the fit masks this entry and all unmeasured reactions.
For compressible profiles supply all three stretch columns. Use exactly 1 for Stretch_2 (absolute tolerance \(10^{-6}\)) and a measured or otherwise known positive thickness stretch for Stretch_3 in both tension and compression. Rend reconstructs \(F=\operatorname{diag}(\lambda_1,1,\lambda_3)\) and adds \(P_{33}=0\) as a boundary target. The measured stress and plotted fit score use \(P_{11}\) alone.
TestType,Tag,Stretch_1,Stretch_2,Stretch_3,Stress_1,Stress_2
planar,tension,1.20,1.00,0.91,0.40,
planar,compression,0.90,1.00,1.04,-0.23,
A planar tag such as pure_shear describes the curve. Kinematics follow TestType. Simple shear uses signed engineering \(\gamma\) with the direction conventions below.
Shear direction tags¶
For anisotropic shear, use one of these six material-axis identifiers:
| Tag | Shear component |
|---|---|
fs |
\(F_{12},P_{12}\) |
fn |
\(F_{13},P_{13}\) |
sf |
\(F_{21},P_{21}\) |
sn |
\(F_{23},P_{23}\) |
nf |
\(F_{31},P_{31}\) |
ns |
\(F_{32},P_{32}\) |
All other shear tags default to \(F_{12}/P_{12}\) and generate a diagnostic.
A Tag groups a measurement branch and determines how head/tail weights are applied in CSV row order. For general biaxial data, informative tags such as 1:1, 1:2, or 2:1 are recommended. They do not rotate the underlying deformation tensor. Uniaxial tags such as uniaxial_x likewise do not rotate the first material axis.
CSV preflight¶
Rend checks the CSV before searching for equations. To check a file on its own, run the command below with your file and material profile. Choose the unit of the values already in the file. For profiles that require material directions, pass --fiber X Y Z once per direction.
python -m rend.input_validation measurements.csv --profile incompressible_isotropic --stress-unit MPa
Errors that stop the run¶
- The file is missing, cannot be parsed, or contains no observations. Missing required headers and headers that differ only by case or surrounding whitespace also cause errors.
- A row has a blank
TestTypeorTag, an unsupportedTestType, a missing stretch or stress, or a populated component after a blank one. Numeric entries must be finite and within the supported float32 range. - The row supplies the wrong number of components for its loading mode and profile. Use the component counts in the table above. Principal stretches and the volume ratio must be positive. Engineering shear may be zero or negative.
- A biaxial row has only one stress and its two supplied in-plane stretches differ by more than \(10^{-6}\). Supply both measured stresses for unequal stretches.
- A planar row violates the planar loading rules, or its thickness stretch or volume ratio cannot be represented as a finite, positive value in the numerical checks.
- A volumetric row uses an incompressible profile. An anisotropic or cubic profile is also rejected if its required material directions are missing or invalid. Cubic profiles require three orthonormal directions.
Warnings that let the run continue¶
| What triggers the warning | What to check |
|---|---|
A compressible uniaxial row supplies Stretch_1 and Stretch_2 and leaves Stretch_3 blank. |
Rend assumes \(\lambda_3=\lambda_2\). Verify that the two lateral stretches are equal, especially for anisotropic or cubic materials. Supply the measured Stretch_3 when available. |
A uniaxial tag suggests an axis, for example uniaxial_y or sample-z. |
Rend always applies uniaxial loading along axis 1. Check that the measurements are expressed in the intended material frame. |
| A biaxial row supplies one stress or one in-plane stretch. | One stress implies \(P_{22}=P_{11}\). One stretch implies \(\lambda_2=\lambda_1\). Verify each assumption that applies to the row. |
| A shear tag is outside the six recognized direction tags. | Rend uses \(F_{12}/P_{12}\). Select the tag that matches the measured shear plane. |
A curve has fewer than three observations. A curve is the set of rows sharing a TestType and Tag. |
Review the curve's coverage before relying on it to constrain a 3D material law. |
| A stretch component changes in both directions within a curve. The warning requires at least two significant steps in each direction and more than 3% of all steps in the less frequent direction. | Check the CSV row order. For cyclic tests, use separate tags for loading and unloading branches when they should be treated as separate curves. Head and tail weights follow the CSV order. |
| A curve has at least 30 rows and more than 10% repeat a stretch state, comparing the stretch vectors rounded to nine decimal places. | Check for duplicate rows or repeated states from cyclic loading. Rend retains those observations. |
| The CSV contains a single loading family. | A general 3D material law is underdetermined from one family alone, even with multiple tags. |
| A configured validation range has no matching experimental loading family in the CSV. | Rend can still perform the configured physical checks in that range. Fit accuracy for that loading family remains unverified. This warning uses the ranges provided to MaterialRegressor. |
| A supplied material direction has a norm that differs from one by more than \(10^{-5}\) within the accepted tolerance. | Supply unit vectors. Rend passes the supplied directions to the search without normalizing them. |
With the standalone preflight, supplying directions for an isotropic profile also produces a warning. Isotropic runs through MaterialRegressor reject that configuration. An advanced run also warns if the configured subset_size or mini_batch_size exceeds the number of CSV observations, because the search may resample rows.
Informational messages¶
- Rend lists unused CSV columns so you can spot a misspelled header or confirm that metadata will be ignored.
- For volumetric rows, Rend reminds you that
Stress_1is Cauchy pressure \(p\), positive in compression. Rend uses \(P_{ii}=-pJ^{2/3}\) for the corresponding nominal stress.