Summary
Section 6.9.4 (Buckling analysis) of the 2.23 manual says that with the perturbation parameter “the initial stiffness matrix includes the deformation and stress stiffness matrix corresponding to the deformation and stress at the end of the last static or dynamic step performed previous to the buckling step, if any, and the material parameters are based on the temperature at the end of that step.” The buckling load “is the buckling factor multiplied with the step load”, and temperature loading “is not allowed in a linear buckling step”. Section 7.125 (*STEP) says the same for PERTURBATION: “taking the temperatures into account to determine the material properties. The active loads (mechanical and thermal) are those specified in the perturbation step.”
So the temperatures of the base state should only set the material properties of a PERTURBATION *BUCKLE step. ccx also uses them for a thermal strain in the buckling load case. The stress of the load case is computed from the load case’s own displacements minus the base state’s thermal strain α (T_base - T_initial). That adds a stress of -E α ΔT / (1 - 2ν) in every normal direction (for an isotropic material) to the buckling load case. This stress does not depend on the buckling load, but it is scaled with the buckling factor as if it were part of it.
Test: a short column that can expand freely, so heating it leaves no stress in the base state (all stresses below 1.3E-14). Cold, the axial buckling factor is 0.9654849 for a reference load of 0.4 and 9.654849 for 0.04: the buckling load is 0.386 both times. Heated by 1 degree (thermal strain 1E-4) the factors are 0.9209479 and 6.484905, so the buckling load is 0.368 or 0.259 depending on the reference load. Heated by 10 degrees it is 0.261 or 0.057. Exit 0, no message.
The stresses that ccx prints for the buckling load case show the cause. Heated by 1, the load case of the column has S11 = S22 = -0.25 instead of 0, and S33 = -10.248 instead of -10. That is -E α ΔT / (1 - 2ν) = -1000 · 1E-4 · 1 / 0.4 = -0.25.
A linear and an NLGEOM base step give the same numbers. A *BUCKLE step without PERTURBATION is not affected: it uses the unloaded structure (section 6.9.4), and arpackbu.c gives it the initial temperatures for both temperature fields.
Version
ccx 2.23 (macOS arm64) and a build of master 9ba5d76 (16 Oct 2026): 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 (searched 22 Oct 2026). Not fixed: arpackbu.c is unchanged on master (9ba5d76).
Related:
- Issues · Dhondtguido/CalculiX · GitHub
*BUCKLEdoes not check its result, and with a singular stiffness matrix it prints factors near the shift 1.0. A different cause: here the stiffness matrix is regular, and the factors are the eigenvalues of a problem with the wrong load case. - Multiplicative split of the deformation gradient for thermal expansion · Issue #93 · Dhondtguido/CalculiX · GitHub (from Thermal expansion with beam bending) and Free body under thermal load. Unexpected Stresses thermal expansion under NLGEOM (in t/2360 a freely expanding bar shows stresses). Different: no buckling step.
Minimal input
col_heated.inp:
** Short column: one C3D8I element 0.2 x 0.2 x 1, E = 1000, nu = 0.3,
** expansion coefficient 1.E-4. The bottom face (nodes 1-4) is held in z,
** node 1 in x and y, node 2 in y: the bottom cannot tilt, but it can
** expand freely, so heating causes no stress.
** Step 1 heats the column from 0 to 1. Step 2 is a PERTURBATION buckling
** step with an axial load of 4 x 0.1 on the top face.
*NODE, NSET=NALL
1, 0., 0., 0.
2, 0.2, 0., 0.
3, 0.2, 0.2, 0.
4, 0., 0.2, 0.
5, 0., 0., 1.
6, 0.2, 0., 1.
7, 0.2, 0.2, 1.
8, 0., 0.2, 1.
*ELEMENT, TYPE=C3D8I, ELSET=E
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=BOT
1, 2, 3, 4
*NSET, NSET=TOP
5, 6, 7, 8
*MATERIAL, NAME=M
*ELASTIC
1000., 0.3
*EXPANSION
1.E-4
*SOLID SECTION, ELSET=E, MATERIAL=M
*BOUNDARY
BOT, 3, 3
1, 1, 2
2, 2, 2
*INITIAL CONDITIONS, TYPE=TEMPERATURE
NALL, 0.
*STEP
*STATIC
*TEMPERATURE
NALL, 1.
*NODE PRINT, NSET=TOP
U
*EL PRINT, ELSET=E
S
*END STEP
*STEP, PERTURBATION
*BUCKLE
2
*CLOAD
TOP, 3, -0.1
*END STEP
Variants (only the changed line):
col_cold.inp:NALL, 0.instead ofNALL, 1.in step 1.col_heated10.inp:NALL, 10.in step 1.col_heated_small.inp,col_cold_small.inp,col_heated10_small.inp: the same three withTOP, 3, -0.01in step 2.
cube.inp, for larger temperature changes: one C3D8 unit cube with α = 1E-3, held so that it can expand freely, heated from 0 to 100 in step 1, then a PERTURBATION buckling step with a load on one corner:
*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.
*ELEMENT, TYPE=C3D8, ELSET=E
1, 1, 2, 3, 4, 5, 6, 7, 8
*MATERIAL, NAME=M
*ELASTIC
1000., 0.3
*EXPANSION
1.E-3
*SOLID SECTION, ELSET=E, MATERIAL=M
*BOUNDARY
1, 1, 3
4, 1, 1
4, 3, 3
5, 1, 2
8, 1, 1
*INITIAL CONDITIONS, TYPE=TEMPERATURE
NALL, 0.
*STEP
*STATIC
*TEMPERATURE
NALL, 100.
*END STEP
*STEP, PERTURBATION
*BUCKLE
2
*CLOAD
7, 3, -1.
*EL PRINT, ELSET=E
S
*END STEP
Variants: NALL, 0. (cold) or NALL, 1. in step 1, and 7, 3, -1.E-3 in step 2.
How to run
ccx col_cold
ccx col_cold_small
ccx col_heated
ccx col_heated_small
ccx col_heated10
ccx col_heated10_small
ccx cube
Expected
Step 1 leaves no stress: the column expands freely (top U3 = 1E-4 · ΔT). So the buckling step should give the cold column’s buckling load, apart from the slightly larger geometry (all dimensions times 1 + α ΔT, at most 0.1 %). In particular the factor for the load 0.04 should be 10 times the factor for the load 0.4, as in the cold column.
The stresses of the buckling load case (printed in step 2) should be those of the cold column: S33 = -10 (-0.4 / 0.04), the other components 0.
Actual
Exit 0 for every deck, no warning. First buckling factor, and the buckling load (factor times total reference load):
| deck | ΔT | reference load | factor | buckling load |
|---|---|---|---|---|
col_cold |
0 | 0.4 | 0.9654849 | 0.386 |
col_cold_small |
0 | 0.04 | 9.654849 | 0.386 |
col_heated |
1 | 0.4 | 0.9209479 | 0.368 |
col_heated_small |
1 | 0.04 | 6.484905 | 0.259 |
col_heated10 |
10 | 0.4 | 0.6513780 | 0.261 |
col_heated10_small |
10 | 0.04 | 1.418269 | 0.057 |
Step 1 stresses of the heated decks are all below 1.3E-14. Stresses of the buckling load case (step 2, element 1, integration point 1):
| deck | S11 | S22 | S33 |
|---|---|---|---|
col_cold |
-2.1E-15 | -2.4E-15 | -1.000000E+01 |
col_heated |
-2.500000E-01 | -2.500000E-01 | -1.024800E+01 |
col_heated10 |
-2.500000E+00 | -2.500000E+00 | -1.248003E+01 |
The same with *STEP, NLGEOM on step 1. With cube.inp and its variants, the factors are 83.44989 cold and 0.7347812 heated by 100. For loads 1 and 0.001 the heated cube gives 0.7347812 and 0.7344092: almost the same factor for a load 1000 times smaller.
Where it goes wrong
src/arpackbu.c computes the static response to the buckling load and its stresses (stx) with results(). For a perturbation step this call gets the temperature fields t0 (initial) and t1old (end of the base step), lines 392-395:
else{
results(co,nk,kon,ipkon,lakon,ne,v,stn,inum,
stx,elcon,nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,
ielorien,norien,orab,ntmat_,t0,t1old,ithermal,
v is allocated empty just before (line 353), and resultsini.c adds only the solution b of the load case to it. The base deformation stays in vold. So the strain of v contains no thermal expansion, but results() subtracts the thermal strain between t0 and t1old from it. These stx then make the stress stiffness matrix of the buckling load (mafillsmmain, lines 454-500).
The base state’s stress is not affected: it enters the stiffness matrix as sti, the stress stored at the end of the base step (e_c3d.f lines 727-737; the comment at lines 445-447 of arpackbu.c reads “stx are the stresses due to the buckling load, sti due to previous loads, if any”). The results() call for the base state (lines 183-185) also gets t0 and t1old, but it does not use the base deformation, and only its material stiffness is kept (its stresses are freed at line 209). The eigenmode stresses (lines 812-816) have the same problem as the load case; that is output only.
Fix
Give the two results() calls of the perturbation branch t1old for both temperature fields. The material is then still evaluated at the base temperatures, as section 6.9.4 asks, and the load case gets no thermal strain:
--- a/src/arpackbu.c
+++ b/src/arpackbu.c
@@ -392,7 +392,7 @@
else{
results(co,nk,kon,ipkon,lakon,ne,v,stn,inum,
stx,elcon,nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,
- ielorien,norien,orab,ntmat_,t0,t1old,ithermal,
+ ielorien,norien,orab,ntmat_,t1old,t1old,ithermal,
prestr,iprestr,filab,eme,emn,een,iperturb,
f,fn,nactdof,&iout,qa,vold,b,nodeboun,
ndirboun,xboun,nboun,ipompc,
@@ -813,7 +813,7 @@
results(co,nk,kon,ipkon,lakon,ne,v,stn,inum,
stx,elcon,
nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,ielorien,
- norien,orab,ntmat_,t0,t1old,ithermal,
+ norien,orab,ntmat_,t1old,t1old,ithermal,
prestr,iprestr,filab,eme,emn,een,iperturb,
f,fn,nactdof,&iout,qa,vold,&z[lint],
nodeboun,ndirboun,xboun,nboun,ipompc,
arpack.c already does this for a PERTURBATION *FREQUENCY step: its results() calls in the perturbation branch get t1old for both fields (lines 429 and 1157).
I built master 9ba5d76 with this change (macOS arm64, SPOOLES) and ran the decks above:
| deck | factor |
|---|---|
col_cold, col_cold_small |
0.9654849, 9.654849 (unchanged) |
col_heated, col_heated_small |
0.9657746, 9.657746 |
col_heated10, col_heated10_small |
0.9683843, 9.683843 |
The factors scale with the load again. They differ from the cold ones only through the expanded geometry: 1.0003 at α ΔT = 1E-4 and 1.0030 at 1E-3. For the cube heated by 100 (all dimensions 10 % larger), the factor goes to 111.0718 = 1.331 times the cold one. The load case’s stresses become S11 = S22 = 0 and S33 = -9.999 (ΔT = 1), the load over the expanded cross-section. The eigenmode stresses of the cube heated by 1 (printed by cube.inp) equal the cold ones to within 0.1 % of the largest component.
*BUCKLE without PERTURBATION after the same heated step (linear or NLGEOM) gives 0.9654849 before and after the change. The three *BUCKLE decks in test/ (beam8b, beamb, beamb2) give byte-identical .dat files. None of them has PERTURBATION or temperatures, so no test deck covers this path.
Workaround: I know of none that keeps the linear buckling step. Section 6.9.4 suggests a nonlinear static or dynamic calculation where “temperature loading is an issue”.