*HEAT TRANSFER, *(UN)COUPLED TEMPERATURE-DISPLACEMENT, *VISCO: a blank or zero period (default 1.) prints "step size is negative" and runs with NaN time

Summary

The 2.23 manual gives the time period of these steps a default of 1:

  • Section 7.73 (*HEAT TRANSFER), second line: “Initial time increment. … (default 1.)” and “Time period of the step (default 1.)”. Sections 7.26 (*COUPLED TEMPERATURE-DISPLACEMENT) and 7.136 (*UNCOUPLED TEMPERATURE-DISPLACEMENT) say the same.
  • Section 7.143 (*VISCO): “The syntax is identical to the *STATIC syntax”, and section 7.123 (*STATIC) has the same two defaults.

*STATIC applies them: a blank or zero period becomes 1. The other four procedure readers do not. With a blank or zero period, ccx 2.23:

  1. prints *ERROR reading *HEAT TRANSFER: step size is negative (and “initial increment size exceeds step size”), although nothing is negative;
  2. does not stop: the reader prints these lines without setting the error flag;
  3. runs the step with period 0. The increment size, the step time and the total time are NaN.

What the user gets then depends on the procedure:

  • steady-state *HEAT TRANSFER or *COUPLED TEMPERATURE-DISPLACEMENT: NaN temperatures, “Job finished”, exit 0;
  • transient *HEAT TRANSFER, *COUPLED or *UNCOUPLED TEMPERATURE-DISPLACEMENT: exit status 255. The only message besides the two lines above is “matrix found to be singular” in spooles.out;
  • *VISCO: “solution seems to diverge; please try automatic incrementation; program stops” (exit 201), although DIRECT incrementation with a fixed increment is what the deck asks for.

A blank initial increment (, 1.) in a transient *HEAT TRANSFER step ends the same way: “initial increment size is negative”, then exit 255. A negative period prints the *ERROR line and runs on as well: the transient heat deck below runs 100 increments of 0.25, up to time 25, and stops at the increment limit (exit 201).

A blank period is a natural way to write a steady-state step, where the period has no physical meaning. Abaqus’ own benchmark deck for the radiation analysis of a plane finned surface, for example, has *HEAT TRANSFER, STEADY STATE / 1.0,.

Version

ccx 2.23 (macOS arm64). Source: master 9ba5d76 (16 Oct 2026).

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: heattransfers.f, couptempdisps.f, uncouptempdisps.f and viscos.f are unchanged on master (9ba5d76).

Minimal input

period_heat.inp: one DC3D8 cube, bottom face held at 100, steady-state heat transfer. The second field of the line under *HEAT TRANSFER (the time period) is blank.

** One DC3D8 cube, start temperature 0, bottom face held at 100.
** Steady-state *HEAT TRANSFER; the time period (2nd field) is left blank.
*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=DC3D8, ELSET=EALL
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=BOT
1, 2, 3, 4
*NSET, NSET=N7
7
*MATERIAL, NAME=M
*CONDUCTIVITY
1.
*DENSITY
1.
*SPECIFIC HEAT
1.
*SOLID SECTION, ELSET=EALL, MATERIAL=M
*INITIAL CONDITIONS, TYPE=TEMPERATURE
NALL, 0.
*STEP, INC=100
*HEAT TRANSFER, STEADY STATE
1.,
*BOUNDARY
BOT, 11, 11, 100.
*NODE PRINT, NSET=N7
NT
*END STEP

Variants of period_heat.inp (one or two lines changed):

  • period_heat_ref.inp: 1., 1. instead of 1., (the documented default written out);
  • period_heat_zero.inp: 1., 0.;
  • period_tr.inp: *HEAT TRANSFER, DIRECT instead of *HEAT TRANSFER, STEADY STATE, and 0.25, instead of 1.,;
  • period_tr_ref.inp: as period_tr.inp with 0.25, 1.;
  • period_tr_inc.inp: as period_tr.inp with , 1. (blank initial increment);
  • period_tr_neg.inp: as period_tr.inp with 0.25, -1.;
  • period_td.inp: coupled temperature-displacement: TYPE=C3D8 instead of TYPE=DC3D8; the lines *ELASTIC / 1000., 0.3 / *EXPANSION / 1.E-5 added before *CONDUCTIVITY; the lines *BOUNDARY / BOT, 1, 3 added before *STEP, INC=100; and *COUPLED TEMPERATURE-DISPLACEMENT, STEADY STATE instead of *HEAT TRANSFER, STEADY STATE. period_td_ref.inp is the same with 1., 1.;
  • period_tdtr.inp and period_utdtr.inp: as period_td.inp with *COUPLED TEMPERATURE-DISPLACEMENT, DIRECT or *UNCOUPLED TEMPERATURE-DISPLACEMENT, DIRECT and 0.25,. period_tdtr_ref.inp and period_utdtr_ref.inp are the same with 0.25, 1..

period_visco.inp: one C3D8 cube with Norton creep under a constant load, *VISCO, DIRECT with a blank period.

** One C3D8 cube with Norton creep, pulled at the top with a constant load.
** *VISCO, DIRECT, increment 0.25; the time period (2nd field) is left blank.
*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=EALL
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=TOP
5, 6, 7, 8
*NSET, NSET=N7
7
*MATERIAL, NAME=M
*ELASTIC
1000., 0.
*CREEP, LAW=NORTON
1.E-3, 1., 0.
*SOLID SECTION, ELSET=EALL, MATERIAL=M
*BOUNDARY
1, 1, 3
2, 2, 3
3, 3, 3
4, 1, 1
4, 3, 3
*STEP, INC=100
*VISCO, DIRECT, CETOL=1.
0.25,
*CLOAD
TOP, 3, 25.
*NODE PRINT, NSET=N7
U
*END STEP

period_visco_ref.inp is the same with 0.25, 1., and period_visco_zero.inp with 0.25, 0..

How to run

ccx <name> for each deck; the result is in <name>.dat, the exit status in $?.

Expected

A blank or zero period is the default 1., so each deck gives the result of its _ref twin:

  • period_heat, period_heat_zero, period_td: node 7 at 100 at time 1 (the uniform steady state), as period_heat_ref and period_td_ref give.
  • period_tr, period_tdtr, period_utdtr: 4 increments to time 1, node 7 at 89.33778, as the _ref twins give.
  • period_visco, period_visco_zero: 4 increments, node 7 at U3 = 0.2 at time 1, as period_visco_ref gives.
  • period_tr_inc: initial increment 1. (the default), one increment.
  • period_tr_neg: an *ERROR and a stop, as *STATIC does for a negative period.

Actual

deck exit .dat (node 7) messages
period_heat (steady, blank) 0 “temperatures … for time NaN”, NT = NaN the two *ERROR lines, “Job finished”
period_heat_zero 0 NT = NaN the same
period_td (coupled, steady, blank) 0 NT = NaN the same, for *COUPLED TEMPERATURE-DISPLACEMENT
period_tr (transient, blank) 255 nothing the two *ERROR lines; spooles.out: “matrix found to be singular”
period_tdtr, period_utdtr 255 nothing the same
period_visco, period_visco_zero 201 nothing the two *ERROR lines, then “*ERROR: solution seems to diverge; please try automatic incrementation; program stops”
period_tr_inc (blank increment) 255 nothing “initial increment size is negative”, “increment size smaller than one millionth of step size”; spooles.out: “matrix found to be singular”
period_tr_neg 201 NT = 100 at time 25 the two *ERROR lines, “increment size smaller than one millionth of step size”, then “max. # of increments reached” after 100 increments
all _ref twins 0 as expected above none

The two lines for period_heat.inp are

 *ERROR reading *HEAT TRANSFER: step size is negative
 *ERROR reading *HEAT TRANSFER: initial increment sizeexceeds step size

followed by

 increment size= nan
 sum of previous increments=0.000000e+00
 actual step time=nan
 actual total time=nan

and “Job finished”.

Where it goes wrong

heattransfers.f reads the period without a default (line 205) and then checks it (lines 224-237):

         if(tinc.le.0.d0) then
            write(*,*) 
     &            '*ERROR reading *HEAT TRANSFER: initial increment size 
     &is negative'
         endif
         if(tper.le.0.d0) then
            write(*,*) 
     &        '*ERROR reading *HEAT TRANSFER: step size is negative'
         endif
         if(tinc.gt.tper) then
            write(*,*) 
     &            '*ERROR reading *HEAT TRANSFER: initial increment size 
     &exceeds step size'
         endif

None of the three branches sets ier=1 or returns, so the input is accepted with tper = 0. nonlingeo.c then computes dtheta=(*tinc)/(*tper); (line 863), which is infinite, and the increment size dtheta*tper is NaN. couptempdisps.f (period read at line 201, checks at lines 226-237), uncouptempdisps.f (194, 213-229) and viscos.f (166, 185-195) have the same three checks without ier=1.

statics.f shows the intended handling (lines 212-232):

      if(tper.lt.0.d0) then
         write(*,*) '*ERROR reading *STATIC: step size is negative'
         ier=1
         return
      elseif(tper.le.0.d0) then
         tper=1.d0
      endif
      if(tinc.lt.0.d0) then
         write(*,*) '*ERROR reading *STATIC: initial increment size is n
     &egative'
         ier=1
         return
      elseif(tinc.le.0.d0) then
         tinc=tper
      endif
      if(tinc.gt.tper) then
         write(*,*) '*ERROR reading *STATIC: initial increment size exce
     &eds step size'
         ier=1
         return
      endif

With this, period_static.inp (period_visco.inp with *STATIC, DIRECT instead of *VISCO, DIRECT, CETOL=1.) runs 4 increments to time 1 with exit 0.

Fix

Use the statics.f block in heattransfers.f, couptempdisps.f, uncouptempdisps.f and viscos.f: a blank or zero period becomes 1., a blank or zero initial increment becomes the period (or 1., as the manual says), and a negative value or an initial increment larger than the period gives an *ERROR with ier=1. While there, the continuation lines of the heat transfer messages lack a space (“sizeexceeds”, “sizeis”).

*DYNAMIC is not affected: section 7.46 (*DYNAMIC) gives no default for the period, and ccx stops with an *ERROR. period_dyn.inp (period_visco.inp with *DYNAMIC, DIRECT instead of *VISCO, DIRECT, CETOL=1., and *DENSITY / 1. added under *MATERIAL, NAME=M) prints “*ERROR reading *DYNAMIC: step size is nonpositive” and stops with exit 201.

Workaround: write the time period explicitly, e.g. 1., 1. for a steady-state step.

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

period_heat:

 STEP            1

 *ERROR reading *HEAT TRANSFER: step size is negative
 *ERROR reading *HEAT TRANSFER: initial increment sizeexceeds step size
 Static analysis was selected

 Newton-Raphson iterative procedure is active

 Decascading the MPC's

 Determining the structure of the matrix:
 Using up to 4 cpu(s) for setting up the structure of the matrix.
 number of equations
 4
 number of nonzero lower triangular matrix elements
 6

 increment 1 attempt 1
 increment size= -nan(ind)
 sum of previous increments=0.000000e+00
 actual step time=-nan(ind)
 actual total time=-nan(ind)

 iteration 1

 Using up to 1 cpu(s) for the heat flux calculation.

 Using up to 1 cpu(s) for the symmetric stiffness/mass contributions.

 Factoring the system of equations using the symmetric spooles solver
 Using up to 16 cpu(s) for spooles.

 Using up to 1 cpu(s) for the heat flux calculation.

 average flux= nan
 time avg. flux= 0.010000
 largest residual flux= 0.000000 in node 5 and dof 0
 largest increment of temp= 0.000000e+00
 largest correction to temp= 0.000000e+00

 convergence

 the increment size exceeds the remainder of the step and is decreased to -nan(ind)

 Using up to 1 cpu(s) for the heat flux calculation.


 Job finished

________________________________________

Total CalculiX Time: 0.081710
________________________________________

posted: *HEAT TRANSFER, *(UN)COUPLED TEMPERATURE-DISPLACEMENT, *VISCO: a blank or zero period (default 1.) prints "step size is negative" and runs with NaN time · Issue #295 · Dhondtguido/CalculiX · GitHub

1 Like