*TRANSFORM is ignored for rotations at shell knots and *KINEMATIC reference nodes; *EQUATION terms on DOF 5/6 of a transformed node are misread

Summary

Section 7.135 (*TRANSFORM) of the 2.23 manual: the local system is “to be used for defining SPC’s, MPC’s and nodal forces”. For rotations the manual says so twice more:

  • Section 6.2.14 (Eight-node shell element (S8 and S8R)), which sections 6.2.11 / 6.2.12 (S3, S4) refer to: “Here, DOF 4 is the rotation about the global or local x-axis, DOF 5 about the global or local y-axis and DOF 6 about the global or local z-axis. Local axes apply if the transformation (*TRANSFORM) has been defined, else the global system applies.”
  • Section 7.80 (*KINEMATIC): “The degrees of freedom in the reference node (1 up to 3 for translations, 4 up to 6 for rotations; they apply to the global system unless a *TRANSFORM card was defined for the reference node) can be constrained by a *BOUNDARY card.” Section 7.27 (*COUPLING) says the same about the ORIENTATION parameter: it “does not induce a change of coordinate system in the reference node (for this a *TRANSFORM card is needed)”.

ccx 2.23 and current master do this for a shell node that is not a knot, but not in three other cases. All runs below end with exit 0 unless stated otherwise.

  1. Shell knot. At a knot (here two S4 elements folded 90°), a *BOUNDARY or *CLOAD on DOF 4-6 of a transformed node acts about the global axes. With local x’ = global y, local DOF 4 gives exactly the result of global DOF 4, not that of global DOF 5. The same transform on plain (non-knot) shell nodes works.
  2. *KINEMATIC reference node. A *BOUNDARY or *CLOAD on DOF 4-6 of a transformed reference node also acts about the global axes, contrary to the 7.80 sentence above.
  3. *EQUATION terms on DOF 4-6 of a transformed node. DOF 4 is read in global axes. For DOF 5 and 6, equations.f indexes the 3 × 3 transformation matrix with column 5 or 6, i.e. outside the array. Even with an identity *TRANSFORM:
    • as the dependent (first) term, the run stops with “*ERROR reading *EQUATION: SPC in node 2 in transformed coordinates cannot be converted in MPC: all DOFs in the node are used as dependent nodes in other MPCs” (exit 201), although no other MPC uses node 2;
    • as an independent term, the term is silently dropped: an equation u_x(10) = θ_y(2) gives u_x(10) = 0 instead of the 0.01 that the same deck gives without the identity transform.

Version

ccx 2.23 (macOS arm64) and current master (537aa81, 2 Nov 2026, built from source): the same numbers.

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 that reports these cases (searched 3 Nov 2026). The closest is a remark in a list of beam pitfalls in Square hollow section chassis (post 20, 2022): “A rotational DOF constraint on a transformed node of a beam can act in the wrong direction”, with no deck or cause. Forum topics near it: *equation + *TRANSFORM asks (without an answer) whether *EQUATION terms at a transformed node are global or local, and Use *TRANSFORM with *RIGID BODY reports that a *TRANSFORM (TYPE=C) on a *RIGID BODY reference node with a prescribed displacement makes ccx stop without a message; in Coupling constraints: capabilities and local coordinate systems not compatible a user takes it that loads and BCs in local systems on coupling reference nodes are not supported; for *DISTRIBUTING ccx says so with an *ERROR, but for *KINEMATIC section 7.80 says they are. Not fixed: the code below is unchanged on master (537aa81). Commit 00fc777 (“created some extra input data checks”) checks the DOF range in equations.f, but not this branch.

Related, different: Bug: Wrong displacement on shell midplane node with transformed *BOUNDARY · Issue #43 · Dhondtguido/CalculiX · GitHub (translational *BOUNDARY at a transformed S8 corner node); *EQUATION that names the same DOF in two terms is mis-assembled: wrong stiffness and mass, no message · Issue #212 · Dhondtguido/CalculiX · GitHub and pull request equations.f: collect repeated DOFs of an equation into one term by sandervdbroek · Pull Request #245 · Dhondtguido/CalculiX · GitHub (repeated DOFs from local terms in equations.f, translations only).

Minimal input

fold.inp: the fold line (knot nodes 2 and 3) is turned by 0.01 about global y.

** two S4 shells folded 90 degrees along the line x=1, z=0, so nodes 2 and 3
** are knots; element 1 lies in z=0 and is clamped along x=0, element 2 lies
** in x=1. The rotation of the fold line about y is prescribed: 0.01.
*NODE, NSET=NALL
1, 0., 0., 0.
2, 1., 0., 0.
3, 1., 1., 0.
4, 0., 1., 0.
5, 1., 0., 1.
6, 1., 1., 1.
*ELEMENT, TYPE=S4, ELSET=ESH
1, 1, 2, 3, 4
2, 2, 3, 6, 5
*MATERIAL, NAME=M
*ELASTIC
210000., 0.3
*SHELL SECTION, ELSET=ESH, MATERIAL=M
0.05
*NSET, NSET=FOLD
2, 3
*BOUNDARY
1, 1, 6
4, 1, 6
*STEP
*STATIC
*BOUNDARY
FOLD, 5, 5, 0.01
*NODE PRINT, NSET=NALL
U
*END STEP

Variants of fold.inp (changed lines only; ... stands for unchanged lines):

  • fold_tr.inp: a *TRANSFORM on the fold nodes with local x’ = global y (y’ = -x, z’ = z), and the rotation given about local x’:

     2, 3
    +*TRANSFORM, NSET=FOLD
    +0., 1., 0., -1., 0., 0.
     *BOUNDARY
     ...
    -FOLD, 5, 5, 0.01
    +FOLD, 4, 4, 0.01
    
  • fold_x.inp: no *TRANSFORM, rotation about global x: FOLD, 4, 4, 0.01.

  • fold_m.inp, fold_m_tr.inp, fold_m_x.inp: the same three, with a moment instead of the prescribed rotation (*CLOAD / FOLD, 5, 1., FOLD, 4, 1. with the *TRANSFORM, FOLD, 4, 1. without it).

  • fold_read.inp: the rotation of node 2 read by an equation u_x(10) = θ_y(2) on an extra node:

     2, 3
    +*NODE, NSET=NDUM
    +10, 2., 0., 0.
    +*EQUATION
    +2
    +10, 1, 1., 2, 5, -1.
     *BOUNDARY
    +10, 2, 3
     1, 1, 6
     ...
    -*NODE PRINT, NSET=NALL
    +*NODE PRINT, NSET=NDUM
    

    fold_read_ident.inp: fold_read.inp with an identity transform *TRANSFORM, NSET=FOLD / 1., 0., 0., 0., 1., 0. before *NODE, NSET=NDUM.

  • fold_dep_ident.inp: the rotation of node 2 prescribed through an equation θ_y(2) = u_x(10), with the identity transform:

     2, 3
    +*TRANSFORM, NSET=FOLD
    +1., 0., 0., 0., 1., 0.
    +*NODE, NSET=NDUM
    +10, 2., 0., 0.
    +*EQUATION
    +2
    +2, 5, 1., 10, 1, -1.
     *BOUNDARY
    +10, 2, 3
     1, 1, 6
     ...
    -FOLD, 5, 5, 0.01
    +10, 1, 1, 0.01
    

    fold_dep.inp: the same without the two *TRANSFORM lines.

kin.inp: a kinematic coupling whose reference node is turned by 0.01 about global y.

** C3D8 unit cube (E=1000, nu=0) on rollers at z=0; its top face is coupled
** (*KINEMATIC 1-3) to node 100 at the face centre; node 100 is turned
*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.
100, 0.5, 0.5, 1.
*ELEMENT, TYPE=C3D8, ELSET=EALL
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=TOP
5, 6, 7, 8
*NSET, NSET=REF
100
*SURFACE, NAME=STOP
1, S2
*MATERIAL, NAME=M
*ELASTIC
1000., 0.
*SOLID SECTION, ELSET=EALL, MATERIAL=M
*COUPLING, REF NODE=100, SURFACE=STOP, CONSTRAINT NAME=C1
*KINEMATIC
1, 3
*BOUNDARY
1, 1, 3
2, 2, 3
3, 3
4, 1, 1
4, 3, 3
100, 1, 6
*STEP
*STATIC
*BOUNDARY
100, 5, 5, 0.01
*NODE PRINT, NSET=TOP
U
*END STEP
  • kin_tr.inp: the same *TRANSFORM on node 100 and the rotation about local x’:

     *KINEMATIC
     1, 3
    +*TRANSFORM, NSET=REF
    +0., 1., 0., -1., 0., 0.
     *BOUNDARY
     ...
    -100, 5, 5, 0.01
    +100, 4, 4, 0.01
    
  • kin_x.inp: no *TRANSFORM, 100, 4, 4, 0.01.

How to run

ccx fold; ccx fold_tr; ccx fold_x
ccx fold_m; ccx fold_m_tr; ccx fold_m_x
ccx fold_read; ccx fold_read_ident
ccx fold_dep; ccx fold_dep_ident
ccx kin; ccx kin_tr; ccx kin_x

Expected

Local DOF 4 is the rotation about x’ = global y, so each _tr deck must give the result of its global DOF-5 deck, and an identity transform must change nothing.

Actual

Node 5 (fold decks), ccx 2.23 and master:

deck given as node 5 U
fold rotation, global DOF 5 1.000000E-02 -2.764760E-15 -5.000000E-03
fold_tr rotation, local DOF 4 (= global 5) 6.541773E-03 -9.353710E-03 -4.676855E-03
fold_x rotation, global DOF 4 6.541773E-03 -9.353710E-03 -4.676855E-03
fold_m moment, global DOF 5 8.335567E-01 1.643796E-12 -4.167784E-01
fold_m_tr moment, local DOF 4 (= global 5) 1.479849E-02 -2.115953E-02 -1.057976E-02
fold_m_x moment, global DOF 4 1.479849E-02 -2.115953E-02 -1.057976E-02

The .12d file of fold_tr says “a KNOT was generated in node 2” and “… in node 3”.

For comparison, on a flat S4 strip the same *TRANSFORM on the two tip nodes, which are not knots, works: local DOF 4 (flat_tr.inp) gives the tip U3 of global DOF 5 (flat.inp), -9.983058E-03 in both, and flat_tr.12d shows the mean-rotation MPC at nodes 3 and 6 about the axis (0, 1, 0).

flat.inp and flat_tr.inp

flat.inp:

** S4 strip 2 x 1 in z=0, clamped along x=0; rotation about y prescribed at x=2
*NODE, NSET=NALL
1, 0., 0., 0.
2, 1., 0., 0.
3, 2., 0., 0.
4, 0., 1., 0.
5, 1., 1., 0.
6, 2., 1., 0.
*ELEMENT, TYPE=S4, ELSET=ESH
1, 1, 2, 5, 4
2, 2, 3, 6, 5
*MATERIAL, NAME=M
*ELASTIC
210000., 0.3
*SHELL SECTION, ELSET=ESH, MATERIAL=M
0.05
*NSET, NSET=TIP
3, 6
*BOUNDARY
1, 1, 6
4, 1, 6
*STEP
*STATIC
*BOUNDARY
TIP, 5, 5, 0.01
*NODE PRINT, NSET=NALL
U
*END STEP

flat_tr.inp:

 3, 6
+*TRANSFORM, NSET=TIP
+0., 1., 0., -1., 0., 0.
 *BOUNDARY
 ...
-TIP, 5, 5, 0.01
+TIP, 4, 4, 0.01

fold_read: node 10 U1 = 1.000000E-02. fold_read_ident (identity transform): node 10 U1 = 0.000000E+00, exit 0.

fold_dep: runs (node 5: 9.993919E-03 -1.805812E-04 -4.999548E-03). fold_dep_ident (identity transform), exit 201:

 *ERROR reading *EQUATION: SPC in node            2  in transformed coordinates
  cannot be converted in MPC: all
  DOFs in the node are used as
  dependent nodes in other MPCs

Top face, kin decks (U3 of nodes 5 and 6):

deck node 5 U3 node 6 U3
kin (global DOF 5) 5.000000E-03 -5.000000E-03
kin_tr (local DOF 4 = global 5) -5.000000E-03 -5.000000E-03
kin_x (global DOF 4) -5.000000E-03 -5.000000E-03

Where it goes wrong

Line numbers are from master (537aa81).

  1. Knots. gen3dnor.f creates the rotation node of a knot at lines 905-906 (irotnode=nk, rig(i)=irotnode) and does not pass the node’s transformation on to it. gen3dboun.f and gen3dforc.f then move a rotational SPC or moment of the knot node to DOFs 1-3 of that rotation node (bounadd / forcadd with irotnode), where no transformation applies. The two other places that create a knot rotation node do pass it on: gen3dboun.f:195 if(ntrans.gt.0) inotr(1,irotnode)=inotr(1,node) and gen3dforc.f:212 inotr(1,irotnode)=inotr(1,node) (knots made for rotations in dynamic steps). Adding the same line after gen3dnor.f:906,

               if(ntrans.gt.0) inotr(1,irotnode)=inotr(1,i)
    

    makes fold_tr and fold_m_tr give exactly the fold and fold_m results in a build of master (537aa81). It does not change the kin or *EQUATION cases.

  2. Kinematic reference node. couplings.f (lines 347-390) ties DOFs 4-6 of the reference node to DOFs 1-3 of a new rotation node with ‘ROTTRACOUPLING’ MPCs, and that node gets no transformation. bounadd.f (lines 64-75) and forcadd.f (lines 52-60) redirect a rotational SPC or moment of the reference node to the rotation node and set itr=0; the moment is then transformed (in mafillsmforc.f) with the rotation node’s transformation, i.e. none. So the reference node’s transformation is dropped in both cases. Passing it on to the rotation node, as in point 1, and not resetting itr would seem to be the fix; I have not tried it.

  3. *EQUATION. equations.f:493 sends a term to the untransformed branch if

               if((itr.eq.0).or.(ndir.eq.0).or.(ndir.eq.4)) then
    

    ndir.eq.4 is presumably there for the static pressure (DOF 8, mapped to 4 at lines 456-457), a scalar like DOF 0, but it also catches a genuine DOF 4, which is therefore read in global axes. DOFs 5 and 6 go to the transformed branch, which uses a(number,ndir) of real*8 a(3,3) with ndir = 5 or 6 (lines 549, 577 and 580), i.e. memory outside the matrix. In these runs those entries read as zero, so for the dependent term every candidate is skipped and the “cannot be converted” error follows (lines 552-561), and for an independent term no term is written. A fix would expand DOFs 4-6 like DOFs 1-3, with a(number,ndir-3) on DOFs number+3, and keep the untransformed branch for DOF 0 and for a DOF 4 that came from DOF 8.

Beams are left out on purpose: section 6.2.33 says “No local coordinate system should be defined in nodes with constrained rotational degrees of freedom.”

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

fold.dat:

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

         1  0.000000E+00  0.000000E+00  0.000000E+00
         2  2.212355E-15  6.209616E-16 -5.000000E-03
         3  1.154878E-15  4.788037E-16 -5.000000E-03
         4  0.000000E+00  0.000000E+00  0.000000E+00
         5  1.000000E-02  1.085338E-15 -5.000000E-03
         6  1.000000E-02  2.242336E-15 -5.000000E-03

fold_tr.dat:

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

         1  0.000000E+00  0.000000E+00  0.000000E+00
         2  5.728796E-16 -5.440932E-16 -4.676855E-03 L
         3  5.528039E-16  5.303678E-16  4.676855E-03 L
         4  0.000000E+00  0.000000E+00  0.000000E+00
         5  6.541773E-03 -9.353710E-03 -4.676855E-03
         6 -6.541773E-03 -9.353710E-03  4.676855E-03
1 Like

Posted: *TRANSFORM is ignored for rotations at shell knots and *KINEMATIC reference nodes; *EQUATION terms on DOF 5/6 of a transformed node are misread · Issue #312 · Dhondtguido/CalculiX · GitHub

1 Like