1. *BOUNDARY, OP=NEW silently drops the *EQUATIONs and *TIEs at a *TRANSFORM node that had a boundary condition on a local translation (exit 0)
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”. Section 7.4 (*BOUNDARY): “OP=NEW implies that previously prescribed displacements are removed.” Section 7.56 (*EQUATION) removes equations only through its REMOVE and REMOVE ALL parameters.
When a node has a *TRANSFORM and a *BOUNDARY on one of its local translations, a later step with *BOUNDARY, OP=NEW removes more than the boundary condition. Any linear constraint that holds the node’s DOF that ccx eliminates for that BC is lost too:
- an
*EQUATION on the node, whichever term comes first;
- a
*TIE whose master face holds the node.
The run ends normally (exit 0, no message). In the deck below, step 2 gives exactly the displacements of the same model without the *EQUATION.
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 (searched 5 Nov 2026). Not fixed: the OP=NEW branch of boundarys.f (lines 69-159) is the same in 2.23 and master. A build with CalculiX.c: decascade again after a step that left the MPCs undecascaded by sandervdbroek · Pull Request #252 · Dhondtguido/CalculiX · GitHub gives the same numbers.
Related, different: Wrong results in a multistep analysis with shells and *BOUNDARY, OP=NEW · Issue #13 · Dhondtguido/CalculiX · GitHub (shells and beams with rotational BCs and OP=NEW). As traced in its comments, its cause is the type-‘B’ filter at the end of the same OP=NEW branch (lines 161-176); this report is about the ntrans > 0 block above it. *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 (*TRANSFORM and rotations) is about other code.
Minimal input
transform_eq_opnew.inp: one C3D8. Node 7 has oblique axes, and an *EQUATION ties node 6’s u_x to node 7’s local u1. Step 1 holds node 7’s local u2 at 0.01. Step 2 is *BOUNDARY, OP=NEW with the base again and new loads.
** One C3D8. Node 7: local axes (1, 1, 0.5) / (-1, 1, 1); *EQUATION: u1'(7) = u_x(6).
** Step 1 holds node 7's local u2; step 2 removes that with *BOUNDARY, OP=NEW.
*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=E
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=BASE
1, 2, 3, 4
*NSET, NSET=NN
7
*NSET, NSET=N6
6
*MATERIAL, NAME=M
*ELASTIC
1000., 0.3
*SOLID SECTION, ELSET=E, MATERIAL=M
*TRANSFORM, NSET=NN, TYPE=R
1, 1, 0.5, -1, 1, 1
*EQUATION
2
7, 1, 1., 6, 1, -1.
*BOUNDARY
BASE, 1, 3
*STEP
*STATIC
*BOUNDARY
7, 2, 2, 0.01
*CLOAD
5, 1, 10
6, 1, 10
7, 1, 10
7, 3, -20
8, 1, 10
*NODE PRINT, NSET=NN, GLOBAL=YES
U
*NODE PRINT, NSET=N6
U
*END STEP
*STEP
*STATIC
*BOUNDARY, OP=NEW
BASE, 1, 3
*CLOAD, OP=NEW
5, 2, 30
6, 2, 30
8, 2, 30
*NODE PRINT, NSET=NN, GLOBAL=YES
U
*NODE PRINT, NSET=N6
U
*END STEP
global_eq_ref.inp, the reference: step 2 on its own, without *TRANSFORM, with the equation written in global components (local u1 = (u_x + u_y + 0.5 u_z) / 1.5):
** Reference: no *TRANSFORM, one step with step 2's BCs and loads;
** the same equation in global components: 1.5 u_x(6) = u_x(7) + u_y(7) + 0.5 u_z(7)
*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=E
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=BASE
1, 2, 3, 4
*NSET, NSET=NN
7
*NSET, NSET=N6
6
*MATERIAL, NAME=M
*ELASTIC
1000., 0.3
*SOLID SECTION, ELSET=E, MATERIAL=M
*EQUATION
4
6, 1, -1.5, 7, 1, 1., 7, 2, 1., 7, 3, 0.5
*BOUNDARY
BASE, 1, 3
*STEP
*STATIC
*CLOAD
5, 2, 30
6, 2, 30
8, 2, 30
*NODE PRINT, NSET=NN, GLOBAL=YES
U
*NODE PRINT, NSET=N6
U
*END STEP
How to run
ccx transform_eq_opnew, ccx global_eq_ref; compare the last two blocks of the .dat files.
Expected
A linear static step depends only on its own BCs, equations and loads. Step 2 has the base held, the equation, and the three loads in y, so it should match global_eq_ref:
7 1.300543E-02 1.823609E-01 -1.425980E-01
6 8.271158E-02 3.531353E-01 1.224336E-01
Node 7’s local u1 is (0.01300543 + 0.1823609 - 0.5 x 0.1425980) / 1.5 = 0.082712 = u_x(6). transform_eq_opnew.inp without node 7’s BC in step 1 gives the same step-2 numbers.
Actual
Step 1 is right: node 7 at (6.330622E-02, 3.118355E-01, -1.666887E-01), so local u1 = 0.194532 = u_x(6) and local u2 = 0.0100. Step 2, exit 0, no message:
7 1.361179E-01 2.126321E-01 -1.429500E-01
6 -1.505107E-01 3.325107E-01 1.813929E-01
Node 7’s local u1 is 0.18485, but u_x(6) = -0.15051: the equation is off by 0.34. These are, to all printed digits, the displacements of global_eq_ref.inp without its *EQUATION.
Variants
All on transform_eq_opnew.inp, with the same numbers on 2.23 and master; the gap is |local u1(7) - u_x(6)| after the last step.
| change |
gap |
| none (as pasted) |
3.4E-01 |
equation written 6, 1, 1., 7, 1, -1. (node 6 dependent) |
3.4E-01 |
| node 7’s BC in the model data instead of step 1 |
3.4E-01 |
| the BC given again after OP=NEW in step 2 |
3.1E-01 |
| a plain step 2, then OP=NEW in step 3 |
3.4E-01 |
axes 1, 1, 0, -1, 1, 0 (turned about z only), BC on local 2 |
4.0E-01 |
| the same axes, BC on local 3 (= global z) |
2E-08 |
| step 2 without OP=NEW |
6E-09 |
| no BC on node 7 |
3E-08 |
the BC on a helper node 9 at node 7, tied by 7, 2, 1., 9, 2, -1. |
3E-08 |
*TIE (deck below): the bottom face of a second C3D8 is tied to the top face of the first. Node 7, a master node, has the same axes and the same BC in step 1, and step 2 has OP=NEW. The slave node 13, at node 7, is 0 away from it after step 1 and 2.53E-02 away (in x) after step 2. Without node 7’s BC it stays at 0.
transform_tie_opnew.inp
** Two C3D8 stacked; the bottom face of the upper one (slave) is tied to the top face of
** the lower one (master). Master node 7: local axes (1, 1, 0.5) / (-1, 1, 1), local u2
** held in step 1; *BOUNDARY, OP=NEW in step 2. Node 13 sits at node 7.
*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
11, 0, 0, 1
12, 1, 0, 1
13, 1, 1, 1
14, 0, 1, 1
15, 0, 0, 2
16, 1, 0, 2
17, 1, 1, 2
18, 0, 1, 2
*ELEMENT, TYPE=C3D8, ELSET=E
1, 1, 2, 3, 4, 5, 6, 7, 8
2, 11, 12, 13, 14, 15, 16, 17, 18
*NSET, NSET=BASE
1, 2, 3, 4
*NSET, NSET=N7
7
*NSET, NSET=PAIRS
5, 6, 7, 8, 11, 12, 13, 14
*MATERIAL, NAME=M
*ELASTIC
1000., 0.3
*SOLID SECTION, ELSET=E, MATERIAL=M
*TRANSFORM, NSET=N7, TYPE=R
1, 1, 0.5, -1, 1, 1
*SURFACE, NAME=MS
1, S2
*SURFACE, NAME=SS
2, S1
*TIE, NAME=T, POSITION TOLERANCE=0.01
SS, MS
*BOUNDARY
BASE, 1, 3
*STEP
*STATIC
*BOUNDARY
7, 2, 2, 0.01
*CLOAD
7, 1, 10.
6, 3, 5.
*NODE PRINT, NSET=PAIRS, GLOBAL=YES
U
*END STEP
*STEP
*STATIC
*BOUNDARY, OP=NEW
BASE, 1, 3
*CLOAD, OP=NEW
7, 3, 20.
5, 2, 10.
*NODE PRINT, NSET=PAIRS, GLOBAL=YES
U
*END STEP
Step 2, node 7 and node 13: 7.815220E-02 -1.555492E-01 8.667037E-02 and 1.034660E-01 -1.555492E-01 8.667037E-02.
Where it goes wrong
Line numbers are from master (537aa81); boundarys.f and cascade.c have the same lines in 2.23.
bounadd.f (lines 164-328) writes a BC on a local translation of a transformed node as an MPC over the node’s global DOFs plus a term on an extra node inotr(2,node), which carries the value as an SPC.
cascade.c (from line 229) substitutes that MPC, in place, into every linear MPC that has its dependent DOF as an independent term. Here that is the user’s equation, which then holds a term on the extra node.
- On OP=NEW,
boundarys.f removes every MPC that has its dependent DOF on the node and a term on the extra node in the BC’s direction. Its comment (lines 73-78) calls this a “necessary and sufficient condition”, but once cascade.c has run it is no longer sufficient. The loop (lines 80-134) removes the user’s equation together with the BC’s own MPC. An MPC whose dependent DOF is elsewhere (node 6 first, or the tie’s slave node) is kept, but OP=NEW also removes the SPC on the extra node, so that term is now free and the MPC no longer constrains anything.
The *EQUATION, REMOVE branch has the same problem and deals with it: equations.f (lines 97-127) first checks ikmpcref against ikmpc, then restores “the original equations (before the first call to cascade)” from nodempcref / coefmpcref and sets mpcfreeref=-1, and only then removes.
Possible fix
Do what equations.f does before the removal loop of boundarys.f, i.e. restore the undecascaded MPCs and set mpcfreeref=-1 (this needs nodempcref, coefmpcref, ikmpcref, memmpcref_, mpcfreeref, maxlenmpcref, memmpc_ and maxlenmpc passed from calinput.f). I tried this in a test build of master. Every variant in the table above, and the tie deck, then holds to 3E-08 or better, and step 2 of transform_eq_opnew.inp prints the global_eq_ref numbers. I have not checked it beyond these decks.
Workaround
Put the BC on an untransformed helper node tied to the node’s local DOF by an equation (last row of the table).