MockDataLab

Materials Science & Mechanical Engineering

Tensile testing: specimens → load steps → strain channels

Uniaxial tensile tests on two alloys. Each specimen has its own Young's modulus, yield strength and hardening slope; each load step records force from a load cell with relative error and 1 N resolution; each step has two strain channels with different gains and a 1 % range limit.

specimens (10) → load_steps (60) → strain (2 channels)

Data structure

Stress–strain curves per specimen are the canonical repeated-measures structure in engineering labs and a frequent student exercise (modulus, 0.2 % offset yield).

specimensone row = one test coupon
Material (Al 6061 or steel 1018), E in GPa, yield strength, hardening modulus and cross-section area.
load_stepsone row = one load increment
Nominal strain in 0.02 % steps to 1.2 %, true stress from a bilinear elastic–plastic law, and measured load in newtons.
strainone row = one strain channel reading
Extensometer and strain-gauge readings with channel gain, white noise, range clipping at 1 % and 5 µε quantization.

Generate the materials tensile test tables

The preset is a starting point: change any formula, noise step or row count and the preview, ER diagram and relation check update.

The relational generator loads as it scrolls into view…

Key relationships

  • stress_MPa = if(ε·E < σy, ε·E, σy + H·(ε − σy/E))

    Bilinear isotropic hardening written with if(); every parameter comes from the parent specimen.

  • load_N = stress_MPa * parent.area_mm2 → heteroscedastic(0.5 %) → quantize(1)

    Load-cell error proportional to the reading, then the instrument's resolution.

Common pitfalls

  • Estimating modulus by regressing over the whole curve instead of the linear region only.
  • Using a strain gauge beyond its range: clipped readings at 1 % look like a perfectly plastic plateau.
  • Averaging curves point by point across specimens with different yield points, which smears the knee.
  • Treating 60 load steps as 60 samples when comparing materials: the specimen is the unit.

Typical analysis

Per specimen: a linear fit of stress on strain in the elastic window for E, and the 0.2 % offset method for yield. Compare materials with specimens as replicates; for curve-level questions use a mixed model or functional data methods.

Python
import numpy as np, pandas as pd
s = pd.read_csv("specimens.csv", comment="#"); L = pd.read_csv("load_steps.csv", comment="#")
d = L.merge(s, on="specimen_id")
d["stress_meas"] = d.load_N / d.area_mm2
elastic = d[d.strain_true < 0.001]
E = elastic.groupby("specimen_id").apply(
    lambda g: np.polyfit(g.strain_true, g.stress_meas, 1)[0] / 1000)
print(s.set_index("specimen_id").assign(E_est=E)[["material", "E_GPa", "E_est"]])

Further reading

  • ASTM E8/E8M: Standard Test Methods for Tension Testing of Metallic Materials.
  • ISO 6892-1: Metallic materials, tensile testing at room temperature.

Other relational presets