Skip to content

CalculiX: support initial stress instead of refusing it - #165

Merged
petlenz merged 4 commits into
mainfrom
feature-calculix-initial-stress
Nov 30, 2026
Merged

petlenz merged 4 commits into
mainfrom
feature-calculix-initial-stress

Conversation

@petlenz

@petlenz petlenz commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

The plugin refused *INITIAL CONDITIONS, TYPE=STRESS (#162) because the first version ignored it silently. Refusing is not necessary: ccx passes beta = -(initial stress) (resultsmech.f), and its own linear elasticity returns C:eps - beta (linel.f). The emitted entry now does the same, STRESS[i] -= BETA[i]; the tangent is unchanged because beta is constant.

  • Real ccx 2.22: two new cases against the built-in *ELASTIC, with all six initial-stress components: prescribed displacements, and NLGEOM at 10 % stretch with free lateral faces (640 fields). Two negative controls run the decks without the initial stress and must mismatch. 10/10 harness cases pass, and regenerating the gold leaves the existing files unchanged.
  • ABI gate: six distinct values pin sign and order, for icmd 1 and 3; the tangent must not change. A failed evaluation still returns zeroed stress, also with an initial stress set.
  • Mutations: flipping the sign and dropping the line each fail both new ccx cases; flipping the sign also fails the ABI gate.
  • gcc-14 Debug: 483/483 ctests pass.

*ORIENTATION is unchanged here: refused, since every recipe that can be written today is isotropic. Anisotropic recipes need it; that is a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant