Summary
The *ELEMENT list of the 2.23 manual (section 7.50) has three special element types starting with D: “D (3-node network element)”, “DASHPOTA (2-node 3D dashpot)” and “DCOUP3D (distributing coupling element)”. The Abaqus heat transfer names DC3D4 to DC3D20 are accepted as C3D4 to C3D20. *DASHPOT (section 7.34) is for “dashpot elements of type DASHPOTA only”. An unlisted type such as XASHPOT1 stops with *ERROR reading *ELEMENT: XASHPOT1 is an unknown element type.
An unlisted type that starts with D (DASHPOT1, DASHPOT2, DASHPOT, …) does not get that error. elements.f takes every such label as the network element D with 3 nodes. Then:
- Two
TYPE=DASHPOT2elements in one card (2 nodes each) are read as one 3-node element: the first number of the second line becomes its third node, and the second element disappears. ccx runs with exit 0 and no message. The dashpots have no effect: a spring-mass model under a step load moves exactly as without dashpots (4.553622E-03 at t = 0.1), while DASHPOTA gives 3.368128E-03. - One
TYPE=DASHPOT1(1 node) orTYPE=DASHPOT2(2 nodes) element stops with*ERROR reading *ELEMENT: element definition incomplete for element 1, which does not say that the type is unknown.
Section 6.1 (Node Types) speaks of “1D network elements (element labels starting with D)”. Those are the internal labels: a network element is read with TYPE=D (sections 7.50 and 6.2.37), and *FLUID SECTION later writes its type behind the D (fluidsections.f lines 822-828). This report is only about the value accepted after TYPE= on *ELEMENT.
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: elements.f is unchanged in this respect on master (9ba5d76).
Related:
- Fix malformed input sets sections by oursland · Pull Request #189 · Dhondtguido/CalculiX · GitHub to Fix malformed input materials by oursland · Pull Request #195 · Dhondtguido/CalculiX · GitHub (open): the malformed-input pull requests. They check node and element numbers in *ELEMENT, but not this label test.
Minimal input
dashpot2_two.inp:
** Nodes 2 and 3 each on a spring to ground with a mass; two dashpots of type DASHPOT2.
*NODE, NSET=NALL
1, 0., 0., 0.
2, 1., 0., 0.
3, 2., 0., 0.
*ELEMENT, TYPE=DASHPOT2, ELSET=ED
1, 1, 2
2, 1, 3
*ELEMENT, TYPE=SPRINGA, ELSET=ES
3, 1, 2
4, 1, 3
*ELEMENT, TYPE=MASS, ELSET=EM
5, 2
6, 3
*SPRING, ELSET=ES
100.
*DASHPOT, ELSET=ED
10.
*MASS, ELSET=EM
1.
*BOUNDARY
1, 1, 3
2, 2, 3
3, 2, 3
*STEP
*DYNAMIC
0.01, 0.1
*CLOAD
2, 1, 1.
3, 1, 1.
*NODE PRINT, NSET=NALL
U
*END STEP
dashpota_two.inp: the same with TYPE=DASHPOTA. nodashpot_two.inp: the same without the DASHPOT2 elements and the *DASHPOT card.
dashpot1.inp: one node (2) on a spring to ground with a mass, and one DASHPOT1 element. It is dashpot2_two.inp without node 3 (its *NODE line, elements 4 and 6, and its *BOUNDARY and *CLOAD lines), with the TYPE=DASHPOT2 card and its two data lines replaced by:
*ELEMENT, TYPE=DASHPOT1, ELSET=ED
1, 2
xashpot1.inp: the same with TYPE=XASHPOT1.
How to run
ccx dashpot2_two
ccx dashpota_two
ccx nodashpot_two
ccx dashpot1
ccx xashpot1
Expected
dashpot2_two, dashpot1: an error naming the unknown element type, as for xashpot1. The manual lists DASHPOTA as the only dashpot element (sections 6.2.39, 7.34) and D as the network element (sections 6.2.37, 7.50); elements.f itself ends its type checks with is an unknown element type.
Actual
Node 2, displacement u1 (all three decks exit 0; the only warning is the usual “no elastic constants were assigned to material MASS”):
| t | dashpot2_two | nodashpot_two | dashpota_two |
|---|---|---|---|
| 0.01 | 4.986883E-05 | 4.986883E-05 | 4.739309E-05 |
| 0.0575 | 1.599756E-03 | 1.599756E-03 | 1.327293E-03 |
| 0.1 | 4.553622E-03 | 4.553622E-03 | 3.368128E-03 |
The DASHPOT2 deck gives exactly the undamped answer (for reference, the undamped closed form 0.01 (1 - cos 1) = 4.597E-03 at t = 0.1).
dashpot1 (exit 201):
*ERROR reading *ELEMENT: element definition
incomplete for element 1
xashpot1 (exit 201):
*ERROR reading *ELEMENT:
XASHPOT1 is an unknown element type
Where it goes wrong
elements.f (master 9ba5d76) first maps the Abaqus heat transfer names DC… and DS… onto C… and S… (lines 135-136). Among the remaining labels, every one that starts with D and is not DASHPOTA or DCOUP3D is taken as the network element (lines 258-259 and 396-398):
elseif(label(1:1).eq.'D') then
network=3
...
elseif(label(1:1).eq.'D') then
nope=3
nopeexp=3
so the check that should catch it (lines 269-276) is never reached:
else
write(*,*) '*ERROR reading *ELEMENT:'
write(*,*) label,' is an unknown element type'
With nope=3 and only two numbers on a line, the reader treats the next line as a continuation (lines 487-512): it takes n=nope-nteller=1 value (line 499) from it (the next element’s number) as the third node and drops the rest of that line. In the deck above, element 1 gets the nodes 1, 2, 2 and element 2 is never defined. If no further data line follows, the “incomplete” error appears instead.
Fix
Validate the TYPE= value of *ELEMENT only: at lines 258 and 396 accept the network element as the exact label D (e.g. elseif(label.eq.'D ') then), so that DASHPOT1, DASHPOT2 and other unlisted labels starting with D reach the “unknown element type” error at lines 269-276. DASHPOTA, DCOUP3D and the DC/DS heat transfer names are handled before that. The internal network labels that *FLUID SECTION builds later are not affected. Not built or tested here.
Workaround: use TYPE=DASHPOTA (a DASHPOT1 to ground becomes a DASHPOTA to a held node).