Summary
Section 7.47 (*ELASTIC) of the 2.23 manual lists the values of the TYPE parameter of *ELASTIC: ISO (default), ORTHO, ENGINEERING CONSTANTS and ANISO. elastics.f warns about a parameter it does not know (“parameter not recognized”). A TYPE value it does not know gets no message at all, and the material is read as TYPE=ISO:
*ELASTIC, TYPE=TRACTION(the cohesive law of other solvers) with1000., 0.3, 400.runs as an isotropic material with E = 1000 and nu = 0.3. Exit 0, no warning.- If the second number is 0.5 or more, ccx stops with “Poisson coefficient should be less than 0.5”. That happens with
TYPE=TRACTIONand K_nn = K_ss, withTYPE=LAMINA, and with a misspeltTYPE=ENGINEERING CONSTANT(no S) followed by E1, E2, … The message points at the data line, not at the unknown TYPE.
This is a missing input check. A misspelt TYPE turns an orthotropic material into an isotropic one without notice, whenever its second number is below 0.5. The open pull request Fix malformed input materials by oursland · Pull Request #195 · Dhondtguido/CalculiX · GitHub makes the same kind of input an error in another card: its commit “designvariabless: reject an unknown *DESIGN VARIABLES type” stops a run in which “Any TYPE other than COORDINATE was treated as ORIENTATION”.
ccx matches the TYPE values by their first letters, so TYPE=ISOTROPIC and TYPE=ORTHOTROPIC run as ISO and ORTHO today (checked: the same displacements as *ELASTIC and TYPE=ORTHO). Users write these long forms (Silent termination in orthotropic material analysis uses TYPE=ORTHOTROPIC), so a check must keep them working.
Version
ccx 2.23 (macOS arm64). Source: master 9ba5d76 (16 Oct 2026).
Already reported or fixed?
Not reported: I found no matching GitHub issue (open or closed) or pull request in Dhondtguido/CalculiX, and no calculix.discourse.group topic (searched 21 Oct 2026). Not fixed: elastics.f is unchanged on master (9ba5d76), and pull request 195 is not merged.
Related:
- Fix malformed input materials by oursland · Pull Request #195 · Dhondtguido/CalculiX · GitHub (open; malformed input in material cards): the precedent. Its *DESIGN VARIABLES commit rejects an unknown TYPE; its
*ELASTICcommit checks a card without data lines, not the TYPE value. - Silent termination in orthotropic material analysis
*ELASTIC, TYPE=ORTHOTROPIC(read as ORTHO by its prefix) with engineering constants E, nu, G as data. The poster’s run (ccx 2.20) stopped without a message, and post 3 asks for an error there. Different: that TYPE value is known; the data did not fit it.
Minimal input
elastic_type.inp:
** Unit cube, uniaxial stress 1 in x. *ELASTIC with TYPE=TRACTION, which the
** manual does not list for *ELASTIC.
*NODE
1, 0., 0., 0.
2, 1., 0., 0.
3, 1., 1., 0.
4, 0., 1., 0.
5, 0., 0., 1.
6, 1., 0., 1.
7, 1., 1., 1.
8, 0., 1., 1.
*ELEMENT, TYPE=C3D8, ELSET=EALL
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=XMAX
2, 3, 6, 7
*MATERIAL, NAME=MAT
*ELASTIC, TYPE=TRACTION
1000., 0.3, 400.
*SOLID SECTION, ELSET=EALL, MATERIAL=MAT
*BOUNDARY
1, 1, 3
4, 1, 1
4, 3, 3
5, 1, 2
8, 1, 1
*STEP
*STATIC
*CLOAD
XMAX, 1, 0.25
*NODE PRINT, NSET=XMAX
U
*END STEP
How to run
ccx elastic_type
Expected
An error (or at least a warning) that TRACTION is not a TYPE of *ELASTIC, as for an unknown parameter:
*WARNING reading *ELASTIC: parameter not recognized:
FOO=BAR
which *ELASTIC, FOO=BAR gives.
Actual
elastic_type.inp: exit 0, no warning. Node 7:
7 1.000000E-03 -3.000000E-04 -3.000000E-04
That is the result of *ELASTIC / 1000., 0.3, to all printed digits.
With *ELASTIC, TYPE=ENGINEERING CONSTANT and 1000., 100., 100., 0., 0., 0., 50., 50. / 50. (exit 201):
*ERROR reading *ELASTIC: Poisson
coefficient should be less than 0.5
*ERROR reading *ELASTIC. Card image:
1000.,100.,100.,0.,0.,0.,50.,50.
TYPE=TRACTION with 1000., 1000., 1000. and TYPE=LAMINA with 1000., 100., 0.3, 50., 50., 50. give the same error. With the S added, the deck runs and node 7 has u_x = 1.000000E-03 and no lateral motion, as it should with nu = 0.
Where it goes wrong
src/elastics.f (master lines 58-80):
do i=2,n
if(textpart(i)(1:5).eq.'TYPE=') then
if(textpart(i)(6:8).eq.'ISO') then
ityp=2
elseif(textpart(i)(6:10).eq.'ORTHO') then
...
elseif(textpart(i)(6:25).eq.'ENGINEERINGCONSTANTS') then
...
elseif(textpart(i)(6:10).eq.'ANISO') then
ityp=21
endif
exit
else
write(*,*)
& '*WARNING reading *ELASTIC: parameter not recognized:'
An unknown value leaves the default ityp=2 (line 56), and the exit also skips any parameters after TYPE. expansions.f (lines 58-64) has the same pattern: *EXPANSION, TYPE=FOO with three values runs as isotropic with the first one.
expansion_foo.inp: a free unit cube heated by 1 with `*EXPANSION, TYPE=FOO` and three different coefficients
*NODE, NSET=NALL
1, 0., 0., 0.
2, 1., 0., 0.
3, 1., 1., 0.
4, 0., 1., 0.
5, 0., 0., 1.
6, 1., 0., 1.
7, 1., 1., 1.
8, 0., 1., 1.
*ELEMENT, TYPE=C3D8, ELSET=EALL
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=XMAX
2, 3, 6, 7
*MATERIAL, NAME=MAT
*ELASTIC
1000., 0.3
*EXPANSION, TYPE=FOO
1.e-3, 2.e-3, 3.e-3
*SOLID SECTION, ELSET=EALL, MATERIAL=MAT
*BOUNDARY
1, 1, 3
4, 1, 1
4, 3, 3
5, 1, 2
8, 1, 1
*INITIAL CONDITIONS, TYPE=TEMPERATURE
NALL, 0.
*STEP
*STATIC
*TEMPERATURE
NALL, 1.
*NODE PRINT, NSET=XMAX
U
*END STEP
Exit 0, no warning. Every face moves 1.000000E-03 (node 7: 1.000000E-03 in x, y and z): isotropic expansion with the first value; the second and third are ignored.
Fix
Add an else branch that stops with an *ERROR naming the unknown TYPE value (in elastics.f, and likewise in expansions.f), as pull request 195 does for *DESIGN VARIABLES. The branch should only catch values that match none of the existing prefix tests, so that ISOTROPIC, ORTHOTROPIC and ANISOTROPIC keep working as they do now.