*KINEMATIC coupling (or a MEANROT *MPC) in a *DYNAMIC step: no equation system is set up, every free DOF keeps its initial value (exit 0, no message)

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 *STATIC step, and in a *STATIC step with NLGEOM (which runs through the same nonlinear solver as *DYNAMIC);
  • solves in the same *DYNAMIC step when the coupling is replaced by the equivalent *RIGID BODY (same RIGID MPCs);
  • solves in the same *DYNAMIC step when one unrelated *EQUATION is 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:

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.inp with *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

  1. src/couplings.f line 369 ties the coupling’s internal rotation node to DOFs 4-6 of the reference node with three linear MPCs labelled ROTTRACOUPLING, next to the members’ RIGID MPCs.

  2. src/cascade.c lines 104-124 sort the MPCs by label. Blank, CYCLIC, SUBCYCLIC, PRETENSION and THERMALPRET MPCs (and every MPC when *iperturb<2) are linear; RIGID, KNOT, PLANE, BEAM and STRAIGHT are nonlinear; anything else is taken as a user MPC and sets icascade=1:

        else{
          jmpc[i]=1;
          if(*icascade==0) *icascade=1;
        }
    

    ROTTRACOUPLING is not in the linear list, so in a *DYNAMIC step it sets icascade=1. src/nonlinmpc.f (lines 823-830) does list ROTTRACOUPLING with the linear labels and skips it, so the two lists disagree. A MEANROT MPC lands in the same else branch.

  3. src/CalculiX.c lines 1194-1214: with icascade!=0, “Determining the structure of the matrix” is not printed, mastruct is not called, and neq is set to 1 (else{neq[0]=1;neq[1]=1;neq[2]=1;}). The structure is left to remastruct in nonlingeo. (nzs[0] and nzs[2], declared at line 67, are set only by mastruct/remastruct, so in this path they are never set; what the assembly then does with them was not traced.)

  4. src/nonlingeo.c: for nmethod==4 the initial-acceleration block (line 909) calls nonlinmpc with newstep=0 (line 950) before its remastruct (line 965, only if(icascade>0)). src/nonlinmpc.f line 70 then clears the flag:

          if((icascade.eq.1).and.(newstep.ne.1).and.(ncont.eq.0)) icascade=0
    

    Nothing sets it again: the RIGID branch of nonlinmpc.f only updates coefficients, and ROTTRACOUPLING is skipped. So remastruct is 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.c line 707 resets icascade=0, and cascade.c counts every MPC as linear when *iperturb<2, so mastruct builds the matrix.

  • kin_static_nl runs through nonlingeo like the *DYNAMIC step, but a static step has no initial-acceleration block. Its first nonlinmpc call has newstep=1 (line 1564), which keeps icascade=1, and remastruct builds the matrix.

  • *RIGID BODY creates only RIGID MPCs, which cascade.c knows, so icascade stays 0 and mastruct runs.

  • An *EQUATION that makes an MPC depend on a coupled DOF sets icascade=2 in cascade.c, and line 70 of nonlinmpc.f never 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_dyn gives kin_dyn_rb’s numbers to all printed digits.

Workaround / fix

Possible fixes (not built or tested):

  • Do not clear icascade before the first remastruct of a dynamic step, e.g. call nonlinmpc in the initial-acceleration block (nonlingeo.c line 949) with newstep=1, as the first call of a static step does. This covers the coupling and the MEANROT MPC.
  • For the coupling alone: list ROTTRACOUPLING with the linear labels in cascade.c, as nonlinmpc.f already does. icascade then stays 0, mastruct builds the matrix, and the RIGID MPCs are updated as in a *RIGID BODY model.

Workarounds:

  • For a coupling of all translations, use the equivalent *RIGID BODY, NSET=..., REF NODE=..., ROT NODE=.... Its rotations are DOFs 1-3 of the ROT NODE, so rotational BCs and moments go there.
  • In implicit steps, the extra *EQUATION shown above also avoids the bug.

Confirmed (using official build of ccx 2.23 on Windows), needs a GitHub ticket.

kin_dyn.dat:

                                INCREMENT    11


 displacements (vx,vy,vz) for set NALL and time  0.1000000E+01

         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
1 Like

Posted: *KINEMATIC coupling (or a MEANROT *MPC) in a *DYNAMIC step: no equation system is set up, every free DOF keeps its initial value (exit 0, no message) · Issue #233 · Dhondtguido/CalculiX · GitHub

1 Like