Summary
In a *DYNAMIC step, implicit or explicit, ccx 2.23 sets up no system of equations for a model whose only nonlinear constraint is a kinematic coupling (*COUPLING + *KINEMATIC). The output has no “Determining the structure of the matrix”, “number of equations” or “Factoring” lines, and every iteration reports largest residual force= 0.000000 in node 1 and dof 0. Every DOF that is neither prescribed nor eliminated by an MPC stays at its initial value. The run ends with “Job finished” and exit 0.
The coupling is not the problem as such. The same model:
- solves in a linear
*STATICstep, and in a*STATICstep with NLGEOM (which runs through the same nonlinear solver as*DYNAMIC); - solves in the same
*DYNAMICstep when the coupling is replaced by the equivalent*RIGID BODY(sameRIGIDMPCs); - solves in the same
*DYNAMICstep when one unrelated*EQUATIONis added (see “Where it goes wrong”).
Probed (each gives the same zero motion of nodes 5-8): *DYNAMIC, *DYNAMIC, DIRECT, *STEP, NLGEOM + *DYNAMIC, *DYNAMIC, EXPLICIT, and a force on the reference node instead of a prescribed displacement (then nothing moves at all).
A MEANROT *MPC (section 8.7.1 of the 2.23 manual) in place of the coupling fails the same way in a *DYNAMIC step: only the MPC’s dependent DOF moves, and it solves in a *STATIC step.
Version
ccx 2.23 (macOS arm64). Source: master 9ba5d76 (16 Oct 2026).
Already reported or fixed?
Not reported: there is no matching GitHub issue (open or closed) or pull request in Dhondtguido/CalculiX, and no calculix.discourse.group topic (all 1,234 topic titles and keyword searches checked, 21 Oct 2026). Not fixed: cascade.c, nonlinmpc.f and nonlingeo.c unchanged on master (9ba5d76).
Related but different:
- Coupling constraints: capabilities and local coordinate systems not compatible (coupling capabilities and local coordinate systems): about
*TRANSFORMon reference nodes, not about dynamic steps. - Nlgeom and Kinematic Coupling (NLGEOM and kinematic coupling): convergence with shell members in static steps.
- *COUPLING doesn't work properly with shells · Issue #207 · Dhondtguido/CalculiX · GitHub (couplings on shells) and PR Coupling kinematic default degrees of freedom by costerwi · Pull Request #105 · Dhondtguido/CalculiX · GitHub (default DOFs of
*KINEMATIC): other coupling problems.
Minimal input
kin_dyn.inp:
** two C3D8 in a column: bottom face held, top face (element 2, face S2)
** kinematically coupled to node 100, which moves 2 along x over a *DYNAMIC
** step (its rotations held); nodes 5-8 are free
*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.
9, 0., 0., 2.
10, 1., 0., 2.
11, 1., 1., 2.
12, 0., 1., 2.
100, 0.5, 0.5, 2.
*ELEMENT, TYPE=C3D8, ELSET=EALL
1, 1, 2, 3, 4, 5, 6, 7, 8
2, 5, 6, 7, 8, 9, 10, 11, 12
*NSET, NSET=BOT
1, 2, 3, 4
*SURFACE, NAME=STOP
2, S2
*MATERIAL, NAME=M
*ELASTIC
1000., 0.3
*DENSITY
1.E-3
*SOLID SECTION, ELSET=EALL, MATERIAL=M
*COUPLING, CONSTRAINT NAME=C1, REF NODE=100, SURFACE=STOP
*KINEMATIC
1, 3
*AMPLITUDE, NAME=RAMP
0., 0., 1., 1.
*STEP
*DYNAMIC
0.01, 1.
*BOUNDARY
BOT, 1, 3
100, 2, 6
*BOUNDARY, AMPLITUDE=RAMP
100, 1, 1, 2.
*NODE PRINT, NSET=NALL
U
*END STEP
Two twins:
-
kin_dyn_rb.inp: the coupling replaced by the equivalent rigid body. Its rotations are held on the rotation node 101:100, 0.5, 0.5, 2. +101, 0.5, 0.5, 2. ... -*SURFACE, NAME=STOP -2, S2 +*NSET, NSET=TOP +9, 10, 11, 12 ... -*COUPLING, CONSTRAINT NAME=C1, REF NODE=100, SURFACE=STOP -*KINEMATIC -1, 3 +*RIGID BODY, NSET=TOP, REF NODE=100, ROT NODE=101 ... -100, 2, 6 +100, 2, 3 +101, 1, 3 -
kin_static.inp:kin_dyn.inpwith*STATIC/0.1, 1.in place of*DYNAMIC/0.01, 1..kin_static_nl.inp: the same with*STEP, NLGEOM.
The MEANROT variant, kin_dyn_meanrot.inp (the top face’s mean rotation about y, whose axis is given by the coordinates of node 201, is ramped to 0.1):
-100, 0.5, 0.5, 2.
+201, 0., 1., 0.
...
-*SURFACE, NAME=STOP
-2, S2
...
-*COUPLING, CONSTRAINT NAME=C1, REF NODE=100, SURFACE=STOP
-*KINEMATIC
-1, 3
+*MPC
+MEANROT, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 201
...
BOT, 1, 3
-100, 2, 6
*BOUNDARY, AMPLITUDE=RAMP
-100, 1, 1, 2.
+201, 1, 1, 0.1
kin_static_meanrot.inp: kin_dyn_meanrot.inp with *STATIC / 0.1, 1..
How to run
ccx kin_dyn
ccx kin_dyn_rb
ccx kin_static
ccx kin_static_nl
ccx kin_dyn_meanrot
ccx kin_static_meanrot
Expected
Nodes 5-8 move with the top face. The column is driven slowly (a linear ramp over a step time of 1), so the dynamic answer is close to the static one. kin_dyn_rb gives at time 1:
5 9.998406E-01 -8.407018E-17 3.999866E-01
6 9.998406E-01 7.457745E-17 -3.999866E-01
7 9.998406E-01 7.745675E-17 -3.999866E-01
8 9.998406E-01 -9.736264E-17 3.999866E-01
kin_static gives 1.000000E+00 and ±4.000000E-01 for the same nodes. kin_static_nl (large rotation: the top moves 2 on a column of height 2) moves them too, e.g. node 5: 1.170274E+00, 1.064837E-01, 2.011022E-01.
kin_static_meanrot moves nodes 5-8 by 2.434472E-02 in x and ±2.434472E-02 in z, and the top nodes by ±5.000000E-02 in z (a rotation of 0.1 about y).
Actual
kin_dyn runs every increment, reports convergence, prints “Job finished” and exits with 0, but at time 1:
1 0.000000E+00 0.000000E+00 0.000000E+00
2 0.000000E+00 0.000000E+00 0.000000E+00
3 0.000000E+00 0.000000E+00 0.000000E+00
4 0.000000E+00 0.000000E+00 0.000000E+00
5 0.000000E+00 0.000000E+00 0.000000E+00
6 0.000000E+00 0.000000E+00 0.000000E+00
7 0.000000E+00 0.000000E+00 0.000000E+00
8 0.000000E+00 0.000000E+00 0.000000E+00
9 2.000000E+00 0.000000E+00 0.000000E+00
10 2.000000E+00 0.000000E+00 0.000000E+00
11 2.000000E+00 0.000000E+00 0.000000E+00
12 2.000000E+00 0.000000E+00 0.000000E+00
100 2.000000E+00 0.000000E+00 0.000000E+00
Only node 100 (prescribed) and nodes 9-12 (the coupling’s dependent DOFs) move; nodes 5-8 should move by about 1.0 in x. The output has no “Determining the structure of the matrix” line (which kin_dyn_rb, kin_static and kin_static_nl print). Each iteration reports largest residual force= 0.000000 in node 1 and dof 0 and largest increment of disp= 0.000000e+00.
kin_dyn_meanrot (exit 0) is the same: at time 1 nodes 5-8 and 10-12 have not moved at all, and node 9 (the MPC’s dependent DOF, z) moves 2.047497E-01.
Where it goes wrong
-
src/couplings.fline 369 ties the coupling’s internal rotation node to DOFs 4-6 of the reference node with three linear MPCs labelledROTTRACOUPLING, next to the members’RIGIDMPCs. -
src/cascade.clines 104-124 sort the MPCs by label. Blank,CYCLIC,SUBCYCLIC,PRETENSIONandTHERMALPRETMPCs (and every MPC when*iperturb<2) are linear;RIGID,KNOT,PLANE,BEAMandSTRAIGHTare nonlinear; anything else is taken as a user MPC and setsicascade=1:else{ jmpc[i]=1; if(*icascade==0) *icascade=1; }ROTTRACOUPLINGis not in the linear list, so in a*DYNAMICstep it setsicascade=1.src/nonlinmpc.f(lines 823-830) does listROTTRACOUPLINGwith the linear labels and skips it, so the two lists disagree. AMEANROTMPC lands in the sameelsebranch. -
src/CalculiX.clines 1194-1214: withicascade!=0, “Determining the structure of the matrix” is not printed,mastructis not called, andneqis set to 1 (else{neq[0]=1;neq[1]=1;neq[2]=1;}). The structure is left toremastructinnonlingeo. (nzs[0]andnzs[2], declared at line 67, are set only bymastruct/remastruct, so in this path they are never set; what the assembly then does with them was not traced.) -
src/nonlingeo.c: fornmethod==4the initial-acceleration block (line 909) callsnonlinmpcwithnewstep=0(line 950) before itsremastruct(line 965, onlyif(icascade>0)).src/nonlinmpc.fline 70 then clears the flag:if((icascade.eq.1).and.(newstep.ne.1).and.(ncont.eq.0)) icascade=0Nothing sets it again: the
RIGIDbranch ofnonlinmpc.fonly updates coefficients, andROTTRACOUPLINGis skipped. Soremastructis called neither there nor in the increments (line 2088,if((icascade>0)||...)), and the step has no equations.
This also explains the twins:
-
kin_static(no NLGEOM) is a linear step:CalculiX.cline 707 resetsicascade=0, andcascade.ccounts every MPC as linear when*iperturb<2, somastructbuilds the matrix. -
kin_static_nlruns throughnonlingeolike the*DYNAMICstep, but a static step has no initial-acceleration block. Its firstnonlinmpccall hasnewstep=1(line 1564), which keepsicascade=1, andremastructbuilds the matrix. -
*RIGID BODYcreates onlyRIGIDMPCs, whichcascade.cknows, soicascadestays 0 andmastructruns. -
An
*EQUATIONthat makes an MPC depend on a coupled DOF setsicascade=2incascade.c, and line 70 ofnonlinmpc.fnever clears that value. With*NODE, NSET=NALL 200, 5., 5., 5. *EQUATION 2 200, 1, 1., 9, 1, -1.and node 200’s DOFs 2-3 held,
kin_dyngiveskin_dyn_rb’s numbers to all printed digits.
Workaround / fix
Possible fixes (not built or tested):
- Do not clear
icascadebefore the firstremastructof a dynamic step, e.g. callnonlinmpcin the initial-acceleration block (nonlingeo.cline 949) withnewstep=1, as the first call of a static step does. This covers the coupling and theMEANROTMPC. - For the coupling alone: list
ROTTRACOUPLINGwith the linear labels incascade.c, asnonlinmpc.falready does.icascadethen stays 0,mastructbuilds the matrix, and theRIGIDMPCs are updated as in a*RIGID BODYmodel.
Workarounds:
- For a coupling of all translations, use the equivalent
*RIGID BODY, NSET=..., REF NODE=..., ROT NODE=.... Its rotations are DOFs 1-3 of theROT NODE, so rotational BCs and moments go there. - In implicit steps, the extra
*EQUATIONshown above also avoids the bug.