POUCH SWELLING UMAT DEVELOPMENT — v0.2.0 / schema 2

Purpose
  Small-strain 3D orthotropic equilibrium stiffness plus proportional
  generalized Maxwell branches and externally prescribed normal swelling.
  Original code derived from the stated equations; no MIT/Lefevre code copied.
  All included constants and the 1 m cube are SYNTHETIC verification fixtures.
  They are not fitted or approved battery-cell material properties.

Constitutive equations (material axes 11,22,33,12,13,23)
  em = total engineering strain - prescribed swelling strain
  stress = Cinf em + sum(qk)
  dqk/dt + qk/tauk = gk Cinf dem/dt
  r=dt/tau; a=exp(-r); b=(1-a)/r
  qnew=a*qold+b*g*Cinf*delta(em)
  DDSDDE=Cinf*(1+sum(g*b))
  Exact update for constant coefficients and a linear mechanical-strain ramp.
  Each branch scales the complete Cinf tensor. Independent directional
  relaxation spectra are not implemented.

Inputs, 1-based Fortran indices
  PROPS(1)=2 (schema tag), PROPS(2)=N (0..20)
  PROPS(3:11)=C11,C22,C33,C12,C13,C23,G12,G13,G23
  PROPS(12),PROPS(13)=g1,tau1; subsequent pairs for other branches.
  NPROPS=11+2*N. Positive-definite Cinf, g>=0, tau>0.
  PREDEF(1:3)=normal swelling strains at start of increment, in material axes.
  DPRED(1:3)=their increments. These variables are NOT SOC or pressure.
  Define all 3 fields explicitly, initially zero. No thermal expansion keyword.
  STATEV(1:6)=mechanical strain; engineering shear components.
  STATEV(7:6+6*N)=branch stresses, six per branch.
  STATEV(7+6*N:9+6*N)=accumulated normal swelling strains.
  STATEV(10+6*N)=cumulative viscous dissipation per volume.
  NSTATV=10+6*N. Schema 1 had no final dissipation slot; not restart compatible.

Energy
  SSE = 0.5*em:Cinf:em + sum(0.5*q:Ck_inverse:q), per VOLUME.
  SCD = cumulative viscous dissipation per VOLUME; SPD=0; RPL=0.
  Do not divide by density: VUMAT's per-mass convention does not apply here.
  The UMAT documentation's worked example uses stress-strain work directly.
  For prescribed swelling, total-strain external work differs from mechanical
  strain work by the prescribed swelling contribution. SSE+SCD need not equal
  ALLWK in constrained swelling. This is not a chemical-energy model.

Restrictions
  Abaqus/Standard 6.14 scalar KSTEP interface; C3D8 baseline, NLGEOM=NO.
  Isothermal, nonhybrid 3D continuum; engineering shear conventions.
  Initial stress/strain/history must be consistent; start stress-free at the
  chosen reference SOC/T and add preload as a separate mechanical step.
  No finite strain, rotations, plastic compaction, permanent set, damage,
  contact, gas generation, thermal evolution, SOC hysteresis or pressure
  feedback inside the material law. These need separate identification.
  No production modal/frequency-domain certification. No UMAT->VUMAT claim.
  Fortran wrapper aborts on invalid material/state, nonzero DTEMP or rotation.
  A zero-strain HOLD still relaxes; a zero-DTIME query leaves state unchanged.
  Solver cutbacks must supply the last committed STATEV; no global cache used.

Reproduce standalone checks
  Requires Python 3, numpy, scipy, and a Fortran compiler.
  gfortran -shared -fPIC -O0 -g -fcheck=all src/pouch_core.for -o libpouch.so
  python3 tests/verify.py /absolute/path/libpouch.so
  gfortran -fcheck=all -Itests src/pouch_umat_614.for tests/wrapper_driver.for -o wrapper_test
  ./wrapper_test
  tests/ABA_PARAM.INC is a STANDALONE SHIM ONLY; do not copy it into Abaqus jobs.
  On macOS use .dylib instead of .so. Activate the compiler environment first.

Reproduce Abaqus checks
  python3 scripts/generate_cases.py
  Create a NEW run folder; copy cases/*.inp, src/pouch_umat_614.for,
  scripts/extract_odb.py, scripts/run_verification.cmd and
  scripts/abaqus_v6.env into it. The environment override is JOB-LOCAL.
  It selects /MD and modern CRT libraries for the tested legacy combination;
  the installation-wide Abaqus environment is not modified.
  Configure compiler paths in run_verification.cmd; execute in that folder.
  Native control: abaqus job=native_relaxation cpus=1 interactive
  Extract: abaqus python extract_odb.py native_relaxation.odb
  Score on Python 3: python3 scripts/score_odb.py /path/to/run_folder
  Preserve .inp/.for/.msg/.sta/.dat/.odb, console logs and source SHA256.
  Native control requires *VISCO and explicit MODULI=INSTANTANEOUS.
  Acceptance thresholds were fixed in ACCEPTANCE.json before first runs.

Next physical validation gate
  Identify stress-free reference, geometry, active area and fixture compliance.
  Measure free swelling vs SOC/T, fixed-SOC compression/hold/unload, and
  constrained swelling at >=2 known fixture stiffnesses on distinct specimens.
  Fit free swelling first, then Cinf/g/tau; keep specimen-level holdouts.
  R66 public constrained-thickness curves alone cannot uniquely identify these.
  Numerical PASS does not approve coefficients for pack design.

Sources (interface/procedure conventions; no experimental coefficients taken)
  https://docs.software.vt.edu/abaqusv2026/English/SIMACAESUBRefMap/simasub-c-umat.htm
  https://docs.software.vt.edu/abaqusv2026/English/SIMACAEMATRefMap/simamat-c-timevisco.htm
  https://docs.software.vt.edu/abaqusv2026/English/SIMACAEKEYRefMap/simakey-r-elastic.htm
  Public current docs use JSTEP(4); this wrapper targets installed 6.14 KSTEP.
  See evidence/report for actually executed version, compiler and job results.
