CCX 2.22
CCX 2.22
2.22
Guido Dhondt
August 5, 2024
Contents
1 Introduction. 12
3 Units 14
4 Golden rules 16
1
2 CONTENTS
6 Theory 90
6.1 Node Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.2 Element Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.2.1 Eight-node brick element (C3D8 and F3D8) . . . . . . . . 94
6.2.2 C3D8R . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
6.2.3 Incompatible mode eight-node brick element (C3D8I) . . 96
6.2.4 Twenty-node brick element (C3D20) . . . . . . . . . . . . 97
6.2.5 C3D20R . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
6.2.6 Four-node tetrahedral element (C3D4 and F3D4) . . . . . 99
6.2.7 Ten-node tetrahedral element (C3D10) . . . . . . . . . . . 99
6.2.8 Modified ten-node tetrahedral element (C3D10T) . . . . . 101
6.2.9 Six-node wedge element (C3D6 and F3D6) . . . . . . . . 101
6.2.10 Fifteen-node wedge element (C3D15) . . . . . . . . . . . . 101
6.2.11 Three-node shell element (S3) . . . . . . . . . . . . . . . . 101
6.2.12 Four-node shell element (S4 and S4R) . . . . . . . . . . . 104
6.2.13 Six-node shell element (S6) . . . . . . . . . . . . . . . . . 104
6.2.14 Eight-node shell element (S8 and S8R) . . . . . . . . . . . 105
6.2.15 Three-node membrane element (M3D3) . . . . . . . . . . 112
6.2.16 Four-node membrane element (M3D4 and M3D4R) . . . . 112
6.2.17 Six-node membrane element (M3D6) . . . . . . . . . . . . 112
6.2.18 Eight-node membrane element (M3D8 and M3D8R) . . . 112
6.2.19 Three-node plane stress element (CPS3) . . . . . . . . . . 112
6.2.20 Four-node plane stress element (CPS4 and CPS4R) . . . 113
6.2.21 Six-node plane stress element (CPS6) . . . . . . . . . . . 113
6.2.22 Eight-node plane stress element (CPS8 and CPS8R) . . . 113
6.2.23 Three-node plane strain element (CPE3) . . . . . . . . . . 115
6.2.24 Four-node plane strain element (CPE4 and CPE4R) . . . 115
6.2.25 Six-node plane strain element (CPE6) . . . . . . . . . . . 115
6.2.26 Eight-node plane strain element (CPE8 and CPE8R) . . . 115
6.2.27 Three-node axisymmetric element (CAX3) . . . . . . . . 116
6.2.28 Four-node axisymmetric element (CAX4 and CAX4R) . . 116
6.2.29 Six-node axisymmetric element (CAX6) . . . . . . . . . . 116
6.2.30 Eight-node axisymmetric element (CAX8 and CAX8R) . 116
6.2.31 Two-node 2D beam element (B21) . . . . . . . . . . . . . 118
6.2.32 Two-node 3D beam element (B31 and B31R) . . . . . . . 118
6.2.33 Three-node 3D beam element (B32 and B32R) . . . . . . 119
6.2.34 Two-node 2D truss element (T2D2) . . . . . . . . . . . . 124
6.2.35 Two-node 3D truss element (T3D2) . . . . . . . . . . . . 126
6.2.36 Three-node 3D truss element (T3D3) . . . . . . . . . . . . 126
6.2.37 Three-node network element (D) . . . . . . . . . . . . . . 126
6.2.38 Two-node unidirectional gap element (GAPUNI) . . . . . 127
6.2.39 Two-node 3-dimensional dashpot (DASHPOTA) . . . . . 127
6.2.40 One-node 3-dimensional spring (SPRING1) . . . . . . . . 128
6.2.41 Two-node 3-dimensional spring (SPRING2) . . . . . . . 128
6.2.42 Two-node 3-dimensional spring (SPRINGA) . . . . . . . 129
6.2.43 One-node coupling element (DCOUP3D) . . . . . . . . . 129
CONTENTS 3
1 Introduction.
This is a description of CalculiX CrunchiX. If you have any problems using
the program, this document should solve them. If not, send us an E-mail
(dhondt@t-online.de). The next sections contain some useful information on
how to use CalculiX in parallel, hints about units and golden rules you should
always keep in mind before starting an analysis. Section five contains a sim-
ple example problems to wet your appetite. Section six is a theoretical section
giving some background on the analysis types, elements, materials etc. Then,
an overview is given of all the available keywords in alphabetical order, fol-
lowed by detailed instructions on the format of the input deck. If CalculiX
does not run because your input deck has problems, this is the section to look
at. Then, there is a section on the user subroutines and a short overview of
the program structure. The CalculiX distribution contains a large set of test
examples (ccx 2.22.test.tar.bz2). If you try to solve a new kind of problem you
haven’t dealt with in the past, check these examples. You can also use them to
check whether you installed CalculiX correctly (if you do so with the compare
script and if you experience problems with some of the examples, please check
the comments at the start of the corresponding input deck). Finally, the User’s
Manual ends with some references used while writing the code.
This manual is not a textbook on finite elements. Indeed, a working knowl-
edge of the Finite Element Method is assumed. For people not familiar with
the Finite Element Method, I recommend the book by Zienkiewicz and Taylor
[112] for engineering oriented students and the publications by Hughes [39] and
Dhondt [24] for mathematically minded readers.
3 Units
An important issue which frequently raises questions concerns units. Finite
element programs do not know any units. The user has to take care of that. In
15
fact, there is only one golden rule: the user must make sure that the numbers
he provides have consistent units. The number of units one can freely choose
depends on the application. For thermomechanical problems you can choose
four units, e.g. for length, mass, time and temperature. If these are chosen,
everything else is fixed. If you choose SI units for these quantities, i.e. m for
length, kg for mass, s for time and K for temperature, force will be in kgm/s2 =
N, pressure will be in N/m2 = kg/ms2 , density will be in kg/m3 , thermal
conductivity in W/mK = J/smK = Nm/smK = kgm2 /s3 mK = kgm/s3 K ,
specific heat in J/kgK = Nm/kgK = m2 /s2 K and so on. The density of steel in
the SI system is 7800 kg/m3 .
If you choose mm for length, g for mass, s for time and K for temper-
ature, force will be in gmm/s2 and thermal conductivity in gmm/s3 K. In
the {mm, g, s, K} system the density of steel is 7.8 × 10−3 since 7800kg/m3 =
7800 × 10−6 g/mm3 .
However, you can also choose other quantities as the independent ones. A
popular system at my company is mm for length, N for force, s for time and K
for temperature. Now, since force = mass × length / time2 , we get that mass
= force × time2 /length. This leads to Ns2 /mm for the mass and Ns2 /mm4 for
density. This means that in the {mm, N, s, K} system the density of steel is
7.8 × 10−9 since 7800kg/m3 = 7800Ns2 /m4 = 7.8 × 10−9 Ns2 /mm4 .
Notice that your are not totally free in choosing the four basic units: you
cannot choose the unit of force, mass, length and time as basic units since they
are linked with each other through force = mass × length / time2 .
Finally, a couple of additional examples. Young’s Modulus for steel is
210000N/mm2 = 210000×106N/m2 = 210000×106kg/ms2 = 210000×106g/mms2 .
So its value in the SI system is 210 × 109 , in the {mm, g, s, K} system it is also
210 × 109 and in the {mm, N, s, K} system it is 210 × 103 . The heat capacity of
steel is 446J/kgK = 446m2 /s2 K = 446 × 106 mm2 /s2 K, so in the SI system it is
446., in the {mm, g, s, K} and {mm, N, s, K} system it is 446 × 106 .
Table 1 gives an overview of frequently used units in three different systems:
the {m, kg, s, K} system, the {mm, N, s, K} system and the {cm, g, s, K} system.
Typical values for air, water and steel at room temperature are:
• air
• water
N kg N g
E Young’s Modulus 1m 2 = 1 ms2 = 10−6 mm 2 = 1 mms2
2
kg Ns g
ρ Density 1 m3 = 10−12 mm 4 = 10−6 mm 3
F Force 1N = 1 kgm
s2 = 1N = 106 g mm
s2
2 2 2
J
cp Specific Heat 1 kgK = 1 sm
2K = 106 mm
s2 K = 106 mm
s2 K
λ Conductivity 1 W
mK = 1 kgm
s3 K
N
= 1 sK = 106 gsmm
3K
kg
h Film Coefficient 1 mW
2 K = 1 s3 K = 10−3 mmNsK = 103 s3gK
Ns kg Ns g
µ Dynamic Viscosity 1m 2 = 1 ms = 10−6 mm 2 = 1 mm s
4 Golden rules
Applying the finite element method to real-life problems is not always a piece
of cake. Especially achieving convergence for nonlinear applications (large de-
formation, nonlinear material behavior, contact) can be quite tricky. However,
adhering to a couple of simple rules can make life a lot easier. According to my
experience, the following guidelines are quite helpful:
1. Check the quality of your mesh in CalculiX GraphiX or by using any other
good preprocessor.
2. If you are dealing with a nonlinear problem, RUN A LINEARIZED VER-
SION FIRST: eliminate large deformations (drop NLGEOM), use a linear
17
elastic material and drop all other nonlinearities such as contact. If the
linear version doesn’t run, the nonlinear problem won’t run either. The
linear version allows you to check easily whether the boundary conditions
are correct (no unrestrained rigid body modes), the loading is the one
you meant to apply etc. Furthermore, you get a feeling what the solution
should look like.
4. If you are using shell elements or beam elements, use the option OUT-
PUT=3D on the *NODE FILE card in CalculiX (which is default). That
way you get the expanded form of these elements in the .frd file. You can
easily verify whether the thicknesses you specified are correct. Further-
more, you get the 3D stress distribution. It is the basis for the 1D/2D
stress distribution and the internal beam forces. If the former is incorrect,
so will the latter be.
5. If you include contact in your calculations and you are using quadratic ele-
ments, use the face-to-face penalty contact method or the mortar method
(which is by default a face-to-face method). In general, for contact be-
tween faces the face-to-face penalty method and the mortar method will
converge much better than the node-to-face method. The type of contact
has to be declared on the *CONTACT PAIR card. Notice that the mortar
method in CalculiX can only be used for static calculations.
7. if you do not have enough space to run a problem, check the numbering.
The memory needed to run a problem depends on the largest node and
element numbers (the computational time, though, does not). So if you
notice large gaps in the numbering, get rid of them and you will need less
18 5 SIMPLE EXAMPLE PROBLEMS
2. look at the .sta file. This file contains information on the number of
iterations needed in each increment to obtain convergence
3. look at the .cvg file. This file is a synopsis of the screen output: it gives you
a very fast overview of the number of contact elements, the residual force
and the largest change in solution in each iteration (no matter whether
convergent or not).
4. use the “last iterations” option on the *NODE FILE or similar card. This
generates a file with the name ResultsForLastIterations.frd with the de-
formation (for mechanical calculations) and the temperature (for thermal
calculations) for all non-converged iterations starting after the last con-
vergent increment.
5. if you have contact definitions in your input deck you may use the “contact
elements” option on the *NODE FILE or similar card. This generates a
file with the name jobname.cel with all contact elements in all iterations
of the increment in which this option is active. By reading this file in
CalculiX GraphiX you can visualize all contact elements in each iteration
and maybe find the source of your problems.
6. if you experience a segmentation fault, you may set the environment vari-
able CCX LOG ALLOC to 1 by typing “export CCX LOG ALLOC=1”
in a terminal window. Running CalculiX you will get information on which
fields are allocated, reallocated or freed at which line in the code (default
is 0).
F=9MN
y
1m
z x
8m 1m
Model Definition
material description
*STEP
Step 1
*END STEP
*STEP
Step 2
*END STEP
*STEP
Step n
*END STEP
Figure 3: Structure of a CalculiX input deck
22 5 SIMPLE EXAMPLE PROBLEMS
*HEADING
Model: beam Date: 10−Mar−1998
*NODE
1, 0.000000, 0.000000, 0.000000
2, 1.000000, 0.000000, 0.000000
3, 1.000000, 1.000000, 0.000000
.
.
.
260, 0.500000, 0.750000, 7.000000
261, 0.500000, 0.500000, 7.500000
*ELEMENT, TYPE=C3D20R , ELSET=Eall
1, 1, 10, 95, 19, 61, 105, 222, 192, 9, 93,
94, 20, 104, 220, 221, 193, 62, 103, 219, 190
2, 10, 2, 13, 95, 105, 34, 134, 222, 11, 12,
96, 93, 106, 133, 223, 220, 103, 33, 132, 219
.
.
.
.
32, 258, 158, 76, 187, 100, 25, 7, 28, 259, 159,
186, 260, 101, 26, 27, 102, 261, 160, 77, 189
*NSET, NSET=FIX
97, 96, 95, 94, 93, 20, 19, 18, 17, 16, 15,
14, 13, 12, 11, 10, 9, 4, 3, 2, 1
*BOUNDARY
FIX, 1
*BOUNDARY
FIX, 2
*BOUNDARY
FIX, 3
*NSET,NSET=Nall,GENERATE
1,261
*MATERIAL,NAME=EL
*ELASTIC
210000.0, .3
*SOLID SECTION,ELSET=Eall,MATERIAL=EL
*NSET,NSET=LOAD
5,6,7,8,22,25,28,31,100
**
*STEP
*STATIC
*CLOAD
LOAD,2,1.
*NODE PRINT,NSET=Nall
U
*EL PRINT,ELSET=Eall
S
*NODE FILE
U
*EL FILE
S
*END STEP
*BOUNDARY
FIX,1
FIX,2
FIX,3
or even shorter:
*BOUNDARY
FIX,1,3
Finally, the last card in the model definition section defines a node set LOAD
which will be needed to define the load. The card starting with two asterisks
in between the model definition section and the first step section is a comment
line. A comment line can be introduced at any place. It is completely ignored
by CalculiX and serves for input deck clarity only.
In the present problem, only one step is needed. A step always starts with
a *STEP card and concludes with a *END STEP card. The keyword card
*STATIC defines the procedure. The *STATIC card indicates that the load
is applied in a quasi-static way, i.e. so slow that mass inertia does not play a
role. Other procedures are *FREQUENCY, *BUCKLE, *MODAL DYNAMIC,
*STEADY STATE DYNAMICS and *DYNAMIC. Next, the concentrated load
is applied (keyword *CLOAD) to node set LOAD. The forces act in y-direction
and their magnitude is 1, yielding a total load of 9.
Finally, the printing and file storage cards allow for user-directed output
generation. The print cards (*NODE PRINT and *EL PRINT) lead to an
ASCII file with extension .dat. If they are not selected, no .dat file is generated.
The *NODE PRINT and *EL PRINT cards must be followed by the node and
element sets for which output is required, respectively. Element information is
stored at the integration points.
The *NODE FILE and *EL FILE cards, on the other hand, govern the
output written to an ASCII file with extension .frd. The results in this file can
be viewed with CalculiX GraphiX (cgx). Quantities selected by the *NODE
5.1 Cantilever beam 25
FILE and *EL FILE cards are always stored for the complete model. Element
quantities are extrapolated to the nodes, and all contributions in the same node
are averaged. Selection of fields for the *NODE PRINT, *EL PRINT, *NODE
FILE and *EL FILE cards is made by character codes: for instance, U are the
displacements and S are the (Cauchy) stresses.
The output files for the beam problem consist of file beam.dat and beam.frd.
The beam.dat file contains the displacements for set Nall and the stresses in the
integration points for set Eall. The file beam.frd contains the displacements
and extrapolated stresses in all nodes. It is the input for the visualization
program CalculiX GraphiX (cgx). An impression of the capabilities of cgx can
be obtained by looking at Figures 5, 6 and 7.
Figure 5 shows the deformation of the beam under the prevailing loads. As
expected, the beam bends due to the lateral force at its end. Figure 6 shows
the normal stress in axial direction. Due to the bending moment one obtains a
nearly linear distribution across the height of the beam. Finally, Figure 7 shows
the Von Mises stress in the beam.
26 5 SIMPLE EXAMPLE PROBLEMS
**
** Structure: beam under compressive forces.
** Test objective: Frequency analysis; the forces are that
** high that the lowest frequency is nearly
** zero, i.e. the buckling load is reached.
**
*HEADING
Model: beam Date: 10-Mar-1998
*NODE
1, 0.000000, 0.000000, 0.000000
...
*ELEMENT, TYPE=C3D20R
1, 1, 10, 95, 19, 61, 105, 222, 192, 9, 93,
94, 20, 104, 220, 221, 193, 62, 103, 219, 190
...
*BOUNDARY
CN7, 1
*BOUNDARY
CN7, 2
*BOUNDARY
CN7, 3
*ELSET,ELSET=EALL,GENERATE
1,32
*MATERIAL,NAME=EL
*ELASTIC
210000.0, .3
*DENSITY
7.8E-9
*SOLID SECTION,MATERIAL=EL,ELSET=EALL
*NSET,NSET=LAST
5,
6,
...
*STEP
*STATIC
*CLOAD
LAST,3,-48.155
5.3 Frequency calculation of a rotating disk on a slender shaft 27
*END STEP
*STEP,PERTURBATION
*FREQUENCY
10
*NODE FILE
U
*EL FILE
S
*END STEP
The only significant differences relate to the steps. In the first step the
preload is applied in the form of compressive forces at the end of the beam. In
each node belonging to set LAST a compressive force is applied with a value
of -48.155 in the positive z-direction, or, which is equivalent, with magnitude
48.155 in the negative z-direction. The second step is a frequency step. By using
the parameter PERTURBATION on the *STEP keyword card the user specifies
that the deformation and stress from the previous static step should be taken
into account in the subsequent frequency calculation. The *FREQUENCY card
and the line underneath indicate that this is a modal analysis step and that the
10 lowest eigenfrequencies are to be determined. They are automatically stored
in the .dat file. Table 2 shows these eigenfrequencies for the beam without and
with preload together with a comparison with ABAQUS (the input deck for the
modal analysis without preload is stored in file beamf.inp of the test example
suite). One notices that due to the preload the eigenfrequencies drop. This is
especially outspoken for the lower frequencies. As a matter of fact, the lowest
bending eigenfrequency is so low that buckling will occur. Indeed, one way of
determining the buckling load is by increasing the compressive load up to the
point that the lowest eigenfrequency is zero. For the present example this means
that the buckling load is 21 x 48.155 = 1011.3 force units (the factor 21 stems
from the fact that the same load is applied in 21 nodes). An alternative way of
determining the buckling load is to use the *BUCKLE keyword card. This is
illustrated for the same beam geometry in file beamb.inp of the test suite.
Figures 8 and 9 show the deformation of the second bending mode across
the minor axis of inertia and deformation of the first torsion mode.
...
*ELEMENT, TYPE=C3D20R, ELSET=Eall
1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 17, 18, 19, 20, 13, 14, 15, 16
...
*BOUNDARY
Nfix,1,3
*Solid Section, elset=Eall, material=steel
*Material, name=STEEL
*Elastic
210000., 0.3
*DENSITY
7.8e-9
*Step,nlgeom
*Static
*dload
Eall,centrif,3.0853e8,0.,0.,0.,0.,0.,1.
*end step
*step,perturbation
*frequency,STORAGE=YES
10,
*end step
*step,perturbation
*complex frequency,coriolis
30 5 SIMPLE EXAMPLE PROBLEMS
10,
*node file
pu
*end step
procedure (cf. Section 6.9.3). One can prove that the resulting eigenfrequencies
are real, the eigenmodes, however, are usually complex. This leads to rotating
eigenmodes.
In order to use the *COMPLEX FREQUENCY procedure the eigenmodes
without Coriolis force must have been calculated and stored in a previous *FRE-
QUENCY step (STORAGE=YES) (cf. Input Deck). The complex frequency
response is calculated as a linear combination of these eigenmodes. The number
of eigenfrequencies requested in the *COMPLEX FREQUENCY step should
not exceed those of the preceding *FREQUENCY step. Since the eigenmodes
are complex, they are best stored in terms of amplitude and phase with PU
underneath the *NODE FILE card.
The correct eigenvalues for the rotating shaft lead to the straight lines in
Figure 11. Each line represents an eigenmode: the lowest decreasing line is a
two-node counter clockwise (ccw) eigenmode when looking in (-z)-direction, the
highest decreasing line is a three-node ccw eigenmode, the lowest and highest
increasing lines constitute both a two-node clockwise (cw) eigenmode. A node
is a location at which the radial motion is zero. Figure 12 shows the two-node
eigenmode, Figure 13 the three-node eigenmode. Notice that if the scales on
the x- and y-axis in Figure 11 were the same the lines would be under 45◦ .
It might surprise that both increasing straight lines correspond to one and
the same eigenmode. For instance, for a shaft speed of 5816 rad/s one and the
same eigenmode occurs at an eigenfrequency of 0 and 11632 rad/s. Remember,
however, that the eigenmodes are calculated in the rotating system, i.e. as
5.3 Frequency calculation of a rotating disk on a slender shaft 33
T=300 K
1000
A E
isolated ε=1 ε=1 isolated
300
0 1 t(s)
ε=1
Tb x
0.3 m
observed by an observer rotating with the shaft. To obtain the frequencies for
a fixed observer the frequencies have to be considered relative to a 45◦ straight
line through the origin and bisecting the diagram. This observer will see one
and the same eigenmode at 5816 rad/s and -5816 rad/s, so cw and ccw.
Finally, the Coriolis effect is not always relevant. Generally, slender rotat-
ing structures (large blades...) will exhibit important frequency shifts due to
Coriolis.
for air are : specific heat cp = 1000W/kgK and density ρ = 1kg/m3 . The
convection coefficient is h = 25W/m2 K. The dimensions of the furnace are
0.3 × 0.3 × 0.3m3 (cube). At t = 0 all parts are at T = 300K. We would like to
know the temperature at locations A,B,C,D and E as a function of time.
**
** Structure: furnace.
** Test objective: shell elements with convection and radiation.
**
*NODE, NSET=Nall
1, 3.00000e-01, 3.72529e-09, 3.72529e-09
...
*ELEMENT, TYPE=S6, ELSET=furnace
1, 1, 2, 3, 4, 5, 6
...
*ELEMENT,TYPE=D,ELSET=EGAS
301,603,609,604
...
*NSET,NSET=NGAS,GENERATE
603,608
*NSET,NSET=Ndown
1,
...
*PHYSICAL CONSTANTS,ABSOLUTE ZERO=0.,STEFAN BOLTZMANN=5.669E-8
*MATERIAL,NAME=STEEL
*DENSITY
7800.
*CONDUCTIVITY
50.
*SPECIFIC HEAT
446.
*SHELL SECTION,ELSET=furnace,MATERIAL=STEEL
0.01
*MATERIAL,NAME=GAS
*DENSITY
1.
*SPECIFIC HEAT
1000.
*FLUID SECTION,ELSET=EGAS,MATERIAL=GAS
*INITIAL CONDITIONS,TYPE=TEMPERATURE
Nall,300.
*AMPLITUDE,NAME=A1
0.,.3,1.,1.
*STEP,INC=100
*HEAT TRANSFER
0.1,1.
36 5 SIMPLE EXAMPLE PROBLEMS
*VIEWFACTOR,WRITE
*BOUNDARY,AMPLITUDE=A1
Ndown,11,11,1000.
*BOUNDARY
603,11,11,300.
*BOUNDARY,MASS FLOW
609,1,1,0.001
...
*RADIATE
** Radiate based on down
1, R1CR,1000., 1.000000e+00
...
** Radiate based on top
51, R1CR,1000., 8.000000e-01
...
** Radiate based on side
101, R1CR,1000., 1.000000e+00
...
** Radiate based on top
51, R2,300., 8.000000e-01
...
*FILM
51, F2FC, 604, 2.500000e+01
...
*NODE FILE
NT
*NODE PRINT,NSET=NGAS
NT
*END STEP
The input deck is listed above. It starts with the node definitions. The
highest node number in the structure is 602. The nodes 603 up to 608 are fluid
nodes, i.e. in the fluid extra nodes were defined (z=0.3 corresponds with the
top of the furnace, z=0 with the bottom). Fluid node 603 corresponds to the
location where the fluid temperature is 300 K (“inlet”), node 608 corresponds
to the “outlet”, the other nodes are located in between. The coordinates of the
fluid nodes actually do not enter the calculations. Only the convective defini-
tions with the keyword *FILM govern the exchange between furnace and fluid.
With the *ELEMENT card the 6-node shell elements making up the furnace
walls are defined. Furthermore, the fluid nodes are also assigned to elements
(element type D), so-called network elements. These elements are needed for
the assignment of material properties to the fluid. Indeed, traditionally material
properties are assigned to elements and not to nodes. Each network element
consists of two end nodes, in which the temperature is unknown, and a midside
node, which is used to define the mass flow rate through the element. The fluid
5.4 Thermal calculation of a furnace 37
nodes 603 up to 613 are assigned to the network elements 301 up to 305.
Next, two node sets are defined: GAS contains all fluid nodes, Ndown con-
tains all nodes on the bottom of the furnace.
The *PHYSICAL CONSTANTS card is needed in those analyses in which
radiation plays a role. It defines absolute zero, here 0 since we work in Kelvin,
and the Stefan Boltzmann constant. In the present input deck SI units are used
throughout.
Next, the material constants for STEEL are defined. For thermal analyses
the conductivity, specific heat and density must be defined. The *SHELL SEC-
TION card assigns the STEEL material to the element set FURNACE, defined
by the *ELEMENT statement before. It contains all elements belonging to the
furnace. Furthermore, a thickness of 0.01 m is assigned.
The material constants for material GAS consist of the density and the
specific heat. These are the constants for the fluid. Conduction in the fluid is
not considered. The material GAS is assigned to element set EGAS containing
all network elements.
The *INITIAL CONDITIONS card defines an initial temperature of 300 K
for all nodes, i.e. furnace nodes AND fluid nodes. The *AMPLITUDE card
defines a ramp function starting at 0.3 at 0.0 and increasing linearly to 1.0 at
1.0. It will be used to define the temperature boundary conditions at the bottom
of the furnace. This ends the model definition.
The first step describes the linear increase of the temperature boundary con-
dition between t = 0 and t = 1. The INC=100 parameter on the *STEP card
allows for 100 increments in this step. The procedure is *HEAT TRANSFER,
i.e. we would like to perform a purely thermal analysis: the only unknowns
are the temperature and there are no mechanical unknowns (e.g. displace-
ments). The step time is 1., the initial increment size is 0.1. Both appear on
the line underneath the *HEAT TRANSFER card. The absence of the param-
eter STEADY STATE on the *HEAT TRANSFER card indicates that this is a
transient analysis.
Next come the temperature boundary conditions: the bottom plate of the
furnace is kept at 1000 K, but is modulated by amplitude A1. The result is that
the temperature boundary condition starts at 0.3 x 1000 = 300K and increases
linearly to reach 1000 K at t=1 s. The second boundary conditions specifies
that the temperature of (fluid) node 603 is kept at 300 K. This is the inlet
temperature. Notice that “11” is the temperature degree of freedom.
The mass flow rate in the fluid is defined with the *BOUNDARY card applied
to the first degree of freedom of the midside nodes of the network elements. The
first line tells us that the mass flow rate in (fluid)node 609 is 0.001. Node 609
is the midside node of network element 301. Since this rate is positive the
fluid flows from node 603 towards node 604, i.e. from the first node of network
element 301 to the third node. The user must assure conservation of mass (this
is actually also checked by the program).
The first set of radiation boundary conditions specifies that the top face of
the bottom of the furnace radiates through cavity radiation with an emissivity
of 1 and an environment temperature of 1000 K. For cavity radiation the envi-
38 5 SIMPLE EXAMPLE PROBLEMS
ronment temperature is used in case the viewfactor at some location does not
amount to 1. What is short of 1 radiates towards the environment. The first
number in each line is the element, the number in the label (the second entry
in each line) is the face of the element exposed to radiation. In general, these
lines are generated automatically in cgx (CalculiX GraphiX).
The second and third block define the internal cavity radiation in the furnace
for the top and the sides. The fourth block defines the radiation of the top face
of the top plate of the furnace towards the environment, which is kept at 300
K. The emissivity of the top plate is 0.8.
Next come the film conditions. Forced convection is defined for the top face
of the top plate of the furnace with a convection coefficient h = 25W/mK.
The first line underneath the *FILM keyword indicates that the second face of
element 51 interacts through forced convection with (fluid)node 604. The last
entry in this line is the convection coefficient. So for each face interacting with
the fluid an appropriate fluid node must be specified with which the interaction
takes place.
Finally, the *NODE FILE card makes sure that the temperature is stored in
the .frd file and the *NODE PRINT card takes care that the fluid temperature
is stored in the .dat file.
The complete input deck is part of the test examples of CalculiX (fur-
nace.inp). For the present analysis a second step was appended keeping the
bottom temperature constant for an additional 3000 seconds.
What happens during the calculation? The walls and top of the furnace heat
5.5 Seepage under a dam 39
1000
A
B
C
900 D
E
800
700
T (K)
600
500
400
300
200
0 500 1000 1500 2000 2500 3000 3500
Time(s)
up due to conduction in the walls and radiation from the bottom. However, the
top of the furnace also loses heat through radiation with the environment and
convection with the fluid. Due to the interaction with the fluid the temperature
is asymmetric: at the inlet the fluid is cool and the furnace will lose more
heat than at the outlet, where the temperature of the fluid is higher and the
temperature difference with the furnace is smaller. So due to convection we
expect a temperature increase from inlet to outlet. Due to conduction we expect
a temperature minimum in the middle of the top. Both effects are superimposed.
The temperature distribution at t = 3001s is shown in Figure 15. There is a
temperature gradient from the bottom of the furnace towards the top. At the
top the temperature is indeed not symmetric. This is also shown in Figure 16,
where the temperature of locations A, B, C, D and E is plotted as a function of
time.
Notice that steady state conditions have not been reached yet. Also note
that 2D elements (such as shell elements) are automatically expanded into 3D
elements with the right thickness. Therefore, the pictures, which were plotted
from within CalculiX GraphiX, show 3D elements.
whether or not piping will occur. Piping means that the soil is being carried
away by the groundwater flow (usually at the downstream side) and constitutes
an instable condition. As a rule of thumb, piping will occur if the hydraulic
gradient is about unity.
From Section 6.9.14 we know that the equations governing stationary ground-
water flow are the same as the heat equations. The equivalent quantity of the
total head is the temperature and of the velocity it is the heat flow. For the
finite element analysis SI units were taken, so feet was converted into meter.
Furthermore, a vertical impermeable wall was assumed far upstream and far
downstream (actually, 30 m upstream from the middle point of the dam and 30
m downstream).
Now, the boundary conditions are:
1. the dam, the left and right vertical boundaries upstream and downstream,
and the horizontal limit at the bottom are impermeable. This means that
the water velocity perpendicular to these boundaries is zero, or, equiva-
lently, the heat flux.
2. taking the reference for the z-coordinate in the definition of total head
at the bottom of the dam (see Equation 582 for the definition of total
head), and assuming that the atmospheric pressure p0 is zero, the total
head upstream is 28 feet and downstream it is 13 feet. In the thermal
equivalent this corresponds to temperature boundary conditions.
The input deck is summarized in Figure 18. The complete deck is part of
the example problems. The problem is really two-dimensional and consequently
qu8 elements were used for the mesh generation within CalculiX GraphiX. To
obtain a higher resolution immediately adjacent to the dam a bias was used (the
mesh can be seen in Figure 19).
At the start of the deck the nodes are defined and the topology of the el-
ements. The qu8 element type in CalculiX GraphiX is by default translated
by the send command into a S8 (shell) element in CalculiX CrunchiX. How-
ever, a plane element is here more appropriate. Since the calculation at stake
is thermal and not mechanical, it is really immaterial whether one takes plane
strain (CPE8) or plane stress (CPS8) elements. With the *ELSET keyword
the element sets for the two different kinds of soil are defined. The nodes on
which the constant total head is to be applied are defined by *NSET cards.
The permeability of the soil corresponds to the heat conduction coefficient in
a thermal analysis. Notice that the permeability is defined to be orthotropic,
using the *CONDUCTIVITY,TYPE=ORTHO card. The values beneath this
card are the permeability in x, y and z-direction (SI units: m/s). The value
for the z-direction is actually immaterial, since no gradient is expected in that
direction. The *SOLID SECTION card is used to assign the materials to the ap-
propriate soil regions. The *INITIAL CONDITIONS card is not really needed,
since the calculation is stationary, however, CalculiX CrunchiX formally needs
it in a heat transfer calculation.
5.6 Capacitance of a cylindrical capacitor 41
20’ 5’
8’
20’ 20’
3
60’ area1 area2
2 4
1
*NODE, NSET=Nall
...
*ELEMENT, TYPE=C3D20, ELSET=Eall
...
*NSET,NSET=Nin
1,
2,
...
*NSET,NSET=Nout
57,
58,
...
*SURFACE,NAME=S1,TYPE=ELEMENT
6,S3
1,S3
*MATERIAL,NAME=EL
*CONDUCTIVITY
8.8541878176e-12
*SOLID SECTION,ELSET=Eall,MATERIAL=EL
*STEP
*HEAT TRANSFER,STEADY STATE
*BOUNDARY
Nin,11,11,2.
5.7 Hydraulic pipe system 45
Nout,11,11,1.
*EL FILE
HFL
*SECTION PRINT,SURFACE=S1
FLUX
*END STEP
14.50
A: A0/A=0.8
45° AB: Pipe D=0.2 m, Manning n=0.015
B: Bend R=0.3 m
10.15 5.00 BC: Pipe D=0.2 m, Manning n=0.015
CD: Pipe D=0.3 m, Manning n=0.015
A B DE: Pipe D=0.15 m, Manning n=0.015
5.00
E: Gate Valve, alpha=0.5
EF: Pipe D=0.15 m, Manning n=0.015
6.50
C
5.00
D
E
2.50
0.00
1.56 F
**
** Structure: pipe connecting two reservoirs.
** Test objective: hydraulic network.
**
*NODE,NSET=NALL
2,0.,0.,14.5
3,0.,0.,14.5
4,0.,0.,12.325
...
26,14.9419,0.,6.5
*ELEMENT,TYPE=D,ELSET=EALL
1,0,2,3
2,3,4,5
...
13,25,26,0
*MATERIAL,NAME=WATER
5.7 Hydraulic pipe system 47
*DENSITY
1000.
*FLUID CONSTANTS
4217.,1750.E-6,273.
*ELSET,ELSET=E1
2
*ELSET,ELSET=E2
3,5
*ELSET,ELSET=E3
4
*ELSET,ELSET=E4
6
*ELSET,ELSET=E5
7
*ELSET,ELSET=E6
8
*ELSET,ELSET=E7
9,11
*ELSET,ELSET=E8
10
*ELSET,ELSET=E9
12
*ELSET,ELSET=E10
1,13
*FLUID SECTION,ELSET=E1,TYPE=PIPE ENTRANCE,MATERIAL=WATER
0.031416,0.025133
*FLUID SECTION,ELSET=E2,TYPE=PIPE MANNING,MATERIAL=WATER
0.031416,0.05,0.015
*FLUID SECTION,ELSET=E3,TYPE=PIPE BEND,MATERIAL=WATER
0.031416,1.5,45.,0.4
*FLUID SECTION,ELSET=E4,TYPE=PIPE ENLARGEMENT,MATERIAL=WATER
0.031416,0.070686
*FLUID SECTION,ELSET=E5,TYPE=PIPE MANNING,MATERIAL=WATER
0.070686,0.075,0.015
*FLUID SECTION,ELSET=E6,TYPE=PIPE CONTRACTION,MATERIAL=WATER
0.070686,0.017671
*FLUID SECTION,ELSET=E7,TYPE=PIPE MANNING,MATERIAL=WATER
0.017671,0.0375,0.015
*FLUID SECTION,ELSET=E8,TYPE=PIPE GATE VALVE,MATERIAL=WATER
0.017671,0.5
*FLUID SECTION,ELSET=E9,TYPE=PIPE ENLARGEMENT,MATERIAL=WATER
0.017671,1.E6
*FLUID SECTION,ELSET=E10,TYPE=PIPE INOUT,MATERIAL=WATER
*BOUNDARY
3,2,2,1.E5
25,2,2,1.E5
48 5 SIMPLE EXAMPLE PROBLEMS
*STEP
*HEAT TRANSFER,STEADY STATE
*DLOAD
EALL,GRAV,9.81,0.,0.,-1.
*NODE PRINT,NSET=NALL
U
*END STEP
• a network element of type PIPE MANNING for the pipe between location
A and B (element 3)
• a network element of type PIPE BEND for the bend at location B (element
4)
• a network element of type PIPE MANNING for the pipe between location
B and C (element 5)
• a network element of type PIPE MANNING for the pipe between location
C and D (element 7)
• a network element of type PIPE MANNING for the pipe between location
D and E (element 9)
• a network element of type PIPE GATE VALVE for the valve at location
E (element 10)
5.7 Hydraulic pipe system 49
• a network element of type PIPE MANNING for the pipe between location
E and F (element 11)
• a network element of type PIPE ENLARGEMENT for the exit in the
reservoir (element 12). Indeed, there is no special reservoir entrance ele-
ment. A reservoir entrance has to be modeled by a large diameter increase.
• a dummy network exit element expressing that liquid is leaving the net-
work (element 13)
In the input deck, all these elements are defined as D-type elements, their
nodes have the correct coordinates and by means of *FLUID SECTION cards
each element is properly described. Notice that the dummy network entrance
and exit elements are characterized by typeless *FLUID SECTION cards.
For a hydraulic network the material properties reduce to the density (on
the *DENSITY card), the specific heat and the dynamic viscosity (both on the
*FLUID SECTION card). The specific heat is only needed if heat transfer is
being modeled. Here, this is not the case. The dynamic viscosity of water is
1750 × 10−6 N s/m2 [41]. The boundary conditions reduce to the atmospheric
pressure in node 3 and 25, both at the liquid surface of the reservoir. Remember
that the pressure has the degree of freedom 2 in the corner nodes of the network
elements.
Networks are only active in *COUPLED TEMPERATURE-DISPLACEMENT
or *HEAT TRANSFER procedures. Here, we do not take the structure into ac-
count, so a heat transfer analysis will do. Finally, the gravity loading has to be
specified, this is indeed essential for hydraulic networks. Regarding the nodal
output, remember that NT requests degree of freedom 0, whereas U requests
degrees of freedom 1 to 3. Since we are interested in the mass flux (DOF 1 in
the middle nodes) and the pressure (DOF 2 in the corner nodes), U is selected
underneath the *NODE PRINT line. Officially, U are displacements, and that’s
the way they are labeled in the .dat file.
The results in the .dat file look as follows:
The mass flux in the pipe (first DOF in the midside nodes, column 1) is
constant and takes the value 89.592 kg/s. This agrees well with the result in
[11] of 89.4 l/s. Since not all node and element definitions are listed it is useful
for the interpretation of the output to know that location A corresponds to node
5, location B to nodes 7-9, location C to nodes 11-13, location D to nodes 15-17,
location E to nodes 19-21 and location F to node 23. The second column in the
result file is the pressure. It shows that the bend, the valve and the contraction
lead to a pressure decrease, whereas the enlargement leads to a pressure increase
(the velocity drops).
If the structural side of the network (e.g. pipe walls) is modeled too, the
fluid pressure can be mapped automatically onto the structural element faces.
This is done by labels of type PxNP in the *DLOAD card.
**
** Structure: lid-driven cavity.
** Test objective: incompressible, viscous, laminar, 3D fluid flow
**
*NODE,NSET=Nall
1,0.00000,0.00000,0.
...
*ELEMENT,TYPE=F3D6,ELSET=Eall
5.8 Lid-driven cavity 51
v=1
lid
no slip 1
walls
p=0
1
1,1543,1626,1624,3918,4001,3999
...
*NSET,NSET=Nin
1774,
...
*NSET,NSET=Nwall
1,
...
*NSET,NSET=N1
1374,
...
*BOUNDARY
Nall,3,3,0.
Nwall,1,2,0.
Nin,2,2,0.
1,8,8,0.
2376,8,8,0.
*MATERIAL,NAME=WATER
*DENSITY
1.
*FLUID CONSTANTS
1.,.25E-2,293.
*SOLID SECTION,ELSET=Eall,MATERIAL=WATER
5.8 Lid-driven cavity 53
The input deck is listed above (this deck is also available in the fluid test
suite as file lid400.inp). Although the problem is essentially 2-dimensional it was
modeled as a 3-dimensional problem with unit thickness since 2-dimensional
fluid capabilities are not available in CalculiX. The mesh (2D projection) is
shown in Figure 24. It consists of 6-node wedge elements. There is one element
layer across the thickness. This is sufficient, since the results do not vary in
thickness direction. The input deck starts with the coordinates of the nodes and
the topology of the elements. The element type for fluid volumetric elements is
the same as for structural elements with the C replaced by F (fluid): F3D6. The
nodes making up the lid and those belonging to the no-slip walls are collected
into the nodal sets Nin and Nwall, respectively. The nodal set N1 is created for
printing purposes. It contains a subset of nodes close to the lid.
The homogeneous boundary conditions (i.e. those with zero value) are listed
next underneath the *BOUNDARY keyword: The velocity in all nodes in z-
direction is zero, the velocity at the walls is zero (no-slip condition) as well as
the normal velocity at the lid. Furthermore, the reference point in the lower
left corner of the cavity has a zero pressure (node 1 and its corresponding node
across the thickness 2376). The material definition consists of the density, the
heat capacity and the dynamic viscosity. The density is set to 1. The heat capac-
ity and dynamic viscosity are entered underneath the *FLUID CONSTANTS
keyword. The heat capacity is not needed since the calculation is steady state,
so its value here is irrelevant. The value of the dynamic viscosity was chosen
such that the Reynolds number is 400. The Reynolds number is defined as
velocity times length divided by the kinematic viscosity. The velocity of the
lid is 1, its length is 1 and since the density is 1 the kinematic and dynamic
viscosity coincide. Consequently, the kinematic viscosity takes the value 1/400.
The material is assigned to the elements by means of the *SOLID SECTION
card.
The unknowns of the problem are the velocity and static pressure. No ther-
mal boundary conditions are provided, so the temperature is irrelevant. All
54 5 SIMPLE EXAMPLE PROBLEMS
initial values for the unknowns are set to 0 by means o the *INITIAL CONDI-
TIONS,TYPE=FLUID VELOCITY and *INITIAL CONDITIONS,TYPE=PRESSURE
cards. Notice that for the velocity the initial conditions have to be specified for
each degree of freedom separately.
The step is as usual started with the *STEP keyword. The maximum num-
ber of increments, however, is for fluid calculations governed by the parameter
INCF. For steady state fluid calculations the keyword *CFD,STEADY STATE
is to be used. The values underneath this line are not relevant for fluid calcula-
tions, since the increment size is automatically chosen such that the procedure
is stable. The nonzero tangential velocity of the lid is entered underneath the
*BOUNDARY card. Recall that non-homogeneous (i.e. nonzero) boundary
conditions have to be defined within a step. The step ends with a nodal print
request for the velocity VF and the static pressure PS. The printing frequency
is defined to be 200 by means of the FREQUENCYF parameter. This means,
that results will be stored every 200 increments.
The velocity distribution in x-direction (i.e. the direction tangential to the
lid) is shown in Figure 25. The smallest value (-0.33) and its location agree
very well with the results in [113]. Figure 26 shows a vector plot of the velocity.
Near the lid there is a large gradient, in the lower left and lower right corner
are dead zones. The pressure plot (Figure 27) reveals a low pressure zone in the
center of the major vortex and in the left upper corner. The right upper corner
is a stagnation point for the x-component of the velocity and is characterized
by a significant pressure built-up.
5.8 Lid-driven cavity 55
1
t=0.003094 s (Schlichting)
t=0.003094 s (CalculiX)
t=0.015440 s (Schlichting)
t=0.015440 s (CalculiX)
t=0.061736 s (Schlichting)
0.8 t=0.061736 s (CalculiX)
t=0.250010 s (Schlichting)
t=0.250010 s (CalculiX)
0.6
u/umax (-)
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1
y/h (-)
Figure 28: Velocity across the space in between the plates for different times
*EQUATION
2
3,2,-0.99030509E+00,3,1,-0.13890940E+00
2
5.10 Stationary laminar inviscid compressible airfoil flow 57
3756,2,-0.99030509E+00,3756,1,-0.13890940E+00
...
*MATERIAL,NAME=AIR
*CONDUCTIVITY
0.
*FLUID CONSTANTS
1.,0.,293.
*SPECIFIC GAS CONSTANT
0.285714286d0
*SOLID SECTION,ELSET=Eall,MATERIAL=AIR
*PHYSICAL CONSTANTS,ABSOLUTE ZERO=0.
*INITIAL CONDITIONS,TYPE=FLUID VELOCITY
Nall,1,0.99254615
Nall,2,0.12186934
Nall,3,0.d0
*INITIAL CONDITIONS,TYPE=PRESSURE
Nall,0.49603175
*INITIAL CONDITIONS,TYPE=TEMPERATURE
Nall,1.73611111
*VALUES AT INFINITY
1.73611111,1.,0.49603175,1.,1.
**
*STEP,INCF=200000,SHOCK SMOOTHING=0.01
5.10 Stationary laminar inviscid compressible airfoil flow 59
*CFD,STEADY STATE,COMPRESSIBLE
1.,1.
*BOUNDARY
BOU1,11,11,1.73611111
BOU1,1,1,0.99254615
BOU1,2,2,0.12186934
BOU1,8,8,0.49603175
Nall,3,3,0.
*NODE FILE,FREQUENCYF=40000
VF,PSF,CP,TSF,TTF,MACH
*END STEP
Since for compressible flow the temperature, velocity and pressure are linked
through the ideal gas equation, the energy conservation equation is always used
and the definition of the thermal conductivity and specific heat is mandatory.
Inviscid flow is triggered by the definition of a zero viscosity and a zero thermal
conductivity (therefore, the viscous terms in the conservation of momentum
and conservation of energy equation disappear). Slip boundary conditions at
the airfoil surface are realized through equations. The specific gas constant is
defined with the appopriate keyword. It only depends on the kind of gas and not
on the temperature. The physical constants card is used to define absolute zero
for the temperature scale. This information is needed since the temperature
in the gas equation must be specified in Kelvin. Initial conditions must be
specified for the velocity, pressure and temperature. Careful selection of these
values can shorten the computational time. The values at infinity (defined with
the *VALUES AT INFINITY card) are used to calculate the pressure coefficient
Cp = (p − pinf )/( 21 ρinf Vinf
2
). In viscous calculations they can be used for the
computation of the friction coefficient too. The smoothing parameter on the
*STEP card is used to define shock smoothing and will be discussed further
down.
The COMPRESSIBLE parameter on the *CFD card indicates that this is
a compressible CFD calculation. The consequence of this is that the ideal gas
equation is used to link the density, pressure and temperature. Therefore, no
*DENSITY card should be present in the input deck, and the *SPECIFIC GAS
CONSTANT card is required. The use of the STEADY STATE parameter tells
CalculiX that the calculation is stationary. Instationary calculations are trig-
gered by dropping this parameter. In reality, all CFD-calculations in CalculiX
are instationary. The STEADY STATE parameter, however, forces the calcula-
tions to be pursued until steady state is reached (so the time used is virtual) or
until the maximum number of subincrements (parameter INCF on the *STEP
card) is reached. Transient calculations stop as soon as the final time is reached
(the time is real).
In compressible calculations shock smoothing is frequently needed in order
to avoid divergence. Shock smoothing, however, can change the solution. There-
fore, the shock smoothing coefficient, which can take values between 0. and 2.,
should be chosen as small as possible. For the agard05 example a value of 0.01
60 5 SIMPLE EXAMPLE PROBLEMS
was needed. In general, additional viscosity will reduce the shock smoothing
needed to avoid divergence. There is a second effect of the shock smoothing
coefficient: there is no clear steady state convergence any more. In order to
understand this some additional information about the way CFD-calculations
in CalculiX are performed is needed. The initial increment size which is spec-
ified by the user underneath the *CFD card is a mechanical increment size.
For each mechanical increment an instationary CFD-calculation is performed
subject to the actual loads (up to steady state for a STEADY STATE calcu-
lation). For this CFD-calculation subincrements are used, the size of which
depends on the physical characteristics of the flow (viscosity, heat conductivity
etc.). They are determined such that stability is assured (or at least very likely).
In CalculiX, steady state convergence is detected as soon as the change in the
conservative variables (ρ, ρu, ρv etc.) from subincrement to subincrement does
not exceed 10.−8 times the actual values of these variables. In calculations with
a nonzero shock smoothing coefficient the change in variables at first decreases
down to a certain level about which it oscillates erraticaly. Therefore, it is likely
that convergence will never be detected. The change in the conservative vari-
ables is stored in a file with the name jobname.fcv (assuming the input deck
to be jobname.inp). The user may force convergence by limiting the number of
subincrements with the INCF parameter on the *STEP card. As soon as INCF
subincrements are calculated the CFD-calculation is assumed to be finished and
the next mechanical increment is started.
The smoothing coefficient may be further reduced by choosing smaller CFD
subincrements. The fifth entry underneath the *CFD-card is the factor by which
the CFD increment size calculated based on physical parameters such as viscos-
ity and local velocity is divided. Default is 1.25 for compressible calculatons and
1. for incompressible calculations. The factor cannot be less than the default.
For instance, a factor of 5. implies that the time increment is chosen as 20 % of
the physically based time increment. Larger factors will decrease the need for
shock smoothing but also linearly increase the computational time.
If the calculation diverges, the shock smoothing coefficient is set to 0.001 if
it was zero before, and to twice its value else, and the calculation is repeated.
If the value exceeds 2 the calculation is stops with an error message. Shock
smoothing is only used for compressible calculations.
Figure 29 shows the mesh used for the agard05 calculation. It consists of
linear wedge elements. In CalculiX, only linear elements (tetrahedra, hexahedra
or wedges) are allowed for CFD-calculations. It is finer along the airfoil (but not
as fine as needed to capture the boundary layer in viscous calculations). Figures
30 and 31 show the Mach number and the pressure coefficient, respectively. The
maximum Mach number in [80] is about 1.78, the maximum pressure coefficient
is about -0.55. This agrees well with the present results. Increasing the shock
smoothing coefficient leads to smoothing fringe plots, however, the actual values
become worse.
The total temperature for this calculation (not shown here) was nearly con-
stant. Recall that the total change of the total temperature along a stream line
is given by:
5.11 Laminar viscous compressible compression corner flow 61
Dρcp Tt ∂p
= (tlm vm ),l − ∇ · q + ρhθ + + ρf m v k δmk . (1)
Dt ∂t
The terms on the right hand side correspond to the viscous work (zero), the
heat flow (zero, since the heat conduction coefficient is zero), the heat introduced
per unit mass (zero), the change in pressure (zero in the steady state regime)
and the work by external body forces (zero).
1.2
CalculiX
Carter
0.8
u (-)
0.6
0.4
0.2
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
y/L (-)
Figure 33: velocity profile across the flow for the Carter problem
2.6
CalculiX
Carter
2.4
2.2
2
p/pin (-)
1.8
1.6
1.4
1.2
1
0 0.5 1 1.5 2
x/xc (-)
Figure 34: Static pressure at the wall for the Carter problem
5.12 Laminar viscous compressible airfoil flow 63
1.4
shock smoothing=0.004
Mittal
1.2 Cambier
0.8
0.6
0.4
Cp (-)
0.2
-0.2
-0.4
-0.6
-0.8
0 0.2 0.4 0.6 0.8 1
normed distance (-)
Figure 35: Pressure coefficient for laminar viscous flow about a naca012 airfoil
A very fine mesh with about 425,000 nodes was generated, gradually finer
towards the wall (y + = 0.885 for thepclosest node near the wall at L=1 from the
inlet, where y + = uτ y/ν and uτ = τ /ρ; y is the distance from the wall and τ
is the shear stress parallel to the wall ). The Mach number is shown in Figure
32. The shock wave emanating from the front of the plate and the separation
and reattachment compression fan at the kink in the plate are cleary visible.
One also observes the thickening of the boundary layer near the kink leading
to a recirculation zone. Figure 33 shows the velocity component parallel to the
inlet plate orientation across a line perpendicular to a plate at unit length from
the entrance. One notices that the boundary layer in the CalculiX calculation
is smaller than in the Carter solution. This is caused by the temperature-
independent viscosity. Applying the Sutherland viscosity law leads to the same
boundary layer thickness as in the reference. In CalculiX, no additional shock
smoothing was necessary. Figure 34 plots the static pressure at the wall relative
to the inlet pressure versus a normalized plate length. The reference length for
the normalization was the length of the plate between inlet and kink (16.8 unit
lengths). So the normalized length of 1 corresponds to the kink. There is a good
agreement between the CalculiX and the Carter results, apart from the outlet
zone, where the outlet boundary conditions influence the CalculiX results.
64 5 SIMPLE EXAMPLE PROBLEMS
0.18
shock smoothing=0.004
Mittal
0.16
0.14
0.12
0.1
Cf (-)
0.08
0.06
0.04
0.02
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
normed distance (-)
Figure 36: Friction coefficient for laminar viscous flow about a naca012 airfoil
the shock coefficient, which would further increase the peak, is not an option.
A too coarse mesh density at that location may also play a role.
**
** Structure: channel connecting two reservoirs.
** Test objective: steep slope, frontwater - jump -
** backwater curve
**
*NODE,NSET=NALL
1,0.,0.,0.
2,1.,0.,0.
4,3.,0.,0.
6,5.,0.,0.
7,6.,0.,0.
8,7.,0.,0.
9,8.,0.,0.
66 5 SIMPLE EXAMPLE PROBLEMS
10,9.,0.,0.
11,10.,0.,0.
*ELEMENT,TYPE=D,ELSET=EALL
1,0,1,2
2,2,4,6
4,6,7,8
5,8,9,10
6,10,11,0
*MATERIAL,NAME=WATER
*DENSITY
1000.
*FLUID CONSTANTS
4217.,1750.E-6,273.
*ELSET,ELSET=E1
1,6
*ELSET,ELSET=E2
2
*ELSET,ELSET=E4
4
*ELSET,ELSET=E5
5
*FLUID SECTION,ELSET=E1,TYPE=CHANNEL INOUT,MATERIAL=WATER
*FLUID SECTION,ELSET=E2,TYPE=CHANNEL SLUICE GATE,MANNING,MATERIAL=WATER
10.,0.,0.1,0.005,0.01,0.8
*FLUID SECTION,ELSET=E4,TYPE=CHANNEL STRAIGHT,MANNING,MATERIAL=WATER
10.,0.,49.8,0.005,0.01
*FLUID SECTION,ELSET=E5,TYPE=CHANNEL RESERVOIR,MANNING,MATERIAL=WATER
10.,0.,0.1,0.005,0.01
*BOUNDARY
10,2,2,2.7
*BOUNDARY,MASS FLOW
1,1,1,60000.
*STEP
*HEAT TRANSFER,STEADY STATE
*DLOAD
EALL,GRAV,9.81,0.,0.,-1.
*NODE PRINT,NSET=NALL
U
*END STEP
It is one of the examples in the CalculiX test suite (channel3). The channel
is made up of five 3-node network elements (type D) in one long line. The nodes
have fictitious coordinates. They do not enter the calculations, however, they
are listed in the .frd file. For a proper visualization with CalculiX GraphiX it
may be advantageous to use the correct coordinates. As usual in networks, the
final node of the entry and exit element have the label zero. The material is
5.14 Cantilever beam using beam elements 67
water and is characterized by its density, heat capacity and dynamic viscosity.
Next, the elements are stored in appropriate sets (by using *ELSET) for the
sake of referencing in the *FLUID SECTION card.
The structure of the channel becomes apparent when analyzing the *FLUID
SECTION cards: upstream there is a sluice gate, downstream there is a large
reservoir and both are connected by a straight channel. The sluice gate is
described by its width (10 m), a trapezoid angle θ = 0 (i.e. the cross section
is rectangular) and a slope S0 of 0.005. Since the parameter MANNING has
been used on the *FLUID SECTION card, the next parameter (0.01 m−1/3 s)
is the Manning coefficient. Finally, the gate height is 0.8 m. The slope and
the Manning coefficient are needed to calculate the critical and the normal
depth and should be the same as in the downstream straight channel element.
The constants for the straight channel element can be checked in Section 6.6.
Important here is the length of 49.8 m. The last element, the reservoir, is again
a very short element (length 0.1 m).
Next, the boundary conditions are defined: the reservoir fluid depth is 2.7
m, whereas the mass flow is 60000 kg/s. Network calculations in CalculiX are
a special case of steady state heat transfer calculations, therefore the *HEAT
TRANSFER, STEADY STATE card is used. The prevailing force is gravity.
When running CalculiX a message appears that there is a hydraulic jump
at relative location 0.67 in element 4 (the straight channel element). This is
also clear in Figure 37, where the channel has been drawn to scale. The sluice
gate is located at x=5 m, the reservoir starts at x=55 m. The bottom of the
channel is shaded black. The water level behind the gate was not prescribed
and is one of the results of the calculation: 3.667 m. The water level at the gate
is controlled by its height of 0.8 m. A frontwater curve (i.e. a curve controlled
by the upstream conditions - the gate) develops downstream and connects to
a backwater curve (i.e. a curve controlled by the downstream conditions - the
reservoir) by a hydraulic jump at a x-value of 38.5 m. In other words, the jump
connects the upstream supercritical flow to the downstream subcritical flow.
The critical depth is illustrated in the figure by a dashed line. It is the depth
for which the Froude number is 1: critical flow.
In channel flow, the degrees of freedom for the mechanical displacements are
reserved for the mass flow, the water depth (the component in direction of the
gravity vector, not the depth orthogonal to the channel floor, since the latter
quantity is discontinuous at the location of a slope change) and the critical
depth, respectively. Therefore, the option U underneath the *NODE PRINT
card will lead to exactly this information in the .dat file. The same information
can be stored in the .frd file by selecting MF, DEPT and HCRI underneath the
*NODE FILE card.
y
cross section b
2 mm
1N a c
z
2 mm
z
100 mm
x x
Internally, they are expanded into volumetric elements. There are two types
of beam elements: B32 elements, which are expanded into C3D20 elements,
and B32R (reduced integration) elements, which are expanded into C3D20R
elements. Based on the results in the present section, the B32R element is
highly recommended. The B32 element, on the other hand, should be avoided
especially if section forces are needed.
The first cantilever beam which is looked at is 100 mm long and has a square
cross section of 2 x 2 mm2 . The axis of the beam is along the global z-direction.
This beam is modeled with just one element and loaded at its end by a unit force
in x-direction, Figure 38. We are interested in the stresses at integration point a
and at node b, the section forces at the beam’s fixed end, and the displacement√
in x at√the free end. The location
√ of the integration point a is at x = −1/ 3,
y = 1/ 3 and z = 50(1 + 1/ 3), the nodal coordinates of b are x = −1, y = 1
and z = 100 [24]. The material is isotropic linear elastic with a Young’s modulus
of 100,000 MPa and a Poisson’s ratio of 0.3.
The input deck for this example is very similar to the simplebeam.inp ex-
ample in the test suite:
**
** Structure: cantilever beam, one element
** Test objective: B32R elements.
**
*NODE,NSET=Nall
1, 0, 0, 0
2, 0, 0, 50
3, 0, 0, 100
*ELEMENT,TYPE=B32R,ELSET=EAll
1,1,2,3
*BOUNDARY
3,1,6
5.14 Cantilever beam using beam elements 69
*MATERIAL,NAME=ALUM
*ELASTIC
1E7,.3
*BEAM SECTION,ELSET=EAll,MATERIAL=ALUM,SECTION=RECT
2.,2.
1.d0,0.d0,0.d0
*STEP
*STATIC
*CLOAD
1,1,1.
*EL PRINT,ELSET=Eall
S
*NODE FILE
U
*EL FILE,SECTION FORCES
S,NOE
*END STEP
The stresses at the integration points are obtained by a *EL PRINT card,
the stresses at the nodes by the OUTPUT=3D option (default) on the *EL FILE
card, whereas for the section forces the SECTION FORCES option on the same
card is used (this option is mutually exclusive with the OUTPUT=3D option).
The displacements are best obtained in the non-expanded view, i.e. using the
OUTPUT=2D option. This means that for the present results the example
had to be run twice: once with the OUTPUT=3D option and once with the
SECTION FORCES option.
The results are summarized in Table 3. The {mm, N, s, K} system is used.
The reference results are analytical results using simple beam theory [79]. The
agreement is overwhelming. The stresses at the integration points match ex-
actly, so do the extrapolated normal stresses to the nodes. The shear stresses
need special attention. For a beam the shear stress varies parabolically across
the section. A quadratic volumetric element can simulate only a linear stress
variation across the section. Therefore, the parabolic variation is approximated
by a constant √ shear stress across the section. Since the reduced integration
points (at ±1/ 3) happen to be points at which the parabolic stress variation
attains its mean value the values at the integration points are exact! The ex-
trapolated values to the nodes take the same constant value and are naturally
wrong since the exact value at the corners is zero.
The section forces are obtained by
1. calculating the stresses at the integration points (inside the element, such
as integration point a)
Table 3: Results for the square section beam subject to bending (1 element).
Table 4: Results for the square section beam subject to bending (5 elements).
4. interpolating the stresses at all nodes within a section face onto the re-
duced integration points within the face (such as integration point c, using
the shape functions of the face)
5. integrating these stresses numerically.
As shown by Table 3 this procedure yields the correct section forces for the
square beam.
The displacements at the beam tip are off by 10 %. The deformation of a
beam subject to a shear force at its end is third order, however, the C3D20R
element can only simulate a quadratic behavior. The deviation is reduced to
2.4 % by using 5 elements (Table 4). Notice that integration point a is now
closer to the fixation (same position is before but in the element adjacent to the
fixation).
The same beam was now subjected to a torque of 1 Nmm at its free end.
The results are summarized in Table 5.
The torque is matched perfectly, the torsion at the end of the beam (uy is
the displacement in y-direction at the corresponding node of node b) is off by 15
% [79]. The shear stresses at node b are definitely not correct (there is no shear
stress at a corner node), however, the integration of the values interpolated from
the nodes at the facial integration points yields the exact torque! Using more
5.14 Cantilever beam using beam elements 71
Table 5: Results for the square section beam subject to torsion (1 element).
Table 6: Results for the circular section beam subject to bending (1 element).
Table 7: Results for the circular section beam subject to bending (5 elements).
Table 8: Results for the circular section beam subject to torsion (1 element).
*NODE, NSET=Nall
1,1.000000000000e+01,0.000000000000e+00,0.000000000000e+00
...
*ELEMENT, TYPE=S8R, ELSET=Eall
1, 1, 2, 3, 4, 5, 6, 7, 8
2, 2, 9, 10, 3, 11, 12, 13, 6
...
** Names based on left
*NSET,NSET=Nleft
49,
50,
52,
** Names based on right
*NSET,NSET=Nright
1,
4,
8,
*MATERIAL,NAME=COMPRESSION_ONLY
*USER MATERIAL,CONSTANTS=2
1.4e10, 1.e5
*DENSITY
2350.
*MATERIAL,NAME=STEEL
74 5 SIMPLE EXAMPLE PROBLEMS
*ELASTIC
210000.e6,.3
*DENSITY
7800.
*SHELL SECTION,ELSET=Eall,COMPOSITE
.09,,COMPRESSION_ONLY
.01,,STEEL
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
.1,,COMPRESSION_ONLY
*BOUNDARY
Nleft,1,6
*STEP,NLGEOM
*STATIC
1.,1.
*DLOAD
Eall,GRAV,9.81,0.,0.,-1.
*NODE FILE
U
*EL FILE
S
*END STEP
Figure 39: Axial stress across the height of the beam at the fixed end
several layers were used to model the concrete part of the section (in total 10
layers for the concrete and 1 for the steel).
Concrete cannot sustain tension whereas it is largely linear elastic under pres-
sure. This can be modeled with the COMPRESSION ONLY material model. In
CalculiX this is an example of a user material. The name of user materials has
to start with a fixed character set, in this case ”COMPRESSION ONLY”. The
remaining 64 characters (a material name can be at most 80 characters long) can
be freely chosen. In the present input deck no extra characters were selected.
Choosing extra characters is needed if more than 1 compression-only material
is present (in order to distinguish them). The ”COMPRESSION ONLY” ma-
terial is characterized by 2 constants, the first is Young’s modulus, the second
is the maximum tensile stress the user is willing to allow, in our case 0.1 MPa
(SI-units are used).
Using simple beam theory ([71]) leads to a tensile stress of 152.3 MPa in
the steel and a maximum compressive stress of 7.77 MPa at the lower edge of
the concrete. The finite element calculation (Figure 39) predicts 152 MPa and
7.38 MPa, respectively, which is quite close. In CalculiX, the graphical output
of composite structures is always expanded into three dimensions. In Figure 40
one notices the correct dimension of the composite and the high tensile stresses
in the thin steel layer.
76 5 SIMPLE EXAMPLE PROBLEMS
Figure 40: Axial stress across the height of the beam at the fixed end
Figure 45: von Mises stress in the starting geometry of the beam
however, does not lead to out-of-plane deformations. Here, wrinkling can only
be derived indirectly by looking at the smallest principal strain (Figure 44).
The large negative values point to the existence of wrinkles.
all nodes in the beam except for a set of nodes in the vicinity of the supports.
These latter nodes are shown in Figure 46.
In order to perform an optimization one has to determine the sensitivity
of the objective w.r.t. the design variables taking into account any constraints
for every intermediate design step (iteration) of the optimization. The objec-
tive and the constraints are generally design responses. First, the sensitity
of each design response is determined in a *SENSITIVITY step. Then, one
design response is selected as objective and one or more as constraints in a
*FEASIBLE DIRECTION step. In the latter step the sensitivity of the uncon-
strained objective is combined with the sensitity of the constraints in order to
obtain the sensitivity of the constrained objective.
The design variables were already discussed and constitute the set of nodes
in which the design is allowed to change. In the input deck for the present
example this is taken care of by the lines:
*DESIGNVARIABLES,TYPE=COORDINATE
DESIGNNODES
MISESSTRESS,DESIGNNODES,10.,100.
*OBJECTIVE,TARGET=MIN
STRESS_RESP
in the feasible direction step in the input deck. Notice that the node set used
to define the Kreisselmeier-Steinhauser function (second entry underneath the
*DESIGN RESPONSE card) does not have to coincide with the set of design
variables. The third and fourth entry underneath the *DESIGN RESPONSE
card constitute parameters in the Kreisselmeier-Steinhauser function. Specifi-
cally, the fourth entry is a reference stress value and should be of the order of
magnitude of the actual maximum stress in the model. The third parameter
allows to smear the maximum stress value in a less or more wide region of the
model.
In addition to the objective function (only one objective function is allowed)
one or more constraints can be defined in the feasible direction step. In the ac-
tual example the mass of the beam should not increase during the optimization.
This is taken care of by
*CONSTRAINT
MASS_RESP,LE,1.,
in the feasible direction step. For the meaning of the entries the reader
is referred to *DESIGN RESPONSE and *CONSTRAINT. Notice that for this
constraint to be active the user should have defined a density for the material at
stake. Within CalculiX the constraint is linearized. This means that, depending
on the increment size during an optimization, the constraint will not be satisfied
exactly.
In the CalculiX run the sensitivity of the objective and all constraints w.r.t.
the design variables is calculated. The sensitivity is nothing else but the first
derivative of the objective function w.r.t. the design variables (similarly for the
constraints), i.e. the sensitivity shows how the design response changes if the
design variable is changed. For design variables of type COORDINATE the
change of the design variables (i.e. the design nodes) is in a direction locally
orthogonal to the geometry. So in our case the sensitivity of the stress tells
us how the stress changes if the geometry is changed in direction of the local
normal (similar with the mass CONSTRAINT). If the sensitivity is positive the
stress increases while thickening the structure and vice versa. This sensitivity
may be postprocessed by using a filter. In the present input deck (opt1.inp) the
following filter is applied:
82 5 SIMPLE EXAMPLE PROBLEMS
Figure 50: Stress sensitivity taking the mass constraint into account
The filter chosen to be explicit. For the filter, which is by default linear,
a radius of 3 has been selected (it can be visualized as a cone at each de-
sign variable in which the sensitivity is integrated and subsequently smeared),
sharp corners should be kept (EDGE PRESERVATION=YES, cf. *FILTER)
and surfaces with a clearly different orientation (e.g. orthogonal) are not taken
into account while filtering (or taken into account to a lesser degree, DIREC-
TION WEIGHTING=YES). The filtering is applied to each design response
separately. Figure 47 shows the stress sensitivity before filtering, Figure 48 the
stress sensitivity after filtering and Figure 49 the mass sensitivity after filtering.
All of this information is obtained by requesting SEN underneath the *NODE
FILE card.
After calculating the filtered sensitivities of the objective function and the
constraints separately (this is done in the sensitivity step) they are joined by pro-
jecting the sensitivity of the active constraints on the sensitivity of the objective
function (this is done in the feasible direction step). For a mesh modification size
of 1 (parameter underneath the *FEASIBLE DIRECTION card) this results in
Figure 50.
The sensitivities calculated in this way allow us to perform an optimization.
The simplest concept is the steepest gradient algorithm in which the geometry
is changed in the direction of the steepest gradient. In the present calculations
only one gradient is calculated (the one in the direction of the local normal)
since a geometry change parallel to the surface of the structure generally does
not change the geometry at all. So the geometry is changed in the direction of
the local normal by an amount to be defined by the user. It is usually a percent-
age of the local sensitivity, the so-called mesh modification size, to be defined
underneath the *FEASIBLE DIRECTION card. Here, a mesh modification size
of 10 % was selected (i.e. 0.1).
In order to maintain a good quality mesh the other boundary nodes and the
internal nodes should be appropriately moved as well. This is taken care of by a
subsequent linear elastic calculation with the sensitivity-based surface geometry
change as boundary conditions. The corresponding input deck with the name
84 5 SIMPLE EXAMPLE PROBLEMS
*STEP
5.18 Mesh refinement of a curved cantilever beam 85
*STATIC
*CLOAD
LOAD,2,1.
*NODE PRINT,NSET=FIX,TOTALS=ONLY
RF
*SECTION PRINT,SURFACE=Sfix,NAME=SP1
SOF,SOM
*NODE FILE
U
*EL FILE
S
*REFINE MESH,LIMIT=50.
S
*END STEP
distribute loads (gravity, centrifugal forces). Else the value printed for RF will
include part of these latter forces.
A second possibility is to define a facial surface and use SOF and SOM
underneath the *SECTION PRINT card in order to request the forces and
moments on this surface. The surface Sfix consists of all faces in the left surface
of the beam. The forces and moments are obtained by integration across the
surface.
The output in the .dat-file looks like:
performed, each of which allows for a refinement by a factor of two. The refine-
ments are always applied to a version of the original mesh in which any quadratic
elements are replaced by linear ones (C3D10 by C3D4), i.e. the middle nodes
are not taken into account. The results of these refinement iterations are stored
as input decks (containing only the mesh) in files finemesh.inp0, finemesh.inp1
and finemesh.inp2. After generating the mesh stored in finemesh.inp2, the pro-
gram generates midnodes for all elements if the input deck contained at least
one quadratic element. All nodes are subsequently projected onto the faces of
the original mesh. This means that the geometry is basically described by the
outer surface of the mesh in the input deck. Elements in the input deck other
than tetrahedral elements remain untouched. The resulting projected mesh is
stored as input deck in jobname.fin. It contains only the refined mesh (nodes
and elements).
Running the circ10p input deck and reapplying the necessary boundary
and loading conditions (this has to be done by hand) leads to the input deck
cric10pfin.inp (also part of the CalculiX test examples). Running this deck leads
to the normal z-stresses in Figure 55 and the error in Figure 56.
The mesh has been refined near the left face of the beam, where the stresses
were highest. The resulting elements are quadatic elements and the curvature
of the original mesh has been nicely kept.
The compressive stresses are slightly increased, while the tensile stresses are
now much more localized about the nodes fixed in y-direction. The overall level,
5.18 Mesh refinement of a curved cantilever beam 89
however, is similar. The stress error is about the same as for the coarse mesh,
however, at those locations where the stress is high, the error is now low, about
5 % instead of 30 %. These are the locations of interest.
The output for the reaction forces in the .dat file looks like:
The nodal output is again very accurate, while the section output has clearly
improved: the total reaction force is now -9.25 force units, the moment about
the center of gravity is 72.12 [force][length]. The finer mesh leads to more
accurate nodal stresses, which are the ones which have been used to determined
the section forces.
6 Theory
The finite element method is basically concerned with the determination of field
variables. The most important ones are the stress and strain fields. As basic
measure of strain in CalculiX the Lagrangian strain tensor E is used for elastic
media, the deviatoric elastic left Cauchy-Green tensor for incremental plastic-
ity, the logarithmic (or Hencky) strain [10] for some other plasticity models as
deformation plasticity and Johnson-Cook hardening and linear strains where
appropriate, i.e. for small deformations combined with small rotations. The
Lagrangian strain satisfies ([27]):
where J e is the elastic Jacobian and xek,K is the elastic deformation gradient.
Finally, the logarithmic strain satisfies:
X
eln := ln λi ni ⊗ ni , (5)
i
ni = R · N i , (6)
91
where R is the rotation tensor obtained from the well known decomposition
of the deformation gradient F into a product of an orthogonal matrix R and
a symmetric matrix U in the form F = R · U . The above formulas apply to
Cartesian coordinate systems.
The stress measure consistent with the Lagrangian strain is the second Piola-
Kirchhoff stress S. This stress, which is internally used in CalculiX for all
applications (the so-called total Lagrangian approach, see [10]), can be trans-
formed into the first Piola-Kirchhoff stress P (the so-called engineering stress, a
non-symmetric tensor) and into the Cauchy stress σ (true stress). All CalculiX
input (e.g. distributed loading) and output is in terms of true stress. The stress
measures are related by:
P = JF −1 · σ (7)
and
S = JF −1 · σ · F −T , (8)
where J = det(F ).
The treatment of the thermal strain depends on whether the analysis is
geometrically linear or nonlinear. For isotropic material the thermal strain
tensor amounts to α∆T I, where α is the (secant) expansion coefficient, ∆T is
the temperature change since the initial state and I is the second order identity
tensor. For geometrically linear calculations the thermal strain is subtracted
from the total strain to obtain the mechanical strain:
mech
ẼKL = ẼKL − α∆T δKL . (9)
In a nonlinear analysis the thermal strain is subtracted from the deforma-
tion gradient in order to obtain the mechanical deformation gradient. Indeed,
assuming a multiplicative decomposition of the deformation gradient one can
write:
F −1
th ≈ (1 − α∆T )I. (11)
Therefore one obtains:
dL
= αdT, (14)
L0
leading to
T
L − L0
Z
= α(ξ)dξ
L0 T0
=: α(T )(T − T0 )
= α(T )∆T, (15)
from which
which implies
dL
= αdT, (19)
L
leading to
6.1 Node Types 93
T
L
Z
ln = α(ξ)dξ
L0 T0
= α(T )∆T, (20)
or
• 1D fluid nodes. These are nodes satisfying at least one of the following
conditions:
• structural nodes. Any nodes not being 1D fluid nodes nor 3D fluid nodes.
11
00
8 11
00 7
00
11
00
11 00
11
00
11
11
00
00
11 11
00
00
11
5 6
11
00
4 11
00 3
00
11 00
11
00
11 00
11
11
00 11
00
00
11 00
11
1 2
Figure 57: 8-node brick element
8 7
5
71
0
0
1 1
0
08
1
6
00
11
5
1
0 006
11
0
1
31
0
0
1
14
0
0
1
4
3
00
11
1
11
00
2
1 2
8 7
5
6
1
0
1
0
1
4
3
1 2
8 15 7
1
0 1
0 1
0
0
1 0
1 0
1
00
11
16 11
00
00
11 00
11
00
11 0014
11
11
00
511 11
0013 00
11
00 00
11 00
11
00
11 00
11 00 6
11
0
1 0
1 19
20 0
1 0
1
00
11
17 11
0018
00
11 1111
00
00
11 4 00
11
1
0 0
1 0
1 3
0
1 0
1 0
1
00
11
12 00
11
00
11 00
11
00
11 00 10
11
11
00 11
00 00
11
00
11 00
11 00
11
00
11 00
11 00
11
1 9 2
Figure 60: 20-node brick element
The C3D20 element is a general purpose quadratic brick element (3x3x3 inte-
gration points). The shape functions can be found in [49]. The node numbering
follows the convention of Figure 60 and the integration scheme is given in Figure
61.
This is an excellent element for linear elastic calculations. Due to the location
of the integration points, stress concentrations at the surface of a structure are
well captured. However, for nonlinear calculations the elements exhibits the
same disadvantages as the C3D8 element, albeit to a much lesser extent:
• due to the full integration, the element will behave badly for isochoric
material behavior, i.e. for high values of Poisson’s coefficient or plastic
behavior.
• the element tends to be too stiff in bending, e.g. for slender beams or thin
plates under bending. [112].
98 6 THEORY
8 7
11
00 00
11 0
1
0025 11
11 0026 027
1
00
11 0
1 0
1
5
0022
11 023
1 0
124
6
1119 11
00 000120 1 0 121 1
0 0
0016
11 017
1 0
1
00
11 0
1 0 18
1
0013
11 014
1 015
1
00
11 0
1 0
1
0010
11 011
1 012
1
117
00 11
008 19
0
4
0
1
05
1
3
114
00 16
0
111
00 12
0 13
0
1 2
• the integration points are about one quarter of the typical element size
away from the boundary of the element, and the extrapolation of integra-
tion point values to the nodes is trilinear. Thus, high stress concentrations
at the surface of a structure might not be captured if the mesh is too coarse.
114
00
00
11
00
11
3
11
00 11
00
00
11 00
11
2
1
0
0
1
0
1
1
Figure 62: 4-node tetrahedral element
1
04
0
1
0
1
1
0
0
110 1
0
0
19
0
1 0
1
8
11
00
00
11
1
03 61
0 1
0
0
1 1
0 0
1
7 0
1 0
1 0
1
2
11
00 11
00
00
11 00
11
0
1
0
1
5
0
1
1
Figure 63: 10-node tetrahedral element
6.2 Element Types 101
The element behaves very well and is a good general purpose element, al-
though the C3D20R element yields still better results for the same number of
degrees of freedom. The C3D10 element is especially attractive because of the
existence of fully automatic tetrahedral meshers.
61
0 11
00
0
1 00 5
11
11
00
00
11
4
00
11
31
0
0
1 11
00
00
11
0
1 00 2
11
11
00
00
11
1
Figure 64: 6-node wedge element
6.2 Element Types 103
6 11
11
00 11
00 1
0 5
12 11
00 00
11 0
1
0
1
0
1 0
1
0
1
0
1 10
4 0
1
0
1
00
11
15
00
11 1
0
014
1
13 1
0
0
1
0
1 8
3
00
11 11
00 1
0
11
00 00
11 02
1
91
0 0
1
0
1
0
1 0
1
0
1
7
11
0
0
1
Figure 65: 15-node wedge element
104 6 THEORY
n
3
1
0
6 0
1
11
00
00
11 00
11
00
11 00 5
11
00
11
1
0
0
1 00
11
00
11 0
1
0
1
0
1 00
11 0
1
1 4 2
Figure 66: 6-node triangular element
This is a general purpose linear 4-sided shell element. For the node number-
ing and the direction of the normal to the surface the reader is referred to
the quadratic eight-node shell element (S8) in Figure 68 (just drop the middle
nodes).
In CalculiX, S4 and S4R four-node shell elements are expanded into three-
dimensional C3D8I and C3D8R elements, respectively. The way this is done can
be derived from the analogous treatment of the S8-element in Figure 69 (again,
drop the middle nodes). For more information on shell elements the reader is
referred to the eight-node shell element S8.
This is a general purpose triangular shell element. The node numbering and
the direction of the normal to the surface is shown in Figure 66.
In CalculiX, six-node shell elements are expanded into three-dimensional
wedge elements. The way in which this is done is illustrated in Figure 67. For
more information on shell elements the reader is referred to the eight-node shell
element in the next section.
6.2 Element Types 105
1
0 15
0
1 nodes of the 3−D element
1
06
0
1
12 0
1 5 nodes of the 2−D element
0
1 1
0 0
1
0
1 011
1
0
1
00
11 0
1 00
11
00 5
411
00
00
11
0
1
0
1
11
00
11 3
10 151
03
0
1
6
5
1 2
1311
00
00
11
00 14
11
00
11
thickness 2
4 31
0
0
1
1
0
91
0
0
1 0
1
1
0 81
0
0
1
11
00
00
11 0
1
0
1 00
11
00
11
00
11 0
1 00
11 1
1 7 2
Figure 67: Expansion of a 2D 6-node element into a 3D wedge element
n
4 7 3
11
00 1
0 11
00
00
11 0
1 00
11
00
11
8
00
11 0
1
0
1
00
11 06
1
0
1
0
1 00
11
00
11 1
0
0
1
0
1 00
11 0
1
1 5 2
Figure 68: 8-node quadratic element
1
0
0
1
015
1 nodes of the 3−D element
8 15 7
11
00
00
11 11
00
00
11 1
0
0
1 5 nodes of the 2−D element
16 0
1
0
1 11
00
00
11
0
1 0014
11
5 13
1
0
0
1 1
0
0
1 0
1
0 6
1 3
11
00 0
1 19
004
11
20 7 0
1 3
8 6
17 1
0 1 5
11 1
018
2 thickness 2
0
1 4
11
00 11
00 0
1 0
1
00
11 00
11 0
1 3
00
11 00
11 0
1
12 0
1 00
11
0
1 00
11
0
1 00 10
11
1
0 1
0 1
0
0
1 0
1 0
1 1
1 9 2
Figure 69: Expansion of a 2D 8-node element into a 3D brick element
6.2 Element Types 107
normal, which is defined as the normed mean of all normals in the subset. This
procedure is repeated for the elements in the set minus the subset until no
elements are left with an explicitly defined normal. Now, the element with the
lowest element number of all elements left in the set is used as reference. Its
normal is defined as reference normal and the element is stored in a new subset.
All other elements left in the set for which the normal has an angle smaller than
20◦ with the reference normal and which have the same local thickness and
offset are also included in this subset. The normed mean of all normals in the
subset is assigned as new normal to all elements in the subset. This procedure is
repeated for the elements left until a normal has been defined in each element.
This procedure leads to one or more normals in one and the same node. If
only one normal is defined, this node is expanded once into a set of three new
nodes and the resulting three-dimensional expansion is continuous in the node.
If more than one normal is defined, the node is expanded as many times as there
are normals in the node. To assure that the resulting 3D elements are connected,
the newly generated nodes are considered as a knot. A knot is a rigid body
which is allowed to expand uniformly. This implies that a knot is characterized
by seven degrees of freedom: three translations, three rotations and a uniform
expansion. Graphically, the shell elements partially overlap (Figure 70).
Consequently, a node leads to a knot if
108 6 THEORY
• the direction of the local normals in the elements participating in the node
differ beyond a given amount. Notice that this also applies to neighbor-
ing elements having the inverse normal. Care should be taken that the
elements in plates and similar structures are oriented in a consistent way
to avoid the generation of knots and the induced nonlinearity.
In CalculiX versions prior to and including version 2.7 a knot was also in-
troduced as soon as the user applied a rotation or a moment to a node. Right
now, this is still the case for dynamic calculations (cf. listing above). However,
in static calculations, starting with version 2.8 this type of loading is handled
by using mean rotation MPC’s (cf. Section 8.7.1). The mean rotation MPC’s
are generated automatically, so the user does not have to take care of that. It
generally leads to slightly better results then by use of knots. However, the
use of mean rotation MPC’s prohibits the application of drilling moments, i.e.
moments about an axis perpendicular to a shell surface. Similarly, no drilling
rotation should be prescribed, unless all rotational degrees of freedom are set to
zero in the node. If the shell surface is not aligned along the global coordinate
directions, prescribing a moment or rotation aboun an axis perpendicular to the
drilling direction may require the definition of a local coordinate system. Also
note that the rotation in a mean rotation MPC should not exceed 90 degrees.
Starting with version 2.15 any nonzero drilling moment or rotation is automat-
ically removed and a warning is issued. In earlier versions, a drilling moment
or rotation led to an error, forcing the program to abort.
Beam and shell elements are always connected in a stiff way if they share
common nodes. This, however, does not apply to plane stress, plane strain
and axisymmetric elements. Although any mixture of 1D and 2D elements
generates a knot, the knot is modeled as a hinge for any plane stress, plane
strain or axisymmetric elements involved in the knot. This is necessary to
account for the special nature of these elements (the displacement normal to
the symmetry plane and normal to the radial planes is zero for plane elements
and axisymmetric elements, respectively).
The translational node of the knot (cfr REF NODE in the *RIGID BODY
keyword card) is the knot generating node, the rotational node is extra gener-
ated.
The thickness of the shell element can be defined on the *SHELL SECTION
keyword card. It applies to the complete element. Alternatively, a nodal thick-
ness in each node separately can be defined using *NODAL THICKNESS. In
that way, a shell with variable thickness can be modeled. Thicknesses defined
6.2 Element Types 109
• a local x’-axis defined by the projection of the global x-axis on the shell
(actually at the location of the shell which corresponds to local coordinates
ξ = 0, η = 0), or, if the angle between the global x-axis and the normal
to the shell is smaller than 0.1◦ , by the projection of the global z-axis on
the shell.
• a local y’-axis such that y ′ = z ′ × x′ .
• a local z’-axis coinciding with the normal on the shell (defined such that
the nodes are defined clockwise in the element topology when looking in
the direction of the normal).
Notice that this also applies in shell which are not defined as composites
(can be considered as one-layer composites).
If an orientation is applied to a specific layer of a specific shell element then
a local shell coordinate system is generated consisting of:
In 8-node shells:
aspect ratio of 40 or more) reduced integration will give you far better results
than full integration. However, due to the small thickness hourglassing can
readily occur, especially if point loads are applied. This results in displacements
which are widely wrong, however, the stresses and section forces are correct.
Usually also the mean displacements across the section are fine. If not, full
integration combined with smaller elements might be necessary. Secondly, thin
structures can easily exhibit large strains and/or rotations. Therefore, most
calculations require the use of the NLGEOM parameter on the *STEP card.
• The thickness can vary. It can be defined in the same way as for the shell
element, except that the *SOLID SECTION card is used instead of the
*SHELL SECTION card.
The use of plane stress elements can also lead to knots, namely, if the thick-
ness varies in a discontinuous way, or if plane stress elements are combined with
other 1D or 2D elements such as axisymmetric elements. The connection with
the plane stress elements, however, is modeled as a hinge.
Distributed loading in plane stress elements is different from shell distributed
loading: for the plane stress element it is in-plane, for the shell element it is out-
of-plane. Distributed loading in plane stress elements is defined on the *DLOAD
card with the labels P1 up to P4. The number indicates the face as defined in
Figure 71.
114 6 THEORY
.
3
4 3
7
4 8 6
2.
1 5 2
1
Figure 71: Face numbering for quadrilateral elements
6.2 Element Types 115
Plane strain elements are used to model a slice of a very long structure, e.g.
of a dam.
If a plane strain element is connected to a structure consisting of 3D elements
the motion of this structure in the out-of-plane direction (z-direction) is not
restricted by its connection to the 2D elements. The user has to take care that
any rigid body motion of the structure involving the z-direction is taken care
116 6 THEORY
• The expansion angle is fixed, its size is 2◦ . The value on the line beneath
the *SOLID SECTION keyword, if any, has no effect.
• Forces act in radial planes. They have to be defined for the complete
circumference, i.e. if you apply a force in a node, you first have to sum all
forces at that location along the circumference and then apply this sum
to the node.
• Concentrated heat fluxes act in radial planes. They have to be defined for
the complete circumference.
• Mass flow rates act in radial planes. They have to be defined for the
complete circumference.
• expanded plane stress and axisymmetric elements must have a small thick-
ness to yield good results: in the case of plane stress elements this is be-
cause a large thickness does not agree with the plane stress assumption,
in the case of axisymmetric elements because large angles yield bad re-
sults since the expansion creates only one layer of elements. CalculiX uses
an expansion angle of 2◦ , which amounts to π/90 radians. Consequently,
only 100/180% of the disk is modeled and the thickness of the plane stress
elements is (100 − k)πr/9000. This is done automatically within CalculiX.
On the *SOLID SECTION card the user must specify the thickness of the
plane stress elements for 360◦, i.e. 2πr(100 − k)/100.
• the point forces on the axisymmetric elements are to be given for the
complete circumference, as usual for axisymmetric elements.
• the point forces on the plane stress elements act on the complete circum-
ference.
118 6 THEORY
• distributed loads are not affected, since they act on areas and/or volumes.
n1 11
00
00
11
11
00 3.
t 00
11
00
11
2
1
0
0
1
0
1 n2
1
Figure 73: 3-node quadratic beam element/3-node network element
If a node belongs to more than one beam element, the tangent and the normal
is first calculated for all elements to which the node belongs. Then, the element
with the lowest element number in this set for which the normal was defined
120 6 THEORY
explicitly using a *NORMAL card is used as reference. Its normal and tangent
are defined as reference normal and reference tangent and the element is stored
in a new subset. All other elements of the same type in the set for which the
normal and tangent have an angle smaller than 0.5◦ with the reference normal
and tangent and which have the same local thicknesses, offsets and sections are
also included in this subset. All elements in the subset are considered to have
the same normal and tangent. The normal is defined as the normed mean of all
normals in the subset, the same applies to the tangent. Finally, the normal is
slightly modified within the tangent-normal plane such that it is normal to the
tangent. This procedure is repeated until no elements are left with an explicitly
defined normal. Then, the element with the lowest element number left in the
set is used as reference. Its normal and tangent are defined as reference normal
and reference tangent and the element is stored in a new subset. All other
elements of the same type in the set for which the normal and tangent have an
angle smaller than 20◦ with the reference normal and tangent and which have
the same local thicknesses, offsets and sections are also included in this subset.
All elements in the subset are considered to have the same normal and tangent.
This normal is defined as the normed mean of all normals in the subset, the
same applies to the tangent. Finally, the normal is slightly modified within the
tangent-normal plane such that it is normal to the tangent. This procedure is
repeated until a normal and tangent have been defined in each element. Finally,
the 1-direction is defined by n1 = n2 × t.
If this procedure leads to more than one local coordinate system in one and
6.2 Element Types 121
the same node, all expanded nodes are considered to behave as a knot with the
generating node as reference node. Graphically, the beam elements partially
overlap (Figure 75).
Consequently, a node leads to a knot if
• the direction of the local normals in the elements participating in the node
differ beyond a given amount. Notice that this also applies to neighboring
elements having the inverse normal. Care should be taken that the ele-
ments in beams are oriented in a consistent way to avoid the generation
of knots.
• several types of elements participate (e.g. shells and beams).
• the thickness is not the same in all participating elements.
• the offset is not the same in all participating elements.
• the section is not the same in all participating elements.
• a rotation or a moment is applied in the node (only for dynamic calcula-
tions)
The offsets of a beam element (in 1- and 2-direction) can be set on the
*BEAM SECTION card. Default is zero. The unit of the offset is the beam
thickness in the appropriate direction. An offset of 0.5 means that the user-
defined beam reference line lies in reality on the positive surface of the expanded
beam (i.e. the surface with an external normal in direction of the local axis).
The offset can take any real value. Consequently, it can be used to define
composite structures, such as a plate supported by a beam, or a I cross section
built up of rectangular cross sections.
The treatment of the boundary conditions for beam elements is straightfor-
ward. The user can independently fix any translational degree of freedom (DOF
1 through 3) or any rotational DOF (DOF 4 through 6). Here, DOF 4 is the
rotation about the global x-axis, DOF 5 about the global y-axis and DOF 6
about the global z-axis. No local coordinate system should be defined in nodes
with constrained rotational degrees of freedom. A hinge is defined by fixing the
translational degrees of freedom only.
For an internal hinge between 1D or 2D elements the nodes must be doubled
and connected with MPC’s. The connection between 3D elements and all other
elements (1D or 2D) is always hinged.
Point forces defined in a beam node are not modified if a knot is generated
(the reference node is the beam node). If no knot is generated, the point load
is divided among the expanded nodes according to a 1/4-1/4-1/4-1/4 ratio for
a beam mid-node and a (-1/12)-(1/3)-(-1/12)-(1/3)-(-1/12)-(1/3)-(-1/12)-(1/3)
ratio for a beam end-node. Concentrated bending moments or torques are
defined as point loads (*CLOAD) acting on degree four to six in the node.
Their use generates a knot in the node.
Distributed loading can be defined by the labels P1 and P2 in the *DLOAD
card. A positive value corresponds to a pressure load in direction 1 and 2,
respectively.
In addition to a temperature for the reference surface of the beam, a tem-
perature gradient in 1-direction and in 2-direction can be specified on the
*TEMPERATURE. Default is zero.
Concerning the output, nodal quantities requested by the keyword *NODE PRINT
are stored in the beam nodes. They are obtained by averaging the nodal values
of the expanded element. For instance, the value in local beam node 1 are ob-
tained by averaging the nodal value of expanded nodes 1, 4, 5 and 8. Similar
relationships apply to the other nodes:
results can be viewed in the expanded structure, however, the nodal numbering
is different from the beam nodes. By using the OUTPUT=2D parameter in the
first step one can trigger the storage in the original beam nodes. The same av-
eraging procedure applies as for the *NODE PRINT command. Section forces
can be requested by means of the parameter SECTION FORCES. If selected,
the stresses in the beam nodes are replaced by the section forces. They are
calculated in a local coordinate system consisting of the 1-direction n1 , the 2-
direction n2 and 3-direction or tangential direction t (Figure 74). Accordingly,
the stress components now have the following meaning:
• xy: Torque
Figure 76: Gauss-Kronrod integration scheme for B32R elements with rectan-
gular cross section
126 6 THEORY
• Pure thermomechanical calculations. In that case the mass flow in all ele-
ments of the network is known and the only unknowns are the temperature
(in the network and the structure) and displacements (in the structure).
This mode is automatically activated if all mass flows are specified using
boundary cards. In that case, pressures in the network are NOT calcu-
lated. Furthermore, the type of network element is not relevant and should
not be specified.
d
n
The available types of fluid sections are listed in subsection 6.4 and 6.5.
Notice that three-node network elements are one-dimensional and can ac-
count for two- or three-dimensional effects in the fluid flow only to a limited
degree.
A special kind of network element is one in which one of the corner nodes
is zero (also called a dummy network element). This type is element is used
at those locations where mass flow enters or leaves the network. In this case
the corner node which is not connected to any other network element gets the
label zero. This node has no degrees of freedom. The degree of freedom 1 of
the midside node corresponds to the entering or leaving mass flow.
d + n · (u2 − u1 ) ≥ 0. (22)
1 2
F1 = −F2 . Right now, only linear dashpots are allowed, i.e. the dashpot
coefficient is constant (i.e. it does not depend on the relative velocity. However,
it can depend on the temperature). It is defined using the *DASHPOT keyword
card.
The two-node three-dimensional dashpot element is considered as a genuine
three-dimensional element. Consequently, if it is connected to a 2D element
with special restraints on the third direction (plane stress, plane strain or ax-
isymmetric elements) the user has to take care that the third dimension does
not induce rigid body motions in the dashpot nodes.
The dashpot element can only be used in linear dynamic calculations char-
acterized by the *MODAL DYNAMIC keyword card.
1 2
This is a spring element defined between two nodes (Figure 79). The force
needed in node 2 to extend the spring with original length L0 to a final length
L is given by:
where k is the spring stiffness and n is a unit vector pointing from node 1 to
node 2. The force in node 1 is −F . This formula applies if the spring stiffness
is constant. It is defined using the *SPRING keyword card. Alternatively, a
nonlinear spring can be defined by providing a graph of the force versus the
elongation. In calculations in which NLGEOM is active (nonlinear geometric
calculations) the motion of nodes 1 and 2 induces a change of n.
The two-node three-dimensional spring element is considered as a genuine
three-dimensional element. Consequently, if it is connected to a 2D element
with special restraints on the third direction (plane stress, plane strain or ax-
isymmetric elements) the user has to take care that the third dimension does not
induce rigid body motions in the spring nodes. An example of how to restrain
the spring is given in test example spring4.
Note that a spring under compression, if not properly restrained, may change
its direction by 180◦ , leading to unexpected results. Furthermore, for nonlinear
springs, it does not make sense to extend the force-elongation curve to negative
elongation values ≤ L0 .
This type is element is used to define the reference node of a distributing cou-
pling constraint (cf. *DISTRIBUTING COUPLING). The node should not
belong to any other element. The coordinates of this node are immaterial.
130 6 THEORY
• Give a name to the element. The name has to start with “U” followed by
maximal 4 characters. Any character from the ASCII character set can
be taken, but please note that lower case characters are converted into
upper case by CalculiX. Consequently, “Ubeam” and “UBEam” are the
same name. This reduces the character set from 256 to 230 characters.
• specify the number of integration points within the element (maximum
256), the number of nodes belonging to the element (maximum 256) and
the number of degrees of freedom in each node (maximum 256) by using
the *USER ELEMENT keyword card.
• write a FORTRAN subroutine resultsmech uxxxx.f calculating the sec-
ondary variables (usually strains, stresses, internal forces) from the pri-
mary variables (= the solution of the equation system, usually displace-
ments, rotations....). Add a call to this routine in resultsmech u.f
• write a FORTRAN subroutine e c3d uxxxx.f calculating the element stiff-
ness matrix and the element external force vector (and possibly the ele-
ment mass matrix). Add a call to this routine in e c3d u.f
• write a FORTRAN subroutine extrapolate uxxxx.f calculating the value
of the secondary variables (usually strains, stresses..) at the nodes based
on their values at the integration points within the element. Add a call
to this routine in extrapolate u.f
Face SPOS
3
n
1
Face SNEG
2
for each entry of the matrix, one per line (the order is irrelevant). A sub-
structure can right now contain at most 256 nodes and only translational degrees
of freedom (=dof) are allowed (dof 1 for the global x-axis, dof 2 for the global
y-axis and dof 3 for the global z-axis). In addition, the matrix should receive a
name containing at most 4 characters. Names of existing user elements exluding
the “U” in front should not be used, such as “S3”. The nodes belonging to the
element may be subject to Single Point Constraints, Multiple Point Constraints
or point loads, but not to distributed loading (neither facial nor volumetric).
Since the location of any integration points is not known, no element values
such as stresses or strains are calculated. Only nodal information can be stored
to file using *NODE PRINT and similar keyword cards.
A substructure is basically a linear construct. Right now, it can be used in
a *STATIC, *DYNAMIC or *FREQUENCY procedure, including cyclic sym-
metry conditions.
2(−η)
111111111111111111111111111111
000000000000000000000000000000 11111111111111111111111111111
00000000000000000000000000000
000000000000000000000000000000
111111111111111111111111111111 00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111
9 5 9
00000000000000000000000000000
11111111111111111111111111111
5
000000000000000000000000000000
111111111111111111111111111111 00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111
t2
00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111 b
00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111
t1 4
00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111 00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111 Γ2
00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
1111111111111111111111111111113
00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111 1(ζ) 00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111
t3
Γ 2t1/a
00000000000000000000000000000
11111111111111111111111111111 2
000000000000000000000000000000
111111111111111111111111111111 3
00000000000000000000000000000
11111111111111111111111111111 q
000000000000000000000000000000
1111111111111111111111111111112
00000000000000000000000000000
11111111111111111111111111111 ζ
000000000000000000000000000000
111111111111111111111111111111
t4
00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111 00000000000000000000000000000
11111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111 00000000000000000000000000000
11111111111111111111111111111
0000000000000000000000000000001
111111111111111111111111111111 Γ1
00000000000000000000000000000
11111111111111111111111111111
13 16
00000000000000000000000000000
11111111111111111111111111111
Γ4
00000000000000000000000000000
11111111111111111111111111111
00000000000000000000000000000
11111111111111111111111111111
00000000000000000000000000000
11111111111111111111111111111
a
00000000000000000000000000000
11111111111111111111111111111
00000000000000000000000000000
11111111111111111111111111111
User Space
00000000000000000000000000000
11111111111111111111111111111
2t4/b
00000000000000000000000000000
11111111111111111111111111111
00000000000000000000000000000
11111111111111111111111111111
00000000000000000000000000000
11111111111111111111111111111
13 1
00000000000000000000000000000
11111111111111111111111111111
η
p
2
Element ( η, ζ ) space
6.3.1 Pipe
The pipe section is circular and is characterized by its outer radius and its
thickness (in that order). There are 8 integration points equally distributed
along the circumference.
p In local coordinates, the radius at which the integration
points are located is (ξ 2 + 1)/2, where ξ = r/R, r being the inner radius and
R the outer radius. The weight for each integration point is given by π∗(1−ξ 2 )/8
[13].
6.3.2 Box
1 t4 t1
ξ1 = − √ ; η1 = 1 − ; ζ1 = 1 − (28)
3 b a
134 6 THEORY
The other three corner points are defined correspondingly. The remaining
points are evenly distributed along the center lines of the wall segments. The
length p and q of the line segments, as given w.r.t. the element intrinsic coor-
dinates η and ζ, can now be calculated as
t1 t3 t2 t4
p=2− − ; q =2− − ; (29)
a a b b
An integral of a function f (η, ζ), over the area Ω of the hollow cross section
and evaluated w.r.t the natural coordinates η, ζ, can be approximated by four
line integrals, as long as the line segments Γ1 , Γ2 , Γ3 and Γ4 are narrow enough:
Z
f (η, ζ)dΩ ≈
Ω
2t1 2t2
Z Z
f (η(Γ1 ), ζ) dΓ1 + f (η, ζ(Γ2 )) dΓ2 +
a b
2t3 2t4
Z Z
f (η(Γ3 ), ζ) dΓ3 + f (η), ζ(Γ4 )) dΓ4 (30)
a b
According to Simpson’s rule, the integration points are spaced evenly along
each segment. For the integration weights we get, for example, in case of the
first wall segment
q
wk = {1, 4, 2, 4, 1} (31)
12
Therefore, we get, for example, for corner Point 1
1 t1 1 t4
w1 = q+ p (32)
6a 6 b
and for Point 2
4 t1
w2 = q (33)
6a
The resulting element data (stresses and strains) are extrapolated from the
eight corner integration points (points 1,5,9 and 13) from the two Gauss integra-
tion stations using the shape functions of the linear 8-node hexahedral element.
Remarks
• The wall thickness are assumed to be small compared to the outer cross
section dimensions.
• The bending stiffnesses of the individual wall segments about their own
neutral axes are completely neglected due to the line integral approach.
6.3 Beam Section Types 135
6.3.3 General
The general section can only be used for user element type U1 and is defined
by the following properties (to be given by the user in that order):
Furthermore, the specification of the 1-direction (cf. third line in the *BEAM SECTION
definition) is REQUIRED for this type of section. Internally, the properties are
stored in the prop-array in the following order:
• offset1
• offset2
In the present implementation of the U1-type element I12 , offset1 and offset2
have to be zero.
136 6 THEORY
D[ε + vk vk /2]
ρ = (vk tkl ),l − (pvk ),k + ρvk fk − qk,k + ρhθ , (37)
Dt
or
D[h + vk vk /2] ∂p
ρ = (vk tkl ),l + + ρvk fk − qk,k + ρhθ , (38)
Dt ∂t
where h = ε + p/ρ is the entalpy. For an ideal gas one can write h = cp T , cp is
the heat capacity at constant pressure.
The total temperature Tt is now defined as the temperature which is obtained
by slowing down the fluid to zero velocity in an adiabatic way. Using the energy
equation (38), dropping the first term on the right hand side because of ideal
gas conditions (no viscosity), the second term because of stationarity, the third
term because of the absence of volumetric forces and the last two terms because
of adiabatic conditions one obtains the relationship:
D[cp T + vk vk /2]
ρ = 0, (39)
Dt
along a stream line (recall that the meaning of the total derivative DX/Dt is
the change of X following a particle), from which
v2
Tt = T + , (40)
2cp
where v is the magnitude of the velocity. The Mach number is defined by
6.4 Fluid Section Types: Gases 137
v
M= √ , (41)
κrT
where κ is the specific heat ratio and the denominator is the speed of sound.
Therefore, the total temperature satisfies:
κ−1 2
Tt = T (1 + M ). (42)
2
The total pressure is defined as the pressure which is attained by slowing
down the fluid flow in an isentropic way, i.e. a reversible adiabatic way. An
ideal gas is isentropic if p1−κ T κ is constant, which leads to the relationship
κ
κ−1
pt Tt
= , (43)
p T
and consequently to
κ − 1 2 κ−1 κ
pt = p(1 + M ) . (44)
2
Substituting the definition of mass flow ṁ = ρAv, where A is the cross
section of the fluid channel, in the definition of the Mach number (and using
the ideal gas equation to substitute ρ) leads to
√
ṁ rT
M= √ . (45)
Ap κ
Expressing the pressure and temperature as a function of the total pressure
and total temperature, respectively, finally leads to
√ (κ+1)
− 2(κ−1)
ṁ rTt κ−1 2
√ =M 1+ M . (46)
Apt κ 2
This is the general gas equation, which applies to all types of flow for ideal gases.
The left hand side is called the corrected flow. The right hand side exhibits a
maximum for M = 1, i.e. sonic conditions.
It is further possible to derive general statements for isentropic flow through
network elements. Isentropic flow is reversible adiabatic by definition. Due to
the adiabatic conditions the total enthalpy ht = cp Tt is constant or
dh + vdv = 0. (47)
The first law of thermodynamics (conservation of energy) specifies that
dε = δq + δw, (48)
or, because of the adiabatic and reversible conditions
1
dε = −pd . (49)
ρ
138 6 THEORY
dh = dp/ρ. (50)
Substituting this in the equation we started from leads to:
dp = −ρvdv. (51)
The continuity equation through a network element with cross section A,
ρvA = constant can be written in the following differential form:
dρ dv dA
+ + = 0, (52)
ρ v A
or, with the equation above
dρ dp dA
− 2+ = 0, (53)
ρ ρv A
which leads to
dA dp dρ dp v2
= 2− = 2 1− . (54)
A ρv ρ ρv dp
dρ
q
dp
Since dρ is the speed of sound (use the isentropic relation p ∝ ρκ and the
ideal gas equation p = ρrT to arrive at dp/dρ = κrT = c2 ), one arives at:
dA dp dv
= 2 (1 − M 2 ) = − (1 − M 2 ). (55)
A ρv v
Therefore, for subsonic network flow an increasing cross section leads to
a decreasing velocity and an increasing pressure, whereas a decreasing cross
section leads to an increasing velocity and a decreasing pressure. This is similar
to what happens for incompressible flow in a tube.
For supersonic flow an increasing cross section leads to an increasing ve-
locity and a decreasing pressure whereas a decreasing cross section leads to a
decreasing velocity and an increasing pressure.
Sonic conditions can only occur if dA = 0, in reality this corresponds to
a minimum of the cross section. Therefore, if we assume that the network
elements are characterized by a uniformly increasing or decreasing cross section
sonic conditions can only occur at the end nodes. This is important information
for the derivation of the specific network element equations.
Using the definition of entropy per unit mass s satisfying T ds = δq and the
definition of enthalpy the first law of thermodynamics for reversible processes
runs like
dp
dh = T ds + . (56)
ρ
6.4 Fluid Section Types: Gases 139
Therefore
dh dp
ds = − . (57)
T ρT
.
For an ideal gas dh = cp (T )dT and p = ρrT and consequently
dT dp
ds = cp (T ) −r (58)
T p
or
T2
dT p2
Z
s2 − s1 = cp (T ) − r ln . (59)
T1 T p1
Since all variables in the above equation are state variables, it also applies
to irreversible processes. If the specific heat is temperature independent one
obtains
T2 p2
s2 − s1 = cp ln − r ln , (60)
T1 p1
linking the entropy difference between two states to the temperature and
pressure difference.
Typical material properties needed for a gas network are the specific gas
constant r (*SPECIFIC GAS CONSTANT card), the heat capacity at constant
pressure cp and the dynamic viscosity µ (both temperature dependent and to
be specified with the FLUID CONSTANTS card).
A special case is the purely thermal gas network. This applies if:
• all mass flow is given and either all pressures or given or none.
r
D A d
α
temperature) or a potential pipe connection (for a pipe connection node the total
temperature does not equal the static temperature). The pipe connection types
are GASPIPE, RESTRICTOR except for RESTRICTOR WALL ORIFICE and
USER types starting with UP, all other types are chamber-like. A node is a pipe
connection node if exactly two gas network elements are connected to this node
and all of them are pipe connection types.
For chamber-like entry and exit elements it is strongly recommended to use
the type INOUT.
6.4.1 Orifice
Properties: adiabatic, not isentropic, symmetric only if physically symmetric
(i.e. same corner radius, corner angle etc.), else directional.
The geometry of the orifice fluid section is shown in Figure 82. The axis
of the orifice goes through the center of gravity of the cross section A and is
parallel to the side walls. The orifice is allowed to rotate about an axis parallel
to the orifice axis and can be preceded by a swirl generating device such as
another orifice, a bleed tapping or a preswirl nozzle.
The orifice element is characterized by an end node well upstream of the
smallest section A (let’s call this position 1) and an end node 2 well downstream
of the smallest section (position 2). The smallest section of the gas stream is
called position m. This may be smaller than A due to a contraction of the gas
and will be written as Cd A, Cd ≤ 1.
In between position 1 and m the flow is assumed to be isentropic, conse-
quently
κ p v2
• the total temperature ( κ−1 ρ + 2 ) is constant
• p/ρκ is constant
where p is the static pressure. Furthermore v1 ≪ vm is assumed, since the cross
section at position 1 is assumed to be large and consequently pt1 = p1 , Tt1 = T1 .
Starting from the constancy of the total temperature between position 1 and
m, inserting the isentropic relationship and neglecting v1 leads to:
2
" κ−1 #
vm κ p1 pm κ
= 1− . (61)
2 κ−1 ρ1 p1
Using the relationship ṁ = ρm Am vm leads to:
v
u 2 " κ−1 #
u pm κ 2κ pm κ
ṁ = Am p1 ρ1
t 1− . (62)
p1 κ−1 p1
√
v
u 2 pm κ2
u " κ−1 #
ṁ rT1 pm κ
√ = t 1− . (63)
Cd Ap1 κ κ − 1 p1 p1
or taking into account that at position 1 total and static quantities coincide:
v
p
u 2 pm κ2
u " κ−1 #
ṁ rTt1
p m
κ
√ =t 1− . (64)
Cd Apt1 κ κ − 1 pt1 pt1
0.6
theoretical behavior
real behavior
0.5
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1
pt2/pt1
after which the mass flow rate starts to decrease again [72]. In reality, the de-
crease does not happen and the mass flow rate remains constant. Indeed, at
maximum corrected flow sonic conditions are reached (so-called critical condi-
p
tions). For lower values of ptt2 the flow is supersonic, which means that waves
1
cannot travel upstream. Therefore, the information that the pressure ratio has
decreased below the critical ratio cannot travel opstream and the critical cor-
rected flow persists throughout. Consequently, for
κ
κ−1
pt2 2
≤ , (67)
pt1 κ+1
Equation (65) is replaced by
s κ+1
p − κ−1
ṁ rTt1
κ+1
√ = . (68)
Cd Apt1 κ 2
The orifice element is characterized by the following constants (to be speci-
fied in that order on the line beneath the *FLUID SECTION card):
• the inlet corner radius r (mutually exclusive with α; not needed for Cd =
1).
◦
• the inlet corner angle α in (mutually exclusive with r; not needed for
Cd = 1).
6.4 Fluid Section Types: Gases 143
• the orifice-to-upstream pipe diameter ratio β = d/D (only for TYPE=ORIFICE PK MS).
L r d α
A
b
ps1 pt1 lip
Tapping
Main stream
U
• the ratio of the upstream static pressure to the upstream total pressure
ps1 /pt1 .
Right now, two curves are coded: curve number 1 corresponds to a tapping
device with lip, curve number 2 to a tapping device without lip. More specific
curves can be implemented by the user, the appropriate routine to do so is
cd bleedtapping.f. Alternatively, the user can enter an own curve in the input
deck listing Y = Cd versus X = (1 − ps2 /pt1 )/(1 − ps1 /pt1 ). In that case the
input reads
• the ratio of the upstream static pressure to the upstream total pressure
ps1 /pt1 .
• not used
• X1 .
• Y1 .
• X2 .
• Y2 .
preswirl nozzle
111111111111111111
000000000000000000
00000000000000000000000
11111111111111111111111
00000000000000
11111111111111
000000000000000000
111111111111111111
00000000000000000000000
11111111111111111111111
000000000000000000
111111111111111111 00000000000000
11111111111111
00000000000000000000000
11111111111111111111111
00000000000000
11111111111111
000000000000000000
111111111111111111
00000000000000000000000
11111111111111111111111
A 00000000000000
11111111111111
000000000000000000
111111111111111111
00000000000000000000000
11111111111111111111111
000000000000000000
111111111111111111 00000000000000
11111111111111
00000000000000000000000
11111111111111111111111
00000000000000
11111111111111
000000000000000000
111111111111111111
00000000000000000000000
11111111111111111111111
000000000000000000
111111111111111111 00000000000000
11111111111111
00000000000000000000000
11111111111111111111111
00000000000000
11111111111111
vrel θ
v v
rot abs
rotating orifice v
Figure 85: Geometry of the preswirl nozzle fluid section and the orifice it serves
The angle at the exit of the nozzle is used to determine the circumferential
velocity of the gas leaving the nozzle. This is stored for use in the (rotating)
device following the nozzle. The curve number can be used to distinguish be-
tween several measured curves. Right now, only one curve is coded (number =
0 to select this curve). More specific curves can be implemented by the user,
146 6 THEORY
• θ (Figure 85) in o .
• kφ .
• not used.
• X1 .
• Y1 .
• X2 .
• Y2 .
0
1
1111
0000 0
1 b
0
1
0
1 0
1
0
1
0
1 0
1
1111111111111111111111111111111111111111111111
0000000000000000000000000000000000000000000000
0
1 0
1
0000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111
0
1 0
1
0000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111
0
1 0
1
0000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111
0
1 0
1
0000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111
0
1 0
1
0000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111
0
1 0
1
0000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111
0
1 0
1
0000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111
0
1 0
1
0
1 0
1 0
1
0
1
0
1 0
1 0s
1
0
1
0
1 0
1
0
1 0
1
111111
000000
0
1 01
1 0
1 1111
0000
0
1 0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1 0
1
0
1
0
1h 0
1
0
1
0
1
0
1
0
1
0
1
0
1 0
1
0
1
0
1
0
1
0
1
0
1 0
1
0
1
0
1
0
1 D
t 0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Engine shaft 0
1
0
1
1111111111111111111111111111111111111111111111
0000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111111
000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111111
000000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111111
000000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111111
y
L
x Hst b
X s
r
h
h
for n > 1 is called the carry-over factor. The meaning of the paramters n, s
and t is explained underneath. Equation (69) has a similar form as the orifice
equation, i.e. for small downstream pressures the flow becomes supersonic and
p
choking occurs. To determine the pressure ration x = ptt2 at which choking
1
occurs the following implicit equation has to be solved:
p
x 1 + 2n − ln x2 = 1. (71)
The equations used in the code are slightly more complicated, making use
of the other parameters (r, X, Hst...) as well.
A fixed labyrinth is described by the following parameters (to be specified
in that order on the line beneath the *FLUID SECTION, TYPE=LABYRINTH
SINGLE, TYPE=LABYRINTH STRAIGHT or TYPE=LABYRINTH STEPPED
card):
• not used
• D: Diameter of the top of the spike (for the stepped labyrinth a mean
value should be used; the diameter is needed to calculate the fluid cross
section as πDs).
• n: number of spikes
• X: distance between the spike and the next step (only for more than 1
spike)
• not used
• D: Diameter of the top of the spike (for the stepped labyrinth a mean
value should be used; the diameter is needed to calculate the fluid cross
section as πDs).
• n: number of spikes
• X: distance between the spike and the next step (only for more than 1
spike)
Please look at the figures for the meaning of these parameters. Depending
on the kind of labyrinth, not all parameters may be necessary.
Ymax
Y1
Ymin 0
0 X1
Xmin Xmax
Definition range of the table
6.4.5 Characteristic
Properties: adiabatic, not isentropic, symmetric
Sometimes a network element is described by its characteristic curve, ex-
pressing the reduced mass flow as a function of the pressure ratio (Figure 88).
This allows the user to define new elements not already available.
The reduced flow is defined by
p
ṁ Tt1
Y = , (72)
pt1
where ṁ is the mass flow, Tt1 is the upstream total temperature and pt1 is the
upstream total pressure. Here “upstream” refers to the actual flow direction,
the same applies to “downstream”. The abscissa of the curve is defined by
pt1 − pt2
X= , (73)
pt1
where pt2 is the downstream total pressure. Notice that 0 ≤ X ≤ 1. It is
advisable to define Y for the complete X-range. If not, constant extrapolation
applies. Notice that zero and small slopes of the curve can lead to convergence
problems. This is quite natural, since the reduced flow corresponds to the
left hand side of Equation(46), apart from a constant. Zero slope implies a
maximum, which corresponds to sonic flow (cf. the discussion of Equation(46)).
In general, some sort of saturation will occur for values of X close to 1.
6.4 Fluid Section Types: Gases 151
• X1
• Y1
• X2
• Y2
Use more cards if more than two pairs are needed (maximum 16 entries per
line, i.e. 8 pairs). No more than 10 pairs in total are allowed. In between
the data points CalculiX performs an interpolation (solid line in Figure 88). In
addition, the default point (0,0) is added as first point of the curve.
The scaling factor (first entry) is used to scale the ordinate values Y.
111111111111111111111111111111111111111111111
000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111
000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111
Stator
000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111
Carbon ring
Engine Shaft
1111111111111111111111111111111111111
0000000000000000000000000000000000000
0000000000000000000000000000000000000
1111111111111111111111111111111111111
0000000000000000000000000000000000000
1111111111111111111111111111111111111
0000000000000000000000000000000000000
1111111111111111111111111111111111111
0000000000000000000000000000000000000
1111111111111111111111111111111111111
11111111
00000000
00000000
11111111
D 00000000
11111111
00000000
11111111
00000000
11111111
00000000
11111111
00000000
11111111
0000000000000000000000000000000000000
1111111111111111111111111111111111111
1111111111111111111111111111111111111
0000000000000000000000000000000000000
0000000000000000000000000000000000000
1111111111111111111111111111111111111
00000000
11111111
A
0000000000000000000000000000000000000
1111111111111111111111111111111111111
0000000000000000000000000000000000000
1111111111111111111111111111111111111
64
f= (74)
Re
for laminar flow (Re < 2000) and
1 2.51 ks
√ = −2.03 log √ + . (75)
f Re f 3.7D
for turbulent flow. Here, ks is the diameter of the material grains at the
surface of the pipe and Re is the Reynolds number defined by
UD
Re = , (76)
ν
where U is the fluid velocity and ν is the kinematic viscosity.
It is described by the following parameters (to be specified in that order
on the line beneath the *FLUID SECTION,TYPE=GAS PIPE FANNO ADI-
ABATIC or *FLUID SECTION,TYPE=GAS PIPE FANNO ISOTHERMAL
card):
• form factor ϕ
• oil mass flow in the pipe (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
The default gas pipe is adiabatic, i.e. there is no heat exchange with the
pipe. Alternatively, the user may specify that the pipe element is isothermal.
This means that the static temperature does not change within the pipe. In
that case the energy equation in one of the two end nodes of the element is
replaced by an isothermal condition.
The form factor ϕ is only used to modify the friction expression for non-
circular cross sections in the laminar regime as follows:
64
f =ϕ . (77)
Re
154 6 THEORY
Values for ϕ for several cross sections can be found in [14]. For a square
cross section its value is 0.88, for a rectangle with a height to width ratio of 2
its value is 0.97.
Instead of specifying a fixed diameter and length, these measures may also
be calculated from the actual position of given nodes. The version in which
the radius is calculated from the actual distance between two nodes a and b
is described by the following parameters (to be specified in that order on the
line beneath the *FLUID SECTION,TYPE=GAS PIPE FANNO ADIABATIC
FLEXIBLE RADIUS or *FLUID SECTION,TYPE=GAS PIPE FANNO ISOTHER-
MAL FLEXIBLE RADIUS card):
• node number a
• node number b
• L: length of the pipe
• ks : grain diameter at the pipe surface
• form factor ϕ
• oil mass flow in the pipe (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• not used (internally: oil material number)
The version in which the radius is calculated from the actual distance be-
tween two nodes a and b and the length from the actual distance between nodes
a and c is described by the following parameters (to be specified in that order
on the line beneath the *FLUID SECTION,TYPE=GAS PIPE FANNO ADIA-
BATIC FLEXIBLE RADIUS AND LENGTH or *FLUID SECTION,TYPE=GAS
PIPE FANNO ISOTHERMAL FLEXIBLE RADIUS AND LENGTH card):
• node number a
• node number b
• node number c
• ks : grain diameter at the pipe surface
• form factor ϕ
• oil mass flow in the pipe (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• not used (internally: oil material number)
Although a gas pipe looks simple, the equations for compressible flow in
a pipe are quite complicated. Here, the derivation is first presented for the
adiabatic case. Starting from the energy equation (47) and using the relation
dh = cp dT for an ideal gas one arrives at:
6.4 Fluid Section Types: Gases 155
p vdt p+dp
v v+dv
dx
Figure 91: Differential pipe element
cp dT + vdv = 0. (78)
By means of the definition of the Mach number (41) one gets
dT dv
= −(κ − 1)M 2 . (79)
T v
Because of the ideal gas equation p = ρrT this can also be written as:
dp dv
= −[1 + (κ − 1)M 2 ] . (80)
p v
Looking at Figure (91) the momentum equation can be derived by applying
Newton’s second law, which states that the sum of the forces is the change of
momentum (D is the diameter of the pipe, A its cross section):
dv 2 λρ 2
ρ + dp + v dx = 0. (83)
2 D2
One can remove the density by means of the gas equation arriving at:
dv dp λ 2 dx
v2 + rT + v = 0. (84)
v p 2 D
Combining this with what was obtained through the energy equation (80)
leads to (removing p in this process):
156 6 THEORY
M2
dv κλ dx
− = 0. (85)
v 2 1 − M2 D
This equation contains both M and v. We would like to get an equation
with only one of these parameters. To this end the equation defining the Mach
number (41) is differentiated and the energy equation in the form (78) is used
to remove T, leading to:
dM dv 1
= 1 + (κ − 1)M 2 . (86)
M v 2
In that way, the previous equation can be modified its final form:
κM 2
dM κ−1 2 dx
= 1 + M λ , (87)
M 2(1 − M 2 ) 2 D
expressing the Mach number as a function of the distance along the pipe. This
equation tells us that for subcritical flow (M < 1) the Mach number increases
along the pipe whereas for supercritical flow (M > 1) the Mach number de-
creases. Consequently, the flows tends to M = 1 along the pipe. Notice that by
assigning the sign of v to λ the above equation also applies to negative velocities.
Substituting Z = M 2 and integrating both sides yields:
Z2 L
1−Z 1 dx
Z Z
dZ = λ . (88)
Z1 κZ 2 (1 + κ−1
2 Z) 0 D
Since (partial fractions)
1−Z κ+1 1 1 κ−1 κ+1 1
=− + 2+ , (89)
Z 2 (1 + κ−1
2 Z) 2 Z Z 2 2 (1 + κ−1
2 Z)
dp λ 2 dx
+ v = 0. (91)
ρ 2 D
Integrating yields:
6.4 Fluid Section Types: Gases 157
s
2D (p1 − p2 )
v= , (92)
λL ρ
or
r
2D
ṁ = A ρ(p1 − p2 ), (93)
λL
which can finally also be written as:
r
2D p1
ṁ = A (p1 − p2 ). (94)
λL rT1
For an estimate of the mass flow in the gas pipe the above static variables p and
T are replaced by the total variables pt and Tt , respectively. Equation (90) is
the governing equation for an adiabatic gas pipe. In order to apply the Newton-
Raphson procedure (linearization of the equation) with respect to the variables
Tt1 , pt 1 , ṁ, Tt2 and pt 2 , this equation is first derived w.r.t M1 and M2 (denoting
the equation by f ; the derivation is slightly tedious but straightforward):
M12 − 1
∂f 2
= , (95)
∂M1 κM1 M12 (1 + bM12 )
and
1 − M22
∂f 2
= , (96)
∂M2 κM2 M22 (1 + bM22 )
where b = (κ − 1)/2. Now, M at position 1 and 2 is linked to Tt , pt and ṁ at
the same location through the general gas equation:
apt
ṁ = √ M (1 + bM 2 )c , (97)
Tt
√ √
where a = A κ/ r and c = −(κ + 1)/(2(κ − 1)). Careful differentiation of this
equation leads to the surprisingly simple expression:
dṁ dpt dTt
dM = e −e +e , (98)
ṁ pt 2Tt
where
M (1 + bM 2 )
e= . (99)
1 + bM 2 (1 + 2c)
Finally, the chain rule leads to the expressions looked for:
∂f ∂f ∂M1
= · , (100)
∂Tt 1 ∂M1 ∂Tt 1
etc.
For the isothermal pipe the ideal gas equation leads to:
158 6 THEORY
dp dρ
= (101)
p ρ
and from the mass conservation, Equation (52) one gets:
dp dv
=− . (102)
p v
Furthermore, the definition of the Mach number yields:
dv dM
= , (103)
v M
finally leading to:
dv dM dp dρ
= =− =− . (104)
v M p ρ
By substituting these relationships and the definition of the Mach number one
can reduce all variables in Equation (84) by the Mach number, leading to:
dM κλ dx
(1 − κM 2 ) = . (105)
M3 2 D
√
This equation shows that for an isothermal gas pipe the flow tends to M = 1/ κ
and not to 1 as for the adiabatic pipe. Substituting Z = M 2 and integrating
finally yields:
2
1 1 1 M1 L
2 − 2 + ln 2 =λ . (106)
κ M1 M2 M2 D
The above equation constitutes the element equation of the isothermal gaspipe.
Applying the Newton-Raphson procedure requires the knowledge of the deriva-
tives w.r.t. the basis variables. The procedure is similar as for the adiabatic
gas pipe. The derivative of the element equaton w.r.t. M1 and M2 is easily
obtained (denoting the left side of the above equation by f ):
∂f 2
= (κM12 − 1) (107)
∂M1 κM13
and
∂f 2
= (1 − κM22 ). (108)
∂M2 κM23
The use of an isothermal gas pipe element, however, also requires the change
of the energy equation. Indeed, in order for the gas pipe to be isothermal heat
has to be added or subtracted in one of the end nodes of the element. The
calculation of this heat contribution is avoided by replacing the energy equa-
tion in the topologically downstream node (or, if this node has a temperature
boundary condition, the topologically upstream node) by the requirement that
the static temperature in both end nodes of the element has to be the same.
6.4 Fluid Section Types: Gases 159
Tt = T (1 + bM 2 ), (109)
where b = (κ − 1)/2. Differentiation yields:
dM 2 1 + κ−1
2 M
2
rω 2 κ + 1
dA λdx 2
= −2 − dx + κM , (111)
M2 1 − M2 A cp T t κ − 1 D
where r is the shortest distance from the rotational axis, ω is the rotational
speed and A is the local cross section of the pipe. Assuming that the radius R
of the pipe varies linearly along its length 0 <= x <= L:
(L − x)R1 + xR2
R(x) = , (112)
L
one obtains for dA/A:
dA 2(R2 − R1 )dx
= . (113)
A (L − x)R1 + xR2
Taking for r, R, D and Tt the mean of their values at the end of the pipe
one obtains for the second term in Equation (111) [α + βM 2 ]dx where
ω2
−8(D2 − D1 ) κ+1
α= − (r1 + r2 ) (114)
L(D1 + D2 ) cp (Tt 1 + Tt 2 ) κ − 1
and
2λκ
β= . (115)
D1 + D2
160 6 THEORY
1 + κ−1
2 Z
dZ
= (α + βZ)dx, (116)
Z 1−Z
or (using partial fractions):
a b c
+ + = dx, (117)
Z α + βZ 1 + κ−1
2 Z
where
1
a= , (118)
α
2(α + β)β
b= (119)
α[α(κ − 1) − 2β]
and
−(1 + κ)(1 − κ)
c= . (120)
2[α(1 − κ) + 2β]
From the above equations one notices that for a non-rotating pipe with
constant cross section α = 0 and a and b become undeterminate. Therefore,
although the gas pipe Fanno is a special case, the present formulas cannot be
used for this element type. Integrating Equation (117) leads to:
κ−1
1+ 2 Z2
Z2 b α + βZ2 2c
f := a ln + ln + ln κ−1 = L. (121)
Z1 β α + βZ1 κ−1 1+ 2 Z1
and
" #
∂f a b c
= + + 2M2 . (123)
∂M2 Z2 (α + βZ2 ) 1 + κ−1
2 Z2
rω 2
dTt = dx. (124)
cp
For a linear varying radius integration leads to:
ω2
r2 − r1 x
Tt − Tt 1 = r1 + x. (125)
cp 2 L
Evaluating this expression for x = L yields the total temperature increase
across the pipe. In order to estimate the total pressure increase (e.g. to arrive
at sensible initial conditions) one can again use the formulas in [32] (discarding
the friction effect):
dpt κ rω 2
= dx. (126)
pt κ − 1 cp T t
Substituting a linear relationship for r and the result just derived for Tt leads
to:
ω2
dpt κ [r1 + (r2 − r1 )x/L] dx
= n o (127)
pt κ−1
cp Tt + ω2 r1 + r2 −r1 x x
1 cp 2 L
h i
Lr1
κ
2 x + r2 −r1 dx
= h i (128)
κ−1 x2 + r2Lr 1 2Lc T
x + ω2 (r2p−rt 11 )
2 −r1
κ 2 2Lr1 2Lcp Tt1
= d ln x + x+ 2 . (129)
κ−1 r2 − r1 ω (r2 − r1 )
Lω 2 r1 + r2 ( κ−1 )
κ
pt 2
= 1+ . (130)
pt 1 cp Tt1 2
It is important to notice that the rotating gas pipe is to be used in the rela-
tive (rotational) system (since the centrifugal force only exists in the rotational
system). If used in the absolute system it has to be preceded by an absolute to
relative element and followed by a relative to absolute element.
162 6 THEORY
The rotating gas pipe is described by the following parameters (to be speci-
fied in that order on the line beneath the *FLUID SECTION, TYPE=ROTATING
GAS PIPE card):
• form factor φ
E1 s2,p2,T2
p1
s1,p1,T1
the maximum entropy increase from state 1 at isobaric conditions. Now we have
s1 = sA and s2 = sB 4 consequently,
sB − sA
ζ1 = (133)
sinlet − sA
and based on the outlet conditions by
sB − sA
ζ2 = . (134)
soutlet − sB
Using Equation (60) one obtains:
pt1
s2 − s1 = r ln , (135)
pt2
pt1
sinlet − s1 = r ln , (136)
p1
pt2
soutlet − s2 = r ln , (137)
p2
from which [87]
ζ1 ζ κ
κ − 1 2 1 κ−1
pt1 pt1
= = 1+ M1 (138)
pt2 p1 2
if ζ is defined with reference to the first section (e.g. for an enlargement, a bend
or an exit) and
ζ2 ζ κ
κ − 1 2 2 κ−1
pt1 pt2
= = 1+ M2 , (139)
pt2 p2 2
if ζ is defined with reference to the second section (e.g. for a contraction).
Using the general gas equation (46) finally leads to (for ζ1 ):
v ! (κ+1)
p u κ−1 − 2ζ κ
ṁ rTt1 u 2 pt1 ζ1 κ pt1 1
√ = t −1 . (140)
Apt1 κ κ−1 pt2 pt2
ṁ2
∆21 F = ζ (142)
2gρ2 A21
6.4 Fluid Section Types: Gases 165
L
111111111111111111111111111111
000000000000000000000000000000
000000000000000000000000000000
111111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111
0000000000000000000
1111111111111111111
0000000000000000000
1111111111111111111
0000000000000000000
1111111111111111111
Dh
1111111111111111111
0000000000000000000
0000000000000000000
1111111111111111111
0000000000000000000
1111111111111111111
000000000000000000000000000000
111111111111111111111111111111
0000000000000000000
1111111111111111111
000000000000000000000000000000
111111111111111111111111111111
000000000000000000000000000000
111111111111111111111111111111
A1 A2
Figure 93: Geometry of a long orifice restrictor
and
ṁ2
∆21 F = ζ , (143)
2gρ2 A22
respectively.
A long orifice is a substantial reduction of the cross section of the pipe over
a significant distance (Figure 93).
There are two types: TYPE=RESTRICTOR LONG ORIFICE IDELCHIK
with loss coefficients according to [40] and TYPE=RESTRICTOR LONG ORI-
FICE LICHTAROWICZ with coefficients taken from [53]. In both cases the long
orifice is described by the following constants (to be specified in that order on
the line beneath the *FLUID SECTION, TYPE=RESTRICTOR LONG ORI-
FICE IDELCHIK or TYPE=RESTRICTOR LONG ORIFICE LICHTAROW-
ICZ card):
• oil mass flow in the restrictor (only if the OIL parameter is used to define
the kind of oil in the *FLUID SECTION card)
111111111111111
000000000000000
000000000000000
111111111111111
00
11
000000000000000
111111111111111
00
11
00
11
00
11
00
11
00
11
00
11
00
11
000000000000000
111111111111111
000000000000000
111111111111111
000000000000000
111111111111111
111111111111111
000000000000000
Dh
000000000000000
111111111111111
000000000000000
111111111111111
00
11
000000000000000
111111111111111
00
11
00
11
00
11
00
11
00
11
00
11
000000000000000
111111111111111
00
11
000000000000000
111111111111111
000000000000000
111111111111111
000000000000000
111111111111111
A1 A2
Figure 94: Geometry of an enlargement
111111111111111
000000000000000
00000
11111
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
00000
11111
00000
11111
00000
11111
00000
11111
00000
11111
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
α11111
00000
Dh
000000000000000
111111111111111
11111
00000
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
00000
11111
00000
11111
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
000000000000000
111111111111111
00000
11111
l
A1 A2
Figure 95: Geometry of a contraction
• chamfer length L.
• chamfer angle α (◦ ).
• oil mass flow in the restrictor (only if the OIL parameter is used to define
the kind of oil in the *FLUID SECTION card)
1111111
0000000
0000000
1111111
0000000
1111111
0000000
1111111
0000000
1111111
0000000
1111111
0000000
1111111
A
0000000
1111111
0000000
1111111
0000000
1111111
0000000
1111111
0000000
1111111
0000000
1111111
Dh A α
11111111
00000000
00000000
11111111
00000000
11111111
a0 00000000
11111111
00000000
11111111
00000000
11111111
00000000
11111111
00000000
11111111
R 00000000
11111111
b0
They apply to circular cross sections. For rectangular cross sections the
constants are as follows (to be specified in that order on the line beneath the
*FLUID SECTION, TYPE=RESTRICTOR BEND IDEL RECT card):
• bend angle α.
• height a0 .
• width b0 .
• oil mass flow in the restrictor (only if the OIL parameter is used to define
the kind of oil in the *FLUID SECTION card)
The loss coefficients are those published by Idelchik [40] and Miller [64].
By specifying the parameter LIQUID on the *FLUID SECTION card the
loss is calculated for liquids. In the absence of this parameter, compressible
losses are calculated.
• length L
• oil mass flow in the restrictor (only if the OIL parameter is used to define
the kind of oil in the *FLUID SECTION card)
L
11
00
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
0000000000000000000
1111111111111111111
00
11
0000000000000000000
1111111111111111111
00
11
0000000000000000000
1111111111111111111
00
11
Dh
11
00
0000000000000000000
1111111111111111111
00
11
0000000000000000000
1111111111111111111
00
11
0000000000000000000
1111111111111111111
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11 A
00
11
00
11
00
11
00
11
00
11
00
11
00
11
00
11
Figure 97: Geometry of a wall orifice
6.4 Fluid Section Types: Gases 171
GAS PIPE
BRANCH JOINT
GAS PIPE
BRANCH JOINT
GAS PIPE
A branch joint of type Idelchik1, Figure 100, can be used if one of the
incoming branches is continued in a straight way and does not change its cross
section [40]. It is characterized by the following constants (to be specified in that
order on the line beneath the *FLUID SECTION, TYPE=BRANCH JOINT
IDELCHIK1 card):
Br
anc
h1
A1
A0
Branch 0
α1
α2
A2
2
ch
an
Br
• angle α1 = 0◦ .
• angle α2 (◦ ).
• oil mass flow in branch 1 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• oil mass flow in branch 2 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
A branch joint of type Idelchik2, Figure 101, can be used if one of the
incoming branches is continued in a straight way but may change its cross
section [40]. It is characterized by the following constants (to be specified in that
order on the line beneath the *FLUID SECTION, TYPE=BRANCH JOINT
IDELCHIK2 card):
A1 A0
Branch 1 Branch 0
α2 ch
2
an A1+A2>A0
Br
A1=A0
A2 α1=0
A1
A0
Branch 1 Branch 0
α2
A1+A2=A0
α1=0
2 A2
ch
an
Br
• angle α1 = 0◦ .
• angle α2 (◦ ).
• oil mass flow in branch 1 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• oil mass flow in branch 2 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
GAS PIPE
BRANCH SPLIT
GAS PIPE
A1
1
ch
an
Br
Branch 0 :inlet α1
α2
A0
Br
an
ch
2
A2
A branch split of type Idelchik1, Figure 104, can be used if the incoming
branch is continued in a straight way and does not change its cross section [40].
It is characterized by the following constants (to be specified in that order on the
line beneath the *FLUID SECTION, TYPE=BRANCH SPLIT IDELCHIK1
card):
A0 A1
Branch 0 Branch 1
Dh0
A1+A2>A0 α2
A1=A0
α1=0 A2
2
Dh
Br
an
ch
2
Figure 104: Geometry of a split fluid section type Idelchik 1
• angle α2 (◦ ).
• hydraulic diameter Dh 0 of A0 .
• hydraulic diameter Dh 2 of A2 .
• oil mass flow in branch 1 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• oil mass flow in branch 2 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• ζ-correction factor k1 for branch 1 (ζef f = k1 ζ). This allows to tune the
ζ value with experimental evidence (default is 1).
• ζ-correction factor k2 for branch 2 (ζef f = k2 ζ). This allows to tune the
ζ value with experimental evidence (default is 1).
• not used (internally: oil material number)
A branch split of type Idelchik2, Figure 105, is used if the outward branches
make an angle of 90◦ with the incoming branch [40]. It is characterized by
the following constants (to be specified in that order on the line beneath the
*FLUID SECTION, TYPE=BRANCH SPLIT IDELCHIK2 card):
A1 A2
Branch 1 Branch 2
Partition
α1 α2
Branch 0
A0
α1=α2=90
• angle α1 = 90◦ .
• angle α2 = 90◦ .
• oil mass flow in branch 1 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• oil mass flow in branch 2 (only if the OIL parameter is used to define the
kind of oil in the *FLUID SECTION card)
• ζ-correction factor k1 for branch 1 (ζef f = k1 ζ). This allows to tune the
ζ value with experimental evidence (default is 1).
• ζ-correction factor k2 for branch 2 (ζef f = k2 ζ). This allows to tune the
ζ value with experimental evidence (default is 1).
A3=A2
α1
A0 A1=A0
α2
A2
• angle α1 = 90◦ .
• angle α2 = 90◦ .
radius r radius r
r/Ct=constant
r.Ct=constant
6.4.20 Vortex
Properties: adiabatic, isentropic, asymmetric
A vortex arises, when a gas flows along a rotating device. If the inertia of
the gas is small and the device rotates at a high speed, the device will transfer
part of its rotational energy to the gas. This is called a forced vortex. It is
characterized by an increasing circumferential velocity for increasing values of
the radius, Figure 107.
Another case is represented by a gas exhibiting substantial swirl at a given
radius and losing this swirl while flowing away from the axis. This is called a
free vortex and is characterized by a hyperbolic decrease of the circumferential
velocity, Figure 107. The initial swirl usually comes from a preceding rotational
device.
The equations for the forced and free vortex are derived from:
1 ∂p C2
= t. (144)
ρ ∂r r
p
= constant, (145)
ρκ
ri
Rotor axis
Revolutions per minute
that the circumferential velocity of the gas varies linear with the radius (Figure
107). Notice that the pressure at the outer radius always exceeds the pressure
at the inner radius, no matter in which direction the flow occurs.
The pressure correction factor η allows for a correction to the theoretical
pressure drop across the vortex and is defined by
∆preal pt − pti
η= , ∆p = o . (148)
∆ptheoretical pti
Finally, the parameter Tflag controls the temperature increase due to the
vortex. In principal, the rotational energy transferred to the gas also leads to
a temperature increase. If the user does not want to take that into account
Tflag = 0 should be selected, else Tflag = 1 or Tflag = −1 should be spec-
ified, depending on whether the vortex is defined in the absolute coordinate
system or in a relative system fixed to the rotating device, respectively. A
relative coordinate system is active if the vortex element is at some point in
the network preceded by an absolute-to-relative gas element and followed by a
relative-to-absolute gas element. The calculated temperature increase is only
correct for Kr = 1. Summarizing, a forced vortex element is characterized by
the following constants (to be specified in that order on the line beneath the
*FLUID SECTION, TYPE=VORTEX FORCED card):
• Tflag
For the free vortex the value of the circumferential velocity Ct of the gas at
entrance is the most important parameter. It can be defined by specifying the
number n of the preceding element, usually a preswirl nozzle or another vortex,
imparting the circumferential velocity. In that case the value N is not used. For
centrifugal flow the value of the imparted circumferential velocity Ct,theorical,i
can be further modified by the swirl loss factor K1 defined by
Ct,real,i − Ui
K1 = . (149)
Ct,theoretical,i − Ui
184 6 THEORY
Disk/stator gap
Flow direction Rshroud
Rmax
1111
0000 1111
0000
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
Stator1111
0000 0000
1111
0000
1111 Disk 0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
0000
1111
0000
1111 0000
1111
0000
1111 0000
1111
0000
1111 Rmin
0000
1111 0000
1111
0000
1111
Revolution
Rotor axis per s
minute
Centrifugal Centripetal
6.4.21 Möhring
A Möhring element is a vortex element for which the characteristics are de-
termined by the integration of a nonlinear differential equation describing the
physics of the problem [67]. It basically describes the flow in narrow gaps be-
tween a rotating and a static device and is more precise than the formulation of
the forced and free vortex element. The geometry is shown in Figure 109 and
consists of a minimum radius, a maximum radius, a value for the gap between
stator and rotor and the shroud radius. It is complemented by the label of the
upstream and downstream node, the rotating speed of the rotor and the value
of the swirl at entrance. The user must choose the centrifugal or centripetal
version of the Moehring element before start of the calculation, i.e. the user
must decide beforehand in which direction the flow will move. If the calculation
detects that the flow is reversed, an error message is issued.
The following constants must be entered (to be specified in that order on the
line beneath the *FLUID SECTION, TYPE=MOEHRING CENTRIFUGAL
card or *FLUID SECTION, TYPE=MOEHRING CENTRIPETAL card):
• d: disk/stator gap
186 6 THEORY
C (gas velocity)
W
U (rotational velocity)
W
W C
C
W
W C
C
component (Figure 110). The velocity of the gas W in the rotating system
satisfies:
W = C − U. (151)
The total temperature in the absolute system is
C2
Tt = T + , (152)
2cp
whereas in the relative system it amounts to
W2
Ttr = T + . (153)
2cp
Combining these equations and using the relationship between the length of the
sides of an irregular triangle (cosine rule) one arrives at:
U 2 − 2U Ct
Tt r = Tt 1 + . (154)
2cp Tt
Assuming adiabatic conditions this leads for the pressure to:
κ
U 2 − 2U Ct κ−1
pt r = pt 1 + . (155)
2cp Tt
Depending on the size of 2Ct compared to the size of U the relative total
temperature will exceed the absolute total temperature or vice versa. This is
illustrated in Figure 111.
188 6 THEORY
U 2 − 2U Ct
Tt = Tt r 1 − . (156)
2cp Tt r
and:
κ
U 2 − 2U Ct κ−1
pt = pt r 1 − . (157)
2cp Ttr
These relationships are taken into account in the following way: the change
in total temperature is taken care of by creating a heat inflow at the downstream
node. For an absolute-to-relative change this heat flow amounts to:
U 2 − 2U Ct
cp (Ttr − Tt )ṁ = ṁ. (158)
2
The total pressure change is taken as element equation. For an absolute-to-
relative change it runs:
κ
U 2 − 2U Ct κ−1
pt out
− 1+ = 0, (159)
pt in 2cp Tt in
κ
U 2 − 2U Ct κ−1
pt out
− 1− = 0. (160)
pt in 2cp Ttin
Ct is taken if and only if n = 0. In all other cases the exit velocity of the
element with label n is taken.
For an relative-to-absolute element the input is identical except that the
type of the element is now RELATIVE TO ABSOLUTE.
6.4.23 In/Out
At locations where mass flow can enter or leave the network an element with
node label 0 at the entry and exit, respectively, has to be specified.
Its fluid section type for gas networks can be any of the available types.
The only effect the type has is whether the nonzero node is considered to be
a chamber (zero velocity and hence the total temperature equals the static
temperature) or a potential pipe connection (for a pipe connection node the total
temperature does not equal the static temperature). The pipe connection types
are GASPIPE, RESTRICTOR except for RESTRICTOR WALL ORIFICE and
USER types starting with UP, all other types are chamber-like. A node is a pipe
connection node if exactly two gas network elements are connected to this node
and all of them are pipe connection types.
For chamber-like entries and exits it is strongly recommended to use the type
INOUT, to be specified on the *FLUID SECTION card. For this type there are
no extra parameters.
• first element
Example files: .
190 6 THEORY
• decide whether the element should be pipe-like (i.e. the total temperature
and static temperature at the end nodes differ) or chamber-connecting-
like (i.e. the element connects large chambers and the total and static
temperatures at the end nodes are equal).
• choose a type name. For a pipe-like element the name has to start with
“UP” followed by 5 characters to be choosen freely by the user (UPxxxxx).
For a chamber-connecting-like element it has to start with “U”, followed
by a character unequal to “P” and followed by 5 characters to be choosen
freely by the user (Uyxxxxx, y unequal to “P”).
• decide on the number of constants to describe the element. This number
has to be specified on the *FLUID SECTION card with the CONSTANTS
parameter.
• add an entry in the if-construct in subroutine user network element.f. No-
tice that the type labels in the input deck (just as everything else, except
file names) are converted into upper case when being read by CalculiX.
• write an appropriate user network element subroutine, e.g. user network element pxxxxx.f
or user network element yxxxxx.f. Details can be found in Section 8.8.
This routine describes how the total pressure at the end nodes,the total
temperature at the end nodes and the mass flow through the element are
linked.
• add an entry in the if-construct in subroutine calcgeomelemnet.f (marked
by START insert and END insert). This routine is used to determine the
cross section area of the element (is used to calculate the static tempera-
ture from the total temperature).
• add an entry in the if-construct in subroutine calcheatnet.f (marked by
START insert and END insert). This routine is used to calculate the heat
generation e.g. due to centrifugal forces.
n2 ṁ2 L
∆21 F = , (161)
ρ2 A2 R4/3
where n is the Manning coefficient (unit: time/length1/3 ), ṁ is the mass
flux, L is the length of the pipe, ρ is the liquid density, A is the cross section of
the pipe and R is the hydraulic radius defined by the area of the cross section
divided by its circumference (for a circle the hydraulic radius is one fourth of
the diameter). The following constants have to be specified on the line beneath
the *FLUID SECTION, TYPE=PIPE MANNING card (internal element label:
DLIPIMA):
The length of the pipe is determined from the coordinates of its end nodes.
Typical values for n are n = 0.013s/m1/3 for steel pipes and n = 0.015s/m1/3
for smooth concrete pipes (these values are for water. Notice that, since the
dynamic viscosity does not show up explicitly in the Manning formula, n may
be a function of the viscosity).
By specifying the addition FLEXIBLE in the type label the user can cre-
ate a flexible pipe. In that case the user specifies two nodes, the distance
between them being the radius of the pipe. These nodes have to be genuine
structural nodes and should not belong to the fluid network. The distance is
calculated from the location of the nodes at the start of the calculation mod-
ified by any displacements affecting the nodes. Consequently, the use of the
*COUPLED TEMPERATURE-DISPLACEMENT keyword allows for a cou-
pling of the deformation of the pipe wall with the flow in the pipe. The follow-
ing constants have to be specified on the line beneath the *FLUID SECTION,
192 6 THEORY
• Manning coefficient n ≥ 0
f ṁ2 L
∆21 F = , (162)
2gρ2 A2 D
where f is the White-Colebrook coefficient (dimensionless), ṁ is the mass
flux, L is the length of the pipe, g is the gravity acceleration (9.81m/s2 ), A
is the cross section of the pipe and D is the diameter. The White-Colebrook
coefficient satisfies the following implicit equation:
1 2.51 ks
√ = −2.03 log √ + . (163)
f Re f 3.7D
Here, ks is the diameter of the material grains at the surface of the pipe and
Re is the Reynolds number defined by
UD
Re = , (164)
ν
where U is the liquid velocity and ν is the kinematic viscosity. It satisfies
ν = µ/ρ where µ is the dynamic viscosity.
The following constants have to be specified on the line beneath the *FLUID SECTION,
TYPE=PIPE WHITE-COLEBROOK card (internal element label: DLIPIWC):
• hydraulic diameter of the cross section (4 times the area divided by the
perimeter, > 0)
64
f =ϕ . (165)
Re
Values for ϕ for several cross sections can be found in [14]. For a square
cross section its value is 0.88, for a rectangle with a height to width ratio of 2
its value is 0.97.
By specifying the addition FLEXIBLE in the type label the user can cre-
ate a flexible pipe. In that case the user specifies two nodes, the distance
between them being the radius of the pipe. These nodes have to be genuine
structural nodes and should not belong to the fluid network. The distance is
calculated from the location of the nodes at the start of the calculation mod-
ified by any displacements affecting the nodes. Consequently, the use of the
*COUPLED TEMPERATURE-DISPLACEMENT keyword allows for a cou-
pling of the deformation of the pipe wall with the flow in the pipe. The follow-
ing constants have to be specified on the line beneath the *FLUID SECTION,
TYPE=PIPE WHITE-COLEBROOK FLEXIBLE card (internal element label:
DLIPIWCF):
ṁ2
∆21 F = ζ , (166)
2gρ2 A21
194 6 THEORY
A1 A2
• A1 > 0
• A2 (≥ A1 )
ṁ2
∆21 F = ζ , (167)
2gρ2 A22
where ζ is a head loss coefficient depending on the ratio A2 /A1 , ṁ is the mass
flow, g is the gravity acceleration and ρ is the liquid density. A1 and A2 are the
larger and smaller cross section, respectively. Notice that this formula is only
6.5 Fluid Section Types: Liquids 195
A A
1 2
valid for ṁ ≥ 0. For a reverse mass flow, the formulas for a pipe enlargement
have to be taken. Values for ζ can be found in file “liquidpipe.f”.
The following constants have to be specified on the line beneath the *FLUID SECTION,
TYPE=PIPE CONTRACTION card (internal element label: DLIPICO):
• A1 > 0
• A2 (≤ A1 , > 0)
ṁ2
∆21 F = ζ , (168)
2gρ2 A2
where ζ is a head loss coefficient depending on the ratio A0 /A, ṁ is the mass
flow, g is the gravity acceleration and ρ is the liquid density. A0 and A are the
cross section of the entrance and of the pipe, respectively. Values for ζ can be
found in file “liquidpipe.f”.
The following constants have to be specified on the line beneath the *FLUID SECTION,
TYPE=PIPE ENTRANCE card (internal element label: DLIPIEN):
• A>0
196 6 THEORY
A A
0
• A0 (≤ A, > 0)
The gravity acceleration must be specified by a gravity type *DLOAD card
defined for the elements at stake. The material characteristic ρ can be defined
by a *DENSITY card.
ṁ2
∆21 F = ζ , (169)
2gρ2 A2
where ζ is a head loss coefficient depending on the ratio A0 /A, ṁ is the mass
flow, g is the gravity acceleration and ρ is the liquid density. A0 and A are the
cross section of the diaphragm and of the pipe, respectively. Values for ζ can
be found in file “liquidpipe.f”.
The following constants have to be specified on the line beneath the *FLUID SECTION,
TYPE=PIPE DIAPHRAGM card (internal element label: DLIPIDI):
• A>0
• A0 (≤ A, > 0)
The gravity acceleration must be specified by a gravity type *DLOAD card
defined for the elements at stake. The material characteristic ρ can be defined
by a *DENSITY card.
6.5 Fluid Section Types: Liquids 197
A A0 A
ṁ2
∆21 F = ζ , (170)
2gρ2 A2
where ζ is a head loss coefficient depending on the bend angle α and the
ratio of the bend radius to the pipe diameter R/D, ṁ is the mass flow, g is the
gravity acceleration and ρ is the liquid density. A is the cross section of the
pipe. Values for ζ can be found in file “liquidpipe.f”.
The following constants have to be specified on the line beneath the *FLUID SECTION,
TYPE=PIPE BEND card (internal element label: DLIPIBE):
• A>0
• R/D (≥ 1)
• α (in ◦ ), > 0
• ξ (0 ≤ ξ ≤ 1)
α
A D
R
A
gate valve a
D
x
ṁ2
∆21 F = ζ , (171)
2gρ2 A2
where ζ is a head loss coefficient depending on the ratio α = x/D, ṁ is the
mass flow, g is the gravity acceleration and ρ is the liquid density. A is the cross
section of the pipe, x is a size for the remaining opening (Figure 117) and D is
the diameter of the pipe. Values for ζ can be found in file “liquidpipe.f”.
The following constants have to be specified on the line beneath the *FLUID SECTION,
TYPE=PIPE GATE VALVE card (internal element label: DLIPIGV):
• A>0
• α (0.125 ≤ α ≤ 1)
6.5.9 Pump
A pump is characterized by a total head increase versus total flow curve (Figure
118). The total head h is defined by:
p
h=z+ , (172)
ρg
where z is the vertical elevation, p is the pressure, ρ is the liquid density and
g is the value of the earth acceleration. The total flow Q satisfies:
Q = ṁ/ρ, (173)
where ṁ is the mass flow. The pump characteristic can be defined under-
neath a *FLUID SECTION,TYPE=LIQUID PUMP by discrete data points on
the curve (internal element label: DLIPU). The data points should be given
in increasing total flow order and the corresponding total head values must be
decreasing. No more than 10 pairs are allowed. In between the data points Cal-
culiX performs an interpolation (solid line in Figure 118). For flow values outside
the defined range an extrapolation is performed, the form of which depends on
the precise location of the flow (dashed lines in Figure 118). For positive flow
200 6 THEORY
∆h
α
values inferior to the lowest flow data point, the total head corresponding to
this lowest flow data point is taken (horizontal dashed line). For negative flow
values the total head sharply increases (α = 0.0001) to simulate the zero-flow
conditions of the pump in that region. For flow values exceeding the largest
flow data point the total head decreases sharply with the same tangent α.
The gravity acceleration must be specified by a gravity type *DLOAD card
defined for the elements at stake. The material characteristic ρ can be defined
by a *DENSITY card.
The liquid is defined by the following parameters (to be specified in that or-
der on the line beneath the *FLUID SECTION, TYPE=LIQUID PUMP card):
• not used
• X1
• Y1
• X2
• Y2
• ... (maximum 16 entries per line, use more lines if you want to define more
than 7 pairs, maximum 9 pairs in total)
θ θ
b
θ θ h
b
φ
6.5.10 In/Out
At locations where mass flow can enter or leave the network an element with
node label 0 at the entry and exit, respectively, has to be specified. Its fluid
section type for liquid pipe networks must be PIPE INOUT, to be specified on
the *FLUID SECTION card. For this type there are no extra parameters.
hd (B) B
h
hg
A
sluice
gate
• the width b
• the trapezoid angle θ
• the length L (if L ≤ 0 the length is calculated from the coordinates of the
end nodes belonging to the element)
• the slope S0 = sin φ (if S0 < −1 the slope is calculated from the coordi-
nates of the end nodes belonging to the element)
• the grain diameter ks for the White-Colebrook law or the Manning con-
stant n for the Manning law (in the latter case the user has to specify the
parameter MANNING on the *FLUID SECTION card)
backwater curve, but it does not have to. If the lower point of the gate is higher
than the fluid surface, it will not be part of the backwater curve.
If the gate door touches the water and the water curve is a frontwater curve
(curve A in Figure 120) the volumetric flow Q is given by (assuming θ = 0)
r q
Q = bhg 2g(h − hg 1 − S02 ), (174)
if the gate door does not touch the water and the water curve is a frontwater
curve the volumetric flow Q is given by
r q
Q = bhc 2g(h − hc 1 − S02 ), (175)
where hc is the critical depth. The critical depth is the value of hc in the
above equation for which Q is maximal. For a rectangular cross secton hc =
2h/3. If the gate door touches the water and the water curve is a backwater
curve (governed by downstream boundary conditions, curve B in Figure 120))
the volumetric flow is given by
r q
Q = bhg 2g(h − hd 1 − S02 ). (176)
Finally, if the gate door does not touch the water and the water curve is a
backwater curve the volumetric flow is given by
r q
Q = bhd 2g(h − hd 1 − S02 ). (177)
The following constants have to be specified on the line beneath the *FLUID
SECTION,TYPE=CHANNEL SLUICE GATE card (the width, the trapezoid
angle, the slope and the grain diameter should be the same as for the down-
stream element immediately next to the sluice gate; they are needed for the
calculation of the critical height and normal height):
• the width b
• the trapezoid angle θ
• not used
• the slope S0 = sin φ, −1 < S0 < 1 (for this element the slope must be
given explicitly and is not calculated from the coordinates of the end
nodes belonging to the element)
• the grain diameter ks for the White-Colebrook law or the Manning con-
stant n for the Manning law (in the latter case the user has to specify the
parameter MANNING on the *FLUID SECTION card)
• the height of the gate door hg
critical depth
h
p
L
L
6.6.3 Weir
A wear is a structure as in Figure 121 at the upstream end of a channel. The
weir can occur in different forms such as broad-crested weirs (left picture in
the Figure) and sharp-crested weirs (right picture in the Figure). The wear
element in CalculiX can be used to simulate the part of the wear to the left of
the highest point, which is the point at which critical flow is observed. The part
to the right of this point (denoted by “L” in the figure) has to be modeled by
a straight channel element with high slope or by a step element with negative
step size (i.e. drop).
The volumetric flow Q can be characterized by a law of the form
C 3/2
C ∗ = √ (3/2) . (180)
g
The following constants have to be specified on the line beneath the *FLUID
SECTION,TYPE=CHANNEL WEIR card (the width, the trapezoid angle, the
slope and the grain diameter should be the same as for the downstream element
immediately next to the weir; they are needed for the calculation of the critical
height and normal height):
6.6 Fluid Section Types: Open Channels 205
• the width b
• not used
• the slope S0 = sin φ, −1 < S0 < 1 (for this element the slope must be
• the grain diameter ks for the White-Colebrook law or the Manning con-
stant n for the Manning law (in the latter case the user has to specify the
parameter MANNING on the *FLUID SECTION card)
A wear can only be used at the upstream end of a channel. A wear in the
middle of a channel has to be modeled by a step followed by a drop.
6.6.4 Reservoir
A reservoir is a downstream boundary condition. The element immediately
upstream should be a straight channel element. The following constants have
to be specified on the line beneath the *FLUID SECTION,TYPE=CHANNEL
RESERVOIR card:
• the width b
• not used
• the slope S0 = sin φ, −1 < S0 < 1 (for this element the slope must be
given explicitly and is not calculated from the coordinates of the end
nodes belonging to the element)
• the grain diameter ks for the White-Colebrook law or the Manning con-
stant n for the Manning law (in the latter case the user has to specify the
parameter MANNING on the *FLUID SECTION card)
The width, the trapezoid angle, the slope and the grain diameter are needed
to calculate the critical and normal depth. They should be the same as the
straight channel element immediately upstream of the reservoir.
The water depth in the downstream node of a reservoir element must be
defined by the user by means of a *BOUNDARY card (degree of freedom 2).
b b
1 2
h
subcritical flow
E/cos ϕ
before contraction
after contraction
h max
supercritical flow
6.6.5 Contraction
The geometry of a contraction is shown in Figure 122 (view from above). The
flow is assumed to take place from left to right. To calculate the fluid depth
following a contraction based on the fluid depth before the contraction (or vice
versa) the specific energy is used (cf. Section 6.9.18). At a contraction the
channel floor elevation does not change, so the specific energy after the contrac-
tion minus the specific energy before the contraction amounts to the head loss.
Assuming at first no head loss, the specific energies are the same.
Figure 123 shows Q(h) for a fixed specific energy before and after a contrac-
tion and assuming a rectangular cross section. Since for a rectangular section
p
Q = bh 2g(E − h cos ϕ), (181)
the curve after the contraction is just scaled in Q-direction. From the figure
we notice that due to the contraction the fluid depth increases if the flow is
supercritical and decreases if it is subcritical. The inverse is true for an enlarge-
ment. Writing the above expression before and after the contraction for the
more general case of a trapezoidal section:
p p
A1 2g(E − h1 cos ϕ) = A2 2g(E − h2 cos ϕ), (182)
one arrives at:
p
A2 (E − h1 cos ϕ)
= p . (183)
A1 (E − h2 cos ϕ)
This means that if h2 > h1 then A2 > A1 and vice versa. Due to the
conservation of mass we then find that if h2 > h1 then U2 < U1 and vice versa.
So the fluid velocity decreases for supercritical flow and increases for subcritical
flow at a contraction.
Now, if the contraction is strong it can happen that the new specific energy
line does not have an intersection with the volumetric flow at stake (dashed
line in Figure 124). Assume the flow before the contraction is supercritical
(point 1 in the figure). Then, to solve the problem of a lacking intersection
the specific energy after the contraction is increased so that the energy line
barely touches the volumetric flow. This takes place for the critical depth of
this energy line, since it is at this height that the flow is maximal and the flow
only increases its energy as much as barely needed. So after the contraction the
flow is characterized by point 2. In downstream direction it is the start of a
supercritical frontwater curve within the contraction. In upstream direction it
is the first point of a subcritical backwater curve, for which looking in upstream
direction the contraction looks like an enlargement. Therefore, the upstream
condition of the contraction is now represented by point 1* (the width has
increased and the energy line is scaled by a factor exceeding one). This point
will be connected to the original frontwater curve ahead of the contraction by
a hydraulic jump.
208 6 THEORY
after contraction
2
h max
1
before contraction
Figure 124: Specific energy increase to cope with the upstream volumetric flow
U22 − U12 )
α
∆F = , (184)
π 2
where −π/2 ≤ α ≤ 0 is the contraction angle in radians (tan α = (b2 −b1 )/L,
where L is the length of the contraction). For supercritical flow U2 < U1 and
consequently:
U12 − U22 )
α
∆F = − , (185)
π 2g
leading to the following relation between the upstream and downstream spe-
cific energy:
or
α U12 α U2
h1 cos ϕ + (1 + ) = h2 cos ϕ + (1 + ) 2 . (187)
π 2g π 2g
This means that the head loss can be taken into account by replacing g in
the specific energy by πg/(π + α).
For subcritical flow U1 < U2 and g has to be replaced by πg/(π − α).
The following constants have to be specified on the line beneath the *FLUID
SECTION,TYPE=CHANNEL CONTRACTION card:
• width of the channel at node 1 (first node in the topology of the element)
• width of the channel at node 3 (third node in the topology of the element)
• not used
• the slope S0 = sin φ, −1 < S0 < 1 (for this element the slope must be
given explicitly and is not calculated from the coordinates of the end
nodes belonging to the element)
6.6.6 Enlargement
The geometry of an enlargement is shown in Figure 125 (view from above).
Similar to the case of a contraction, the fluid depth following an enlargement
is calculated based on the depth before the enlargement (for supercritical flow)
or vice versa (for subcritical flow) using the specific energy and Figure 123
can be reused by replacing “after contraction” by “before enlargement” and
“before contraction” by “after enlargement”. For supercritical flow the fluid
depth decreases and the velocity increases at an enlargement, for subcritical
flow the fluid depth increases and the velocity decreases. For subcritical flow,
for which the depth downstream of the enlargement is known, the enlargement
(which is a contraction when looking upstream) may be so large that there is
no intersection with the specific energy curve upstream (cf. Figure 124 in which
“after contraction” is replaced by “before enlargement” etcetera). In that case
the specific energy upstream of the enlargement is increased up to the point
that the curve barely touches the given volumetric flow (for the critical depth).
This will lead to supercritical flow within the enlargement and a subsequent
210 6 THEORY
b1 b2
jump downstream. Another way of looking at that is that the friction in the
enlargement has to increase (by a smaller depth) in order to compensate the
higher specific energy upstream of the enlargement.
The head loss at an enlargement can be approximated by:
2
U2 − U12 )
∆F = k . (188)
2
For supercritical flow this amounts to replacing g by g/(1+k) in the definition
of the specific energy and for subcritical flow by replacing g by g/(1 − k). Values
of k are 0, 0.27, 0.41, 0.68, 0.87 and 0.87 for α = 0., 0.25, 0.32, 0.46, 0.79 and
π/2, respectively [12]. In between, linear interpolation is applied. α is defined
by tan α = (b2 − b1 )/L.
The following constants have to be specified on the line beneath the *FLUID
SECTION,TYPE=CHANNEL ENLARGEMENT card:
• width of the channel at node 1 (first node in the topology of the element)
• trapezoidal angle of the channel at node 1
• width of the channel at node 3 (third node in the topology of the element)
• trapezoidal angle of the channel at node 3
• not used
• the length of the enlargement. This is used to calculate the enlargement
angle from tan α = (b2 − b1 )/L (if L ≤ 0 the length is calculated from the
coordinates of the end nodes belonging to the element).
6.6 Fluid Section Types: Open Channels 211
• the slope S0 = sin φ, −1 < S0 < 1 (for this element the slope must be
given explicitly and is not calculated from the coordinates of the end
nodes belonging to the element)
6.6.7 Step
The geometry of a step is the inverse of the drop geometry. Although a step is
really a discontinuity, a small fictitious length an a slope have to be assigned.
For the slope one can take the mean values of the slopes of the adjacent channels.
The following constants have to be specified on the line beneath the *FLUID
SECTION,TYPE=CHANNEL STEP card:
Ui2 U2 U2 U2
hi + = h0 + 0 + αi i − 0 , (190)
2g 2g 2g 2g
where i = 1, 2 denotes one of the joining channels, and αi is the angle between
channel i and the downstream channel, normalized by π. Consequently, it takes
the value 0 for αi = 0 and 1 for αi = π. It is assumed that the mass flow in
the upstream channels is known. In the downstream channel also the velocity
is known (the depth is known since it is a backwater curve). The velocities and
depths in the upstream channels, however, are unknown. Starting with a split
up of the downstream velocity proportional to the mass flow, the dept hi can
be calculated in each of the upstream channels. This allows for an update of
Ui . This procedure is continued until convergence is reached.
6.7 Boundary conditions 213
6.6.10 In/Out
At locations where mass flow can enter or leave the network an element with
node label 0 at the entry and exit, respectively, has to be specified. Its fluid
section type for liquid channel networks must be CHANNEL INOUT, to be
specified on the *FLUID SECTION card. For this type there are no extra
parameters.
If this type of element is connected to exactly one other element type, the
entering mass flow has to be specified in the middle node using a *BOUNDARY
card and, if the calculation is thermal, the temperature at the downstream
node. If the mass flow is exiting the network nothing should be prescribed. If
a In/Out element is connected two elements not of the In/Out type the mass
flow always has to be specified, irrespective whether it is entering or leaving
the network. Furthermore, for a thermal calculation also the temperature has
to be specified as degree of freedom 0 or 11 at the middle node. This is an
exception to the rule that temperatures can only be defined in end nodes due
to the fact that the external end node of a In/Out element has node number
zero. A channel calculation is considered to be thermal if the above temperature
rules are satisfied. Furthermore, or thermal channel calculations the definition
of absolute zero using a *PHYSICAL CONSTANTS card is mandatory.
• per node belonging to the surface at stake, for each degree of freedom
specified by the user (maximum 3) a rigid body equation.
where xi are the locations of the nodes belonging to the coupling surface
and wi are weights taking the area into account for which each of the nodes is
“responsible”. We have:
X
wi = 1. (194)
i
r i = xi − xcg , (195)
and consequently:
X
r i wi = 0. (196)
i
The forces and moments {F u , M u }defined by the user in the reference node
p can be transferred into an equivalent system consisting of the force F = F u
216 6 THEORY
F i := F iF + F iM , (197)
where
F iF = F wi (198)
and
(M × r ′ i )wi
F iM = P ′ 2 (199)
i kr i k wi
(r i · M )M
r ′ i := r i − =: r i − r ′′ i (200)
kM k2
X X
F iF = F wi = F . (201)
i i
X X X
r i × F iF = r i × F wi = wi r i × F = 0. (202)
i i i
P
i (M × r i )wi
X X (M × r ′ i )wi
F iM = P ′ 2 = P ′ 2 = 0. (203)
i i i kr i k wi i kr i k wi
P P
i (r i · r i )M wi i (r i · M )r i wi
X ′ ′
r i × F iM = P ′ 2 − P ′ 2 . (204)
i i kr i k wi i kr i k wi
The last equation deserves some further analysis. The first term on the right
hand side amounts to M since r i · r ′ i = r ′ i · r ′ i . For the analysis of the second
term a carthesian coordinate system consisting of the unit vectors e1 kM, e2
and e3 is created (cf. Figure 126 for a 2-D surface in the 1-2-plane). The
numerator of the second term amounts to:
6.7 Boundary conditions 217
e
2 r’’ i
i
r’
i ri
M 1
cg
e
1
X X
(ri · M )r ′ i wi = (r ′′ i · M )r ′ i wi
i i
X
= ri′′ M r ′ i wi
i
X X
= ri′′ M ri2
′
e2 wi + ri′′ M ri3
′
e3 wi
i i
X X
= M e2 ri′′ ri2
′
wi + M e3 ri′′ ri3
′
wi . (205)
i i
F i = Fj aj + Mj bj , (206)
where
aj := ej wi (207)
and
(ej × r ′ i )wi
bj := P ′ 2 . (208)
i kr i k wi
Notice that the formula for the moments is the discrete equivalent of the
well-known formulas σ = M y/I for bending moments and τ = T r/J for torques
in beams [79].
Now, an equivalent formulation to Equation (206) for the user defined force
F u and moment M u is sought. In component notation Equation (206) runs:
(F i )k = αk · F + βk · M (210)
or
(F i )k = αk · F u + β k · (M u + r × F u ), (211)
where r := p − xcg . This is a linear function of F u and M u :
6.7 Boundary conditions 219
(F i )k = γ k · F u + β k · M u (212)
where
dx = F · dX = R · U · dX, (214)
where F is the deformation gradient, R is the rotation tensor and U is the
right stretch tensor. Applying this to a finite vector extending from the center
of gravity of a knot q to any expanded node pi yields
X
U= λi N i ⊗ N i . (217)
i
Beam knot The expansion of a single beam node leads to a planar set of
nodes. Therefore, the stretch of a knot based on this expansion is reduced to
the stretch along the two principal directions in that plane. The stretch in the
direction of the beam axis is not relevant. Let us assume that T1 is a unit vector
tangent to the local beam axis and E1 , E2 are two unit vectors in the expansion
plane such that E1 · E2 = 0 and E1 × E2 = T1 . Then, the stretch in the plane
can be characterized by vectors T2 and T3 along its principal directions:
U = T1 ⊗ T1 + T2 ⊗ T2 + T3 ⊗ T3
= T1 ⊗ T1 + (ξ 2 cos2 ϕ + η 2 sin2 ϕ)E1 ⊗ E1 + (ξ 2 sin2 ϕ + η 2 cos2 ϕ)E2 ⊗ E2
+ (ξ 2 − η 2 ) cos ϕ sin ϕ(E1 ⊗ E2 + E2 ⊗ E1 ). (220)
Here, θ is a vector along the rotation axis satisfying θ = θn, knk = 1. As-
suming that at some point in the calculation the knot is characterized by
(w0 , θ0 , ϕ0 , ξ0 , η0 ), a change (∆w, ∆θ, ∆ϕ, ∆ξ, ∆η) leads to (cf. Equation
(216)):
∂R
R(θ0 + ∆θ) = R(θ0 ) + · ∆θ + ..., (223)
∂θ θ0
and similar for U and keeping linear terms only leads to the following equation:
6.7 Boundary conditions 221
" #
∂R
∆u =∆w + · ∆θ · U (ϕ0 , ξ0 , η0 ) · (p − q)
∂θ θ0
" #
∂U ∂U ∂U
+ R(θ0 ) · ∆ϕ + ∆ξ + ∆η · (p − q)
∂ϕ ϕ0 ∂ξ ξ0 ∂η η0
Shell knot The expansion of a shell node leads to a set of nodes lying on a
straight line. Therefore, the stretch tensor U is reduced to the stretch along
this line. Let T1 be a unit vector parallel to the expansion and T2 and T3 unit
vectors such that T2 · T3 = 0 and T1 × T2 = T3 . Then U can be written as:
U = αT1 ⊗ T1 + T2 ⊗ T2 + T3 ⊗ T3 (225)
leading to one stretch parameter α. Since the stretch along T2 and T3 is imma-
terial, Equation (225) can also be replaced by
" #
∂R
∆u =∆w + α0 · ∆θ · (p − q) + ∆αR(θ0 ) · (p − q)
∂θ θ0
second order moments about the center of gravity. The principal values of the
second order moment matrix can be used to catalogue the dimensionality of the
nodal cloud: if the lowest two principal values are zero the dimensionality is one
(i.e. the nodes lie on a line as for the shell knot), if only the lowest one is zero the
dimensionality is two (i.e. the nodes lie in a plane as for a beam knot). Else,
the dimensionality is three. If the dimensionality corresponds to the highest
dimensionality of the single elements involved, the formulation corresponding
to that dimensionality is used.
If the dimensionality of the nodal cloud exceeds the highest dimensionality
of the single elements, the shell knot formulation (isotropic expansion) is used.
The reason for this is that the knot is supposed to be physically rigid, i.e. the
relative angular position of the constituing elements should not change during
deformation. Using the beam knot formulation leads to anisotropic stretching,
which changes this relative angular position.
dependent nodes
independent faces
Figure 127: Definition of the dependent nodal surface and the independent
element face surface
generated consisting of the dependent node and all vertex nodes belonging to the
independent face (Figure 128). Depending of the kind of face the contact spring
element contains 4, 5, 7 or 9 nodes. The properties of the spring are defined
by a *SURFACE INTERACTION definition, whose name must be specified on
the *CONTACT PAIR card.
The user can determine how often during the calculation the pairing of the
dependent nodes with the independent faces takes place. If the user specifies
the parameter SMALL SLIDING on the *CONTACT PAIR card, the pairing is
done once per increment. If this parameter is not selected, the pairing is checked
every iteration for all iterations below 9, for iterations 9 and higher the contact
elements are frozen to improve convergence. Deactivating SMALL SLIDING is
useful if the sliding is particularly large.
The *SURFACE INTERACTION keyword card is very similar to the *MATERIAL
card: it starts the definition of interaction properties in the same way a *MATE-
RIAL card starts the definition of material properties. Whereas material prop-
erties are characterized by cards such as *DENSITY or *ELASTIC, interaction
properties are denoted by the *SURFACE BEHAVIOR and the *FRICTION
card. All cards beneath a *SURFACE INTERACTION card are interpreted
as belonging to the surface interaction definition until a keyword card is en-
countered which is not a surface interaction description card. At that point, the
surface interaction description is considered to be finished. Consequently, an in-
teraction description is a closed block in the same way as a material description,
Figure 3.
The *SURFACE BEHAVIOR card defines the linear (actually quasi bilinear
as illustrated by Figure 130), exponential, or piecewice linear normal (i.e. locally
perpendicular onto the master surface) behavior of the spring element. The
pressure p exerted on the independent face of a contact spring element with
exponential behavior is given by
p = p0 exp(βd), (228)
ln 100
β= . (229)
c0
The pressure curve for p0 = 1 and c0 = 0.5 looks like in Figure 129. A large
value of c0 leads to soft contact, i.e. large penetrations can occur, hard contact
is modeled by a small value of c0 . Hard contact leads to slower convergence than
soft contact. If the distance of the slave node to the master surface exceeds c0
no contact spring element is generated. For exponential behavior the user has
to specify c0 and p0 underneath the *SURFACE BEHAVIOR card.
6.7 Boundary conditions 225
1.5
pressure ([F]/[L]**2)
0.5
0
-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1
overclosure ([L])
100
80
60
pressure ([F]/[L]**2)
40
20
-20
-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1
overclosure ([L])
µp
The friction can be redefined in all but the first step by the *CHANGE FRICTION
keyword card. In the same way contact pairs can be activated or deactivated in
all but the first step by using the *MODEL CHANGE card.
If CalculiX detects an overlap of the contacting surfaces at the start of a
step, the overlap is completely taken into account at the start of the step for
a dynamic calculation (*DYNAMIC or *MODAL DYNAMIC) whereas it is
linearly ramped for a static calculation (*STATIC).
Finally a few useful rules if you experience convergence problems:
contactelements stα inβ atγ itδ (where α is the step number, β the increment
number, γ the attempt number and δ the iteration number) in a file jobname.cel.
When opening the frd file with CalculiX GraphiX this file can be read with the
command “read jobname.cel inp” and visualized by plotting the elements in the
appropriate set. These elements are the contact spring elements and connect
the slave nodes with the corresponding master surfaces. In case of contact these
elements will be very flat. Moving the parts apart (by a translation) will improve
the visualization. Using the screen up and screen down key one can check how
contact evolved during the calculation. Looking at where contact elements have
been generated may help localizing the problem in case of divergence.
The number of contact elements generated is also listed in the screen output
for each iteration in which contact was established anew, i.e. for each iteration
≤ 8 if the SMALL SLIDING parameter was not used on the *CONTACT PAIR
card, else only in the first iteration of each increment.
r = p − q. (231)
The clearance r at this position can be described by
r =r·n (232)
where n is the local normal on the master face. Denoting the nodes belonging
to the master face by qi , i = 1, nm and the local coordinates within the face by
ξ and η, one can write:
X
q= ϕj (ξ, η)qj , (233)
j
∂q ∂q
m= × (234)
∂ξ ∂η
and
m
n= . (235)
kmk
m is the Jacobian vector on the surface. The internal force on node p is now
given by
Fp = −f (r)nap , (236)
6.7 Boundary conditions 229
where f is the pressure versus clearance function selected by the user and ap is
the slave area for which node p is representative. If the slave node belongs to
N contact slave faces i with area Ai , this area may be calculated as:
N
X
ap = Ai /ns i . (237)
i=1
The minus sign in Equation (236) stems from the fact that the internal force
is minus the external force (the external force is the force the master face exerts
on the slave node). Replacing the normal in Equation (236) by the Jacobian
vector devided by its norm and taking the derivative w.r.t. ui , where i can be
the slave node or any node belonging to the master face one obtains:
1 ∂Fp m ∂f ∂ m f ∂m f ∂kmk
=− ⊗ ·r − + m⊗ .
ap ∂ui kmk ∂r ∂ui kmk kmk ∂ui kmk2 ∂ui
(238)
Since
∂ m 1 ∂m r ∂kmk m ∂r
·r = r· − + · , (239)
∂ui kmk kmk ∂ui kmk ∂ui kmk ∂ui
the above equation can be rewritten as
1 ∂Fp ∂f 1 ∂m ∂r ∂kmk
=− m ⊗ r · + m · − r
ap ∂ui ∂r kmk2 ∂ui ∂ui ∂ui
f ∂kmk ∂m
+ n⊗ − . (240)
kmk ∂ui ∂ui
Consequently, the derivatives which are left to be determined are ∂m/∂ui ,
∂r/∂ui and ∂kmk/∂ui.
The derivative of m is obtained by considering Equation (234), which can
also be written as:
X X ∂ϕj ∂ϕk
m= [qj × qk ]. (241)
∂ξ ∂η
j k
Derivation yields (notice that ξ and η are a function of ui , and that ∂qi /∂uj =
δij I) :
2
∂2q
∂m ∂ q ∂q ∂q ∂ξ
= × + × ⊗
∂ui ∂ξ 2 ∂η ∂ξ ∂ξ∂η ∂ui
∂q ∂ 2 q ∂2q
∂q ∂η
+ × + × ⊗
∂ξ ∂η ∂ξ∂η ∂η ∂ui
nm X nm
X ∂ϕj ∂ϕk ∂ϕk ∂ϕj
+ − (I × qk )δij , i = 1, ..nm ; p (242)
j=1
∂ξ ∂η ∂ξ ∂η
k=1
230 6 THEORY
The derivatives ∂ξ/∂ui and ∂η/∂ui on the right hand side are unknown and
will be determined later on. They represent the change of ξ and η whenever
any of the ui is changed, k being the slave node or any of the nodes belonging
to the master face. Recall that the value of ξ and η is obtained by orthogonal
projection of the slave node on the master face.
Combining Equations (231) and (233) to obtain r, the derivative w.r.t. ui
can be written as:
∂r ∂q ∂ξ ∂q ∂η
= δip I − ⊗ + ⊗ + ϕi (1 − δip )I , (243)
∂ui ∂ξ ∂ui ∂η ∂ui
where p represents the slave node.
Finally, the derivative of the norm of a vector can be written as a function
of the derivative of the vector itself:
∂kmk m ∂m
= · . (244)
∂ui kmk ∂ui
The only derivatives left to determine are the derivatives of ξ and η w.r.t.
ui . Requiring that q is the orthogonal projection of p onto the master face
is equivalent to expressing that the connecting vector r is orthogonal to the
vectors ∂q/∂ξ and ∂q/∂η, which are tangent to the master surface.
Now,
∂q
r⊥ (245)
∂ξ
can be rewritten as
∂q
r· =0 (246)
∂ξ
or
" # " #
X X ∂ϕi
p− ϕi (ξ, η)qi · qi = 0. (247)
i i
∂ξ
" #
X ∂ϕi ∂ϕi
dp − qi dξ + qi dη + ϕi dqi · qξ +
i
∂ξ ∂η
" #
X ∂ 2 ϕi ∂ 2 ϕi ∂ϕi
r· 2
qi dξ + qi dη + dqi =0 (248)
i
∂ξ ∂ξ∂η ∂ξ
X
(dp − q ξ dξ − q η dη − ϕi dqi ) · q ξ +
i
X ∂ϕi
r · (q ξξ dξ + q ξη dη + dqi ) = 0. (249)
i
∂ξ
From this ∂ξ/∂qi , ∂ξ/∂p and so on can be determined. Indeed, suppose that
all dqi , i = 1, .., nm = 0 and dpy = dpz = 0. Then, the right hand side of the
above equations reduces to −qξ x dpx and −qη x dpx and one ends up with two
equations in the two unknowns ∂ξ/∂px and ∂η/∂px . Once ∂ξ/∂p is determined
one automatically obtains ∂ξ/∂up since
∂ξ ∂ξ
= , (252)
∂p ∂up
and similarly for the other derivatives. This concludes the derivation of ∂F p /∂ui .
Since
slave slave
p n+1 pn
a)
q n+1(ξ ,η ) qn(ξ ,η )
n n n n
master master
slave slave
pn+1 pn
b)
n n+1, ηn+1 )
q (ξ
q ( ξn+1, ηn+1 )
n+1
master master
Figure 132: Visualization of the tangential differential displacements
6.7 Boundary conditions 233
pn = X + u n , (257)
X
qn = ϕj [Xj + (uj )n ] , (259)
j
X
q n+1 = ϕj [Xj + (uj )n+1 ] , (260)
j
Notice that the local coordinates take the values of time tn (the superscript
m denotes iteration m within the increment). The differential tangential dis-
placement now amounts to:
s = s · n. (263)
Derivation w.r.t. ui satisfies (straightforward differentiation):
∂t ∂s ∂s ∂n
= −n⊗ −s (264)
∂ui ∂ui ∂ui ∂ui
∂s s ∂m s ∂kmk m ∂s
= · − + · (265)
∂ui kmk ∂ui kmk ui kmk ∂ui
and
∂n 1 ∂m 1 ∂kmk
= − m⊗ . (266)
∂ui kmk ∂ui kmk2 ui
234 6 THEORY
∂s
= δip I − ϕi (1 − δip )I. (267)
∂ui
Physically, the tangential contact equations are as follows (written at the
location of slave node p):
t = te + tp . (268)
• a stick law (Kt ≡ λap , where λ is the stick slope and ap the representative
slave area for the slave node at stake) defining the tangential force exerted
by the slave side on the master side at the location of slave node p:
FT = Kt te . (269)
FT
ṫp = γ̇ (271)
kFT k
t = te + tp , (272)
one obtains after taking the time derivative:
FT
γ̇ = ṫ − ṫe , (274)
kFT k
and after multiplying with Kt :
FT
Kt γ̇ = Kt ṫ − Kt ṫe (275)
kFT k
6.7 Boundary conditions 235
Writing this equation at tn+1 , using finite differences (backwards Euler), one
gets:
FT n+1
Kt ∆γn+1 = Kt ∆tn+1 − Kt te n+1 + Kt te n , (276)
kFT n+1 k
where ∆γn+1 ≡ γ̇n+1 ∆t and ∆tn+1 ≡ tn+1 − tn . The parameter Kt is assumed
to be independent of time.
Now, the radial return algorithm will be described to solve the governing
equations. Assume that the solution at time tn is known, i.e. te n and tp n are
known. Using the stick law the tangential forc FT n can be calculated. Now
we would like to know these variables at time tn+1 , given the total differential
tangential displacement tn+1 . At first we construct a trial tangential force
FT trial
n+1 which is the force which arises at time tn+1 assuming that no slip takes
place from tn till tn+1 . This assumption is equivalent to tp n+1 = tp n . Therefore,
the trial tangential force satisfies (cf. the stick law):
FT trial p
n+1 = Kt (tn+1 − t n ). (277)
FT trial p
n+1 = Kt (tn+1 − tn + tn − t n ). (278)
or
FT trial e
n+1 = Kt ∆tn+1 + Kt t n . (279)
FT n+1
FT trial
n+1 = Kt ∆γn+1 + Kt te n+1 , (280)
kFT n+1 k
or
1
FT trial
n+1 = (Kt ∆γn+1 + 1)FT n+1 . (281)
kFT n+1 k
From the last equation one obtains
FT trial
n+1 k FT n+1 (282)
and, since the terms in brackets in Equation (281) are both positive:
kFT trial
n+1 k = Kt ∆γn+1 + kFT n+1 k. (283)
The only equation which is left to be satisfied is the Coulomb slip limit. Two
possibilities arise:
236 6 THEORY
1. kFT trial
n+1 k ≤ µkFN n+1 k.
In that case the Coulomb slip limit is satisfied and we have found the
solution:
FT n+1 = FT trial p
n+1 = Kt (tn+1 − t n ) (284)
and
∂FT n+1
= Kt I. (285)
∂tn+1
2. kFT trial
n+1 k > µkFN n+1 k.
In that case we project the solution back onto the slip surface and require
kFT n+1 k = µkFN n+1 k. Using Equation (283) this leads to the following
expression for the increase of the consistency parameter γ:
kFT trial
n+1 k − µkFN n+1 k
∆γn+1 = , (286)
Kt
which can be used to update tp (by using the slip evolution equation):
FT n+1 FT trial
n+1
∆tp = ∆γn+1 = ∆γn+1 (287)
kFT n+1 k kFT trial
n+1 k
FT n+1 FT trial
n+1
FT n+1 = kFT n+1 k = µkFN n+1 k . (288)
kFT n+1 k kFT trial
n+1 k
Now since
∂kak a ∂a
= · (289)
∂b kak ∂b
and
∂ a 1 a a ∂a
= I− ⊗ · , (290)
∂b kak kak kak kak ∂b
where a and b are vectors, one obtains for the derivative of the tangential
force:
6.7 Boundary conditions 237
∂FT n+1 FN n+1 ∂FN n+1
= µξ n+1 ⊗ ·
∂tn+1 kFN n+1 k ∂tn+1
kFN n+1 k ∂FT trial
n+1
+µ [I − ξ n+1 ⊗ ξ n+1 ] · (291)
kFT trial
n+1 k ∂tn+1 ,
where
FT trial
n+1
ξ n+1 ≡ . (292)
kFT trial
n+1 k
∂FT n+1 ∂FN n+1
= µξn+1 ⊗ −n ·
∂uin+1 ∂uin+1
kFN n+1 k ∂tn+1
+µ trial
[I − ξ n+1 ⊗ ξn+1 ] · Kt (293)
kFT n+1 k ∂uin+1 .
All quantities on the right hand side are known now (cf. Equation (240)
and Equation (264)).
In CalculiX, for node-to-face contact, Equation (255) is reformulated and
simplified. It is reformulated in the sense that q n+1 is assumed to be the
projection of pn+1 and q n is written as (cf. Figure 132, part b))
X
m m
qn = ϕj (ξn+1 , ηn+1 )qj n . (294)
j
Part a) and part b) of the figure are really equivalent, they just represent
the same facts from a different point of view. In part a) the projection on
the master surface is performed at time tn , and the differential displace-
ment is calculated at time tn+1 , in part b) the projection is done at time
tn+1 and the differential displacement is calculated at time tn . Now, the
actual position can be written as the sum of the undeformed position and
the deformation, i.e. p = (X + v)s and q = (X + v)m leading to:
s = (X+v)sn+1 −(X+v)m m m s m m m
n+1 (ξn+1 , ηn+1 )−(X+v)n +(X+v)n (ξn+1 , ηn+1 ).
(295)
Since the undeformed position is no function of time it drops out:
s = v sn+1 − v m m m s m m m
n+1 (ξn+1 , ηn+1 ) − v n + v n (ξn+1 , ηn+1 ) (296)
238 6 THEORY
or:
s = v sn+1 − v m m m s m m m
n+1 (ξn+1 , ηn+1 ) − v n + v n (ξn , ηn ) (297)
m m m m m m
+ v n (ξn+1 , ηn+1 ) − v n (ξn , ηn ) (298)
Now, the last two terms are dropped, i.e. it is assumed that the differential
deformation at time tn between positions (ξnm , ηnm ) and (ξn+1m m
, ηn+1 ) is
neglegible compared to the differential motion from tn to tn+1 . Then the
expression for s simplifies to:
s = v sn+1 − v m m m s m m m
n+1 (ξn+1 , ηn+1 ) − v n + v n (ξn , ηn ), (299)
Figure 134: Integration points resulting from the cutting of one master face (big
square) with several slave faces (small, slanted squares)
Due to the freezing of the match between the slave and master surface within
each increment, large deformations of the structure may require small incre-
ments.
The contact definition in the input deck is similar to the node-to-face penalty
contact except for:
and similarly for the displacements on the master side (nlm is the number of
nodes belonging to the master face ml ):
6.7 Boundary conditions 241
l
nm
ml l
X
u = ψjl um
j . (304)
j
ns
ns X
∂t(n)
XX Z
δusi · s ϕ j da · usj
ϕi
s i=1 j=1 As ∂u
n n
"Z #
s m
XXXX
s ∂t(n) l ml
− δui · ϕi s ψj da · uj
s
l
As ∂u
l i=1 j=1
n n
"Z #
m s
ml l ∂t(n)
XXXX
s
− δui · ψi s ϕj da · uj
s A l ∂u
l i=1 j=1 s
n n
"Z #
m m
ml l ∂t(n) l ml
XXXX
+ δui · ψi s ψj da · uj . (305)
s i=1 j=1 Als ∂u
l
where “Als ” is the part of the slave face s, the orthogonal projection of which
is contained in the master face ml . This leads to the following stiffness contri-
butions (notice the change in sign, since the weak term has to be transferred to
the left hand side of Equation (2.6) in [24]:
∂t(n) K
Z
[K]e(iK)(jM) = − ϕi ϕj da, i ∈ S, j ∈ S (306)
As ∂us M
XZ ∂t(n) K l
[K]e(iK)(jM) = ϕi ψ da, i ∈ S, j ∈ M l (307)
Als ∂us M j
l
XZ ∂t(n) K
[K]e(iK)(jM) = ψil ϕj da, i ∈ M l , j ∈ S (308)
Als ∂us M
l
XZ ∂t(n) K l
[K]e(iK)(jM) = − ψil ψ da, i ∈ M l, j ∈ M l (309)
Als ∂us M j
l
S is the slave face “s” at stake, M l is the master face to which the orthogonal
projection of the infinitesimal slave area da belongs. The integrals in the above
expression are evaluated by numerical integration. One could, for instance,
use the classical Gauss points in the slave faces. This, however, will not give
optimal results, since the master and slave faces do not match and the function
to integrate exhibits discontinuities in the derivatives. Much better results are
242 6 THEORY
obtained by using the integration scheme presented in the previous section and
illustrated in Figure 134. In this way, the above integrals are replaced by:
∂t(n) K ∂t(n) K
Z X
− ϕi ϕj da = − ϕi (ξs , ηs )ϕj (ξs , ηs ) kJ kk wk ,
As ∂us M k k k k
∂us M
k ξsk ,ηsk
(310)
∂t(n) K l ∂t(n) K
Z X
ϕi s ψj da = ϕi (ξsk , ηsk )ψjl (ξmk , ηmk ) kJkk wk ,
Als ∂u M ∂us M
k ξsk ,ηsk
(311)
∂t(n) K ∂t(n) K
Z X
ψil ϕj da = ψ l
(ξ
i mk , ηmk )ϕ (ξ
j sk , ηsk ) kJkk wk ,
Als ∂us M ∂usM
k ξsk ,ηsk
(312)
∂t(n) K l ∂t(n) K
Z X
− ψil ψ da = − ψ l
(ξm , ηm )ψ l
(ξm , ηm ) kJkk wk ,
Als ∂us M j i k k j k k
∂us M
k ξsk ,ηsk
(313)
where k is the number of the integration point; (ξsk , ηsk ) are the local coor-
dinates of the slave integration point; (ξmk , ηmk ) are the local coordinates of
the orthogonal projection of the slave integration point onto the master surface
w.r.t. the master face to which the projection belongs; kJkk is the norm of the
local Jacobian vector at the integration point on the slave face and wk is the
weight. As noted before the projection of integration points within the same
slave face may belong to different master faces. Each slave integration point
k leads to a contact element connecting a slave face with a master face and
represented by a stiffness matrix of size 3(ns + nm ) x 3(ns + nm ) made up of
contributions described by the above equations for just one value of integration
point k.
From this one observes that it is sufficient to determine the 3x3 stiffness
matrix
∂t(n) K
(314)
∂us M
ξsk ,ηsk
at the slave integration points in order to obtain the stiffness matrix of the
complete contact element. It represents the derivative of the traction in an
integration point of the slave surface with respect to the displacement vector at
the same location.
6.7 Boundary conditions 243
Normal contact stiffness The traction excerted by the master face on the
slave face at a slave integration point p can be written analogous to Equation
(236):
∂m ∂ξ ∂η
= = = 0. (316)
∂up ∂up ∂up
and
∂r
= I, (317)
∂up
which leads to
∂t(n) ∂f
= n ⊗ n. (318)
∂up ∂r
This is the normal contact contribution to Equation (314).
∂t ∂s
= (I − n ⊗ n) · , (319)
∂up ∂up
where
∂s
= I. (320)
∂up
Equation (293) now reduces to
" #
∂t(τ ) n+1 ∂t(n) n+1
= µξ n+1 ⊗ −n ·
∂up n+1 ∂up n+1
kt(n) n+1 k ∂tn+1
+µ [I − ξn+1 ⊗ ξ n+1 ] · Kt (321)
kt(τ ) trial
n+1
k ∂up n+1 .
Be careful to distinguish t(n) n+1 and t(τ ) n+1 , which are tractions, from tn+1 ,
which is a tangential differential displacement.
244 6 THEORY
• One must not use the same contact surface in more than one contact
definition
• Make sure that the contact surfaces do not touch pretension sections
• Make sure that there is not gap between the bodies for force driven quasi-
static calculations (may lead to huge accelerations since no mass is defined
and consequently no contact is found)
• Make sure that you choose a small first increment in the step if you expect
large relative displacements in tangential direction. A minimum of four
increments is recommeded. Recall that the direction of the normal and
tangential directions and the surface segmentation is only performed once
per increment.
• Sometimes the adpative time stepping using mortar contact is too senstive.
Try *STEP,DIRECT in that case.
• A function is set-valued if it can have more than one value for a given
argument. For instance, the gap velocity function satisfies
246 6 THEORY
g γ
g=0
0 λ
Figure 135: Normal hard contact
0 if x∈C
ψC (x) = (324)
∞ if x 6∈ C
So the indicator function is zero for all elements included in the set and
infinity else. The indicator function for R+0 is shown in Figure 136 (bold
line)
ψ +
infinity R0
for f (x) < +∞, where “·” is the inner product. This means that all
function values have to exceed a “tangent” straight line with the subdif-
ferential as slope. As shown in Figure 137 the subdifferential at point b,
where the function is continuous differentiable, coincides with the deriva-
tive. In point a, where the function is continuous but not differentiable,
the subdifferential consists of all tangent lines in between the left and right
derivative at that point. Thus, the subdifferential in a is multivalued and a
set-valued function. The same applies to the origin in Figure 136 (dashed
lines). Indeed, by comparing Figures 135 and 136 one observes that the
subdifferential of the indicator function of R+ 0 coincides with −γ:
f(x)
b α y=tan α
x x* x
Figure 137: Subdifferential at several positions
0 ∈ ∂f (x) (327)
i.e. it is the set of all vectors which make an angle ≥ 90◦ with all vectors
connecting x ∈ C with any other point x∗ ∈ C.
Looking at Figure 138 the normal cone in a is {0} , in b it is (the vectors
on) a straight line locally orthogonal to C and in c it is (the vectors within)
a cone bordered by the dashed lines. By comparing Equations (328) and
(329) it is clear that:
b*
b
a c
C
c*
Figure 138: Normal cone at several positions
Notice that by adding the indicator function the constraint {x∗ ∈ C} was
removed and a convex constrained minimization problem is turned into a
convex unconstrained minimization problem. A minimum is obtained if
zero belongs to the subdifferential, i.e.:
250 6 THEORY
1 2
0 ∈ ∂ kx − zk + ψC (x) (336)
2
⇔0 ∈ x − z + ∂ψC (x) (337)
⇔z−x ∈ ∂ψC (x) (338)
⇔z−x ∈ NC (x) (339)
Applying this to the relationship between the gap velocity γ and the normal
contact force λ one can write:
Notice that the feasible domain is split into a normal and a tangential do-
main. Therefore, also the projection is split: in normal direction the projection
is on R+0 , in tangential direction on Sp .
In the following a node-to-face contact definition is assumed (cf. Section
6.7.6) . For the gap definition one can start from MPC’s connecting a slave
node with the opposite master face, e.g. for node a in Figure 139:
slave
n
t
a
c
b master
0 0 V̇b 0 0 Vb Kbb Kbi Ub Fb (t) + Wb λ
+ + = ,
0 Mii V̇i 0 Dii Vi Kib Kii Ui Fi (t)
(349)
or
[Mii ]{V̇i } + [Dii ]{Vi } + [Kii ]{Ui } + [Kib ]{Ub } = {Fi (t)}. (351)
Here, {λ} represent the contact forces in the slave nodes in a local coordinate
system. The size of this vector is three times the number of slave nodes. [Wb ]{λ}
are the contact forces in all nodes (slave and master) in global coordinates. The
motivation for neglecting the inertia terms at the contact boundary comes from
the fact that these forces were observed to lead to substantial scatter in the
solution in the contact area.
From Equation (350) one obtains for the displacements at the boundary
nodes for time increment k:
1
{γ}k = [Wb ]T [Kbb ]−1 [Wb ]{λ}k
∆t
1
[Wb ]T [Kbb ]−1 ({Fb (tk )} − [Kbi ]{Ui }k ) − {Ub }k−1
+
∆t
+ {ġ0 (tk )}, (354)
− γ k ∈ NC (λk ) (356)
now amounts to:
where [r] is a diagonal matrix with relaxation factors and n is the iteration
index. The relaxation factors are taken to be
ω X
rii = if Gii > |Gij | (360)
Gii
j,j6=i
ω X
rii = P if Gii ≤ |Gij |, (361)
j,j6=i |Gij |
j,j6=i
The solution of the contact problem, however, is restricted to the active con-
tact degrees of freedom. Indeed, only for the nodes in contact the gap velocity
is positive and Figure 135 applies. The procedure to determine these active
contact degrees of freedom is called an active set strategy. Two cases are con-
sidered. For the initially open case (i.e. no contact at tk−1 ) the gap is calculated
at tk by substituting Equation (352) for {λ}k = 0 into Equation (347). The
active degrees of freedom are those for which the gap is nonpositive. For the
preloaded case (i.e. the contact forces at tk−1 are positive) the preload is cal-
culated from Equation (352) assuming sticking contact, i.e. {Ub }k = {Ub }k−1 .
Then, the active degrees of freedom are those, for which this sticking contact
is changing, i.e. either the normal preload is negative or the tangential preload
exceeds the sticking range and slip occurs. For details the reader is referred to
[69].
1
Once {Ub }k is calculated {Vi }k+ 2 can be calculated by substituting {V̇i }k =
k+ 12 k− 12 1 1
({Vi } − {Vi } )/∆t and {Vi } = ({Vi }k+ 2 + {Vi }k− 2 )/2 in Equation (351)
k
k
expressed at time t leading to:
[Mii ] [Dii ] 1
+ {Vi }k+ 2 = {Fi (tk )} − [Kii ]{Ui }k − [Kib ]{Ub }k
∆t 2
[Mii ] [Dii ] 1
+ − {Vi }k− 2 . (362)
∆t 2
The solution of this set of equations requires a linear equation solver. The
mass matrix does not change during the calculation. If the damping matrix
does not change either, the factorization step in the linear equation solver can
be done just once at the start of the calculation. This drastically reduces the
1
computation time. Knowing {Vi }k+ 2 the value of the displacements in the
internal nodes can be obtained from:
254 6 THEORY
1
{Ui }k+1 = {Ui }k + {Vi }k+ 2 ∆t. (363)
Consequently, the overall algorithm can be summarized as follows, knowing
1
{Fb (tk )} , ġ0 (tk ), {Ui }k , {Ub }k−1 , {λ}k−1 and {Vi }k− 2 :
– If the active set is empty {λ}k = {0} for an initially open contact,
and {λ}k = {λpre } for a preloaded contact.
– If the active set is not empty, determine {λ}k from Equation (357)
with {λ}k−1 as starting value.
• If NLGEOM is active on the *STEP card large rotations will lead to wrong
results.
6.8 Materials
A material definition starts with a *MATERIAL key card followed by material
specific cards such as *ELASTIC, *EXPANSION, *DENSITY, *HYPERELASTIC,
*HYPERFOAM, *DEFORMATION PLASTICITY, *PLASTIC, *CREEP or
*USER MATERIAL. To assign a material to an element, the *SOLID SECTION
card is used. An element can consist of one material only. Each element in the
structure must have a material assigned. Some types of loading require specific
material properties: gravity loading requires the density of the material, tem-
perature loading requires the thermal expansion coefficient. A material property
can also be required by the type of analysis: a frequency analysis requires the
material’s density.
Some of the material cards are mutually exclusive, while others are interde-
pendent. Exactly one of the following is required: *ELASTIC, *HYPERELAS-
TIC, *HYPERFOAM, *DEFORMATION PLASTICITY and *USER MATE-
RIAL. The keyword *PLASTIC must be preceded by *ELASTIC(,TYPE=ISO).
The same applies to the *CREEP card. A *PLASTIC card in between the
*ELASTIC and *CREEP card defines a viscoplastic material. The other key-
words can be used according to your needs.
6.8 Materials 255
3
X
C= λ2i M i , (364)
i=1
where λi are the three principal stretches and M i are the structural tensors
(cf. [24], Equation (1.121), here reduced for a global rectangular system) then
the logarithmic strain satisfies:
3
X
E ln = ln(λi )M i . (365)
i=1
λ µ
Σ= (IIIC − ln IIIC − 1) + (IC − ln IIIC − 3). (366)
4 4
The stress-strain relation amounts to (S is the Piola-Kirchoff stress of the
second kind) :
λ
S= (detC − 1)C −1 + µ(I − C −1 ), (367)
2
and the derivative of S with respect to the Green tensor E reads (component
notation):
dS IJ KL IJ IK LJ
= λ(detC)C −1 C −1 + [2µ − λ(detC − 1)]C −1 C −1 . (368)
dEKL
This model was implemented into CalculiX by Sven Kaßbohm. The defini-
tion consists of a *MATERIAL card defining the name of the material. This
name HAS TO START WITH ”CIARLET EL” but can be up to 80 characters
long. Thus, the last 70 characters can be freely chosen by the user. Within the
material definition a *USER MATERIAL card has to be used satisfying:
First line:
• *USER MATERIAL
Following line:
• E (Young’s modulus).
• ν (Poisson’s coefficient).
• Temperature.
Example:
*MATERIAL,NAME=CIARLET_EL
*USER MATERIAL,CONSTANTS=2
210000.,.3,400.
6.8 Materials 257
defines an isotropic material with elastic constants E=210000. and ν=0.3 for a
temperature of 400 (units appropriately chosen by the user). Recall that
E
µ= (369)
2(1 + ν)
and
νE
λ= . (370)
(1 + ν)(1 − 2ν)
2E = F T F − I, (371)
which can also be written as:
T T
2E = (F − I) + (F − I) + (F − I) (F − I). (372)
F is the deformation gradient and the expressions in parentheses are the
gradient of the displacements. Linearizing, only the first two terms on the right
hand side of the above equation are kept. This linearization, however, is not
large-rotation insensitive. In order to create a rotation-insensitive linear strain,
the deformation gradient is replaced by the right hand stretch tensor U (recall
that F = RU , where R is the rotation tensor):
T
2E = (U − I) + (U − I). (373)
This strain is, although linear, large rotation insensitive. Now, what is this good
for? In some applications (e.g. in linear elastic fracture mechanics) you need
linear strains exhibiting the appropriate stress and strain singularities (e.g. at
the crack tip). However, you would still like to include appications with large
rotations. The above formulation takes care of exactly these requirements.
In order to apply this formulation in CalculiX, the user has to specify the
parameter NLGEOM on the *STEP card. In those elements, in which rotation-
insensitive linear strains should be used, the user has to replace the linear elastic
isotropic material he/she would usually apply by the user material coded in
routine umat undo nlgeom lin iso el.f. To that end the user gives a new name
to the material starting with UNDO NLGEOM LIN ISO EL. The constants
of this user material are the Young’s modulus and Poisson’s coefficient of the
original material. Suppose the original material formulation was:
*MATERIAL,NAME=EL
*ELASTIC
210000.,.3
258 6 THEORY
*MATERIAL,NAME=UNDO_NLGEOM_LIN_ISO_ELx
*USER MATERIAL,CONSTANTS=2
210000.,.3
V0 dρ + ρ0 dV = 0 (375)
from which
ρ0 rT
σ=− I, (380)
J
where σ is the Cauchy stress and I is the identity tensor of second order.
The Piola-Kirchhoff stress S amounts to:
or
S = −ρ0 rT C −1 . (382)
Using Equation (4.156) from [24] it is not difficult to prove that this stress
can be derived from the free energy function
1
Σ = − ρ0 rT ln(I3 ) = −ρ0 rT ln(J), (383)
2
where I3 = J 2 is the third invariant of the Cauchy-Green tensor C. To
obtain the material stiffness ∂S/∂E Equation (4.163) from [24] can be used.
In CalculiX this law can be used in any mechanical calculation provided the
temperature is known. It is coded as a user material in routine umat ideal gas.f.
In order to use this material, the constant ρ0 r should be given underneath a
*USER MATERIAL,CONSTANTS=1 card. The name of the material has to
start with IDEAL GAS, the remaining 71 characters are at the free disposal of
the user (a material name can be maximum 80 characters long). In addition,
the parameter NLGEOM must be used on the *STEP card. Furthermore, the
*PHYSICAL CONSTANTS card should be used to define the value of absolute
zero temperature.
n−1
3 q
Eeln = (1 + ν)s − (1 − 2ν)p i + α s, (384)
2 σ0
where eln is the logarithmic strain (cf. beginning of Section 6), σ is the
Cauchy stress, i is the identity tensor in spatial coordinates,
p p := −σ : i/3 is
the pressure, s = σ+pi is the stress deviator and q = 3s : s/2 is the von Mises
stress. E and ν are Young’s modulus and Poisson’s coefficient, respectively (cf.
*DEFORMATION PLASTICITY for the one-dimensional form).
The user should give the Ramberg-Osgood material constants σ0 , n and
α directly (by plotting a Cauchy stress versus logarithmic strain curve and
performing a fit).
6.8 Materials 261
creep only occurs above the yield stress. For a lot of materials this is not realistic.
At high temperatures creep is frequently observed well below the yield stress. To
simulate this behavior one can set the yield stress to zero. In order to simulate
an initial large plastic deformation (e.g. due to forging or other machining
operations) followed by creep at high temperature at operation conditions one
can proceed as follows: one defines the material as a viscoplastic material using
the *PLASTIC and *CREEP card. To switch off the creep behavior in the
machining step one uses the *STATIC procedure. In a subsequent step at
operating conditions the viscous behavior is switched on using the *VISCO
procedure whereas the yield stress is set to zero by means of a *CHANGE
MATERIAL and *CHANGE PLASTIC card.
T∗ = 0 for T < T0
T − T0
T∗ = for T0 ≤ T ≤ Tm
Tm − T0
T∗ = 1 for T > Tm (386)
melt temperature, i.e. the temperature above which the yield surface is reduced
to zero. The model is meant to describe highly dynamical phenomena such as
explosions, bird strike in a jet engine etc.
For ǫ̇p < ǫ̇0 the logarithm becomes negative and also for small ǫp convergence
seems more difficult. Therefore, Bernhardi and co-workers [57] have modified
the above law for the following special ranges of ǫp and ǫ̇p to:
ǫ̇p
A + Bǫp δ n−1 1 + C ln f (T ∗ ) ǫ̇p ≥ ǫ̇0 , ǫp ≤ δ
σvm =
ǫ̇0
ǫ̇p
A + Bǫnp 1 + C − 1 f (T ∗ ) ǫ̇p < ǫ̇0 , ǫp > δ
σvm =
ǫ̇0
ǫ̇p
A + Bǫp δ n−1 1 + C − 1 f (T ∗ ) ǫ̇p < ǫ̇0 , ǫp ≤ δ (387)
σvm =
ǫ̇0
τ = c − σn tan ϕ, (388)
where c is the cohesion. This is equivalent to (cf. Figure 140)
1 + sin ϕ cos ϕ
σ1 − σ3 − 2c = 0, (389)
1 − sin ϕ 1 − sin ϕ
or
√
kσ1 − σ3 − 2c k = 0, (390)
264 6 THEORY
τn
τn
σ1 −σ3
2 ϕ
c
σ3 σ1+ σ3 σn σ1 σn
2
where
1 + sin ϕ
k= . (391)
1 − sin ϕ
ϕ is called the friction angle. Similarly, the plastic potential is defined by:
g = mσ1 − σ3 , (392)
where
1 + sin ψ
m= . (393)
1 − sin ψ
ψ is called the dilation angle. It describes to what extent the volume of the
material changes due to shear motion. For a positive value of ψ the volume
increases, as for dense sand. For a negative value the volume decreases, as for
loose sand. In the latter case the grains fit better due to the motion. You can
easily illustrate this by pouring suger in a bowl. Shaking the bowl the volume
will decrease and more sugar will fit.
As mentioned, the yield surface is piecewise linear, so the gradient of the
surface is not continuous. This complicates matters. Now, looking at the yield
surface and plastic potential it can be observed that it contains only principal
stresses. Assuming the material to be elastically isotropic, this allows us to
perform all operations in principal stress space, thereby reducing the tensors to
vectors. This was first proposed in [20].
Replacing σ1 , σ2 , σ3 by x, y, z for simplicity, the yield surface as defined in
Equation (390) defines in three-dimensional space one of six faces of a irregular
pyramid with central axis in (1, 1, 1) direction. The other faces correspond to
sectors in which the order of σ1 , σ2 , σ3 is different.
6.8 Materials 265
x>y x<y
x=y
5 4
0
x>z>y 6 3
1 2 x=
z z
y=
y<z
A x<z
y>z
x x>z y
x>y>z y>x>z
B
apex
(c/tan ϕ ,c/tan ϕ,c/tan ϕ)
sector 6
a6 (k,−1,0)
r6 (1,k,k)
r1 (1,1,k)
s1 x r6
sector 1 sector 2 y
x
a1 (k,0,−1) a2 (0,k,−1)
s 1 x r1
Figure 141 shown a view on a plane orthogonal to the (1, 1, 1) axis and
through the origin. The six sectors are bordered by planes going through the
x-, y- and z- axes and containing the (1, 1, 1)-axis. The cross section of this
plane with the yield surface is an irregular hexagon (dashed line). Since the
principal stresses can always be rearranged such that x ≥ y ≥ z it is sufficient
to look at that sector (labeled 1) and the neighboring ones (labeled 6 and 2).
Figure 142 shows the yield surface viewed from the apex and looking in the
direction of (−1, −1, −1). In the sectors of interest the normal to the surface a
is shown. For sector 1 this is immediately √ clear from Equation (390) which can
be written as (k, 0, −1) · (σ1 , σ2 , σ3 ) − 2c k = 0. A vector along the interection
lines of the pyramid faces is obtained by taking the cross product of the normal
of the neighboring faces,e.g. r6 = a6 × a1 . The apex of the pyramid is obtained
by substituting σ1 = σ3 in Equation (390): it yields
√
2c k c
sa := σ1 = σ2 = σ3 = = . (394)
k−1 tan ϕ
Therefore, the equation of the intersection line between section 6 and 1
satisfied (sa , sa , sa ) + λ(1, k, k). Its intersection with the plane x + y + z = 0
leads to
3sa
λ=
, (395)
1 + 2k
yielding the location of point A in Figure 141. For point B one gets
6.8 Materials 267
3sa
λ= , (396)
2+k
which is farther away from the origin since k ≥ 1. The normal to the plastic
potential surface is labeled b and amounts for sector 1 to (m, 0, −1). Similar
expressions apply to the other sectors.
The governing equations of an elastic material with Mohr-Coulomb plasticity
read:
σ = D · ǫe (397)
c(ǫpeq ) (398)
∂g(σ, c)
ǫ̇p = γ̇ = γ̇b (400)
∂σ
(v) Kuhn-Tucker equations
γ̇ f˙(σ, c) = 0. (402)
Notice that in the above equatons σ and ǫ are vectors in principal space.
In order to explain the numerical procedure it is assumed that all variables
are known at the end of increment n (corresponding to time t) and that their
values are sought at the end of increment n + 1 (corresponding to time t + ∆t).
The input to the algorithm is a change on total strain ∆ǫ.
At first it is assumed that now plasticity occurs in the new increment, i.e.:
cn+1 = cn (404)
268 6 THEORY
γn+1 = γn (405)
In the last equation the evolution equation was used (flow rule). Defining
s := D · b, satisfying the yield surface now requires:
peq
√
a · (σ trial
n+1 − ∆γn+1 s) − 2c(ǫn+1 ) k = 0. (413)
Notice that s points in the direction of the stress correction w.r.t. the trial
stress. In order to solve this equation a relationship between ǫpeqn+1 and ∆γ is
needed. Now, ǫ̇peq
n+1 is defined as:
r
peq 2 p
ǫ̇n+1 = kǫ̇ k, (414)
3 n+1
from which:
t+∆t
r
2 p
Z
ǫpeq
n+1 = kǫ̇ kdt (415)
0 3
Z tr Z t+∆t r
2 p 2 p
= kǫ̇ kdt + kǫ̇ kdt (416)
0 3 t 3
r
2
= peq
ǫn + k∆ǫpn+1 k (417)
3
r
peq 2
= ǫn + ∆γn+1 kbk (418)
3
r
2 p
= ǫpeq
n + ∆γn+1 1 + m2 (419)
3
6.8 Materials 269
√ p
Defining k ∗ := 2 k and m∗ := 2(1 + m2 )/3 the yield equation now
amounts to:
f = a · (σ trial ∗ peq ∗
n+1 − ∆γn+1 s) − k c(ǫn + ∆γn+1 m ) = 0. (420)
This is a nonlinear equation in ∆γn+1 . Using the Newton-Raphson proce-
dure the first derivative is needed, which yields:
∂f ∂c
= −a · s − k ∗ m∗ peq . (421)
∂∆γn+1 ∂ǫn+1
0 (k+1) (k)
Starting with an initial guess ∆γn+1 = 0, one arrives at ∆γn+1 = ∆γn+1 +
(k)
∆∆γn+1 by solving the equation:
or
" #
∗ ∂c ∗ (k)
h
(k)
i
peq,(k)
−a · s − k m ∆∆γn+1 = a · σ trial ∗
n+1 − ∆γn+1 s − k c(ǫn+1 ),
∂ǫpeq peq,(k)
ǫn+1
(423)
where
peq,(k) (k)
ǫn+1 = ǫpeq ∗
n + m ∆γn+1 . (424)
This works as long a the return is to a face of the yield surface. Since the
return vector for sector 1 is s1 = D · b1 one can graphically plot the region in
three-dimensional principal stress space which is returned to the yield face in
sector 1 (Figure 143). It is the space for which
(σ trial trial
n+1 − sa ) · (s1 × r1 ) ≥ 0 AND (σ n+1 − sa ) · (s1 × r6 ) ≤ 0. (425)
This is called region I. The space within sector 1 in between region I and
sector 2 and underneath the apex is mapped onto the intersection line of face 1
and face 2 of the yield surface (characterized by the equation sa + λr1 , λ ∈ R).
It is characterized by the equations
(σ trial trial
n+1 − sa ) · (s1 × r1 ) ≤ 0 AND (σ n+1 − sa ) · (s1 × s2 ) ≤ 0. (426)
and is called region II of sector 1. Similary for the space in between region
I and sector 6 and underneath the apex satisfying
(σ trial trial
n+1 − sa ) · (s1 × r6 ) ≥ 0 AND (σ n+1 − sa ) · (s6 × s1 ) ≤ 0. (427)
270 6 THEORY
s x s
6 1
s1 x s 2
r6
s1 r1
s1
This is region III. Finally, the region above the apex corresponding to
(σ trial trial
n+1 − sa ) · (s1 × s2 ) ≥ 0 AND (σ n+1 − sa ) · (s6 × s1 ) ≥ 0 (428)
is returned to the apex and is called region IV.
Returning the trial stress to the intersection line of two yield faces implies
that the final state has to satisfy both face equations. The equivalent plastic
strain now satisfies:
ǫpeq peq ∗
n+1 = ǫn + m (∆γ1,n+1 + ∆γ2,n+1 ) (429)
and the yield surface equations amount to:
peq
a1 · (σ trial ∗
n+1 − ∆γ1,n+1 s1 − ∆γ2,n+1 s2 ) − k c(ǫn+1 ) = 0 (430)
a2 · (σ trial
n+1 − ∆γ1,n+1 s1 − ∆γ2,n+1 s2 ) − k ∗
c(ǫpeq
n+1 ) = 0. (431)
Applying Newton-Raphson now leads to:
(k)
∆∆γ1
[A] · = {B}, (432)
∆∆γ2 n+1
where
∂c ∂c
−a1 · s1 − k ∗ m∗ −a1 · s2 − k ∗ m∗
" #
∂ǫpeq ǫpeq,(k) ∂ǫpeq ǫpeq,(k)
[A] = n+1 n+1
(433)
−a2 · s1 − k ∗ m∗ ∂ǫ∂c
peq peq,(k)
ǫn+1
−a2 · s2 − k ∗ m∗ ∂ǫ∂c
peq peq,(k)
ǫn+1
and
h i
a1 · σ trial (k) (k) ∗ peq,(k)
n+1 − ∆γ1,n+1 s1 − ∆γ2,n+1 s2 − k c(ǫn+1 )
{B} = h i . (434)
a2 · σ trial − ∆γ (k) s1 − ∆γ (k) s2 − k ∗ c(ǫpeq,(k) )
n+1 1,n+1 2,n+1 n+1
For a return to the apex the yield equations of sector 1, 2 and 6 have to be
satisfied yielding 3 equations in 3 unknowns.
To calculate the consistent tangent the change of stress due to a change in
total strain is needed. The change of stress in the present increment amounts
to:
Now, a relationship between d∆γ and d∆ǫ is needed. This is obtained from
the yield equation:
∂f ∂f ∂c
· d∆σ + d∆γ = 0. (441)
∂σ σ n +∆σ ∂c ∂γ γ+∆γ
∂f ∂f ∂f ∂c
· D · d∆ǫ − · sd∆γ + d∆γ = 0 (442)
∂σ ∂σ ∂c ∂γ
from which
a · D · d∆ǫ
d∆γ = . (443)
a · s + k ∗ m∗ ∂ǫ∂c
peq
s⊗a·D
D ep = D − . (444)
a · s + k ∗ m∗ ∂ǫ∂c
peq
The derivation of the elastoplastic consistent tangent for a return to the in-
tersection between face 1 and face 2 is similar. Now, a change in stress increment
amounts to:
a1 · s1 + k ∗ m∗ ∂ǫ∂c a1 · s2 + k ∗ m∗ ∂ǫ∂c
peq peq d∆γ1 a1 · D · d∆ǫ
· = .
a2 · s1 + k ∗ m∗ ∂ǫ∂c
peq a2 · s2 + k ∗ m∗ ∂ǫ∂c
peq d∆γ2 a2 · D · d∆ǫ
(448)
6.8 Materials 273
Denoting the inverse of the left hand matrix by [B] the solution of the above
system can be written as:
leading to:
D ep = D−B11 s1 ⊗a1 ·D−B11 s1 ⊗a2 ·D−B11 s2 ⊗a1 ·D−B11 s2 ⊗a2 ·D. (451)
The derivation for the return to the apex is similar (now three equations
have to be satisfied).
The tangent derived here only applies to the normal directions. It has to be
complemented by a shear part T̂ in the form [20]:
D ep
0
C= (452)
0 T̂
where
σ1,n+1 −σ2,n+1
trial −σ trial
σ1,n+1
0 0
2,n+1
σ1,n+1 −σ3,n+1
T̂ = 0 trial −σ trial
σ1,n+1
0 (453)
3,n+1
σ2,n+1 −σ3,n+1
0 0 trial −σ trial
σ2,n+1 3,n+1
Finally, the tangent matrix C has to be transformed back into the global
system yielding C ′ :
C ′ = AT · C · A, (454)
where A is the transformation matrix in equation (A5) in [20]. Notice that
equation (A6) in [20] is wrong and has to be replaced by the equation above.
Similarly the stress is to be transformed into the global system by:
σ ′ = AT · σ. (455)
3
X
C= Λi Mi , (456)
i=1
• *USER MATERIAL
• Enter the CONSTANTS parameter and its value. The value of this pa-
rameter is 2.
Following line:
• E.
• Temperature.
Repeat this line if needed to define complete temperature dependence.
For a compression-only materials the name of the material has to start with
”COMPRESSION ONLY” (maximum 64 characters left to be chosen by the
user) and the second constant is the maximum allowed tension. Examples are
leifer2 and concretebeam in the test example suite.
n
1 k1i h k2i hJ¯4i −1i2 i
U = C10 (I¯1 − 3) +
X
(J − 1)2 + e −1 (459)
D1 i=1
2k2i
where hxi = 0 for x < 0 and hxi = x for x ≥ 0. Thus, the fibers do not take
up any force under compression. Although the material was originally defined
for arteries, it is expected to work well for other fiber reinforced materials too,
such as reinforced nylon. The material model implemented thus far can cope
with up to 4 different fibers. The material definition consists of a *MATERIAL
card defining the name of the material. This name HAS TO START WITH
”ELASTIC FIBER” but can be up to 80 characters long. Thus, the last 67
characters can be freely chosen by the user. Within the material definition a
*USER MATERIAL card has to be used satisfying:
First line:
• *USER MATERIAL
• Enter the CONSTANTS parameter and its value. The value of this pa-
rameter is 2+4n, where n is the number of fiber directions.
Following line if one fiber direction is selected:
• C10 .
• D1 .
• nx1 : x-direction cosine of fiber direction.
• k21 .
• Temperature.
276 6 THEORY
Example:
*MATERIAL,NAME=ELASTIC_FIBER
*USER MATERIAL,CONSTANTS=18
1.92505,0.026,0.,0.7071,2.3632,0.8393,0,-0.7071,
2.3632,0.8393,0.7071,0.,2.3632,0.8393,-0.7071,0.,
2.3632,0.8393
defines an elastic fiber materials with four different fiber directions (0,0.7071,0.7071),
(0,-0.7071,0.7071), (0.7071,0.,0.7071) and (-0.7071,0.,0.7071). The constants are
C10 = 1.92505, D1 = 0.026 and k1i = 2.3632, k2i = 0.8393 ∀ i ∈ {1, 2, 3, 4}.
ǫ = ǫe + ǫp . (461)
In each slip plane an isotropic hardening variable q1 and a kinematic harden-
ing variable q2 are introduced representing the isotropic and kinematic change
of the yield surface, respectively. The yield surface for orientation β takes the
form:
β
n
q2β r0β
X
β β
h := σ : m + − + Hβα q1α = 0 (462)
α=1
6.8 Materials 277
σ = C : ǫe . (465)
The evolution equations for the plastic strain and the hardening variables in
strain space are given by:
β
n
γ̇ β mβ sgn(σ : mβ + q2β ),
X
p
ǫ̇ = (466)
β=1
!
qβ
α̇β1 = γ̇ β
1 + 1β (467)
Q
and
" #
dβ q2β
α̇β2 = γ̇ β β
ϕ sgn(σ : m + β
q2β ) + β . (468)
c
nβ
hβ
β
γ̇ = . (472)
Kβ
The brackets hi reduce negative function values to zero while leaving positive
values unchanged, i.e. hxi = 0 if x < 0 and hxi = x if x ≥ 0.
In the present umat routine, the Cailletaud model is implemented for a Nickel
base single crystal. It has two slip systems, a octaeder slip system with three slip
directions < 011 > in four slip planes {111}, and a cubic slip system with two
slip directions < 011 > in three slip planes {001}. The constants for all octaeder
slip orientations are assumed to be identical, the same applies for the cubic slip
orientations. Furthermore, there are three elastic constants for this material.
Consequently, for each temperature 21 constants need to be defined: the elastic
constants C1111 , C1122 and C1212 , and a set {K β , nβ , cβ , dβ , φβ , δ β , r0β , Qβ , bβ }
per slip system. Apart from these constants 182 interaction coefficients need
to be defined. These are taken from the references [61][62] and assumed to be
constant. Their values are included in the routine and cannot be influence by
the user through the input deck.
The material definition consists of a *MATERIAL card defining the name
of the material. This name HAS TO START WITH ”SINGLE CRYSTAL” but
can be up to 80 characters long. Thus, the last 66 characters can be freely
chosen by the user. Within the material definition a *USER MATERIAL card
has to be used satisfying:
First line:
• *USER MATERIAL
• C1111 .
• C1122 .
• C1212 .
• Temperature.
These variables are accessible through the *EL PRINT (.dat file) and *EL FILE
(.frd file) keywords in exactly this order (label SDV). The *DEPVAR card must
be included in the material definition with a value of 60.
280 6 THEORY
Example:
*MATERIAL,NAME=SINGLE_CRYSTAL
*USER MATERIAL,CONSTANTS=21
135468.,68655.,201207.,1550.,3.89,18.E4,1500.,1.5,
100.,80.,-80.,500.,980.,3.89,9.E4,1500.,
2.,100.,70.,-50.,400.
*DEPVAR
60
defines a single crystal with elastic constants {135468., 68655., 201207.}, oc-
taeder parameters {1550., 3.89, 18.E4, 1500., 1.5, 100., 80., −80., 500.} and cubic
parameters {980., 3.89, 9.E4, 1500., 2., 100., 70., −50.} for a temperature of 400.
• *USER MATERIAL
Following line:
• C1111 .
• C1122 .
• C1212 .
• Temperature.
6.8 Materials 281
These variables are accessible through the *EL PRINT (.dat file) and *EL FILE
(.frd file) keywords in exactly this order (label SDV). The *DEPVAR card must
be included in the material definition with a value of 24.
Example:
*MATERIAL,NAME=SINGLE_CRYSTAL
*USER MATERIAL,CONSTANTS=21
135468.,68655.,201207.,1550.,3.89,980.,3.89,400.
*DEPVAR
24
defines a single crystal with elastic constants {135468., 68655., 201207.}, oc-
taeder parameters {1550., 3.89} and cubic parameters {980., 3.89} for a temper-
ature of 400.
ǫ = ǫe + ǫp . (473)
An isotropic hardening variable q1 and a kinematic hardening tensor q2 are
introduced representing the isotropic and kinematic change of the yield surface,
respectively. The yield surface takes the form:
r
2
f := kdev(σ) + q2 k + q1 = 0 (474)
3
where dev(σ) is the deviatoric stress tensor. The constitutive equations for
the hardening variables satisfy:
282 6 THEORY
2 ∂heq
q˙2 = − d2 2eq α˙2 (476)
3 ∂α2
where α1 and α2 are the hardening variables in strain space. It can be shown
that
α1 = ǫpeq , (477)
α2 eq = ǫpeq , (478)
where ǫpeq is the equivalent plastic strain defined by
r
2 p
˙ =
ǫpeq ǫ˙ . (479)
3
and α2 eq is the equivalent value of the tensor α2 defined in a similar way.
The isotropic hardening curve to be defined by the user is h1 (ǫpeq ), the kinematic
one is heq
2 (ǫ
peq
).
The constitutive equation for the stress is Hooke’s law:
σ = C : ǫe . (480)
The evolution equations for the plastic strain and the hardening variables in
strain space are given by:
r
2
α̇1 = γ̇, (482)
3
and
dev(σ) + q2
n= . (484)
kdev(σ) + q2 k
The variable γ̇ is the consistency coefficient known from the Kuhn-Tucker
conditions in optimization theory [55]. It can be proven to satisfy:
r
3 peq
γ̇ = ǫ̇ , (485)
2
6.8 Materials 283
Finally, the creep rate is modeled as a power law function of the yield ex-
ceedance and total time t:
*r +n
3
ǫ˙ =A
peq f tm . (486)
2
The brackets hi reduce negative function values to zero while leaving positive
values unchanged, i.e. hxi = 0 if x < 0 and hxi = x if x ≥ 0.
In the present implementation orthotropic elastic behavior is assumed. Con-
sequently, for each temperature 9 constants need to be defined: C1111 , C1122 ,
C2222 ,C1133 , C2233 , C3333 ,C1212 , C1313 , C2323 .
With isotropic hardening only, the user has to define h1 (ǫpeq ) underneath the
*PLASTIC card, with kinematic hardening only heq 2 (ǫ
peq
) has to be defined un-
derneath a *PLASTIC, HARDENING=KINEMATIC card. For combined hard-
ening the heq
2 (ǫ
peq
) curve must be defined underneath a *PLASTIC, HARDEN-
ING=KINEMATIC card and h1 (ǫpeq ) underneath a *CYCLIC HARDENING
card. For the viscous constants the *CREEP card is to be used. So the vis-
coplastic input deck format is essentially the same as for an elastically isotropic
material with isotropic plasticity.
The principal axes of the material are assumed to coincide with the global
coordinate system. If this is not the case, use an *ORIENTATION card to
define a local system.
For this model, there are 20 internal state variables:
These variables are accessible through the *EL PRINT (.dat file) and *EL FILE
(.frd file) keywords in exactly this order (label SDV).
This model is for small deformations (small strains and small rotations).
However, if NLGEOM is activated on the *STEP card this model is considered
to be an Abaqus umat routine linking the corotational Cauchy stress to the
corotational mechanical logarithmic strain. In this way, the routine can also be
used for large deformations.
Example:
*MATERIAL,NAME=MAT1
*ELASTIC,TYPE=ORTHO
500000.,157200.,500000.,157200.,157200.,500000.,126200.,126200.,
126200.
284 6 THEORY
*CREEP
1.E-10,5,0.
Example:
*MATERIAL,NAME=EL
*ELASTIC,TYPE=ORTHO
500000.,157200.,500000.,157200.,157200.,500000.,126200.,126200.,
126200.
*PLASTIC
100.,0.
110.,0.01
2110.,1.01
defines a single crystal with the same elastic constants as in the previous ex-
ample. Now, a bilinear isotropic hardening curve is defined. No time dependent
behavior was defined.
Example files: anipla, anipla2, anipla3, anipla4, anipla nl st, anipla nl dy imp,
anipla nl dy exp.
For this model, there are 7 internal state variables (recall that CalculiX does
not make a distinction between plastic strain and creep strain: the field ǫp
contains the sum of both):
These variables are accessible through the *EL PRINT (.dat file) and *EL FILE
(.frd file) keywords in exactly this order (label SDV).
The creep subroutine has to be provided by the user (cf. Section 8.1). Since
the material is anisotropic the input to the creep routine is the equivalent devi-
atoric creep strain, the output is the von Mises stress and the derivative of the
equivalent deviatoric creep strain increment w.r.t. the von Mises stress.
This model is for small deformations (small strains and small rotations).
However, if NLGEOM is activated on the *STEP card this model is considered
to be an Abaqus umat routine linking the corotational Cauchy stress to the
corotational mechanical logarithmic strain. In this way, the routine can also be
used for large deformations.
Example:
*MATERIAL,NAME=MAT
*ELASTIC,TYPE=ORTHO
500000.,157200.,500000.,157200.,157200.,500000.,126200.,126200.,
126200.
*CREEP,LAW=USER
For a user material routine of the Abaqus type there are two possibilities:
either the user wants to apply the routine to linear geometric calculations only.
Then, the kind of strain and stress going in or out of the routine is not important
and the previous paragraph applies. However, if the user would like to apply the
routine to geometrically nonlinear calculations, the strain entering the routine
is the corotational mechanical logarithmic strain and the required stress is the
corotational Cauchy stress. So CalculiX has to perform some conversions before
and after calling the Abaqus user material routine. For a prototype example of
a Abaqus user material routine the user is referred to umat.f, for limitations on
the use of the Abaqus interface fields section 8.5 should be consulted.
Here, some information is given on how the fields used in CalculiX (mechani-
cal Lagrange strain and Piola-Kirchhoff stress of the second kind) are converted
into the fields required by Abaqus (corotational mechanical logarithmic strain
and corotational Cauchy stress) and vice versa. The conversions are coded in
umat abaqusnl.f. The fields F , E M and S are available at the start of the rou-
tine (the meaning of these variables is explained in the following paragraphs).
The mechanical logarithmic strain satisfies
X
eM
ln = ln λM
i ni ⊗ ni , (487)
i
where λM
i are the eigenvalues of the mechanical deformation gradient F M .
In CalculiX, the mechanical deformation gradient is obtained by subtracting the
thermal expansion from the total deformation gradient, i.e.
F M = F − α∆T I (488)
for isotropic expansion. This is a first order approximation of a multiplicative
decomposition of the total deformation gradient into a mechanical and thermal
component in the form F = F M (1 + α∆T ), recall also F = I + (∇0 u)T . The
rotation tensor R = ni ⊗ N i rotates the principal vectors N i of the motion in
material coordinates into spatial coordinates ni :
ni = R · N i . (489)
It is a two-point tensor with one leg in the material frame of reference and one
leg in the spatial frame of reference. The corotational mechanical logarithmic
strain then amounts to (recall that R is orthogonal, i.e. R−1 = RT ) :
X
êM T M
ln = R · eln · R = ln λM
i N i ⊗ N i. (490)
i
λM
ican be obtained from the eigenvalues of the mechanical Lagrange tensor
M
E = (F M,T · F M − I)/2 and its eigenvectors are N i .
The Cauchy tensor satisfies
σ = J −1 R · U · S · U T · RT , (491)
and consequently the corotational Cauchy tensor amounts to
6.8 Materials 287
σ̂ = RT · σ · R = J −1 U · S · U T . (492)
σ̂ = J −1 U M · S · (U M )T (1 + α∆T )2 . (493)
S = JU −1 · σ̂ · U −T . (495)
−1
• U = U M (1 + α∆T ) from which U −1 = U M (1 + α∆T )−1 .
−1
p
• U M = 1/ C M .
p
• êM
ln = ln CM
• ∂I3
∂C = I3 C −1 and I3 = J 2 , from which
∂J M J M M −1
= C (496)
∂C M 2
• J = J M (1 + α∆T )3 .
288 6 THEORY
and writing the expression for the Piola-Kirchhoff stress of the second kind
in a rectangular coordinate system:
S KL = JU −1 −1
KM σ̂ MN U N L (497)
straightforward differentation yields:
!
∂S KL −1
−1
−1
= J M C M P Q U M KM σ̂ MN U M N L (1 + α∆T )
∂E M
PQ
−1
!
∂U M KM −1
+ 2J M σ̂ MN U M N L (1 + α∆T )
∂C M
PQ
!
∂ eM ˆ !
−1
∂ σ̂MN ln,ST
−1
+ 2J M U M KM U M N L (1 + α∆T )
∂êM
ln,ST ∂C M
PQ
M −1
!
−1
∂U N L
+ 2J M U M KM σ̂ MN (1 + α∆T ) (498)
∂C M
PQ
The first term in brackets on the second line, the third term in brackets on
the third line and the second term in brackets on the fourth line are special cases
of the derivative of a function of C w.r.t C. Expressions for such a differentation
based on the eigenvalues and structural tensors of C were derived by Itskov [42]
and are summarized in the Appendix of [25]. The second term in brackets on
the third line is the tangent returned by the Abaqus UMAT routine.
Notice that the above equation is symmetric in (KL) and (PQ), i.e. switching
K and L and/or P and Q. In particular, switching K and L in the second term
leads to the fourth term. This symmetry is to be expected, since S and E M
are symmetric tensors. However, it is not clear whether the symmetry obtained
by replacing KL by PQ is preserved. Therefore, in CalculiX a symmetrization
of the resulting tangent matrix is performed, leading to 21 constants instead
of 36 constants. The above procedure was implemented in umat abaqusnl.f
and umat abaqusnl total.f. It is used for those material models, which were
only formulated for small strains, such as isotropic plasticity for an elastically
orthotropic material, Johnson Cook plasticity and Mohr Coulomb plasticity.
neglected. A static analysis is defined by the key word *STATIC. A static step
can be geometrically linear or nonlinear. In both cases a Lagrangian point of
view is taken and all variables are specified in the material frame of reference
[27]. Thus, the stress used internally in CalculiX is the second Piola-Kirchhoff
tensor acting on the undeformed surfaces.
For geometrically linear calculations the infinitesimal strains are taken (lin-
earized version of the Lagrangian strain tensor), and the loads do not interfere
with each other. Thus, the deformation due to two different loads is the sum
of the deformation due to each of them. For linear calculations the difference
between the Cauchy and Piola-Kirchhoff stresses is negligible.
For geometrically nonlinear calculations, the full Lagrangian strain tensor is
used. A geometrically nonlinear calculation is triggered by the parameter NL-
GEOM on the *STEP card. The step is usually divided into increments, and the
user is supposed to provide an initial increment length and the total step length
on the *STATIC card. The increment length can be fixed (parameter DIRECT
on the *STATIC card) or automatic. In case of automatic incrementation, the
increment length is automatically adjusted according to the convergence charac-
teristics of the problem. In each increment, the program iterates till convergence
is reached, or a new attempt is made with a smaller increment size. In each
iteration the geometrically linear stiffness matrix is augmented with an initial
displacement stiffness due to the deformation in the last iteration and with an
initial stress stiffness due to the last iteration’s stresses [112]. For the output
on file the second Piola-Kirchhoff stress is converted into the Cauchy or true
stress, since this is the stress which is really acting on the structure.
Special provisions are made for cyclic symmetric structures. A cyclic sym-
metric structure is characterized by N identical sectors, see Figure 144 and the
discussion in next section. Static calculations for such structures under cyclic
symmetric loading lead to cyclic symmetric displacements. Such calculations
can be reduced to the consideration of just one sector, the so-called datum sec-
tor, subject to cyclic symmetry conditions, i.e. the right boundary of the sector
exhibits the same displacements as the left boundary, in cylindrical coordinates
(NOT in rectangular coordinates!). The application of these boundary condi-
tions is greatly simplified by the use of the keyword cards *SURFACE, *TIE and
*CYCLIC SYMMETRY MODEL, defining the nodes on left and right bound-
ary and the sector size. Then, the appropriate multiple point constraints are
generated automatically. This can also be used for a static preload step prior
to a perturbative frequency analysis.
inverse problem are determined. For large problems this results in execution
times cut by about a factor of 100 (!). The inversion is performed by calling
the linear equation solver SPOOLES. A frequency step is triggered by the key
word *FREQUENCY and can be perturbative or not.
If the perturbation parameter is not activated on the *STEP card, the fre-
quency analysis is performed on the unloaded structure, constrained by the
homogeneous SPC’s and MPC’s. Any steps preceding the frequency step do
not have any influence on the results.
If the perturbation parameter is activated, the stiffness matrix is augmented
by contributions resulting from the displacements and stresses at the end of the
last non-perturbative static step, if any, and the material parameters are based
on the temperature at the end of that step. Thus, the effect of the centrifugal
force on the frequencies in a turbine blade can be analyzed by first performing
a static calculation with these loads, and selecting the perturbation parameter
on the *STEP card in the subsequent frequency step. The loading at the end
of a perturbation step is reset to zero.
If the input deck is stored in the file “problem.inp”, where “problem” stands
for any name, the eigenfrequencies are stored in the “problem.dat” file (notice
that the format of the storage depends on the symmetry of the stiffness ma-
trix; a nonsymmetric stiffness matrix results e.g. from contact friction and can
lead to complex eigenvalues). Furthermore, if the parameter STORAGE is set
to yes (STORAGE=YES) on the *FREQUENCY card the eigenfrequencies,
eigenmodes, stiffness matrix and mass matrix are stored in binary form in a
”problem.eig” file for further use (e.g. in a linear dynamic step).
All output of the eigenmodes is normalized by means of the mass matrix, i.e.
the generalized mass is one. The eigenvalue of the generalized eigenvalue prob-
lem is actually the square of the eigenfrequency. The eigenvalue is guaranteed
to be real (the stiffness and mass matrices are symmetric; the only exception
to this is if contact friction is included, which can lead to complex eigenfre-
quencies), but it is positive only for positive definite stiffness matrices. Due to
preloading the stiffness matrix is not necessarily positive definite. This can lead
to purely imaginary eigenfrequencies which physically mean that the structure
buckles.
Apart from the eigenfrequencies the total effective mass and total effective
modal mass for all rigid body modes are also calculated and stored in the .dat-
file. There are six rigid body modes, three translations and three rotations. Let
us call any of these {R}. It is a vector corresponding to a unit rigid body mode,
e.g. a unit translation in the global x-direction. The participation factors Pi
are calculated by
X
Pi2 (500)
i
(unit: mass ·length2 ). The total effective mass is the size of the rigid motion,
i.e. it is the internal product of the rigid motion with itself:
If one would calculate infinitely many modes the total effective modal mass
should be equal to the total effective mass. Since only a finite number of modes
are calculated the total effective modal mass will be less. By comparing the
total effective modal mass with the total effective mass one gains an impres-
sion whether enough modes were calculated to perform good modal dynamics
calculation (at least for the rigid motions).
A special kind of frequency calculations is a cyclic symmetry calculation for
which the keyword cards *SURFACE, *TIE, *CYCLIC SYMMETRY MODEL
and *SELECT CYCLIC SYMMETRY MODES are available. This kind of cal-
culation applies to structures consisting of identical sectors ordered in a cyclic
way such as in Figure 144.
For such structures it is sufficient to model just one sector (also called datum
sector) to obtain the eigenfrequencies and eigenmodes of the whole structure.
The displacement values on the left and right boundary (or surfaces) of the
datum sector are phase shifted. The shift depends on how many waves are looked
for along the circumference of the structure. Figure 145 shows an eigenmode
for a full disk exhibiting two complete waves along the circumference. This
corresponds to four zero-crossings of the waves and a nodal diameter of two. This
nodal diameter (also called cyclic symmetry mode number) can be considered
as the number of waves, or also as the number of diameters in the structure
along which the displacements are zero.
The lowest nodal diameter is zero and corresponds to a solution which is
identical on the left and right boundary of the datum sector. For a struc-
ture consisting of N sectors, the highest feasible nodal diameter is N/2 for N
even and (N-1)/2 for N odd. The nodal diameter is selected by the user on the
*SELECT CYCLIC SYMMETRY MODES card. On the *CYCLIC SYMMETRY MODEL
card, the number of base sectors fitting in 360◦ is to be provided. On the same
card the user also indicates the number of sectors for which the solution is to
be stored in the .frd file. In this way, the solution can be plotted for the whole
structure, although the calculation was done for only one sector. The rotational
direction for the multiplication of the datum sector is from the dependent surface
(slave) to the independent surface (master).
Mathematically the left and right boundary of the datum sector are cou-
pled by MPC’s with complex coefficients. This leads to a complex generalized
eigenvalue problem with a Hermitian stiffness matrix, which can be reduced to
a real eigenvalue problem the matrices of which are twice the size as those in
the original problem.
292 6 THEORY
Figure 145: Eigenmode for a full disk with a nodal diameter of two
The phase shift between left and right boundary of the datum sector is given
by 2πN/M , where N is the nodal diameter and M is the number of base sectors
in 360◦ . Whereas N has to be an integer, CalculiX allows M to be a real number.
In this way the user may enter a fictitious value for M, leading to arbitrary phase
shifts between the left and right boundary of the datum sector (for advanced
applications).
For models containing the axis of cyclic symmetry (e.g. a full disk), the
nodes on the symmetry axis are treated differently depending on whether the
nodal diameter is 0, 1 or exceeds 1. For nodal diameter 0, these nodes are fixed
in a plane perpendicular to the cyclic symmetry axis, for nodal diameter 1 they
cannot move along the cyclic symmetry axis and for higher nodal diameters they
cannot move at all. For this kind of structures calculations for nodal diameters
0 or 1 must be performed in separate steps.
The mass normalization of a sector subject to cyclic symmetry is done based
on the mass of the sector itself. If the normalization were done based on 360◦
the modes corresponding√ to a nodal diameter p of 0 and M/2 (if M is even) would
have to be devided by M , the others by M/2.
Adjacent structures with datum sectors which differ in size can be calculated
by tying them together with the *TIE,MULTISTAGE keyword. The way this
works is illustrated in Figure 146. Two stages I and II with different cyclic
symmetry are adjacent to each other. To connect them, multiple point con-
294 6 THEORY
sector 3
C sector 2
Stage I
B sector 1
ϕmax
ϕ Stage II
A ϕ =2π /M
dep. B’ indep. sector 0
ϕmin
D
sector M−1
Figure 146:
straints are created. The larger stage segment is defined as the dependent side,
the smaller as the independent. A point in between them, such as point A (be-
longing to the dependent stage), can be connected directly to the independent
stage with a tie MPC. Other points, such as B (also belonging to the depen-
dent stage), are mapped into a point opposite of the basis sector 0 (point B’
belonging to the dependent side) by rotating them by a number of sectors, in
this case just 1 sector. Therefore, the displacements of B and B’ are identical
in cylindrical coordinates apart from a shift by just one sector:
2π
{U }cyl,B = {U }cyl,B ′ ei M (502)
for nodal diameter N = 1. The displacements for point B’ in the above
equation are obtained by a tie constraint of B’ with the opposite independent
face. For other nodal diameters the argument of the exponential function has
to be multiplied by N . For point C one obtains:
4π
{U }cyl,C = {U }cyl,C ′ ei M , (503)
and for point D:
2(M −1)π 2π
{U }cyl,D = {U }cyl,D′ ei M = {U }cyl,D′ e−i M . (504)
If the frequency calculation is a perturbation step (by specifying the param-
eter PERTURBATION on the *STEP card of the frequency step) preceded by
a static step, the multistage MPC’s reduce to those above for N=0, i.e. the
6.9 Types of analysis 295
displacements in cylindrical coordinates are the same for A and A’, for B and
B’ etc. However, this leads to inconsistent results in the presence of forces (axial
and/or tangential) in between the stages. Indeed, due to the larger size of the
dependent stage, an axial force in the independent stage has to be multiplied
by the ratio of the size of the stage segments. In the example in Figure 146 the
force in the dependent stage has to be four times the force in the independent
stage. This is obtained by multiplying the coefficient of the dependent node in
the connecting multiple points constraints by four ([24], Section 2.6.2). There-
fore, the connecting multistage constraints are different for a static step than
for a frequency step. Since the multistage constraints are created in CalculiX in
the first step, a static and a frequency step cannot be used in the same multi-
stage calculation. The solution to this is to perform the static step in a separate
calculation, store the stresses and displacements in the .dat-file, transform them
in the format of *INITIAL CONDITIONS for stresses and displacements and
include these in a subsequent perturbative frequency calculation.
The use of multistage conditions is illustrated by file multistage.inp in the
test examples.
Eigenmodes resulting from frequency calculations with cyclic symmetry can
be interpreted as traveling waves (indeed, all eigenmode solutions exhibiting a
complex nature, i.e. containing a real and imaginary part, are traveling waves).
Therefore, a circumferential traveling direction can be determined. This travel-
ing direction is determined in CalculiX and stored in the .dat-file together with
the axis reference direction.
To determine the traveling direction (cw or ccw) the displacement solution
at the center of each element is calculated:
u = uR + iuI
v = vR + ivI
w = wR + iwI , (505)
where u,v and w are the displacement components, the subscript R denotes
the real part, I the imaginary part. The sum of the square amounts to
u2 + v 2 + w2 = (u2R + vR
2 2
+ wR − u2I − vI2 − wI2 ) + 2i(uR uI + vR vI + wR wI ) (506)
or
X
bi Ui eiωt .
U (t) = (513)
i
Writing this equation for each value of j yields an eigenvalue problem of the
form
ω 2 b − iω C ∗ b − Diag(ωj2 ) b = 0 .
(515)
This is a nonlinear eigenvalue problem which can be solved by a Newton-
Raphson procedure. Starting values for the procedure are the eigenvalues of the
*FREQUENCY step and some values in between. In rare cases an eigenvalue
is missed (most often the last eigenvalue requested).
One can prove that the eigenvalues are real, the eigenmodes, however, are
usually complex. Therefore, instead of requesting U underneath the *NODE FILE
card yielding the real and imaginary part of the displacements it is rather in-
structive to request PU leading to the size and phase. With the latter informa-
tion the mode can be properly visualized in CalculiX GraphiX. In addition, the
traveling direction is determined in CalculiX and stored in the .dat-file together
with the axis reference direction.
Finally, notice that no *DLOAD card of type CORIO is needed in CalculiX.
A loading of type CENTRIF in a preceding *STATIC step is sufficient. The
usual procedure is indeed:
1. a *STATIC step to define the centrifugal force and calculate the deforma-
tion and stresses (may contain NLGEOM, but does not have to).
factor(s) are always stored in the .dat file. The load specified in a *BUCKLE
step should not contain prescribed displacements.
If the perturbation parameter is not activated on the *STEP card, the initial
stiffness matrix corresponds to the stiffness matrix of the unloaded structure.
If the perturbation parameter is activated, the initial stiffness matrix in-
cludes the deformation and stress stiffness matrix corresponding to the defor-
mation and stress at the end of the last static or dynamic step performed pre-
vious to the buckling step, if any, and the material parameters are based on the
temperature at the end of that step. In this way, the effect of previous loadings
can be included in the buckling analysis.
In a buckling step, all loading previous to the step is removed and replaced
by the buckling step’s loading, which is reset to zero at the end of the buckling
step. Thus, to continue a static step interrupted by a buckling step, the load
has to be reapplied after the buckling step. Due to the intrinsic nonlinearity of
temperature loading (the material properties usually change with temperature),
this type of loading is not allowed in a linear buckling step. If temperature load-
ing is an issue, a nonlinear static or dynamic calculation should be performed
instead.
√
the mass of this expansion, i.e. they are divided
p by M (for nodal diameter 0
and M/2, the latter only if M is even) or M/2 (other nodal diameters). M is
the number of bases sectors in 360◦.
Special caution has to be applied if 1D and 2D elements are used. Since
these elements are internally expanded into 3D elements, the application of
boundary conditions and point forces to nodes requires the creation of multiple
point constraints linking the original nodes to their expanded counterparts.
These MPC’s change the structure of the stiffness and mass matrix. However,
the stiffness and mass matrix is stored in the .eig file in the *FREQUENCY
step preceding the *MODAL DYNAMIC step. This is necessary, since the mass
matrix is needed for the treatment of the initial conditions ([24]) and the stiffness
matrix for taking nonzero boundary conditions into account. Summarizing,
the *MODAL DYNAMIC step should not introduce point loads or nonzero
boundary conditions in nodes in which no point force or boundary condition was
defined in the *FREQUENCY step. The value of the point force and boundary
conditions in the *FREQUENCY step can be set to zero. An example for the
application of point forces to shells is given in shellf.inp of the test example set.
Special effort was undertaken to increase the computational speed for modal
dynamic calculations. If time is an issue for you, please take into account the
following rules:
• Loads applied in many elements slow down execution. Together with the
previous rule this means that e.g. a constantly changing centrifugal load
is very detrimental to the performance of the calculation.
• Point loads act very local and are good for the performance.
• Use the parameter NSET on the *NODE FILE and *EL FILE card to
limit output to a small set of nodes in order to accelerate the execution.
• Using the user subroutine cload.f (Section 8.4.2) slows down the execution,
since this routine provides the user with the forces in the nodes at stake.
5. If centrifugal forces apply, the corresponding Coriolis forces are not taken
into account. The user has to assure that they are small enough so that
they can be neglected.
For cyclic symmetric structures the sector used in the corresponding *FRE-
QUENCY step is expanded into 360◦ and the eigenmodes√ are rescaled based on
the mass of this expansion, i.e. they are divided by M (for nodal diameter 0
6.9 Types of analysis 303
p
and M/2, the latter only if M is even) or M/2 (other nodal diameters). M is
the number of bases sectors in 360◦ .
The output of a steady state dynamics calculation is complex, i.e. it consists
of a real and an imaginary part. Consequently, if the user saves the displace-
ments to file, there will be two entries: first the real part of the displacement,
then the imaginary part. This also applies to all other output variables such as
temperature or stress. For the displacements, the temperatures and the stresses
the user can request that these variables are stored as magnitude and phase
(in that order) by selecting beneath the *NODE FILE card PU, PNT and PHS
instead of U, NT and S respectively. This does not apply to the *NODE PRINT
card.
Special caution has to be applied if 1D and 2D elements are used. Since
these elements are internally expanded into 3D elements, the application of
boundary conditions and point forces to nodes requires the creation of multiple
point constraints linking the original nodes to their expanded counterparts.
These MPC’s change the structure of the stiffness and mass matrix. However,
the stiffness and mass matrix is stored in the .eig file in the *FREQUENCY
step preceding the *STEADY STATE DYNAMICS step. This is necessary,
since the mass matrix is needed for the treatment of the initial conditions ([24])
and the stiffness matrix for taking nonzero boundary conditions into account.
Summarizing, the *STEADY STATE DYNAMICS step should not introduce
point loads or nonzero boundary conditions in nodes in which no point force
or boundary condition was defined in the *FREQUENCY step. The value of
the point force and boundary conditions in the *FREQUENCY step can be set
to zero. An example for the application of point forces to shells is given in
shellf.inp of the test example set.
from the stresses without need to set up the stiffness matrix. Therefore, each
increment is much faster than with the implicit scheme. Furthermore, in the ex-
plicit method no iterations are performed, so each increment consists of exactly
one iteration. However, the explicit scheme is only conditionally stable: in the
α-method, which in CalculiX is also used for explicit calculations (unless the
massless contact method is selected), the maximum time step ∆tcr is dictated
by:
Ωcr
∆tcr ≈ , (516)
ωmax
where Ωcr is given by Equation (2.477) in [24] and ωmax , which is the highest
natural frequency of an element, satisfies for volumetric elements:
c
ωmax ≈ 2 , (517)
hmin
where c is the velocity of sound for the material at stake and hmin is the
minimum height of the element. For an isotropic material c satisfies [68]:
s s
E(1 − ν) λ + 2µ
c= = . (518)
(1 + ν)(1 − 2ν)ρ ρ
It corresponds to the wave speed of longitudinal waves,
p which are faster than
transversal waves, for which the speed amounts to µ/ρ. For the special case
of single crystal materials, which are anistropic materials characterized by three
independent elastic contants, the derivation is more intricate [68]. Here, the
derivation will be given for general anisotropic materials.
First, the difference between the phase velocity and group velocity of a wave
is explained. A one-dimensional wave is described by
dx ω
c= = . (520)
dt k
Now, adding to this wave a wave with slightly different wave number and
angular frequency one obtains:
where
A := kx − ωt, (522)
and
ω + δω/2 ω
cph = ≈ (524)
k + δk/2 k
modulated by a wave whose velocity amounts to the so-called group velocity:
δω ∂ω
cg = ≈ . (525)
δk ∂k
The function ω versus k is called the dispersion relationship. If this relation-
ship is linear the phase and group velocity coincide. If not, they differ.
To obtain the phase velocity in three dimensions for an arbitrary material
the expression for a three-dimensional planar wave:
The polarization vectors are the eigenvectors of the system and are obtained
by substituting the eigenvalues in the eigenvalue system C = ξI. This leads
to the polarization vectors (n2 , −n1 , 0) and (n3 , 0, −n1 ) for the double root and
(n1 , n2 , n3 ) for the single root. The former eigenvectors are orthogonal to the
propagation direction of the wave n and therefore these are transversal waves,
whereas the latter eigenvector is parallel to the wave vector and corresponds to
a longitudinal wave.
In order to obtain an expression for the group velocity of the wave the deriva-
tive of the angular frequency ω w.r.t. the wave number vector k is needed. Mul-
tiplying the eigenvalue Equation [533] with the normalized polarization vector
pj yields:
Σijkl kl ki pk pj = ρω 2 . (542)
Taking the derivative w.r.t. kq leads to:
∂(kl ki ) ∂ω
Σijkl pk pj = 2ρω , (543)
∂kq ∂kq
or
∂ω
Σijkl [kl δiq + δlq ki ]pk pj = 2ρω . (544)
∂kq
This amounts to:
∂ω
Σqjkl kl pk pj + Σijkq ki pk pj = 2ρω . (545)
∂kq
Since Σijkq = Σkqij = Σqkij = Σqkji the term Σijkq ki pk pj equals Σqjkl kl pj pk ,
i.e. it is identical with the first term in the equation. Therefore:
∂ω
Σqjkl kl pk pj = ρω , (546)
∂kq
or
∂ω
Σijkl kl pk pj = ρω , (547)
∂ki
which amounts to:
∂ω Σijkl pj pk nl
(cg )i = = . (548)
∂ki ρc
The latter equation expresses the group velocity as a function of the polar-
ization vector, the wave vector and the phase velocity.
Substituting the isotropic elasticity tensor from Equation [536] leads to:
∂ω 1
= [λpi pk nk + µpi pl nl + µni ]. (549)
∂ki ρc
308 6 THEORY
p
For the longitudinal wave, knowing that cL := c = λ + 2µ/ρ, nkp, knk = 1
and kpk = 1 one gets
∂ω (λ + 2µ)
= n i = cL n i . (550)
∂ki ρcL
p
For the transversal waves cT := c = µ/ρ and n ⊥ p. Therefore:
∂ω µ
= n i = cT n i . (551)
∂ki ρcT
Consequently, for an isotropic elastic material the phase and group veloc-
ity coincide. For an anisotropic material, such as a single crystal, this is not
necessarily the case.
Now, coming back to the original question of a stable time step in an explicit
dynamic procedure it is clear that the maximal group speed is to be taken. For
an isotropic material this is the longitudinal wave speed. For an anisotropic
material the group speed may depend on the wave vector n. So for a given
wave vector Equation [533] has to be solved to yield the phase velocities c and
the corresponding polarization vectors p. The latter ones have to be substituted
in Equation [548] to find the group velocities. Now, the wave vector direction
has to be varied so as to find the maximum group velocity feasible for a material
characterized by the specific elastic tensor σijkl . This velocity is then used to
calculate ωmax and ∆tcr .
For the contact spring elements, the idealization of a spring with spring
constant k connecting two nodes with nodal masses M1 and M2 is used. For
such a system one obtains:
s
k(m1 + m2 )
ωmax = (552)
m1 m2
where m1 = M1 /2 and m2 = M2 /2. For node-to-face penalty contact and
face-to-face penalty contact the nodal mass on the facial sides can be obtained
by using the shape functions at the spring location.
To accelerate explicit dynamic calculations selective mass scaling can be
used [73]. It was introduced in CalculiX in the course of a Master Thesis [23].
Applying selective mass scaling the time increment can be increased, which
reduces the overall computational time. The selective mass scaling procedure
starts from the lumped mass matrix, which for linear elements and one global
coordinate direction looks like (examplary for a C3D8-element):
me
M= I, (553)
8
where me is the total mass of the element. Now, this mass matrix is aug-
mented by a multiple of itself after removal of the rigid body translational
modes:
me
∆M = (I − n ⊗ n), (554)
8
6.9 Types of analysis 309
For spring elements the mimimum time increment specified by the user is
obtained by reducing the spring stiffness. CalculiX stores the maximum spring
stiffness reduction to standard output.
Without a minimum time increment no selective mass scaling nor spring
stiffness reduction is applied.
The following damping options are available:
From now on the method will be called the massless explicit dynamics
method. Its implementation closely follows the frictional flow diagram in [69].
From this publication it is clear that the contactless stiffness matrix is needed.
The submatrix related to the contact degrees of freedom (master and slave) is
used to set up and solve an inclusion problem in an implicit way. The other
submatrices are used to calculate the right hand side of the dynamic equations.
The left hand side of these equations is made up of a combination of the mass
and damping matrix. It is assumed that these latter matrices do not change
during the step, therefore, they can be factorized once at the beginning of the
step.
If the NLGEOM parameter is not used on the *STEP card and if all materials
are linear the stiffness matrix is calculated only once at the beginning of the
step, else it is calculated in each increment which substantially increases the
computational time.
Limitations right now include:
q = h(T − T0 ) (560)
called sink temperature). CalculiX can also be used for forced convection
calculations, in which the sink temperature is an unknown too. This
applied to all kinds of surfaces cooled by fluids or gases.
For a heat transfer analysis the conductivity coefficients of the material are
needed (using the *CONDUCTIVITY card) and for transient calculations the
heat capacity (using the *SPECIFIC HEAT card). Furthermore, for radiation
boundary conditions the *PHYSICAL CONSTANTS card is needed, specifying
absolute zero in the user’s temperature scale and the Boltzmann constant.
Notice that a phase transition can be modeled by a local sharp maximum of
the specific heat. The energy U per unit of mass needed to complete the phase
transition satisfies
Z T1
U= CdT, (562)
T0
where C is the specific heat and [T0 , T1 ] is the temperature interval within
which the phase transition takes place.
6.9 Types of analysis 313
Table 9: Correspondence between the heat equation and the gas momentum
equation.
6.9.9 Acoustics
Linear acoustic calculations in gas are very similar to heat transfer calcula-
tions. Indeed, the pressure variation in a space with uniform basis pressure p0
and density ρ0 (and consequently uniform temperature T0 due to the gas law)
satisfies
1
∇ · (−I · ∇p) + p̈ = −ρ0 ∇ · f , (563)
c20
where I is the second order unit tensor (or, for simplicity, unit matrix) and
c0 is the speed of sound satisfying:
p
c0 = γRT0 . (564)
γ is the ratio of the heat capacity at constant pressure divided by the heat
capacity at constant volume (γ = 1.4 for normal air), R is the specific gas con-
stant (R = 287J/(kgK) for normal air) and T0 is the absolute basis temperature
(in K). Furthermore, the balance of momentum reduces to:
∇p = ρ0 (f − a). (565)
For details, the reader is referred to [27] and [2]. Equation (563) is the
well-known wave equation. By comparison with the heat equation, the corre-
spondence in Table (9) arises.
Notice, however, that the time derivative in the heat equation is first order, in
the gas momentum equation it is second order. This means that the transient
heat transfer capability in CalculiX can NOT be used for the gas equation.
However, the frequency option can be used and the resulting eigenmodes can be
taken for a subsequent modal dynamic or steady state dynamics analysis. Recall
that the governing equation for solids also has a second order time derivative
([24]).
For the driving terms one obtains:
Z Z Z
ρ0 (an − fn )dA − ρ0 ∇ · f dV = ρ0 an dA, (566)
A V A
314 6 THEORY
Table 10: Correspondence between the heat equation and the shallow water
equation.
which means that the equivalent of the normal heat flux at the boundary is
the basis density multiplied with the acceleration. Consequently, at the bound-
ary either the pressure must be known or the acceleration.
• no viscosity
• no Coriolis forces
• no convective acceleration
• H +η ≈H
h3 ρ
vb + va ∂(hρ)
∇ · (− I · ∇p) = − · ∇(hρ) − − ṁΩ , (568)
12µv 2 ∂t
where h is the film thickness, ρ is the mean density across the thickness, p is
the pressure, µv is the dynamic viscosity of the fluid, v a is the velocity on one
side of the film, v b is the velocity at the other side of the film and ṁΩ is the
resulting volumetric flux (volume per second and per unit of area) leaving the
film through the porous walls (positive if leaving the fluid). This term is zero if
the walls are not porous.
For practical calculations the density and thickness of the film is assumed to
be known, the pressure is the unknown. By comparison with the heat equation,
the correspondence in Table (11) arises. v is the mean velocity over the film,
v n its component orthogonal to the boundary. Since the governing equation is
the result of an integration across the film thickness, it is again two-dimensional
and applies in the present form to a plane film. Furthermore, observe that it is
a steady state equation (the time change of the density on the right hand side
is assumed known) and as such it is a Poisson equation. Here too, just like for
the shallow water equation, the heat transfer equivalent of a spatially varying
layer thickness is a spatially varying conductivity coefficient.
Table 11: Correspondence between the heat equation and the dynamic lubrica-
tion equation.
Table 12: Correspondence between the heat equation and the equation for in-
compressible irrotational inviscid flow.
Table 13: Correspondence between the heat equation and the equation for elec-
trostatics (metals and free space).
heat electrostatics
T V
q E
qn En = jσn
κ I
ρe
ρh ǫ0
ρc −
6.9.13 Electrostatics
The governing equations of electrostatics are
E = −∇V (571)
and
ρe
∇·E = , (572)
ǫ0
where E is the electric field, V is the electric potential, ρe is the elec-
tric charge density and ǫ0 is the permittivity of free space (ǫ0 = 8.8542 ×
10−12 C2 /Nm2 ). The electric field E is the force on a unit charge.
In metals, it is linked to the current density j by the electric conductivity
σc [5]:
j = σc E. (573)
In free space, the electric field is locally orthogonal to a conducting surface.
Near the surface the size of the electric field is proportional to the surface charge
density σ[29]:
σ = En ǫ0 . (574)
Substituting Equation (571) into Equation (572) yields the governing equa-
tion
ρe
∇ · (−I · ∇V ) = . (575)
ǫ0
Accordingly, by comparison with the heat equation, the correspondence in
Table (13) arises. Notice that the electrostatics equation is a steady state
equation, and there is no equivalent to the heat capacity term.
An application of electrostatics is the potential drop technique for crack
propagation measurements: a predefined current is sent through a conducting
318 6 THEORY
Table 14: Correspondence between the heat equation and the equation for elec-
trostatics (dielectric media).
heat electrostatics
T V
q D
qn Dn
κ ǫI
ρh ρf
ρc −
specimen. Due to crack propagation the specimen section is reduced and its
electric resistance increases. This leads to an increase of the electric potential
across the specimen. A finite element calculation for the specimen (electrostatic
equation with ρe = 0) can determine the relationship between the potential and
the crack length. This calibration curve can be used to derive the actual crack
length from potential measurements during the test.
Another application is the calculation of the capacitance of a capacitor.
Assuming the space within the capacitor to be filled with air, the electrostatic
equation with ρe = 0 applies (since there is no charge within the capacitor).
Fixing the electric potential on each side of the capacitor (to e.g. zero and one),
the electric field can be calculated by the thermal analogy. This field leads to a
surface charge density by Equation (574). Integrating this surface charge leads
to the total charge. The capacitance is defined as this total charge divided by
the electric potential difference (one in our equation).
For dielectric applications Equation (572) is modified into
∇ · D = ρf , (576)
where D is the electric displacement and ρf is the free charge density [29].
The electric displacement is coupled with the electric field by
D = ǫE = ǫ0 ǫr E, (577)
where ǫ is the permittivity and ǫr is the relative permittivity (usually ǫr > 1,
e.g. for silicon ǫr =11.68). Now, the governing equation yields
∇ · (−ǫI · ∇V ) = ρf (578)
and the analogy in Table (14) arises. The equivalent of Equation (574) now
reads
σ = Dn . (579)
The thermal equivalent of the total charge on a conductor is the total heat
flow. Notice that ǫ may be a second-order tensor for anisotropic materials.
6.9 Types of analysis 319
Table 15: Correspondence between the heat equation and the equation for
groundwater flow.
v = −k · ∇h (580)
∇ · v = 0, (581)
p0 − ρgz p0
h= +z = . (584)
ρg ρg
320 6 THEORY
2. surface of seepage, i.e. the interface between ground and air. One obtains:
p0
h= + z. (585)
ρg
3. unpermeable boundary: vn = 0
4. free surface, i.e. the upper boundary of the groundwater flow within the
ground. Here, two conditions must be satisfied: along the free surface one
has
p0
h= + z. (586)
ρg
In the direction n perpendicular to the free surface vn = 0 must be sat-
isfied. However, the problem is that the exact location of the free surface
is not known. It has to be determined iteratively until both equations are
satisfied.
∂ρA
∇ · j A + n˙A = , (588)
∂t
where
ρA
mA = (589)
ρA + ρB
and
ρ = ρA + ρB . (590)
In these equations j A is the mass flux of species A, D AB is the mass diffu-
sivity, mA is the mass fraction of species A and ρA is the density of species A.
Furthermore, n˙A is the rate of increase of the mass of species A per unit volume
of the mixture. Another way of formulating this is:
Table 16: Correspondence between the heat equation and mass diffusion equa-
tion.
heat mass diffusion
T ρ CA
q jA J ∗A
qn jA n JA ∗ n
κ DAB D AB
ρh n˙A N˙A
ρc 1 1
CA
xA = (593)
CA + CB
and
C = CA + CB . (594)
Here, J ∗A is the molar flux of species A, D AB is the mass diffusivity, xA is
the mole fraction of species A and CA is the molar concentration of species A.
Furthermore, N˙A is the rate of increase of the molar concentration of species A.
The resulting equation now reads
∂ρA
∇ · (−ρDAB · ∇mA ) + = n˙A . (595)
∂t
or
∂CA
∇ · (−CD AB · ∇xA ) + = N˙A . (596)
∂t
If C and ρ are constant, these equations reduce to:
∂ρA
∇ · (−D AB · ∇ρA ) + = n˙A . (597)
∂t
or
∂CA
∇ · (−DAB · ∇CA ) + = N˙A . (598)
∂t
Accordingly, by comparison with the heat equation, the correspondence in
Table (16) arises.
p = ρRT, (599)
where p is the pressure, ρ is the density, R is the specific gas constant
and T is the absolute temperature. A network element (see section 6.2.33)
consists of three nodes: in the corner nodes the temperature and pressure are the
unknowns, in the midside node the mass flow is unknown. The corner nodes play
the role of crossing points in the network, whereas the midside nodes represent
the flow within one element. To determine these unknowns, three types of
equations are available: conservation of mass and conservation of energy in the
corner nodes and conservation of momentum in the midside node. Right now,
only stationary flow is considered.
The stationary form of the conservation of mass for compressible fluids is
expressed by:
∇ · (ρv) = 0 (600)
where v the velocity vector. Integration over all elements connected to corner
node i yields:
X X
ṁij = ṁij , (601)
j∈in j∈out
where ṁij is the mass flow from node i to node j or vice versa. In the above
equation ṁij is always positive.
The conservation of momentum or element equations are specific for each
type of fluid section attributed to the element and are discussed in Section 6.4
on fluid sections. For an element with corner nodes i,j it is generally of the form
f (pti , Tti , ṁij , ptj ) = 0 (for positive ṁij , where p is the total pressure and Tt
is the total temperature), although more complex relationships exist. Notice in
particular that the temperature pops up in this equation (this is not the case
for hydraulic networks).
The conservation of energy for an ideal gas in stationary form requires ([32],
see also Equation (38)):
v·v
Tt = T + , (604)
2cp
and
κ
κ−1
pt Tt
= , (605)
p T
where κ = cp /cv . T and p are also called the static temperature and static
pressure, respectively.
If the corner nodes of the elements are considered to be large chambers, the
velocity v is zero. In that case, the total quantities reduce to the static ones,
and integration of the energy equation over all elements belonging to end node
i yields [24]:
X X
cp (Tj )Tj ṁij − cp (Ti )Ti ṁij + h(Ti , T )(T − Ti ) + mi hθi = 0, (606)
j∈in j∈out
where h(Ti , T ) is the convection coefficient with the walls. Notice that,
although this is not really correct, a slight temperature dependence of cp is
provided for. If one assumes that all flow entering a node must also leave it and
taking for both the cp value corresponding to the mean temperature value of
the entering flow, one arrives at:
X
cp (Tm )(Tj − Ti )ṁij + h(Ti , T )(T − Ti ) + mi hθi = 0. (607)
j∈in
Output variables are the mass flow (key MF on the *NODE PRINT or
*NODE FILE card), the total pressure (key PN — network pressure — on the
*NODE PRINT card and PT on the *NODE FILE card) and the total tem-
perature (key NT on the *NODE PRINT card and TT on the *NODE FILE
card). Notice that the labels for the *NODE PRINT keyword are more generic
in nature, for the *NODE FILE keyword they are more specific. These are the
primary variables in the network. In addition, the user can also request the
static temperature (key TS on the *NODE FILE card). Internally, in network
nodes, components one to three of the structural displacement field are used for
the mass flow, the total pressure and the static temperature, respectively. So
their output can also be obtained by requesting U on the *NODE PRINT card.
∇·v=0 (608)
where ρ is the density and v the velocity vector. Integration over all elements
connected to an corner node yields:
X X
ṁij = ṁij , (609)
j∈in j∈out
where ṁij is the mass flow from node i to node j or vice versa. In the above
equation ṁij is always positive.
The conservation of momentum reduces to the Bernoulli equation. It is
obtained by projecting the general momentum equation (substitute Equation
(1.535) into Equation (1.334) in [24]) on a flow line. Since a flow line is every-
where locally parallel to the velocity vector, this amounts to a multiplication
by:
dxk vk
= (610)
ds kvk
leading to (where for the gravity fk = gz,k with z the coordinate perpendic-
ular to the earch surface was inserted):
6.9 Types of analysis 325
vk ∂vk vk vk,l vl dxk dxk dxk
ρ + = tkl,l − p,k − ρgz,k . (611)
kvk ∂t kvk ds ds ds
Since
vk vk,l vl dxl 1 dxl d vk vk
= vk vk,l = (vk vk ),l = , (612)
kvk ds 2 ds ds 2
one obtains:
∂kvk d vk vk dxk dp dz
ρ + = tkl,l − − ρg . (613)
∂t ds 2 ds ds ds
Dividing by ρg and integration from s1 to s2 yields:
1 s2 ∂kvk 2 kvk2
Z s2
1 2 p
Z 2
ds + ∆ = tkl,l dxk − ∆ − ∆z. (614)
g s1 ∂t 1 2g ρg s1 1 ρg 1
Applying this equation for steady state flow within an element with corner
nodes i and j reads:
pi ṁ2ij pj ṁ2ij
zi + + 2 2 = zj + + 2 2 + ∆Fij , (615)
ρg 2ρ Ai g ρg 2ρ Aj g
where
Z j
∆Fij := tkl,l dxk . (616)
i
Here, z is the height of the node, p the pressure, ρ the density, g the gravity
acceleration, A the cross section in the node and ∆Fij is the head loss across the
element. The head loss is positive if the flow runs from i to j, else it is negative
(or has to be written on the other side of the equation). The head losses for
different types of fluid sections are described in Section 6.5.
Notice that the height of the node is important, therefore, for hydraulic
networks the gravity vector must be defined for each element using a *DLOAD
card.
The conservation of energy in stationary form requires ([24]):
X X
cp (Ti ) Tj ṁij − cp (Ti )Ti ṁij + h(Ti , T )(T − Ti ) + mi hθi = 0, (618)
j∈in j∈out
326 6 THEORY
where h(Ti , T ) is the convection coefficient with the walls. If one assumes
that all flow entering a node must also leave it and taking for both the cp value
corresponding to the mean temperature value of the entering flow, one arrives
at:
X
cp (Tm )(Tj − Ti )ṁij + h(Ti , T )(T − Ti ) + mi hθi = 0. (619)
j∈in
Tt − T = v 2 /(2cp ), (620)
the difference between total and static temperature for a fluid velocity of
5 m/s and cp = 4218 J/(kg.K) (water) amounts to 0.0030 K. This is different
from the gases since typical gas velocities are much higher (speed of sound is
340 m/s) and cp for gases is usually lower.
θ θ
b
θ θ h
b
φ
Assuming:
1. steady-state flow
2. each cross section is hydrostatic
3. the velocity is constant across each cross section
4. the velocity vector is perpendicular to each cross section,
Q2
d dh
q
= −Sf − 1 − S02 + S0 , (622)
ds 2gA2 ds
where (Figure 147) h is the water depth (measured perpendicular to the
channel floor), s is the length along the bottom, S0 = sin(φ), where φ is the angle
the channel floor makes with a horizontal line, Sf is a friction term (head loss
per unit of length; results from the viscous stresses), g is the earth acceleration,
Q is the volumetric flow (mass flow divided by the fluid density) and A is the
area of the cross section. This also amounts to:
Q2
Q dQ ∂A ∂A dh dh
q
− + + 1 − S02 = S0 − Sf . (623)
gA2 ds gA3 ∂s h=cte ∂h ds ds
f Q2 P
Sf = , (625)
8g A3
where f is the friction coefficient determined by Equation (163), and P is
the wetted circumference of the cross section. The Manning formula reads
n2 Q2 P 4/3
Sf = (626)
A10/3
where n is the Manning coefficient, which has to be determined experimen-
tally.
In CalculiX, the channel cross section has to be trapezoidal (Figure 147).
For this geometry the following relations apply:
2h
P =b+ (628)
cos θ
and
B = b + 2h tan θ. (629)
All geometry parameters are assumed not to change within an element(allowing
a changing geometry within an element leads to complications, e.g. a non-
constant width b may lead to a fall (i.e. a transition from subcritical flow to
supercritical flow) within one and the same element. In CalculiX. a changing
width can be treated in a discontinuous way by using the Contraction element).
Consequently:
∂A
= 0. (630)
∂s
and one obtains the Bresse equation in the form (for White-Colebrook):
2
f Q P
dh S0 − 8g A3
=p 2B . (631)
ds 1 − S0 − Q
2
gA3
Recall that in the above formula B, P and A are a function of the depth h.
The numerator has for positive S0 exactly one root, which is called the normal
depth. For this depth there is no change in h along the channel. For zero or
negative S0 there is no root. The denominator has always exactly one root,
called the critical depth. For this depth the slope is infinite. It is very weakly
dependent on S0 . Notice that both the normal depth (if defined) and the critical
depth are monotonically increasing functions of the volumetric fluid flow.
Let us for the time being assume that S0 is positive. For h close to zero both
the denominator and numerator are negative, so the slope of dh/ds is positive.
6.9 Types of analysis 329
For high enough values of h both are positive, which also leads to a positive
slope for dh/ds. Only for values of h in between the normal and critical depth
the slope dh/ds is negative. For low values of S0 the normal depth exceeds
the critical depth and the corresopnding channel slope (slope of the bottom) is
called weak. The corresponding water curves are denoted by A1, A2 and A3
depending on whether the curve is above the normal depth, in between normal
depth and critical depth or below the critical depth, respectively. For high
values of S0 the critical depth exceeds the normal depth and the corresponding
channel slope is called strong. The corresponding water curves are denoted by
B1, B2 and B3 depending on whether the curve is above the critical depth, in
between the critical depth and the normal depth or below the normal depth,
respectively. Water curves below the critical depth are governed by upstream
boundary conditions and are called frontwater curves. Water curves above the
critical depth are governed by downstream boundary conditions and are called
backwater curves.
Channel flow can be supercritical or subcritical. For supercritical flow√the
velocity exceeds the propagation speed c of a wave, which satisfies c = gh.
Defining the Froude number by F r = U/c, where U is the velocity of the fluid,
supercritical flow corresponds to F r > 1. Supercritical flow is controlled by
upstream boundary conditions. If the flow is subcritical (F r < 1) it is con-
trolled by downstream boundary conditions. In a subcritical flow disturbances
propagate upstream and downstream, in a supercritical flow they propagation
downstream only. The critical depth corresponds to U = c. Indeed, taking a
rectangular cross section the denominator of the Bresse equation is zero if
q
U 2 = gh 1 − S02 . (632)
For frontwater curves h is less than the critical depth, consequently the
velocity must exceed c (conservation of mass) and is supercritical. For backwater
curves h exceeds the critical depth and the velocity is less than c, the flow is
subcritical.
A transition from supercritical to subcritical flow is called a hydraulic jump,
a transition from subcritical to supercritical flow is a fall. At a jump the fol-
lowing equation is satisfied [17]:
q q
ṁ2 + ρ2 g 1 − S02 A21 yG 1 = ṁ2 + ρ2 g 1 − S02 A22 yG 2 , (633)
where A1 , A2 are the cross sections before and after the jump, yG 1 and yG 2
is the distance orthogonal to the channel floor between the fluid surface and
the center of gravity of section A1 and A2 , respectively, ρ is the fluid density
and ṁ is the mass flow. This relationship can be obtained by applying the
conservation of momentum principle to a mass of infinitesimal width at the
jump. The conservation of momentum dictates that the time rate of change of
the momentum must equal all external forces. In Figure 148 a mass of width
ds is shown at time t crossing a jump. At time t + dt this mass is moved to the
right (width ds′ ). The change in momentum in s-direction amounts to
330 6 THEORY
h h
U 1 2
1
U2
ds
ds’
The forces are the hydrostatic forces on the right and left side of the mass:
q q
ρg(yG 1 1 − S02 )A1 − ρg(yG 2 1 − S02 )A2 . (635)
All other forces such as gravity and wall friction disappear for ds → 0.
Equating both terms yields the jump equation. Notice that this relationship
cannot be obtained by using the Bresse equation, since h is discontinuous at the
jump. The discrete form of the Bernoulli equation (615) cannot be used either,
since it is obtained by integrating the differential form and dp/ds = ρgdh/ds
is discontinuous. However, one can write down Equation (615) pro forma and
deduce the head loss in a jump by formally substituting the jump equation. One
obtains:
(h2 − h1 )3
∆F = . (636)
4h1 h2
Since the head loss must be positive, this also proves that a fall cannot
occur in a prismatic channel (i.e. a channel with constant cross section). There-
fore, a fall can only occur at discontinuities in the channel geometry, e.g. at a
discontinuous increase of the channel floor slope S0 .
This approach opens up an alternative to using the conservation of momen-
tum principle at discontinuities: if one knows the head loss (e.g. by performing
experiments) one can apply the discrete form of the Bernoulli equation in the
form:
ṁ2 ṁ2
z1 + h1 cos ϕ + 2 2 = z2 + h2 cos ϕ + 2 2 + ∆F. (637)
2ρ A1 g 2ρ A2 g
6.9 Types of analysis 331
hcrit (Q)
h max
supercritical depth
Q1 Q max Q
Q2
E := h cos ϕ + , (638)
2A2 g
one can write the above equation as z1 + E1 = z2 + E2 + ∆F , from which it
is clear that the total head z + E can never increase in the direction of the flow,
however, the specific energy can. From the definition of the specific energy one
can derive the dependence of Q on h, as shown in Figure 149:
p
Q = A 2g(E − h cos ϕ). (639)
To determine the maximum allowable volumetric flow for a given value of
E one has to set the first derivative of the above equation to zero, resulting in
(recall that ∂A/∂h = B):
Q2max
= cos ϕ. (642)
gA3 B
This corresponds to the denominator of the Bresse equation, i.e. the depth
for which the volumetric flow is maximum is the critical depth. This is illustrated
in Figure 149. Curves corresponding to lower values of E also go through
the origin and are completely contained in the curve shown. These curves
cannot intersect, since this would mean that the intersection point corresponds
to different energy values.
For a volumetric flow lower than the maximal one (Q1 in the figure), two
depths are feasible: a subcritical one and a supercritical one. The transition
from a supercritical one to a subcritical corresponds to a jump. At the location
of the jump z1 = z2 , however, ∆F 6= 0, so E2 < E1 and the subcritical height
will be slightly lower than in the figure. For geometric discontinuities for which
the head loss is known (e.g. for a contraction or an enlargement) the above
reasoning can be used to obtain the fluid depth downstream of the discontinuity
based on the specific energy upstream (or vice versa).
Available boundary conditions for channels are the sluice gate and the weir
(upstream conditions) and the infinite reservoir (downstream condition). They
are described in Section 6.6. Discontinuous changes within a channel can be
described using the contraction, enlargement and step elements.
The elements used in CalculiX for one-dimensional channel networks are
regular network elements, in which the unknowns are the fluid depth (in z-
direction, i.e. not orthogonal to the channel floor) and the temperature at the
6.9 Types of analysis 333
end nodes and the mass flow in the middle nodes. The equations at our disposal
are the Bresse equation in the middle nodes (conservation of momentum), and
the mass and energy conservation (Equations 609 and 618, respectively) at the
end nodes.
For channel elements the energy equation is used in its original form:
X X
cp (Tj )Tj ṁij − cp (Ti )Ti ṁij + h(Ti , T )(T − Ti ) + mi hθi = 0, (643)
j∈in j∈out
X X
cp (Tj )Tj ṁij − cp (Ti )Ti ṁij + h(Ti , T )(T − Ti )
j∈in j∈out
output can also be obtained by requesting U on the *NODE PRINT card. This
is the only way to get the critical depth in the .dat file. In the .frd file the
critical depth can be obtained by selecting HCRI on the *NODE FILE card.
Notice that for liquids the total temperature virtually coincides with the static
temperature (cf. previous
√ section; recall that the wave speed in a channel with
water depth 1 m is 10 m/s). If a jump occurs in the network, this is reported
on the screen listing the element in which the jump takes place and its relative
location within the element.
• thermal calculations do not influence the velocity and the pressure field.
A calculation is considered thermal if initial conditions have been specified
for the temperature.
• the material properties are introduced by the *DENSITY and the *FLUID
CONSTANTS card. In case temperatures are to be calculated the *CON-
DUCTIVITY card is needed.
• for compressible flow the temperature is strongly linked to the velocity and
the pressure. Therefore, initial conditions for all these fields are needed.
• the *CONDUCTIVITY and *SPECIFIC GAS CONSTANT card under-
neath the *MATERIAL card are required, the *DENSITY card must not
be used.
• the *PHYSICAL CONSTANTS card is required for the definition of ab-
solute zero
6.9 Types of analysis 335
• The solution can be mesh dependent, i.e. the fluid flow sometimes follows
the element edges although this may be wrong. This is particularly true
for coarse meshes.
• If the boundaries of the mesh are too close to the area of interest the
solution may not be unique. For instance, turbulent flow may lead to an
undefined reentry at the exit of your mesh. Consequently, the boundaries
of your mesh must be far enough away.
The basic idea of the CBS method is to formulate the governing equation
in a coordinate system moving with the characteristics of the flow, leading to
a disappearance of the convective first order terms. To illustrate this, we start
from a one-dimensional equation in the non-conservative form (the velocity v is
brought outside the partial differentiation)
∂φ ∂φ ∂ ∂φ
+v − κ − Q = 0, (646)
∂t ∂x ∂x ∂x
exhibiting a transient, convective, diffusive and source term (φ is some de-
pendent quantity such as temperature). Applying a change of variables from x
to x’:
n+1
n x−δ x
n+1
1 ∂ ∂φ
φn+1 − φn |x−δ ≈θ
κ +Q
∆t ∂x ∂x
x
n
∂ ∂φ
+(1 − θ) κ +Q , (649)
∂x ∂x x−δ
n n n
∂ ∂φ ∂ ∂φ ∂ ∂ ∂φ
κ = κ −δ κ + O(δ 2 ), (651)
∂x ∂x x−δ ∂x ∂x x ∂x ∂x ∂x x
and
∂Q n
Qn |x−δ = Qn |x − δ + O(δ 2 ). (652)
∂x x
Therefore, Equation (649) now yields (from now on the subindex x is dropped
to simplify the notation):
6.9 Types of analysis 337
n n+1
∂φ n δ 2 ∂ 2 φ
1 n+1 ∂ ∂φ
(φ − φn +δ − ) ≈ θ κ + Q
∆t ∂x 2 ∂x2 ∂x ∂x
n n
∂ ∂φ ∂ ∂ ∂φ
+(1 − θ) κ −δ κ
∂x ∂x ∂x ∂x ∂x
n
∂Q
+(1 − θ) Qn − δ (653)
∂x
1 n+1
+ v n |x−δ .
v≈ v (654)
2
Since
∂v n
v n |x−δ = v n − δ + O(δ 2 ) (655)
∂x
one obtains:
1 δ ∂v n
v = (v n+1 + v n ) − + O(∆t2 )
2 2 ∂x
v∆t ∂v n
=v n+1/2 − + O(∆t2 )
2 ∂x
n+1/2 n
v ∆t ∂v
=v n+1/2 − + O(∆t2 ), (656)
2 ∂x
where
1 n+1
v n+1/2 := (v + vn ) (657)
2
v n+1/2 ∆t2 ∂v n
δ = v n+1/2 ∆t − + O(∆t3 ). (658)
2 ∂x
v n+1/2 2 ∂v n ∂φ n
1 n+1 1
(φ − φn ) = − v n+1/2 ∆t − ∆t + O(∆t3 )
∆t ∆t 2 ∂x ∂x
2 n
1 2 ∂ φ
+ v n+1/2 ∆t2 + O(∆t3 )
2∆t ∂x2
n+1
1 ∂ ∂φ
+ κ +Q
2 ∂x ∂x
n
1 ∂ ∂φ
+ κ +Q
2 ∂x ∂x
n
∆t n+1/2 ∂ ∂ ∂φ
− v κ + O(∆t2 )
2 ∂x ∂x ∂x
∆t ∂Q n
− v n+1/2 + O(∆t2 ). (659)
2 ∂x
Since
∂v n
∆t/2 + O(∆t2 ),
v n+1/2 = v n + (660)
∂t
v n in the first line of Equation (659) can be replaced by v n+1/2 without loss
of accuracy. Therefore, the terms quadratic in ∆t in the first two lines can be
merged into:
2 n+1/2
∆t2 ∂ 2 φ 2
n+1/2 ∆t 2 ∂v ∂φ n+1/2 ∆t ∂ n+1/2 ∂φ
v ∆t + (v n+1/2 )2 = v v ,
2 ∂x ∂x 2 ∂x2 2 ∂x ∂x
(661)
and one now obtains:
( n+1/2 )
n
n+1 n n+1/2 ∂φ
∂ ∂φ
(φ − φ ) = − ∆t v − κ +Q
∂x ∂x ∂x
n
∆t2 n+1/2 ∂
n+1/2 ∂φ ∂ ∂φ
+ v v − κ − Q + O(∆t3 ).
2 ∂x ∂x ∂x ∂x
(662)
∂v n ∆tn
v n+1/2 = v n + + O(∆t2n ), (663)
∂t 2
(∆tn := tn+1 − tn ) and
∂v n
v n−1 = v n − ∆tn−1 + O(∆t2n−1 ), (664)
∂t
6.9 Types of analysis 339
∂v n vn − vn−1
= + O(∆tn−1 ), (665)
∂t ∆tn−1
one obtains
v n − v n−1
n+1/2 n ∆tn
v =v + + O(∆tn ∆tn−1 ) + O(∆t2n ), (666)
∆tn−1 2
v n − v n−1
v n+1/2 = v n + + O(∆t2 ). (667)
2
In the same way the diffusive and source terms at time tn+1/2 are evalu-
ated based on a similar extrapolation of the velocity and temperature (for the
momentum and energy equation, respectively).
Generalizing Equation (662) to three dimensions and writing the equation in
conservative form (i.e. replacing v n+1/2 ∂φ/∂x by ∂v n+1/2 φ/∂x) finally yields:
n+1/2 n
( n+1/2 )
∂(vj φ )
∂ ∂φ
(φn+1 − φn ) ≈ − ∆t − +Q κ
∂xj ∂xj ∂xj
" n+1/2
#n
∆t2 n+1/2 ∂ ∂(vj φ)
∂ ∂φ
+ v − κ −Q . (668)
2 k ∂xk ∂xj ∂xj ∂xj
The last three terms can be viewed as stabilization terms. Usually, only
terms up to the second order derivative are taken into account. Therefore, the
stabilization term for the diffusion is usually neglected.
The corresponding weak formulation is obtained by multiplying the above
equation with the shape function ϕα for a concrete node and integrating over
the volume. Therefore, the CBS Method transforms a transport equation of the
form
∂C
= −(vk C),k + Dk,k + F, (669)
∂t
where C stands for the convective term, D for the diffusion term and F for
the source term, into
340 6 THEORY
X Z Z X n+1/2
ϕα ϕβ dV ∆Cβ = − ∆t ϕα (vk ϕβ ),k Cβn dV
β V V β
Z
n+1/2
− ∆t ϕα,k Dk dV
V
Z
+ ∆t ϕα F n+1/2 dV
V
∆t2
Z
n+1/2 n+1/2
X
− (ϕα vl ),l (vk ϕβ ),k Cβn dV
2 V
β
Z
n+1/2
+ ∆t ϕα Dk nk dA
A
∆t2
Z
n+1/2
+ (ϕα vl ),l F n dV. (670)
2 V
Notice that the integral over the total volume in reality is a sum of the
integrals over each element. PFor each element the local shape functions are used
in expressions such as C = β ϕβ Cβ .
The first, second and third term on the right hand side correspond to con-
vection, diffusion and external forces, respectively. The fourth and sixth terms
are the stabilization terms for convection and external forces, while the fifth
term is the area term corresponding to diffusion. It is the result of partial in-
tegration. The stabilization terms were obtained through partial integration
too. In agreement with the CBS Method the corresponding area terms are ne-
glected. Furthermore, third-order and higher order terms are neglected as well
(particularly the stabilization terms corresponding to diffusion).
This method is now applied to the transport equations for mass, momentum
and energy. Furthermore, the resulting momentum equation is split into two
parts (Split scheme A in [113]), one part of which is calculated at the beginning
of the iteration scheme. Subsequently, the conservation of mass equation is
solved, followed by the second part of the momentum equation. To this end the
correction to the momentum ∆Vk = ρ∆vk in direction k is written as a sum of
two corrections:
∆Vk = ∆Vk∗ + ∆Vk∗∗ . (671)
This results in the following steps:
X Z Z X n+1/2
∗ n
ϕα ϕβ dV ∆Vβi = − ∆t ϕα (vk ϕβ ),k Vβi dV
β V V β
Z
− ∆t ϕα,k (tik + tR
ik )
n+1/2
dV
ZV
n+1/2
+ ∆t ϕα ρgi dV
V
2
∆t
Z
n+1/2 n+1/2
X
n
− (ϕα vl ),l (vk ϕβ ),k Vβi dV
2 V β
2
∆t
Z
n+1/2
+ (ϕα vl ),l ρgin dV
2 V
Z
+ ∆t ϕα (tik + tR
ik )
n+1/2
nk dA. (673)
A
Vi is the momentum, tik is the diffusive stress and tR ik is the Reynolds stress
multiplied by ρ (only for turbulent flow), all evaluated at time t. gi is the gravity
acceleration at time t + ∆t. The diffusive stress satisfies
2
tik = µ(vi,k + vk,i − vm,m δik ) (674)
3
whereas tR
ik is defined by
2 2
tR
ik = µt (vi,k + vk,i − vm,m δik ) − ρkδik . (675)
3 3
Here, µt is the turbulent viscosity and k is the turbulent kinetic energy.
What is lacking in equation (673) to be equivalent to the momentum transport
equation is the pressure term.
n+1/2 n
∆t2 n+1/2 ∂
∂p ∂p
∆Vi∗∗ ≈ −∆t + v . (678)
∂xi 2 k ∂xk ∂xi
Before substituting Equation (678) into Equation (677) the stabilization
term is dropped (leads to a third order derivative) and the pressure gradient at
n + 1/2 is changed into a gradient in between n and n + 1 by use of a parameter
θ2 (θ2 is equivalent to θ in Equation(653):
n
∗∗ ∂p ∂∆p
∆Vi ≈ −∆t − θ2 ∆t . (679)
∂xi ∂xi
For θ2 = 0 one obtains an explicit scheme (used for compressible media), for
θ2 = 1 an implicit scheme (used for incompressible media). Now one obtains for
Equation (677):
2 n
∂V n ∂∆Vi∗ ∂ 2 ∆p
∆ρ ∂ p
≈ − i − θ1 + θ1 ∆t + θ2 . (680)
∆t ∂xi ∂xi ∂xi ∂xi ∂xi ∂xi
Applying Galerkin and partial integration to all terms on the right, this leads
to:
X Z X Z
2
ϕα ϕβ dV ∆ρβ + θ1 θ2 (∆t) ϕα,i ϕβ,i dV ∆pβ
β V β V
Z X
n
= ∆t ϕα,i ϕβ Vβi dV
V β
Z X
∗
+ θ1 ∆t ϕα,i ϕβ ∆Vβi dV
V β
Z X
− θ1 (∆t)2 ϕα,i ϕβ,i pnβ dV
V β
Z
− ∆t ϕα Vin ni dA. (681)
A
Z Z
∆t ϕα [Vin + θ1 (∆Vi∗ + ∆Vi∗∗ )]ni dA ≈ ∆t ϕα Vin ni dA, (682)
A A
leading to the last term in equation (681). The velocity in the mass con-
servation equation is calculated at time t + θ1 ∆t, whereas the pressure in the
momentum transport equation is expressed at time t + θ2 ∆t (0 ≤ θ1 , θ2 ≤ 1). If
θ2 = 0 the scheme is called explicit, else it is semi-implicit (in the latter case it
6.9 Types of analysis 343
is not fully implicit, since the diffusion term in the momentum equation is still
expressed at time t). For compressible fluids (gas) an explicit scheme is taken.
This means that the second term on the left hand side of equation (681) dis-
appears and the only unknowns are ∆ρβ . For incompressible fluids the density
is constant and consequently the first term is zero: the unknowns are now the
pressure terms ∆pβ .
An additional difference between compressible and incompressible fluids is
that the left hand side of equation (681) for incompressible fluids (liquids) is
usually not lumped: a regular sparse linear equation solver is used. For com-
pressible fluids it is lumped, leading to a diagonal matrix. Lumping is also
applied to all other equations (momentum,energy..), irrespective whether the
fluid is a liquid or not.
This equation takes care of the pressure term in the momentum equation,
which was not covered by step 1. Now, the terms are evaluated at n + θ2 :
n n
∂p ∂∆p n+1/2 ∂ ∂p
∆Vi∗∗ ≈ −∆t − θ2 ∆t + (1 − θ2 )∆t2 vk . (683)
∂xi ∂xi ∂xk ∂xi
X Z Z X
∗∗
ϕα ϕβ dV ∆Vβi = − ∆t ϕα ϕβ,i pβ dV
β V V β
Z X
− θ2 ∆t ϕα ϕβ,i ∆pβ dV
V β
Z X
− (1 − θ2 )∆t2 (ϕα vk ),k ϕβ,i pβ dV. (684)
V β
Notice that for compressible fluids the second term on the right hand side
disappears (θ2 = 0). Consequently, ∆p is not needed for gases. This is good
news, since only ∆ρ is known at this point (conservation of mass).
∂ρεt
= −[vk (ρεt + p)],k + [tkm vm + κT,k ],k + [ρfk vk + ρhθ ], (685)
∂t
344 6 THEORY
where εt is the total internal energy per unit of volume, κ is the conduction
coefficient, fk are the external forces and hθ represents volumetric heat sources.
εt satisfies
X Z Z X n+1/2
ϕα ϕβ dV (∆ρεt )β = − ∆t ϕα (vk ϕβ ),k (ρεt + p)nβ dV
β V V β
Z
− ∆t ϕα,k (tkm vm + κT,k )n+1/2 dV
V
Z
+ ∆t ϕα [ρfk vk + ρhθ ]n+1/2 dV
V
∆t2
Z
n+1/2 n+1/2
X
− (ϕα vl ),l (vk ϕβ ),k (ρεt + p)nβ dV
2 V
β
2 Z
∆t n+1/2
+ (ϕα vl ),l [ρfk vk + ρhθ ]n dV
2 V
Z
+ ∆t ϕα (tkm vm + κT,k )n+1/2 nk dA. (689)
A
p = ρrT, (690)
where r is the specific gas constant.
6.9 Types of analysis 345
Step 5: Turbulence
∂ρk
= −[vk (ρk)],k + [(µ + σk ρνt )k,k ],k + (tR ∗
ij ui,j − β ρωk) (691)
∂t
and
∂ρω γ 2
= −[vk (ρω)],k +[(µ+σω ρνt )ω,k ],k +( tR ui,j −βρω 2 + (1−F1 )ρσω2 k,j ω,j ).
∂t νt ij ω
(692)
For the meaning of the constants the reader is referred to Menter [60]. The
turbulence equations are in a standard form clearly showing the convective,
diffusive and source terms. Consequently, application of the CBS scheme is
straightforward:
X Z Z X n+1/2
ϕα ϕβ dV (∆ρk)β = − ∆t ϕα (vk ϕβ ),k (ρk)nβ dV
β V V β
Z
n+1/2
− ∆t ϕα,k (µ + σk ρνt )k,k dV
V
Z
+ ∆t ϕα [tR ∗
ij ui,j − β ρωk]
n+1/2
dV
V
∆t2
Z
n+1/2 n+1/2
X
− (ϕα vl ),l (vk ϕβ ),k (ρk)nβ dV
2 V
β
2 Z
∆t n+1/2
+ (ϕα vl ),l [tR ∗ n
ij ui,j − β ρωk] dV
2 V
Z
n+1/2
+ ∆t ϕα (µ + σk ρνt )k,k nk dA. (693)
A
346 6 THEORY
X Z Z X n+1/2
ϕα ϕβ dV (∆ρω)β = − ∆t ϕα (vk ϕβ ),k (ρω)nβ dV
β V V β
Z
n+1/2
− ∆t ϕα,k (µ + σω ρνt )ω,k dV
V
γ R
Z
+ ∆t ϕα [ t ui,j − βρω 2
V νt ij
2
+ (1 − F1 )ρσω2 k,j ω,j ]n+1/2 dV
ω
2 Z
∆t n+1/2
X n+1/2
− (ϕα vl ),l (vk ϕβ ),k (ρω)nβ dV
2 V
β
2 Z
∆t n+1/2 γ
+ (ϕα vl ),l [ tR ui,j − βρω 2
2 V νt ij
2
+ (1 − F1 )ρσω2 k,j ω,j ]n dV
ω Z
n+1/2
+ ∆t ϕα (µ + σω ρνt )ω,k nk dA. (694)
A
Notice that the unknowns in the systems of equations in all steps are the
conservative variables Vi , ρ (or p for liquids) and ρεt . The physical variables
the user usually knows and for which boundary conditions exist are vi , p and T .
So at the start of the calculation the initial physical values are converted into
conservative variables, and within each iteration the newly calculated conserva-
tive variables are converted into physical ones, in order to be able to apply the
boundary conditions.
The conversion of conservative variables into physical ones can be obtained
using the following equations for gases:
6.9 Types of analysis 347
1 Vi Vi
T = ρεt − , (695)
ρ(cp (T ) − r) 2ρ
vi = Vi /ρ, (696)
and p = ρrT . For liquids ρ is a function of the temperature T and the first
equation has to be replaced by
1 Vi Vi
T = ρ(T )εt − , (697)
ρ(T )cp (T ) 2ρ(T )
since cv = cp . T in all equations above is the static temperature on an abso-
lute scale. For gases the total temperature and Mach number can be calculated
by:
Tt = T + Vi Vi /(2cp ) (698)
and
vi vi
r
M= (699)
γrT
where γ = cp /cv . Notice that the equations for the static temperature are
nonlinear equations which have to be solved in an iterative way, e.g. by the
Newton-Raphson procedure.
The semi-implicit procedure for fluids and the explicit procedure for liquids
are conditionally stable. For each node i a maximum time increment ∆ti can
be determined. For the semi-implicit procedure it obeys:
For gases a shock capturing technique has been implemented following [113].
This is essentially a smoothing procedure. To this end a field Sai is determined
for each node i as follows:
P
| i (pi − pj )|
Sai = P , (704)
i |pi − pj |
where the sum is over all neighboring nodes and p is the static pressure. It
can be verified that Sai = 1 for a local maximum and Sai = 0 if the pressure
varies linearly. So Sai is a measure for discontinuous pressure changes. The
smoothing procedure is such that the smoothed field x̄ is derived from the field
x by
∆tCe Sai
x̄i = xi + [ML ]−1
ii ([M ]ij − [ML ]ij )xj . (705)
∆ti
[M ] is the left hand side matrix for the variable involved, [ML ] is the lumped
matrix (i.e. the matrix [M] where all values in each row are summed and put
on the diagonal, all off-diagonal terms are zero) and Ce is a parameter between
0 and 2. The bigger Ce , the stronger the smoothing. This procedure was
elaborated on in [113]. After the regular calculation of ρvi , ρ and ρεt , the
temperature T and the pressure p are calculated, the field Sa is determined and
all conservative variables are smoothed. This leads to new values after which the
boundary conditions for the velocity, the static pressure and static temperature
are enforced again. If no convergence is reached, a new iteration is started.
It is important to note that for CFD calculations adiabatic boundary con-
ditions have to be specified explicitly by using a *DFLUX card with zero heat
flux. This is different from solid mechanics applications, where the absence of
a *DFLUX or *DLOAD card automatically implies zero distributed heat flux
and zero pressure, respectively.
Finally, it is worth noting that the construction of the right hand side of the
systems of equations to solve has been parallelized (multithreading). Therefore
you need the lpthread library at linking time. By setting the OMP NUM THREADS
environment variable you can specify how many CPUs you would like to use (see
Section 2).
vi,i = 0 (706)
and
∂vj ∂ 1 ∂p 1 ∂tij
+ (vi vj ) + − − fj = 0. (707)
∂t ∂xi ρ ∂xj ρ ∂xi
Now, the depth-direction of the fluid is assumed to coincide with the x3 -
direction. The momentum equation in the x3 -direction now reads:
Dv3 1 ∂p 1 ∂ti3
+ − − f3 = 0. (708)
Dt ρ ∂x3 ρ ∂xi
The velocity in depth direction (first term) is assumed to be neglegible as
well as the viscous stress components ti3 . Furthermore, the volumetric force
density is assumed to reduce to the gravity g. Consequently, one obtains:
1 ∂p
+ g = 0. (709)
ρ ∂x3
Now, the depth is supposed to be composed of two contributions: a portion
H extending from x3 = −H (H > 0) up to x3 = 0, and a portion η extending
from x3 = 0 up to x3 = η (−∞ < η < ∞), so that the depth h amounts
to h = H + η (Figure ...). Integrating the above equation and applying the
boundary condition p = pa for x3 = η, where pa is the atmospheric pressure,
one obtains:
p = ρg(η − x3 ) + pa , (710)
expressing the the pressure increases linearly from the surface into the depth
direction.
The conservation of mass equation can be integrated in z-direction as follows:
Z η Z η Z η
∂v1 ∂v2 ∂v3
dx3 + dx3 + dx3 = 0. (711)
−H ∂x 1 −H ∂x 2 −H ∂x 3
Applying the Leibniz rule to the first two equations and direct integration
to the last term leads to:
Z η
∂ ∂η ∂H
− v1 (η)
v1 dx3 − v1 (−H)
∂x1 −H ∂x1 ∂x 1
Z η
∂ ∂η ∂H
+ v2 dx3 − v2 (η) − v2 (−H)
∂x2 −H ∂x2 ∂x2
η
1
Z
v i := vi dx3 , i = 1, 2. (713)
h −H
∂ ∂η
(v 1 h) − v1 (η)
∂x1 ∂x1
∂ ∂η
+ (v 2 h) − v2 (η)
∂x2 ∂x2
+ v3 (η) = 0. (714)
Now, the vertical velocity at the free surface can be written as:
Dη ∂η ∂η ∂η
v3 (η) := = + v1 (η) + v2 (η), (715)
dt ∂t ∂x1 ∂x2
leading to:
∂ ∂ ∂h
(v 1 h) + (v 2 h) + = 0, (716)
∂x1 ∂x2 ∂t
since ∂H/∂t = 0. With v3 = 0 one can also write:
∂ ∂h
(v i h) + = 0. (717)
∂xi ∂t
This is identical to Equation 676 (conservation of mass for a compressible
fluid) in which vi is replaced by vi and ρ by h.
Integrating the momentum equation, i.e. Equation (707) in x1 and x2 direc-
tion across the depth leads to:
2 η
∂ ∂η ∂H X ∂
Z
(ui h) − vi (η) − vi (−H) + vi vj dx3
∂t ∂t ∂t j=1
∂xj −H
2 2
X ∂η X ∂H
− vi (η)vj (η) − vi (−H)vj (−H) + vi (η)v3 (η)
j=1
∂xj j=1 ∂xj
η 2 η
1 ∂p 1X ∂tij 1
Z Z
− vi (−H)v3 (−H) + − − ti3 (η)
ρ −H ∂xi ρ j=1 −H ∂xj ρ
1
+ ti3 (−H) − hfi = 0, i = 1, 2 (718)
ρ
Since the velocity at the bottom is zero, the third, sixth and eight term
vanish. Due to the definition of the vertical velocity at the free surface, Equation
(715) the second, fifth and seventh term also disappear. Due to Equation (710)
the ninth term amounts to:
6.9 Types of analysis 351
η
1 ∂p ∂η h ∂pa
Z
= gh + . (719)
ρ −H ∂xi ∂xi ρ ∂xi
The fourth term is approximated by:
2 Z η 2 Z η
X ∂ X ∂
vi vj dx3 = hv i v j + hvii hvij dx3
j=1
∂xj −H j=1
∂xj −H
2
X ∂
≈ (hv i v j ) dx3 , (720)
j=1
∂x j
2
∂ X ∂ ∂η h ∂pa 1
(hui ) + hv i v j = −gh − + tsi3
∂t j=1
∂xj ∂xi ρ ∂xi ρ
1
− tbi3 + hfi , i = 1, 2 (721)
ρ
2
∂ X ∂ ∂p ∂H h ∂pa
(hui ) + hv i v j = − + g(h − H) −
∂t j=1
∂xj ∂xi ∂xi ρ ∂xi
1 1
+ tsi3 − tbi3 + hfi , i = 1, 2 (723)
ρ ρ
g(h2 − H 2 )
p := . (724)
2
Since there is no variation in depth direction and setting ts33 = tb33 = f3 = 0
this also amounts to:
∂ ∂ ∂p ∂H h ∂pa
(hui ) + hv i v j = − + g(h − H) −
∂t ∂xj ∂xi ∂xi ρ ∂xi
1 s 1 b
+ ti3 − ti3 + hfi , i = 1, 3. (725)
ρ ρ
352 6 THEORY
∂H h ∂pa 1 1
g(h − H) − + tsi3 − tbi3 + hfi . (726)
∂xi ρ ∂xi ρ ρ
The friction stress at the bottom is frequently modeled by a hydraulic resis-
tance type formula such as
f
tbi3 = ρkvkv i . (727)
8
The energy equation can be integrated in a similar way. I can be used of
some fluid at a higher temperature is released into the flow and one would like
to study the spread of the heat. The equation for incompressible flow runs:
∂εt ∂ 1 ∂ ∂T 1 ∂vi p 1 ∂
+ (vi εt ) = k − + (tij vj ) + fi vi + hθ (728)
∂t ∂xi ρ ∂xi ∂xi ρ ∂xi ρ ∂xi
η
∂ ∂η ∂H
Z
εt dx3 − εt (η) − εt (−H)
∂t −H ∂t ∂t
2 η 2 2
∂ ∂η ∂H
X Z X X
+ vi εt dx3 − (vi εt )|η − (vi εt )|−H
i=1
∂xi
−H i=1
∂xi i=1
∂xi
2
1 η ∂
∂T
X Z
+ (v3 εt )|η − (v3 εt )|−H = k dx3
i=1
ρ −H ∂xi ∂xi
3 2
1 1 η ∂p 1 η ∂
X Z X Z
− (q s + q b ) − vi dx3 + (tij vj )dx3
ρ i=1
ρ −H ∂xi i=1
ρ −H ∂xi
Z η
t3j vj t3j vj
+ − + fi vi dx3 + hhθ . (729)
ρ η ρ −H −H
Terms 3, 6 and 8 on the left hand side and term 6 on the right hand side
are zero (no velocity at the bottom and no change in time of the bottom level).
Terms 2, 5 and 7 on the left hand side disappear due to Equation (715). The
integral in the first term on left hand side is replaced by definition by εt h and
the integral in the fourth term is approximated by v i εt h. The variables q s and
q b in the second term on the right hand side are the heat flux flowing out of the
fluid at the surface and the bottom, respecitively.
Substituting the expression for the pressure, i.e. Equation (710) into the
third term on the right hand side yields (the summation in that term really
only extends from 1 to 2 since v3 is neglegible):
6.9 Types of analysis 353
3 2 2 2
1 η ∂p ∂p ∂H h X ∂pa
X Z X X
vi dx3 = vi − v i g(h − H) + vi . (730)
i=1
ρ −H ∂xi i=1
∂xi i=1 ∂xi ρ i=1 ∂xi
The first and the fourth term on the right hand side is neglected and the
eighth term is approximated by f i v i h. This finally yields:
∂ ∂ 1 ∂H h ∂pa
(hεt ) + [(hεt + p)v i ] ≈ − (q s + q b ) + v i g(h − H) − vi
∂t ∂xi ρ ∂xi ρ ∂xi
t3j vj
+ + hf i v i + hhθ . (731)
ρ η
This is equivalent to the energy equation for compressible fluids with ρ re-
placed by h and appropriate source terms. The neglection of the stress and
conduction terms (except in x3 -direction) can be obtained by setting µ = λ = 0.
No specific gas constant has to be defined. The parameter COMPRESSIBLE
on the *CFD card has to be replaced by the SHALLOW WATER parameter.
The pressure initial and boundary conditions have to be replaced by conditions
for p = g(h2 − H 2 )/2. If H corresponds to the fluid surface in rest, the initial
conditions ususally reduce to p = 0.
• a list of the nodes. Each node is listed as many times as the number of its
degrees of freedom in the substructure.
• for each retained degree of freedom its global direction. The format for
the first degree of freedom of the substructure is just the global direction.
For the subsequent degrees of freedom it consists of the number of the
degree of freedom followed by the global direction
6.9.22 Electromagnetism
In CalculiX, certain types of electromagnetic calculations are possible. These
include:
In this section only the last two applications are treated. The governing
Maxwell equations run like (the displacement current term was dropped in
Equation (735)):
∇·D =ρ (732)
6.9 Types of analysis 355
∂B
∇×E = − (733)
∂t
∇·B = 0 (734)
∇×H =j (735)
where E is the electric field, D is the electric displacement field, B is the
magnetic field, H is the magnetic intensity, j is the electric current density
and ρ is the electric charge density. These fields are connected by the following
constitutive equations:
D = ǫE (736)
B = µH (737)
and
j = σE. (738)
Here, ǫ is the permittivity, µ is the magnetic permeability and σ is the elec-
trical conductivity. For the present applications ǫ and D are not needed and
Equation (732) can be discarded. It will be assumed that these relationships
are linear and isotropic, the material parameters, however, can be temperature
dependent. So no hysteresis is considered, which basically means that only para-
magnetic and diamagnetic materials are considered. So far, no ferromagnetic
materials are allowed.
Due to electromagnetism, an additional basic unit is needed, the Ampère
(A). All other quantities can be written using the SI-units A, m, s, kg and K,
however, frequently derived units are used. An overview of these units is given
in Table 17 (V=Volt, C=Coulomb, T=Tesla, F=Farad, S=Siemens).
In what follows the references [89] and [46] have been used. In inductive
heating applications the domain of interest consists of the objects to be heated
(= workpiece), the surrounding air and the coils providing the current leading
to the induction. It will be assumed that the coils can be considered seperately
as a driving force without feedback from the system. This requires the coils to
be equiped with a regulating system counteracting any external influence trying
to modify the current as intended by the user.
I current A
V kg.m
E electric field m = A.s3
C A.s
D electric displacement field m2 = m2
kg
B magnetic field T= A.s2
A
H magnetic intensity m
A
j current density m2
F A2 s4
ǫ permittivity m = kgm3
kg.m
µ magnetic permeability A2 .s2
S A2 .s3
σ electrical conductivity m = kg.m3
kg.m2
V electric scalar potential V= A.s3
kg.m
A magnetic vector potential A.s2
6.9 Types of analysis 357
H , P
0 Ω1
A ,V
Ω
2 Γ
12
A.n = 0
A , P continuous
current is located within the air. Turning on the current leads to a magnetic
intensity field through Equation (735) and a magnetic field through Equation
(737) everywhere, in the air and in the body. If the current is not changing in
time, this constitutes the solution to the problem.
If the current is changing in time, so is the magnetic field, and through Equa-
tion (733) one obtains an electric field everywhere. This electric field generates
a current by Equation (738) (called Eddy current) in any part which is electri-
cally conductive, i.e. generally in the body, but not in the air. This current
generates a magnetic intensity field by virtue of Equation (735), in a direction
which is opposite to the original magnetic intensity field. Thus, the Eddy cur-
rents oppose the generation of the magnetic field in the body. Practically, this
means that the magnetic field in the body is not built up at once. Rather, it is
built up gradually, in the same way in which the temperature in a body due to
heat transfer can only change gradually. As a matter of fact, both phenomena
are described by first order differential equations in time. The Ohm-losses of
the Eddy currents are the source of the heat generation used in industrial heat
induction applications.
From these considerations one realizes that in the body (domain 2, cf. Figure
151; notice that domain 1 and 2 are interchanged compared to [89]) both the
electric and the magnetic field have to be calculated, while in the air it is
sufficient to consider the magnetic field only (domain 1). Therefore, in the
air it is sufficient to use a scalar magnetic potential P satisfying:
H = T0 − ∇P. (739)
Here, T0 is the magnetic intensity due to the coil current in infinite free space.
T0 can be calculated using the Biot-Savart relationship [29]:
358 6 THEORY
H , P
0 Ω1
Γ
13
A,V A A,V
Ω2 Ω3 Ω2
Γ Γ
12 12
A.n = 0
A , P continuous
1 j(ξ) × (X − ξ)
Z
T0 (X) = dΩ(ξ), X ∈ Ω1 . (740)
4π Ωcoil kX − ξk3
This integration is computationally very demanding, therefore parallelliza-
tion is of utmost importance.
The body fields can be described using a vector magnetic potential A and
a scalar electric potential V satisfying:
B = ∇ × A, (741)
∂A
E=− − ∇V. (742)
∂t
∂v
In practice, it is convenient to set V = ∂t , leading to
∂A ∂∇v
E=− − . (743)
∂t ∂t
This guarantees that the resulting matrices will be symmetric.
∇ · µ(T0 − ∇P ) = 0. (744)
In domain 2, Equations (733), (734) and (735) have to be satisfied, using
the approach of Equations (741) and (742). Taking the curl of Equation (742)
yields Equation (733). Taking the divergence of Equation (741) yields Equation
(734). Substituting Equations (741) and (742) into Equation (735) leads to:
1 ∂A
∇× (∇ × A) + σ + σ∇V = 0. (745)
µ ∂t
The magnetic vector potential A is not uniquely defined by Equation (741).
The divergence of A can still be freely defined. Here, we take the Coulomb
gauge, which amounts to setting
∇ · A = 0. (746)
Notice that the fulfillment of Equation (735) automatically satisfies the con-
servation of charge, which runs in domain 2 as
∇ · j = 0, (747)
since there is no concentrated charge. Thus, for a simply connected body we
arrive at the Equations (744) (domain 1), (745) (domain 2) and (746) (domain
2). In practice, Equations (745) and (746) are frequently combined to yield
1 1 ∂A
∇× (∇ × A) − ∇ ∇ · A + σ + σ∇V = 0. (748)
µ µ ∂t
This, however, is not any more equivalent to the solution of Equation (735)
and consequently the satisfaction of Equation (747) has now to be requested
explicitly:
∂A
∇ · σ( + ∇V ) = 0. (749)
∂t
Consequently, the equations to be solved are now Equations (748) (domain
2), (749) (domain 2), and (744) (domain 1).
In domain 3, only Equations (734) and (735) with j = 0 have to be satis-
fied (the coils are supposed to be in domain 1). Using the ansatz from Equa-
tion (741), Equation (734) is automatically satisfied and Equation (735) now
amounts to
1 1
∇× (∇ × A) − ∇ ∇ · A = 0. (750)
µ µ
360 6 THEORY
B1 · n1 + B2 · n2 = 0, (751)
H1 × n1 + H2 × n2 = 0 (752)
and
j2 · n2 = 0 (753)
all of which have to be satisfied on Γ12 . In terms of the magnetic vector potential
A, electric scalar potential V and magnetic scalar potential P this amounts to:
µ(T0 − ∇P ) · n1 + (∇ × A) · n2 = 0, (754)
1
(T0 − ∇P ) × n1 + (∇ × A) × n2 = 0 (755)
µ1
and
∂A
( + ∇V )2 · n2 = 0 (756)
∂t
on Γ12 . For uniqueness, the electric potential has to be fixed in one node and
the normal component of A has to vanish along Γ12 [89]:
A · n2 = 0. (757)
To obtain the weak formulation of the above equations they are multiplied
with trial functions and integrated. The trial functions will be denoted by
δA, δV and δP . Starting with Equation(748) one obtains after multiplication
with δA and taking the vector identies
∇ · (a × b) = (∇ × a) · b − a · (∇ × b) (758)
∇ · (αa) = ∇α · a + α∇ · a (759)
into account (set b = (∇ × A)/µ in the first vector identity):
6.9 Types of analysis 361
1 1 1
(∇ × δA) · (∇ × A) − ∇ · (δA × ∇ × A) + (∇ · A)∇ · (δA)
µ µ µ
1 ∂A
− ∇ · [ (∇ · A)δA] + δA · σ + ∇V = 0. (760)
µ ∂t
Integrating one obtains, using Gauss’ theorem (it is assumed that Ω2 has no
free boundary, i.e. no boundary not connected to Ω1 ):
1 1
Z Z
(∇ × δA) · (∇ × A)dΩ − (δA × ∇A) · n2 dS+
Ω2 µ Γ12 µ
1 1
Z Z
(∇ · A)(∇ · δA)dΩ − (∇ · A)δA · n2 dS+
Ω2 µ Γ12 µ
∂A
Z
δA · σ + ∇V dΩ = 0 (761)
Ω2 ∂t
The trial functions also have to satisfy the kinematic constraints. Therefore,
δA · n2 = 0 and the second surface integral is zero.
Applying the vector identity
(a × b) · n = a · (b × n) (762)
and the boundary condition from Equation (755), the integrand of the first
surface integral can be written as:
1
(δA × ∇ × A) · n2 =
µ
1
(δA · [(∇ × A) × n2 ]) =
µ
− δA · [(T0 − ∇P ) × n1 ] . (763)
Applying the same vector identity from above one further arrives at:
Z
[−δA · (T0 × n2 ) + n2 · (δA × ∇P )] dS. (765)
Γ12
Z
{−δA · (T0 × n2 ) + P [n2 · (∇ × δA)] − n2 · [∇ × (P δA)]} dS. (767)
Γ12
The last integral vanishes if the surface is closed due to Stokes’ Theorem.
Now the second equation, Equation (749), is being looked at. After multi-
plication with δV it can be rewritten as:
∂A ∂A
∇ · δV σ + ∇V − ∇δV · σ + ∇V = 0. (768)
∂t ∂t
After integration and application of Gauss’ theorem one ends up with the
last term only, due to the boundary condition from Equation (756).
Analogously, the third equation, Equation (744) leads to:
Z Z
∇δP · µ(T0 − µ∇P )dΩ − δP µ(T0 − ∇P ] · n1 dS = 0. (770)
Ω1 Γ12
1 1
Z Z
(∇ × δA).(∇ × A)dΩ + (∇ · δA)(∇ · AdΩ+
Ω2 µ Ω2 µ
∂A ∂v
Z Z
(δA) · σ( + ∇ )dΩ + P (∇ × δA) · n2 dS
Ω2 ∂t ∂t Γ12
Z
= δA · (T0 × n2 )dS (772)
Γ12
∂A ∂v
Z
∇δV · σ +∇ dΩ = 0 (773)
Ω2 ∂t ∂t
Z Z
− µ∇δP · ∇P dΩ + (δP )(∇ × A) · n2 dS
Ω1 Γ12
Z
= µ∇δP · T0 dΩ. (774)
Ω1
6.9 Types of analysis 363
Using the standard shape functions one arrives at (cf. Chapter 2 in [24]):
N X
N Z
XX 1
ϕi,L ϕj,L δKM dVe δAiK AjM −
e i=1 j=1 V0e 2 µ
Z
1
ϕi,M ϕj,K dVe δAiK AjM +
V0e 2 µ
Z
1
ϕi,K ϕj,M dVe δAiK AjM +
V µ
Z 0e2
DAjM
ϕi σϕj dVe δKM δAiK +
V0e2 t
Z
Dvj
ϕi σϕj,K dVe δAiK +
V Dt
Z 0e 2
eKLM ϕi ϕj,L n2K dAe δAjM Pi =
A0e12
N Z
XX
− eKLM ϕj T0L n2K dAe δAjM (775)
e j=1 A0e 12
N X
N Z
XX DAiK
ϕi,K σϕi dVe δvj
e i=1 j=1 V0e 2 Dt
Z
Dvj
ϕi,K σϕj,K dVe δvi =0 (776)
V0e 2 Dt
N X
XX N Z
ϕi,K µϕj,K dVe δPi Pj (777)
e i=1 j=1 V0e 1
Z
ϕi eKLM ϕj,L n2K dAe δPi AjM (778)
A0e 12
X X Z
=− µϕi,K T0K dVe δPi . (779)
e i V0e1
Notice that the first two equations apply to domain 2, the last one applies
to domain 1. In domain 3 only the first equation applies, in which the time
dependent terms are dropped.
This leads to the following matrices:
1
Z
[KAA ]e(iK)(jM) = [ϕi,L ϕj,L δKM − ϕi,M ϕj,K + ϕi,K ϕj,M ]dVe (780)
(V0e )Ω µ
2
364 6 THEORY
AA AP AA AV A
VA VV
PA PP P
Z
[KAP ]e(jM)(i) = eKLM ϕi ϕj,L n1K dAe (781)
(A0e )Γ
12
Z
[KP A ]e(i)(jM) = eKLM ϕi ϕj,L n1K dAe (782)
(A0e )Γ
12
Z
[KP P ]e(i)(j) = − µϕi,K ϕj,K dVe (783)
(V0e )Ω
1
Z
[MAA ]e(iK)(jM) = ϕi σϕj δKM dVe (784)
(V0e )Ω
2
Z
[MAv ]e(iK)(j) = ϕi σϕj,K δKM dVe (785)
(V0e )Ω
2
Z
[MvA ]e(j)(iK) = ϕj,K σϕi δKM dVe (786)
(V0e )Ω
2
Z
[Mvv ]e(i)(j) = ϕi,K σϕi,K δKM dVe (787)
(V0e )Ω
2
Z
{FA }e(jM) = − eKLM ϕj T0L n1K dAe (788)
(A0e )Γ
12
Z
{FP }e(i) = − µϕi,K T0K dVe (789)
(V0e )Ω
1
Repeated indices imply implicit summation. The [K] matrices are analogous
to the conductivity matrix in heat transfer analyses, the [M ] matrices are the
counterpart of the capacity matrix. {F } represents the force. The resulting
system consists of first order ordinary differential equations in time:
6.9 Types of analysis 365
and
On the external faces of domain 2 and 3 which are in contact with domain 1:
• Imposition of A · n = 0.
• Continuity of A
These MPC’s are generated automatically within CalculiX and have not to be
taken care of by the user. Finally, the value of V has to be fixed in at least
one node of domain 2. This has to be done by the user with a *BOUNDARY
condition on degree of freedom 8.
The material data to be defined include:
• the density, the thermal conductivity, the specific heat, the electrical con-
ductivity and the magnetic permeability in the workpiece.
(magnetic field in the air and the workpiece) on the *EL FILE card. In the dat-
file the heating power in any element set belonging to domain 2 can be stored
(key EBHE).
For Alternating Current (AC) the steady state answer can be calculated
by use of the parameter FREQUENCY and by specifying the frequency of the
current (in 1/[T], where [T] is the unit of time) by means of the parameter
OMEGA on the ELECTROMAGNETICS card. In that case the current takes
the form
j = j0 eiωt , (793)
and qa solution for the vector {U } is looked for with the same time depen-
dency. Substitution in the governing equation and separating real and imaginary
part leads to
K −ωM UR F
= . (794)
ωM K UI 0
This is a nonsymmetric system of equations the solution of which constitutes
the real and imaginary part of the electromagnetic potentials. The fields E and
B now satisfy:
and
B = (∇ × A)eiωt , (796)
where E, B, A and v are now complex quantities. The heating power density
amounts to:
j · E = σE · E = σ(kE R k2 + kE I k2 ), (797)
aij xj = bi (798)
X aij q bi
q (xj |asjj |) = p s , (799)
j |asii ||asjj | |aii |
or
Aij Xj = Bi , (800)
where
aij
Aij = q , (801)
|asii ||asjj |
q
Xj = xj |asjj | (802)
and
bi
Bi = q . (803)
|asii |
6.9.23 Sensitivity
A sensitivity analysis calculates how a variable G (called the objective function)
changes with some other variables s (called the design variables), i.e. DG/Ds.
If s are the coordinates of some nodes, then the objective function usually
takes the form G(s, U (s)), i.e. it is a direct function of the coordinates and
it is a direct function of the displacements, which are again a function of the
coordinates. One can write (vector- and matrix-denoting parentheses have been
omitted; it is assumed that the reader knows that U and F are vectors, K and
M are matrices and that s and G are potentially vectors):
DG ∂G ∂G ∂U
= + . (804)
Ds ∂s ∂U ∂s
The governing equation for static (linear and nonlinear) calculations is Fint (s, U (s)) =
Fext (s, U (s)), which leads to
∂Fint ∂Fext
K= − . (807)
∂U ∂U
Since for linear applications Fint (s, U (s)) = K(s) · U and Fext (s, U (s)) = F (s),
the above equations reduce in that case to
∂K ∂U ∂F
·U +K · = , (808)
∂s ∂s ∂s
or
∂U ∂F ∂K
= K −1 − ·U . (809)
∂s ∂s ∂s
Consequently one arives at the equation:
DG ∂G ∂G −1 ∂F ∂K
= + K − ·U . (810)
Ds ∂s ∂U ∂s ∂s
For the speed-up of the calculations it is important to perform the calculation
of the term ∂K∂s · U on element level and to calculate the term ∂U K
∂G −1
before
∂G −1
multiplying with the last term in brackets. Furhermore, ∂U K should be
calculated by solving an equation system and not by inverting K.
For special objective functions this relationship is further simplified:
∂G
• if G is the mass ∂U = 0.
∂G −1
• if G is the shape energy ∂U K = U.
• if G are the displacements Equation (809) applies directly
For eigenfrequencies as objective function one starts from the eigenvalue
equation:
K · Ui = λi M · Ui , (811)
from which one gets:
∂λi ∂Ui ∂K ∂M
M · Ui = (K − λi M ) · + − λi · Ui . (812)
∂s ∂s ∂s ∂s
Premultiplying with UiT and taking the eigenvalue equation and the normal-
ization of the eigenvectors w.r.t. M into account leads to
∂λi T ∂K ∂M
= Ui · − λi · Ui . (813)
∂s ∂s ∂s
Notice that this is the sensitivity of the eigenvalues, not of the eigenfrequen-
cies (which are the square roots of the eigenvalues). This is exactly how it is
implemented in CalculiX: you get in the output the sensitivity of the eigenvalues.
Subsequently, one can derive the eigenvalue equation to obtain the deriva-
tives of the eigenvectors:
370 6 THEORY
∂Ui ∂K ∂M ∂λi
(K − λi M ) =− − λi − M · Ui . (814)
∂s ∂s ∂s ∂s
If s is the orientation in some or all of the elements, the term ∂G ∂s is in
addition zero in the above equations.
In CalculiX, G is defined with the keyword *DESIGN RESPONSE, s is
defined with the keyword DESIGNVARIABLES and a sensitivity analysis is
introduced with the procedure card *SENSITIVITY.
If the parameter NLGEOM is not used on the *SENSITIVITY card, the
calculation of ∂K∂s does not contain the large deformation and stress stiffness,
else it does. Similarly, without NLGEOM ∂G ∂s is calculated based on the linear
strains, else the quadratic terms are taken into account.
If the design response is the mass, the shape energy or the displacements
a *STATIC step must have been performed. The displacements U and the
stiffness matrix K from this step are taken for K and U in Equation (810) (in
the presence of a subsequent sensitivity step K is stored automatically in a file
with the name jobname.stm). If the static step was calculated with NLGEOM,
so should the sensitivity step in order to be consistent. So the procedure cards
should run like:
*STEP
*STATIC
...
*STEP
*SENSITIVITY
...
or
*STEP,NLGEOM
*STATIC
...
*STEP,NLGEOM
*SENSITIVITY
...
The NLGEOM parameter is kept if the *SENSITIVITY and *STATIC step are
in the same input deck (so then NLGEOM does not have to be repeated on the
*SENSITIVITY step).
If the objective functions are the eigenfrequencies (which include the eigen-
modes), a *FREQUENCY step must have been performed with STORAGE=YES.
This frequency step may be a perturbation step, in which case it is preceded by
a static step. The displacements U , the stiffness matrix K and the mass ma-
trix M for equations (813) and (814) are taken from the frequency step. If the
frequency step is performed as a perturbation step, the sensitivity step should
be performed with NLGEOM, else it is not necessary. So the procedure cards
should run like:
6.9 Types of analysis 371
*STEP
*FREQUENCY,STORAGE=YES
...
*STEP
*SENSITIVITY
...
or
*STEP
*STATIC
...
*STEP,PERTURBATION
*FREQUENCY,STORAGE=YES
...
*STEP,NLGEOM
*SENSITIVITY
...
or
*STEP,NLGEOM
*STATIC
...
*STEP,PERTURBATION
*FREQUENCY,STORAGE=YES
...
*STEP,NLGEOM
*SENSITIVITY
...
(a perturbation frequency step only makes sense with a preceding static
step).
The output of a sensitivity calculation is stored as follows (frd-output only
if the SEN output request was specified underneath a *NODE FILE card):
For TYPE=COORDINATE design variables the results of the target func-
tions MASS, STRAIN ENERGY, EIGENFREQUENCY and ALL-DISP (i.e.
the square root of the sum of the squares of the displacements in all objective
nodes) are stored in the .frd-file and can be visualized using CalculiX GraphiX.
For TYPE=ORIENTATION design variables the eigenfrequency sensitivity
is stored in the .dat file whereas the displacement sensitivity (i.e. the derivative
of the displacements in all nodes w.r.t. the orientation) is stored in the .frd-
file. The order of the design variables is listed in the .dat-file. All orientations
defined by *ORIENTATION cards are varied, each orientation is defined by
3 independent variables. So for n *ORIENTATION cards there are 3n design
variables. The sensitivity of the mass w.r.t. the orientation is zero.
Finally, it is important to know that a sensitivity analysis in CalculiX only
works for true 3D-elements (no shells, beams, plane stress, etc...).
372 6 THEORY
N T (b − p) = 0. (815)
Since p belongs to the subspace it can be written as a linear combination of
the basis vectors p = N x, where x is a m×1 vector of coefficients. Consequently:
N T N x = N T b, (816)
from which x can be solved yielding:
p = N (N T N )−1 N T b. (817)
The complement of the projection vector is I − N (N T N )−1 N T . Denot-
ing A = (N T N )−1 , the constrained sensitivies c are obtained from the uncon-
strained sensitivities b by:
c = (I − N AN T )b, (818)
or, in component notation:
X
ci = b i − wik , (819)
k
where
!
X X
T
wik = Nij Ajk (N )kl bl (820)
j l
• for which the Lagrange multiplier points to the non-feasible part of the
space
To this end the algorithm starts with all constraints which are fulfilled and
removes the constraints one-by-one for which the Lagrange multiplier, satisfying
[K − ω02 M ] · Xj = Ej , (824)
where K is the stiffness matrix of the structure, M the mass matrix, ω0
a scalar frequency and Ej a unit force at degree of freedom j. The degree of
freedom j corresponds to a specific coordinate direction in a specific node. For
ω0 = 0 the Green function is the static answer of a system to a unit force at
some location in one of the global coordinate directions. Usually, these Green
functions are used in subsequent calculations. The Green function procedure
374 6 THEORY
• For the crack propagation itself a model consisting of at least all cracks to
be considered meshed using S3-shell elements must be created. The orien-
tation of all shell elements used to model one and the same crack should
consistent, i.e. when viewing the crack from one side of the crack shape
all nodes should be numbered clockwise or all nodes should be numbered
counterclockwise. Preferably, also the mesh of the uncracked structure
should be contained (the crack propagation can be easier interpreted if
the structure in which the crack propagates is also visualized) .
∆K
fth = 1 − exp ǫ(1 − ) , ∆K > ∆Kth
∆Kth
fth = 0, ∆K ≤ ∆Kth (826)
Kmax
fc = 1 − exp δ − 1 , Kmax < Kc
Kc
fc = 0 Kmax ≥ Kc (827)
• The actual shape of the cracks is analyzed, the crack fronts are determined
and the stresses and temperatures (if applicable, else zero) at the crack
front nodes are interpolated from the stress and temperature field in the
uncracked structure.
• The stress tensor at the front nodes is projected on the local tangent
plane yielding a normal component (local y-direction), a shear component
orthogonal to the crack front (local x-direction) and one parallel to the
crack front (local z-direction), leading to the K-factors KI , KII and KIII
using the formulas:
√
KI = FI σyy πa (830)
√
KII = FII σxy πa (831)
√
KIII = FIII σzy πa (832)
where FI , FII and FIII are shape factors taking the form
Subsequently, the crack length is smoothed along the crack front according
to:
PN dij
i=1 1 − R ai
aj = P , (836)
N dij
i=1 1 − R
where the sum is over the N closest nodes, dij is the Euclidean incremental
distance between node i and j, and R is the distance between node j and
the farthest of these nodes. N is a fixed fraction of the total number of
nodes along the front, e.g. 90 %.
and
70π |KII | |KII | KII
ϕ=− 2−
180 KI + |KII | + |KIII | KI + |KII | + |KIII | |KII |
(838)
for KI ≥ 0 and ϕ = 0 else. Subsequenty, Keq and ϕ are smoothed
in the same way as the crack length. Finally, if any of the deflection
angles exceeds the maximum defined by the user (second entry underneath
the *CRACK PROPAGATION card) all values along the front are scaled
appropriately.
Notice that at each crack front location as many Keq and ϕ values are
calculated as there are steps in the static calculation of the uncracked
structure.
378 6 THEORY
– The user defined value (first entry underneath the *CRACK PROPAGATION
card)
– one fifth of the minimum crack front curvature
– one fifth of the smallest crack length
• Then, new nodes are created in between the propagated nodes such that
they are equidistant. The target distance in between these nodes is the
mean distance in between the nodes along the initial crack front.
• Finally, new shell elements are generated covering the crack propagation
increment and the results (K-values, crack length etc.) are stored in frd-
format for visualization. Then, a new increment can start. The number
of increments is governed by the INC parameter on the *STEP card.
• The dominant step. This is the step with the largest Keq (over all steps). If
the dominant step is a HCF induced step, step numbers -1 and -2 are used
to denominate the LCF-HCF step and the LCF+HCF step,respectively.
• DeltaKEQ: the value of ∆Keq for the main cycle. In the present imple-
mentation this corresponds to the largest value of Keq (over all steps).
• KEQMIN: the minimal value of Keq (over all steps).
• KEQMAX: the largest value of Keq (over all steps).
• K1WORST: the largest value of |KI | multiplied by its sign (over all steps).
• K2WORST: the largest value of |KII | multiplied by its sign (over all steps).
• K3WORST: the largest value of |KIII | multiplied by its sign (over all
steps).
• PHI: the deflection angle ϕ.
• R: the R-value of the main cycle. In the present implementation this is
zero.
• DADN: the crack propagation rate.
• KTH: not used.
• INC: the increment number. This is the same for all nodes along one and
the same crack front.
• CYCLES: the number of cycles since the start of the calculation. This
number is common to all crack front nodes.
380 6 THEORY
α
P P P
kn |qi |
q̄iα = eP nP
e
α
(839)
e ne kn
α
ri,max = max |δq α
i |, (840)
DOF
• ∆uαi,max : the largest change in solution (in absolute value) of field α in the
present increment, i.e. the solution at the end of iteration i of the present
increment minus the solution at the start of the increment :
∆uα α
i,max = max max max |∆ui |, (841)
e ne kn
α
cα
i,max = max max max |δui |. (842)
e ne kn
• α
ri,max cα
i,max
α α < c2 ∆uα
i,max . (845)
min{ri−1,max , ri−2,max }
The left hands side is an estimate of the largest solution correction in the
next iteration. This condition only applies if no gas temperatures are to
be calculated (no forced convection).
382 6 THEORY
α
• ri,max ≤ Rlα [10−8 ]q̃iα . If this condition is satisfied, the increment is as-
sumed to be linear and no solution convergence check is performed. This
condition only applies if no gas temperatures are to be calculated (no
forced convection).
• q̄iα ≤ ǫα [10−5 ]q̃iα (zero flux conditions). This condition only applies if no
gas temperatures are to be calculated (no forced convection).
• cα
i,max < 10
−8
.
If convergence is reached, and the size of the increments is not fixed by the
user (no parameter DIRECT on the *STATIC, *DYNAMIC or *HEAT TRANSFER
card) the size of the next increment is changed under certain circumstances:
• if(i > IL [10]): dθ = dθDB [0.75], where dθ is the increment size relative
to the step size (convergence was rather slow and the increment size is
decreased).
• if(i ≤ IG [4]) AND the same applies for the previous increment: dθ =
dθDD [1.5] (convergence is fast and the increment size is increased).
q̃α
ln Rnα rα i
i+ rα i,max > IC [16] (847)
ln rαi,max
i−1,max
6.10 Convergence criteria 383
(which means that the estimated number of iterations needed to reach con-
vergence exceeds IC ) OR i = IC , the increment size is adapted according
to dθ = dθDC [0.5] and the iteration of the increment is restarted unless
the parameter DIRECT was selected. In the latter case the increment is
not restarted and the iterations continue.
6.10.2 Contact
In the presence of contact the convergence conditions in the previous section
are slightly modified. Let us first repeat the general convergence check strategy
(coded in checkconvergence.c):
• If iflagact=1 at the end of the present iteration the counter for I0 and IR
is reset to zero and the value of IC is incremented by 1.
• Mechanical convergence requires iflagact to be zero.
In the case of face-to-face penalty contact the criteria are modified as follows:
∆ u.R(u)
∆ u.R(u+λ ∆u)
0 1 λ
∆ u.R(u+ ∆ u)
the residual force in the previous iteration and the one before
the previous iteration). Physically this means that solution is
alternating between two states.
– if divergence is detected not only the time increment is decreased,
also the spring stiffness in case of linear pressure-overclosure and
the stick slope are reduced by a factor of 100 (this number can be
changed with the *CONTROLS,PARAMETERS=CONTACT card).
This factor (variable “kscale” in the code) is reset to one at the next
convergence detection in which case the iteration is continued until
renewed successful convergence for kscale=1.
– the too slow convergence check is replaced by a check whether the
number of iterations has reached the value of 60 (this number can be
changed with the *CONTROLS,PARAMETERS=CONTACT card).
In that case the spring stiffness in case of linear pressure-overclosure
and the stick slope are reduced by a factor of 100 (this number can be
changed with the *CONTROLS,PARAMETERS=CONTACT card).
This factor (variable “kscale” in the code) is reset to one at the next
convergence detection in which case the iteration is continued until
renewed successful convergence for kscale=1). The time increment is
NOT decreased, unless this is already the second cutback or higher.
better convergence. λ is determined such that the residual (i.e. external force
minus internal force) of the scaled solution u + λ∆u is orthogonal to the dis-
placement increment:
α
ri,max ≤ c1∗ q̃iα (849)
where c1∗ takes the value c1t , c1f and c1p for the energy balance, mass bal-
ance and element equation, respectively. In addition, an absolute check can be
performed in the form
α
ri,max ≤ a1∗ (850)
where a1∗ takes the value a1t , a1f and a1p for the energy balance, mass balance
and element equation, respectively. Default is to deactivate the absolute check
(the coefficients a1∗ are set to 1020 ).
In the same way the maximum change in solution in network iteration i
cα
i,max is compared with the maximum change in the solution since the start
of the network iterations, i.e. the solution at the end of iteration i minus the
solution at the beginning of the increment(before network iteration 1). This
is done separately for the temperature, the mass flow, the pressure and the
geometry. It amounts to the equation:
α
cα
i,max ≤ c2∗ ∆ui,max , (851)
where c2∗ takes the value c2t , c2f , c2p and c2a for the temperature, the mass
flow, the pressure and the geometry, respectively. In addition, an aboslute check
can be performed in the form
cα
i,max ≤ a2∗ , (852)
6.10 Convergence criteria 387
where a2∗ takes the value a2t , a2f and a2p for the temperature, the mass flow,
the pressure and the geometry. Default is to deactivate the absolute check (the
coefficients a2∗ are set to 1020 ).
The parameters c1t , c1f , c1p , c2 , c2f , c2p , c2a and a1t , a1f , a1p , a2 , a2f ,
a2p , a2a can be changed using the *CONTROLS,PARAMETERS=NETWORK
card.
Both criteria are important. A convergent solution with divergent residuals
points to a local minimum, convergent residuals with a divergent solution point
to a singular equation system (i.e. infinitely many solutions).
where
• ∆ denotes the difference of a quantity between the actual time and the
time at the beginning of the step
• Wdamp |ttn0 is the work done by damping since the start of the present step
(always negative)
• in the denominator the choice of the kinetic energy versus the CHANGE
of the internal energy is on purpose.
388 6 THEORY
At the start of the step the relative energy balance is zero. During the step it
usually decreases (becomes negative) and increases in size. Limiting the relative
energy decay at the end of the step to ǫ, during the step the following minimum
energy decay function is proposed:
ǫ √
r̂emin = − (1 + θ), (854)
2
where θ is the relative step time, 0 ≤ θ ≤ 1. The following algorithm is now
used:
If
ǫ √
r̂e ≤ − (1 + θ), (855)
2
the increment size is decreased. Else if
ǫ √
r̂e ≤ −0.9 (1 + θ), (856)
2
the increment size is kept. Else it is increased.
In dynamic calculations contact is frequently an important issue. As soon as
more than one body is modeled they may and generally will come into contact.
In CalculiX penalty contact is implemented by the use of springs, either in a
node-to-face version or in a face-to-face version (face-to-face mortar contact is
only available for static procedures). A detailed analysis of contact phenomena
in dynamic calculations [74] has revealed that there are three instances at which
energy may be lost: at the time of impact, during persistent contact and at the
time of rebound.
At the time of impact a relative energy decrease has been observed, whereas
at the time of rebound a relative energy increase occurs. The reason for this is
the finite time increment during which impact or rebound takes place. During
closed contact the contact forces do not perform any work (they are equal and
opposite and are subject to a common motion). However, in the increment
during which impact or rebound occurs, they do perform work in the part of
the increment during which the gap is not closed. The more precise the time
of impact coincides with the beginning or end of an increment, the smaller the
error. Therefore, the following convergence criteria are prososed:
At impact the relative energy decrease (after impact minus before impact)
should not exceed 0.008, i.e.
after impact
∆r̂rel |before impact ≥ −0.008, (857)
else the increment size is decreased by a factor of 4.
At rebound the relative energy increase between the time of rebound and
the time of impact should not exceed 0.0025, i.e.
rebound
∆r̂rel |impact ≤ −0.0025, (858)
else the increment size is decreased by a factor of 2.
6.11 Loading 389
In between impact and rebound (persistent contact) both the impact crite-
rion as well as the rebound criterion has to be satisfied. Furthermore it has been
observed that during contact frequently vibrations are generated corresponding
to the eigenfrequency of the contact springs. Due to the high frequency damp-
ing characteristics of the α-method this contributes additionally to a decay of
the relative energy. To avoid this, the time increment should ideally exceed the
period of these oscillations substantionally,
10Te 100Te
≤ dθ ≤ (859)
Tstep Tstep
is aimed at, where Te is the period of the oscillations, Tstep is the duration
of the step and dθ is the relative increment size.
6.11 Loading
All loading, except residual stresses, must be specified within a step. Its magni-
tude can be modified by a time dependent amplitude history using the *AMPLITUDE
keyword. This makes sense for nonlinear static, nonlinear dynamic, modal dy-
namic and steady state dynamics procedures only. Default loading history is a
ramp function for *STATIC procedures and step loading for *DYNAMIC and
*MODAL DYNAMIC procedures.
8 7
2
5 6
5
6 4
3
4 3
1
1 2
11
00
00
11
4
3
4 2
3
11
00 11
00
00
11 00
11
1 2
11
00
00
11
1
6 5
2
4
4
5 3
3
2
1
1
• Face 1: 1-2-3
• Face 2: 1-4-2
• Face 3: 2-4-3
• Face 4: 3-4-1
• Face 1: 1-2-3
• Face 2: 4-5-6
• Face 3: 1-2-5-4
• Face 4: 2-3-6-5
• Face 5: 3-1-4-6
• Face 1: 1-2
• Face 2: 2-3
• Face 3: 3-4
• Face 4: 4-1
392 6 THEORY
1/3
-1/12 -1/12
1/3
1/3
1/3
-1/12 -1/12
• Face 1: 1-2
• Face 2: 2-3
• Face 3: 3-1
For shell elements no face number is needed since there is only one kind of
loading: pressure in the direction of the normal on the shell.
Applying a pressure to a face for which a pressure was specified in a previous
step replaces this pressure. The parameter OP=NEW on the *DLOAD card
removes all previous distributed loads. It only takes effect for the first *DLOAD
card in a step. A buckling step always removes all previous loads.
In a large deformation analysis the pressure is applied to the deformed face
of the element. Thus, if you pull a rod with a constant pressure, the total force
will decrease due to the decrease of the cross-sectional area of the rod. This
effect may or may not be intended. If not, the pressure can be replaced by
nodal forces. Figures 158 and 159 show the equivalent forces for a unit pressure
applied to a face of a C3D20(R) and C3D10 element. Notice that the force is
zero (C3D10) or has the opposite sign (C3D20(R)) for quadratic elements. For
the linear C3D8(R) elements, the force takes the value 1/4 in each node of the
face.
6.11 Loading 393
1/3 1/3
1/3
0 0
Figure 159: Equivalent nodal forces for a face of a C3D10 element
R
Figure 160: Point load in a node belonging to a 8-noded face
1/3
−1/12 −1/12
1/3
1/3
1/3
−1/12 −1/12
node is zero, which is the value the user will get by selecting RF on the *NODE
PRINT, *NODE FILE or *NODE OUTPUT card.
Now, the plate is meshed with 4 quadratic elements. Figure 162 shows a
view from above. All borders of the plate are fixed and the numbers at the
nodes represent the nodal forces corresponding to the uniform pressure of size
1. Suppose the user would like to know the sum of the external forces at the
border nodes (e.g. by selecting RF on a *NODE PRINT card with parameter
TOTALS=ONLY). The external forces are the sum of the reaction forces and the
loading forces. The total reaction force is -1. The loading forces at the border
nodes are the non-circled ones in Figure 162, summing up to 5/12. Consequently
the sum of the external forces at the border nodes is -7/12.
By selecting an even finer mesh the sum of the external forces at the border
nodes will approach -1.
Summarizing, selecting RF gives you the sum of the reaction forces and
the loading forces. This is equal to the reaction forces only if the elements
belonging to the selected nodes are not loaded by a *DLOAD card, and the
nodes themselves are not loaded by a *CLOAD card.
1/6 1/6
−1/24 −1/24
−1/12
q = h(T − T0 ) (860)
where q is the a flux normal to the surface, h is the film coefficient, T is
the body temperature and T0 is the environment fluid temperature (also called
sink temperature). Generally, the sink temperature is known. If it is not,
it is an unknown in the system. Physically, the convection along the surface
can be forced or free. Forced convection means that the mass flow rate of the
adjacent fluid (gas or liquid) is known and its temperature is the result of heat
exchange between body and fluid. This case can be simulated by CalculiX by
defining network elements and using the *BOUNDARY card for the first degree
of freedom in the midside node of the element. Free convection, for which the
mass flow rate is a n unknown too and a result of temperature differences, cannot
be simulated.
is obtained by evaluating this polynomial. This is done for all stress compo-
nents separately. For more details on the implementation in CalculiX the user
is referred to [63].
In CalculiX one can obtain the improved CalculiX-Zhu stress by selecting
ZZS underneath the *EL FILE keyword card. It is available for tetrahedral
and hexahedral elements. In a node belonging to tetrahedral, hexahedral and
any other type of elements, only the hexahedral elements are used to defined
the improved stress, if the node does not belong to hexahedral elements the
tetrahedral elements are used, if any.
necting the largest temperature gradient in the adjacent element to a node and
the temperature error in the node have been established. The temperature er-
ror is called TEM in the frd file and is in %. It is obtained by selecting HER
underneath the *EL FILE or *ELEMENT OUTPUT card.
CalculiX -i beam
The -i flag can be dropped provided the jobname follows immediately after
the CalculiX call.
CalculiX will generate an output file with the name jobname.dat and an
output file with the name jobname.frd. The latter can be viewed with cgx.
If the step is a *FREQUENCY step or a *HEAT TRANSFER,FREQUENCY
step and the parameter STORAGE=YES is activated, CalculiX will generate a
binary file containing the eigenfrequencies, the eigenmodes, the stiffness and the
mass matrix with the name jobname.eig. If the step is a *MODAL DYNAMIC
or *STEADY STATE DYNAMICS step, CalculiX will look for a file with that
name. If any of the files it needs does not exist, an error message is generated
and CalculiX will stop.
The input deck basically consists of a set of keywords, followed by data
required by the keyword on lines underneath the keyword. The keywords can
be accompanied by parameters on the same line, separated by a comma. If the
parameters require a value, an equality sign must connect parameter and value.
Blanks in the input have no significance and can be inserted as you like. The
keywords and any other alphanumeric information can be written in upper case,
lower case, or any mixture. The input deck is case insensitive: internally, all
alphanumeric characters are changed into upper case. The data do not follow
a fixed format and are to be separated by a comma. A line can only contain
404 7 INPUT DECK FORMAT
as many data as dictated by the keyword definition. The maximum length for
user-defined names, e.g. for materials or sets, is 80 characters, unless specified
otherwise.The structure of an input deck consists of geometric, topological and
material data before the first step definition, and loading data (mechanical,
thermal, or prescribed displacements) in one or more subsequent steps. The
user must make sure that all data are given in consistent units (the units do not
appear in the calculation).
A keyword can be of type step or model definition. Model Definition cards
must be used before the first *STEP card. Step keywords can only be used
within a step. Among the model definition keywords, the material ones occupy
a special place: they define the properties of a material and should be grouped
together following a *MATERIAL card.
Node and element sets can share the same name. Internally, the names are
switched to upper case and a ’N’ is appended after the name of a node set and
a ’E’ after the name of an element set. Therefore, set names printed in error or
warning messages will be discovered to be written in upper case and to have a
’N’ or ’E’ appended.
Keyword cards in alphabetical order:
7.1 *AMPLITUDE
Keyword type: step or model definition
This option may be used to specify an amplitude history versus time. The
amplitude history should be given in pairs, each pair consisting of a value of
the reference time and the corresponding value of the amplitude or by user
subroutine uamplitude.f.
There are four optional parameters TIME, USER, SHIFTX and SHIFTY
and one required parameter NAME.If the parameter TIME=TOTAL TIME is
used the reference time is the total time since the start of the calculation, else
it is the local step time. Use as many pairs as needed, maximum four per line.
The parameter USER indicates that the amplitude history versus time was
implemented in user subroutine uamplitude.f. No pair data is required.
With the parameters SHIFTX and SHIFTY the reference time and the am-
plitude of the (time,amplitude) pairs can be shifted by a fixed amount.
The parameter NAME, specifying a name for the amplitude so that it can
be used in loading definitions (*BOUNDARY, *CLOAD, *DLOAD and *TEM-
PERATURE) is required (maximum 80 characters).
In each step, the local step time starts at zero. Its upper limit is given by
the time period of the step. This time period is specified on the *STATIC,
*DYNAMIC or *MODAL DYNAMIC keyword card. The default step time
period is 1.
In *STEADY STATE DYNAMICS steps the time is replaced by frequency,
i.e. the *AMPLITUDE is interpreted as amplitude versus frequency (in cy-
cles/time).
The total time is the time accumulated until the beginning of the actual
step augmented by the local step time. In *STEADY STATE DYNAMICS
7.1 *AMPLITUDE 405
First line:
• *AMPLITUDE
• Enter the required parameter.
Following line, using as many entries as needed (unless the parameter USER
was selected):
• Time.
• Amplitude.
• Time.
• Amplitude.
• Time.
• Amplitude.
• Time.
• Amplitude.
Repeat this line if more than eight entries (four data points) are needed.
Example:
*AMPLITUDE,NAME=A1
0.,0.,10.,1.
406 7 INPUT DECK FORMAT
defines an amplitude function with name A1 taking the value 0. at t=0. and
the value 1. at t=10. The time used is the local step time.
• *BASE MOTION
Example:
*BASE MOTION,DOF=2,AMPLITUDE=A1
specifies a base motion with amplitude A1 for the second degree of free-
dom for all nodes in which a homogeneous boundary condition was defined for
precisely this degree of freedom.
any real value and allows to construct beam of nearly arbitrary cross section
and the definition of composite beams.
The parameter NODAL THICKNESS indicates that the thickness for ALL
nodes in the element set are defined with an extra *NODAL THICKNESS card
and that any thicknesses defined on the *BEAM SECTION card are irrelevant.
First line:
• *BEAM SECTION
• Enter any needed parameters.
Second line:
• thickness in 1-direction
• thickness in 2-direction
Third line:
• global x-coordinate of a unit vector in 1-direction (default:0)
• global y-coordinate of a unit vector in 1-direction (default:0)
• global z-coordinate of a unit vector in 1-direction (default:-1)
Example:
*BEAM SECTION,MATERIAL=EL,ELSET=Eall,OFFSET1=-0.5,SECTION=RECT
3.,1.
1.,0.,0.
7.4 *BOUNDARY
Keyword type: step or model definition
This option is used to prescribe boundary conditions. This includes:
For liquids and structures the total and static temperature virtually coincide,
therefore both are represented by the term temperature.
The following degrees of freedom are being used:
• for structures:
– 1: mass flow
– 2: total pressure
– 11: total temperature
– 1: mass flow
– 2: static pressure
– 11: temperature
– 1: mass flow
– 2: fluid depth
– 11: temperature
in a previous step replaces this value. OP=NEW implies that previously pre-
scribed displacements are removed. If multiple *BOUNDARY cards are present
in a step this parameter takes effect for the first *BOUNDARY card only.
The AMPLITUDE parameter allows for the specification of an amplitude
by which the boundary values are scaled (mainly used for nonlinear static and
dynamic calculations). This only makes sense for nonzero boundary values.
Thus, in that case the values entered on the *BOUNDARY card are interpreted
as reference values to be multiplied with the (time dependent) amplitude value
to obtain the actual value. At the end of the step the reference value is replaced
by the actual value at that time. In subsequent steps this value is kept constant
unless it is explicitly redefined or the amplitude is defined using TIME=TOTAL
TIME in which case the amplitude keeps its validity.
The TIME DELAY parameter modifies the AMPLITUDE parameter. As
such, TIME DELAY must be preceded by an AMPLITUDE name. TIME
DELAY is a time shift by which the AMPLITUDE definition it refers to is
moved in positive time direction. For instance, a TIME DELAY of 10 means
that for time t the amplitude is taken which applies to time t-10. The TIME
DELAY parameter must only appear once on one and the same keyword card.
The LOAD CASE parameter is only active in *STEADY STATE DYNAMICS
calculations. LOAD CASE = 1 means that the loading is real or in-phase.
LOAD CASE = 2 indicates that the load is imaginary or equivalently phase-
shifted by 90◦ . Default is LOAD CASE = 1.
If the USER parameter is selected the boundary values are determined by
calling the user subroutine uboun.f, which must be provided by the user. This
applies to all nodes listed beneath the *BOUNDARY keyword. Any boundary
values specified behind the degrees of freedom are not taken into account. If
the USER parameter is selected, the AMPLITUDE parameter has no effect and
should not be used.
The MASS FLOW parameter specifies that the *BOUNDARY keyword is
used to define mass flow rates in convective problems. A mass flow rate can
only be applied to the first degree of freedom of the midside node of network
elements.
Next, the FIXED parameter freezes the deformation from the previous step,
or, if there is no previous step, sets it to zero.
Finally, the SUBMODEL parameter specifies that the displacements in the
nodes listed underneath will be obtained by interpolation from a global model.
To this end these nodes have to be part of a *SUBMODEL,TYPE=NODE card.
On the latter card the result file (frd file) of the global model is defined. The use
of the SUBMODEL parameter requires the STEP or the DATA SET parameter.
In case the global calculation was a *STATIC calculation the STEP parame-
ter specifies the step in the global model which will be used for the interpolation.
If results for more than one increment within the step are stored, the last incre-
ment is taken.
In case the global calculation was a *FREQUENCY calculation the DATA
SET parameter specifies the mode in the global model which will be used for
the interpolation. It is the number preceding the string MODAL in the .frd-file
7.4 *BOUNDARY 411
and it corresponds to the dataset number if viewing the .frd-file with CalculiX
GraphiX. Notice that the global frequency calculation is not allowed to contain
preloading nor cyclic symmetry.
Notice that the displacements interpolated from the global model are not
transformed, no matter what coordinate system is applied to the nodes in the
submodel. Consequently, if the displacements of the global model are stored
in a local coordinate system, this local system also applies to the submodel
nodes in which these displacements are interpolated. So the submodel nodes
in which the displacements of the global model are interpolated, inherit the
coordinate system in which the displacements of the global model were stored.
The SUBMODEL parameter and the AMPLITUDE parameter are mutually
exclusive.
If more than one *BOUNDARY card occurs in the input deck, the following
rule applies: if the *BOUNDARY is applied to the same node AND in the same
direction as in a previous application then the previous value and previous
amplitude are replaced.
A distinction is made whether the conditions are homogeneous (fixed condi-
tions), inhomogeneous (prescribed displacements) or of the submodel type.
First line:
• *BOUNDARY
• Enter any needed parameters and their value.
Following line:
• Node number or node set label
• First degree of freedom constrained
• Last degree of freedom constrained. This field may be left blank if only
one degree of freedom is constrained.
Repeat this line if needed.
Example:
*BOUNDARY
73,1,3
First line:
• *BOUNDARY
Following line:
• Last degree of freedom constrained. This field may be left blank if only
one degree of freedom is constrained.
Example:
*BOUNDARY
Nall,2,2,.1
assigns to degree of freedom two of all nodes belonging to node set Nall the
value 0.1.
Example:
*BOUNDARY,MASS FLOW
73,1,1,31.7
applies a mass flow rate of 31.7 to node 73. To have any effect, this node
must be the midside node of a network element.
7.4.3 Submodel
Submodel conditions can be defined between a *STEP card and an *END STEP
card only.
First line:
• *BOUNDARY,SUBMODEL
7.5 *BUCKLE 413
• use the STEP or DATA SET parameter to specify the step or mode in the
global model
Following line:
• Node number or node set label
• First degree of freedom to be interpolated from the global model
• Last degree of freedom to be interpolated from the global model
Repeat this line if needed.
Example:
*BOUNDARY,SUBMODEL
73,1,3
Example files: .
7.5 *BUCKLE
Keyword type: step
This procedure is used to determine the buckling load of a structure. The
load active in the last non-perturbative *STATIC step, if any, will be taken as
preload if the perturbation parameter is specified on the *STEP card. All loads
previous to a perturbation step are removed at the start of the step; only the
load specified within the buckling step is scaled till buckling occurs. Right now,
only the stress stiffness due to the buckling load is taken into account and not
the large deformation stiffness it may cause.
Buckling leads to an eigenvalue problem whose lowest eigenvalue is the scalar
the load in the buckling step has to be multiplied with to get the buckling load.
Thus, generally only the lowest eigenvalue is needed. This value is also called
the buckling factor and it is always stored in the .dat file.
SOLVER is the only parameter. It specifies which solver is used to determine
the stress stiffness due to the buckling load and to perform a decomposition of
the linear equation system. This decomposition is done only once. It is repeat-
edly used in the iterative procedure determining the eigenvalues (the buckling
factor). The following solvers can be selected:
• TAUCS
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, no eigenvalue
analysis can be performed.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
If the MATRIXSTORAGE option is used, the stiffness matrix of the base
loading and the stress stiffness matrix of the buckling load are stored in files
jobname.sti and jobname.str, respectively. These are ASCII files containing the
nonzero entries (occasionally, they can be zero; however, none of the entries
which are not listed are nonzero). Each line consists of two integers and one
real: the row number, the column number and the corresponding value. The
entries are listed column per column. In addition, a file jobname.dof is created.
It has as many entries as there are rows and columns in the stiffness and mass
matrix. Each line contains a real number of the form “a.b”. Part a is the node
number and b is the global degree of freedom corresponding to selected row.
Notice that the program stops after creating these files. No further steps are
treated. Consequently, *BUCKLE, SOLVER=MATRIXSTORAGE only makes
sense as the last step in a calculation. Notice that for the stress stiffness matrix
of the buckling load the stresses due to this load must have been determined by
performing a regular static calculation. This is done automatically in CalculiX.
In case the user has specified SOLVER=MATRIXSTORAGE the default solver
is used to solve this static calculation. If the user specifies another solver (e.g.
PARDISO), this solver is used for both the static calculation and the iterative
procedure for the eigenvalue problem leading to the buckling load.
First line:
• *BUCKLE
Second line:
7.6 *CFD 415
Example:
*BUCKLE
2
calculates the lowest two buckling modes and the corresponding buckling
factors. For the accuracy, the number of Lanczos vectors and the number of
iterations the defaults are taken.
7.6 *CFD
Keyword type: step
This procedure is used to perform a three-dimensional computational fluid
dynamics (CFD) calculation.
There are six optional parameters: STEADY STATE, TIME RESET, TO-
TAL TIME AT START, COMPRESSIBLE, TURBULENCE MODEL and SHAL-
LOW WATER.
The initial time increment and time step period specified underneath the
*CFD card are interpreted as mechanical time increment and mechanical time
step. For each mechanical time increment a CFD calculation is performed con-
sisting of several CFD time increments. Therefore, the initial CFD time incre-
ment cannot exceed the initial mechanical time increment. CFD time increments
are usually much smaller than the mechanical time increments. The CFD cal-
culation is performed up to the end of the mechanical time increment (if the
calculation is transient) or up to steady state conditions (if the CFD calculation
is a steady state calculation).
The parameter STEADY STATE indicates that the calculation should be
performed until steady state conditions are reached. In that case the size of
the mechanical time increment has not influence on the number of CFD time
increments and the only limit is the value of the parameter INCF on the *STEP
card. If this parameter is absent, the calculation is assumed to be time depen-
dent and a time accurate transient analysis is performed until the end of the
mechanical time increment.
The parameter TIME RESET can be used to force the total time at the end
of the present step to coincide with the total time at the end of the previous step.
416 7 INPUT DECK FORMAT
If there is no previous step the targeted total time is zero. If this parameter is
absent the total time at the end of the present step is the total time at the end
of the previous step plus the time period of the present step (2nd parameter
underneath the *CFD keyword). Consequently, if the time at the end of the
previous step is 10. and the present time period is 1., the total time at the end of
the present step is 11. If the TIME RESET parameter is used, the total time at
the beginning of the present step is 9. and at the end of the present step it will
be 10. This is sometimes useful if transient coupled temperature-displacement
calculations are preceded by a stationary heat transfer step to reach steady
state conditions at the start of the transient coupled temperature-displacement
calculations. Using the TIME RESET parameter in the stationary step (the
first step in the calculation) will lead to a zero total time at the start of the
subsequent instationary step.
The parameter TOTAL TIME AT START can be used to set the total time
at the start of the step to a specific value.
The parameter COMPRESSIBLE specifies that the fluid is compressible.
Default is incompressible.
For 3D fluid calculations the parameter TURBULENCE MODEL defines
the turbulence model to be used. The user can choose among NONE (laminar
calculations; this is default), K-EPSILON, K-OMEGA, BSL and SST [60].
Finally, the parameter SHALLOW WATER only applied to CFD calcula-
tions with the finite element method. It indicates that the calculation is a
shallow water calculation. This corresponds to a compressible fluid calculation
in which the density is replaced by the fluid depth, cf. Section 6.9.20.
First line:
• *CFD
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified (default 1.).
• Safety factor by which the time increment calculated based on the convec-
tive and diffusive characteristics should be divided by. This factor must
exceed the default of 1.25.
Example: couette1
7.7 *CFLUX 417
*CFD
.1,1.,,
defines a CFD step. The second line indicates that the initial time increment
is .1 and the total step time is 1.
7.7 *CFLUX
Keyword type: step
This option allows concentrated heat fluxes to be applied to any node in
the model which is not fixed by a single or multiple point constraint. Optional
parameters are OP, AMPLITUDE, TIME DELAY, USER and ADD. OP can
take the value NEW or MOD. OP=MOD is default and implies that the con-
centrated fluxes applied to different nodes in previous steps are kept. Specifying
a flux in a node for which a flux was defined in a previous step replaces this
value. A flux specified in a node for which a flux was already defined within the
same step is added to this value. OP=NEW implies that all concentrated fluxes
applied in previous steps are removed. If multiple *CFLUX cards are present
in a step this parameter takes effect for the first *CFLUX card only.
The AMPLITUDE parameter allows for the specification of an amplitude
by which the flux values are scaled (mainly used for nonlinear static and dy-
namic calculations). Thus, in that case the values entered on the *CFLUX card
are interpreted as reference values to be multiplied with the (time dependent)
amplitude value to obtain the actual value. At the end of the step the reference
value is replaced by the actual value at that time. In subsequent steps this value
is kept constant unless it is explicitly redefined or the amplitude is defined using
TIME=TOTAL TIME in which case the amplitude keeps its validity.
The TIME DELAY parameter modifies the AMPLITUDE parameter. As
such, TIME DELAY must be preceded by an AMPLITUDE name. TIME
DELAY is a time shift by which the AMPLITUDE definition it refers to is
moved in positive time direction. For instance, a TIME DELAY of 10 means
that for time t the amplitude is taken which applies to time t-10. The TIME
DELAY parameter must only appear once on one and the same keyword card.
If the USER parameter is selected the concentrated flux values are deter-
mined by calling the user subroutine cflux.f, which must be provided by the
user. This applies to all nodes listed beneath the *CFLUX keyword. Any flux
values specified following the temperature degree of freedom are not taken into
account. If the USER parameter is selected, the AMPLITUDE parameter has
no effect and should not be used.
Finally, the ADD parameter allows the user to specify that the flux should
be added to previously defined fluxes in the same node, irrespective whether
these fluxes were defined in the present step or in a previous step.
The use of the *CFLUX card makes sense for heat transfer calculations or
coupled thermo-mechanical calculations only. Heat fluxes are applied to degree
of freedom 11.
418 7 INPUT DECK FORMAT
If more than one *CFLUX card occurs within the input deck the following
rules apply:
If a *CFLUX card is applied to the same node AND in the same direction
as in a previous application, then
• if the previous application was in the same step the *CFLUX value is
added, else it is replaced
• the new amplitude (including none) overwrites the previous amplitude
First line:
• *CFLUX
• Enter any needed parameters and their value.
Following line:
• Node number or node set label.
• Degree of freedom (11).
• Magnitude of the flux
Repeat this line if needed.
Example:
*CFLUX,OP=NEW,AMPLITUDE=A1
10,11,15.
removes all previous concentrated heat fluxes and applies a flux with mag-
nitude 15. and amplitude A1 for degree of freedom 11 (this is the temperature
degree of freedom) of node 10.
time the “SURFACE TO SURFACE” contact, however, is too slow and too
detailed in resolution of the contact area. Here, “NODE TO SURFACE” and
“MASSLESS” perform better. Therefore, the present keyword was introduced
in order to change the contact formulation at the start of a dynamic step.
The option *CHANGE CONTACT TYPE can also be used if a previous
static step was calculated with “NODE TO SURFACE” contact (for whatever
reason) and the subsequent dynamic step is to be performed with “MASSLESS”
contact.
Either the parameter TO NODE TO SURFACE or TO MASSLESS is re-
quired.
Example:
• *CHANGE FRICTION
Example:
*CHANGE FRICTION,INTERACTION=IN1
• *CHANGE MATERIAL
Example:
*CHANGE MATERIAL,NAME=PL
indicates that the plastic data of material PL are to be changed to the values
underneath the following *CHANGE PLASTIC card.
First line:
• *CHANGE PLASTIC
Following sets of lines define the isotropic hardening curve for HARDEN-
ING=ISOTROPIC and the kinematic hardening curve for HARDENING=KINEMATIC:
First line in the first set:
• Temperature.
Use as many lines in the first set as needed to define the complete hardening
curve for this temperature.
Use as many sets as needed to define complete temperature dependence.
Notice that it is not allowed to use more plastic strain data points or temperature
data points than the amount used for the first definition of the plastic behavior
for this material (in the *PLASTIC card.
The raison d’être for this card is its ability to switch from purely plastic be-
havior to creep behavior and vice-versa. The viscoplastic for isotropic materials
in CalculiX is an overstress model, i.e. creep only occurs above the yield stress.
For a lot of materials this is not realistic. It is observed in blades and vanes
that at high temperatures creep occurs at stresses well below the yield stress.
By using the *CHANGE PLASTIC card the yield stress can be lowered to zero
in a creep (*VISCO) step following a inviscid (*STATIC) plastic deformation
step.
Example:
*CHANGE PLASTIC
0.,0.
0.,1.e10
First line:
422 7 INPUT DECK FORMAT
7.14 *CLEARANCE
Keyword type: model definition
With this option a clearance can be defined between the slave and master
surface of a contact pair. It only applies to face-to-face contact (penalty or
mortar). If this option is active, the actual clearance or overlapping based on
the distance between the integration point on the slave surface and its orthogonal
projection on the master surface is overwritten by the value specified here. There
are three required parameters: MASTER, SLAVE and VALUE. With MASTER
one specifies the master surface, with SLAVE the slave surface and with VALUE
the value of the clearance. Only one value per contact pair is allowed.
• *CLEARANCE
• enter the required parameters and their values.
Example:
*CLEARANCE,MASTER=SURF1,SLAVE=SURF2,VALUE=0.1
indicates that the clearance between master surface SURF1 and slave surface
SURF2 should be 0.1 length units. SURF1 and SURF2 must be used on one
and the same *CONTACT PAIR card.
Example files:
7.15 *CLOAD
Keyword type: step
This option allows concentrated forces to be applied to any node in the model
which is not fixed by a single or multiple point constraint. Optional parameters
are OP, AMPLITUDE, TIME DELAY, USER, LOAD CASE, SECTOR, SUB-
MODEL, STEP, DATA SET and OMEGA0. OP can take the value NEW or
MOD. OP=MOD is default and implies that the concentrated loads applied to
different nodes in previous steps are kept. Specifying a force in a node for which
a force was defined in a previous step replaces this value. A force specified in a
node and direction for which a force was already defined within the same step
is added to this value. OP=NEW implies that all concentrated loads applied
in previous steps are removed. If multiple *CLOAD cards are present in a step
this parameter takes effect for the first *CLOAD card only.
The AMPLITUDE parameter allows for the specification of an amplitude
by which the force values are scaled (mainly used for nonlinear static and dy-
namic calculations). Thus, in that case the values entered on the *CLOAD card
are interpreted as reference values to be multiplied with the (time dependent)
amplitude value to obtain the actual value. At the end of the step the reference
value is replaced by the actual value at that time. In subsequent steps this value
is kept constant unless it is explicitly redefined or the amplitude is defined using
TIME=TOTAL TIME in which case the amplitude keeps its validity.
The AMPLITUDE parameter applies to all loads specified by the same
*CLOAD card. This means that, by using several *CLOAD cards, different
amplitudes can be applied to the forces in different coordinate directions in one
and the same node. An important exception to this rule are nodes in which
a transformation applies (by using the *TRANSFORM card): an amplitude
defined for such a node applies to ALL coordinate directions. If several are
defined, the last one applies.
The TIME DELAY parameter modifies the AMPLITUDE parameter. As
such, TIME DELAY must be preceded by an AMPLITUDE name. TIME
DELAY is a time shift by which the AMPLITUDE definition it refers to is
moved in positive time direction. For instance, a TIME DELAY of 10 means
424 7 INPUT DECK FORMAT
that for time t the amplitude is taken which applies to time t-10. The TIME
DELAY parameter must only appear once on one and the same keyword card.
If the USER parameter is selected the concentrated load values are deter-
mined by calling the user subroutine cload.f, which must be provided by the
user. This applies to all nodes listed beneath the *CLOAD keyword. Any load
values specified following the degree of freedom are not taken into account. If
the USER parameter is selected, the AMPLITUDE parameter has no effect and
should not be used.
The LOAD CASE parameter is only active in *STEADY STATE DYNAMICS
calculations. LOAD CASE = 1 means that the loading is real or in-phase.
LOAD CASE = 2 indicates that the load is imaginary or equivalently phase-
shifted by 90◦ . Default is LOAD CASE = 1.
The SECTOR parameter can only be used in *MODAL DYNAMIC and
*STEADY STATE DYNAMICS calculations with cyclic symmetry. The datum
sector (the sector which is modeled) is sector 1. The other sectors are numbered
in increasing order in the rotational direction going from the slave surface to
the master surface as specified by the *TIE card. Consequently, the SECTOR
parameters allows to apply a point load to any node in any sector. However,
the only coordinate systems allowed in a node in which a force is applied in a
sector different from the datum sector are restricted to the global Carthesian
system and a local cylindrical system. If the global coordinate system applies,
the force defined by the user (in the global system) is simply copied to the
appropriate sector without changing its direction. The user must make sure
the direction of the force is the one needed in the destination sector. If a local
cylindrical system applies, this system must be identical with the one defined
underneath the *CYCLIC SYMMETRY MODEL card. In that case, the force
defined in the datum sector is rotated towards the destination sector, i.e. the
radial, circumferential and axial part of the force is kept.
The SUBMODEL parameter specifies that the forces in the specified de-
grees of freedom of the nodes listed underneath will be obtained by interpo-
lation from a global model. To this end these nodes have to be part of a
*SUBMODEL,TYPE=NODE card. On the latter card the result file (frd file)
of the global model is defined. The use of the SUBMODEL parameter requires
the STEP or the DATA SET parameter.
In case the global calculation was a *STATIC calculation the STEP parame-
ter specifies the step in the global model which will be used for the interpolation.
If results for more than one increment within the step are stored, the last incre-
ment is taken.
In case the global calculation was a *FREQUENCY calculation the DATA
SET parameter specifies the mode in the global model which will be used for
the interpolation. It is the number preceding the string MODAL in the .frd-file
and it corresponds to the dataset number if viewing the .frd-file with CalculiX
GraphiX. Notice that the global frequency calculation is not allowed to contain
preloading nor cyclic symmetry.
Notice that the forces interpolated from the global model are not trans-
formed, no matter what coordinate system is applied to the nodes in the sub-
7.15 *CLOAD 425
model. Consequently, if the forces of the global model are stored in a local co-
ordinate system, this local system also applies to the submodel nodes in which
these forces are interpolated. So the submodel nodes in which the forces of
the global model are interpolated, inherit the coordinate system in which the
forces of the global model were stored. The SUBMODEL parameter and the
AMPLITUDE parameter are mutually exclusive.
Notice that the interpolation of the forces from a global model onto a sub-
model is only correct if the global and submodel mesh coincide. Else, force
equilibrium is violated. Therefore, the option to interpolate forces on sub-
models only makes sense if it is preceded by a submodel calculation (the same
submodel) with displacement interpolation and force output request. Summa-
rizing, in order to create a force-driven calculation of a submodel, knowing the
displacement results in the global model one would proceed as follows:
First line:
• *CLOAD
• Enter any needed parameters and their value.
Following line:
• Node number or node set label.
426 7 INPUT DECK FORMAT
• Degree of freedom.
• Magnitude of the load
Repeat this line if needed.
Example:
*CLOAD,OP=NEW,AMPLITUDE=A1,TIME DELAY=20.
1000,3,10.3
removes all previous point load forces and applies a force with magnitude
10.3 and amplitude A1 (shifted in positive time direction by 20 time units) for
degree of freedom three (global if no transformation was defined for node 1000,
else local) of node 1000.
First line:
• *COMPLEX FREQUENCY
• use the required parameter CORIOLIS
Second line:
• Number of eigenfrequencies desired.
Example:
*COMPLEX FREQUENCY,CORIOLIS
10
7.17 *CONDUCTIVITY
Keyword type: model definition, material
This option is used to define the conductivity coefficients of a material.
There is one optional parameter TYPE. Default is TYPE=ISO, other values are
TYPE=ORTHO for orthotropic materials and TYPE=ANISO for anisotropic
materials. All constants may be temperature dependent. The unit of the con-
ductivity coefficients is energy per unit of time per unit of length per unit of
temperature.
First line:
• *CONDUCTIVITY
• κ.
• Temperature.
• κ11 .
• κ22 .
• κ33 .
• Temperature.
• κ11 .
• κ22 .
• κ33 .
• κ12 .
• κ13 .
• κ23 .
• Temperature.
Example:
*CONDUCTIVITY
50.,373.
100.,573.
tells you that the conductivity coefficient in a body made of this material is
50 at T = 373 and 100 at T = 573. Below T = 373 its value is set to 50, above
T = 573 it is set to 100 and in between linear interpolation is applied.
7.18 *CONSTRAINT
Keyword type: step
With *CONSTRAINT one can define constraints on design responses in a
feasible direction step. It can only be used for design variables of type COOR-
DINATE. Furthermore, exactly one objective function has to be defined within
the same feasible direction step (using the *OBJECTIVE keyword).
A constraint is an inequality expressing a condition on a design response
function. The inequality can be of type “smaller than or equal” (LE) or “larger
than or equal” (GE). The reference value for the inequality is to be specified
by a relative portion of an absolute value (the latter in the units used by the
user). For instance, suppose the user introduces an absolute value of 20 and
a relative value of 0.9 for a LE constraint on the mass. Than the mass is not
allowed to exceed 0.9 × 20 = 18 mass units. If the absolute value is zero, the
initial value is taken, e.g. for the mass this corresponds to the mass at the start
of the calculation. If no relative value is given 1. is taken.
Right now, the following design responses are allowed:
• ALL-DISP: the square root of the sum of the square of the displacements
in all nodes of the structure or of a subset if a node set is defined
• X-DISP: the square root of the sum of the square of the x-displacements
in all nodes of the structure or of a subset if a node set is defined
• Y-DISP: the square root of the sum of the square of the y-displacements
in all nodes of the structure or of a subset if a node set is defined
• Z-DISP: the square root of the sum of the square of the z-displacements
in all nodes of the structure or of a subset if a node set is defined
1 X ρ σi
f= ln e σ̄ , (862)
ρ i
where σi is the von Mises stress in node i, ρ and σ̄ are user-defined pa-
rameters. The higher ρ the closer f is to the actual maximum (a value
of 10 is recommended; the higher this value, the sharper the turns in the
function). σ̄ is the target stress, it should not be too far away from the
actual maximum. The target stress must be positive.
• PS3STRESS: the minimum of the lowest principal stress of the total struc-
ture or of a subset if a node set is defined. The minimum is approxi-
mated by the Kreisselmeier-Steinhauser function. The target stress for
PS3STRESS must be negative.
First line:
• *CONSTRAINT.
Second line:
Example:
*SENSITIVITY
*DESIGN RESPONSE,NAME=DESRESP1
MASS,E1
.
.
.
*FEASIBLE DIRECTION
*CONSTRAINT
DESRESP1,LE,,3.
specifies that the mass of element set E1 should not exceed 3 in the user’s
units.
First line:
• *CONTACT DAMPING
Second line:
• Damping constant.
No temperature dependence is allowed
Example:
7.20 *CONTACT FILE 431
*SURFACE INTERACTION,NAME=SI1
*SURFACE BEHAVIOR,PRESSURE-OVERCLOSURE=LINEAR
1.e7
*CONTACT DAMPING
1.e-4
defines a contact damping with value 10−4 for all contact pairs using the
surface interaction SI1.
product of a vector locally normal to the master surface with the first tangential
unit vector. Now, the components of the projection of the relative displacement
between the two contact surfaces onto the master surface with respect to the
first and the second unit tangential vector are the second and third component
of CDIS, respectively. They are only calculated if a friction coefficient has been
defined underneath *FRICTION.
In the same way the contact stresses constitute a vector, the first component
of which is the contact pressure (entity [CPRESS]), while the second and third
component are the components of the shear stress vector exerted by the slave
surface on the master surface with respect to the first and second unit tangential
vector, respectively (entities [CSHEAR1], [CSHEAR2]).
The selected variables are stored for the complete model, but are only
nonzero in the slave nodes of contact definitions.
The first occurrence of a *CONTACT FILE keyword card within a step
wipes out all previous nodal contact variable selections for file output. If no
*CONTACT FILE card is used within a step the selections of the previous step
apply. If there is no previous step, no nodal contact variables will be stored.
There are four optional parameters: FREQUENCY, TIME POINTS, LAST
ITERATIONS and CONTACT ELEMENTS. The parameters FREQUENCY
and TIME POINTS are mutually exclusive.
FREQUENCY applies to nonlinear calculations where a step can consist
of several increments. Default is FREQUENCY=1, which indicates that the
results of all increments will be stored. FREQUENCY=N with N an integer
indicates that the results of every Nth increment will be stored. The final results
of a step are always stored. If you only want the final results, choose N very
big. The value of N applies to *OUTPUT,*ELEMENT OUTPUT, *EL FILE,
*ELPRINT, *NODE OUTPUT, *NODE FILE, *NODE PRINT, *SECTION PRINT,
*CONTACT OUTPUT, *CONTACT FILE and *CONTACT PRINT. If the
FREQUENCY parameter is used for more than one of these keywords with con-
flicting values of N, the last value applies to all. A frequency parameter stays
active across several steps until it is overwritten by another FREQUENCY value
or the TIME POINTS parameter.
With the parameter TIME POINTS a time point sequence can be refer-
enced, defined by a *TIME POINTS keyword. In that case, output will be
provided for all time points of the sequence within the step and additionally
at the end of the step. No other output will be stored and the FREQUENCY
parameter is not taken into account. Within a step only one time point se-
quence can be active. If more than one is specified, the last one defined on any
of the keyword cards *EL FILE, *ELPRINT, *NODE FILE, *NODE PRINT,
*SECTION PRINT, *CONTACT FILE and *CONTACT PRINT will be ac-
tive. The TIME POINTS option should not be used together with the DI-
RECT option on the procedure card. The TIME POINTS parameters stays
active across several steps until it is replaced by another TIME POINTS value
or the FREQUENCY parameter.
The parameter LAST ITERATIONS leads to the storage of the displace-
ments in all iterations of the last increment in a file with name ResultsFor-
7.21 *CONTACT OUTPUT 433
First line:
• *CONTACT FILE
• Enter any needed parameters and their values.
Second line:
• Identifying keys for the variables to be printed, separated by commas.
Example:
requests the storage of the relative contact displacements and contact stresses
in the .frd file for all time points defined by the T1 time points sequence.
Example:
requests the storage of the relative contact displacements and contact stresses
in the .frd file for all time points defined by the T1 time points sequence.
Example files: .
The ADJUST parameter allows the user to move selected slave nodes at
the start of the calculation (i.e. at the start of the first step) such that they
make contact with the master surface. This is a change of coordinates, i.e. the
geometry of the structure at the start of the calculation is changed. This can be
helpful if due to inaccuracies in the modeling a slave node which should lie on
the master surface at the start of the calculation actually does not. Especially
in static calculations this can lead to a failure to detect contact in the first
increment and large displacements (i.e. acceleration due to a failure to establish
equilibrium). These large displacements may jeopardize convergence in any
subsequent iteration. The ADJUST parameter can be used with a node set
as argument or with a nonnegative real number. If a node set is selected, all
nodes in the set are adjusted at the start of the calculation. If a real number is
specified, all nodes for which the clearance is smaller or equal to this number are
adjusted. Penetration is interpreted as a negative clearance and consequently
all penetrating nodes are always adjusted, no matter how small the adjustment
size (which must be nonnegative). Notice that large adjustments can lead to
deteriorated element quality. The adjustments are done along a vector through
the slave node and locally orthogonal to the master surface.
First line:
• *CONTACT PAIR
Following line:
Example:
*CONTACT PAIR,INTERACTION=IN1,ADJUST=0.01
dep,ind
defines a contact pair consisting of the surface dep as dependent surface and
the element face surface ind as independent surface. The name of the surface
interaction is IN1. All slave nodes for which the clearance is smaller than or
equal to 0.01 will be moved onto the master surface.
Contact quantities CDIS, CSTR and CELS are stored for all active slave
nodes in the model for node-to-face penalty contact and for all active inte-
gration points in the slave face for face-to-face penalty contact. The relative
contact displacements and the stresses consist of one component normal to the
master surface and two components tangential to it. Positive values of the
normal components represent the normal material overlap and the pressure, re-
spectively. For the direction of the tangential unit vectors used to calculate
the relative tangential displacement and shear stresses the user is referred to
*CONTACT FILE. The energy is a scalar quantity.
The contact quantity CNUM is one scalar listing the total number of contact
elements in the model.
The quantities CF, CFN and CFS represent the total force, total normal
force and total shear force acting on the slave surface, respectively, for a selected
face-to-face penalty contact pair. In addition, moments of these forces about
the global origin, the location of the center of gravity and the area of the contact
area and the moment about the center of gravity are printed.
There are five parameters, FREQUENCY, TIME POINTS, TOTALS, SLAVE
and MASTER. FREQUENCY and TIME POINTS are mutually exclusive.
The parameter FREQUENCY is optional, and applies to nonlinear cal-
culations where a step can consist of several increments. Default is FRE-
QUENCY=1, which indicates that the results of all increments will be stored.
FREQUENCY=N with N an integer indicates that the results of every Nth
increment will be stored. The final results of a step are always stored. If
you only want the final results, choose N very big. The value of N applies to
*OUTPUT,*ELEMENT OUTPUT, *EL FILE, *ELPRINT, *NODE OUTPUT,
*NODE FILE, *NODE PRINT, *SECTION PRINT,*CONTACT OUTPUT, *CONTACT FILE
and *CONTACT PRINT. If the FREQUENCY parameter is used for more than
one of these keywords with conflicting values of N, the last value applies to all.
7.23 *CONTACT PRINT 437
First line:
• *CONTACT PRINT
Second line:
• Identifying keys for the variables to be printed, separated by commas.
Example:
*CONTACT PRINT
CDIS
requests the storage of the relative displacements in all slave nodes in the
.dat file.
7.24 *CONTROLS
Keyword type: step
This option is used to change the iteration control parameters. It should only
be used by those users who know what they are doing and are expert in the
field. A detailed description of the convergence criteria is given in Section 6.10.
There are two, mutually exclusive parameter: PARAMETERS and RESET.
The RESET parameter resets the control parameters to their defaults. The
parameter PARAMETERS is used to change the defaults. It can take the value
TIME INCREMENTATION, FIELD, LINE SEARCH, NETWORK, CFD or
CONTACT. If the TIME INCREMENTATION value is selected, the number
of iterations before certain actions are taken (e.g. the number of divergent
iterations before the increment is reattempted) can be changed and effect of
these actions (e.g. the increment size is divided by two). The FIELD parameter
can be used to change the convergence criteria themselves.
LINE SEARCH can be used to change the line search parameters (only for
face-to-face penalty contact). The line search parameter scales the correction to
the solution calculated by the Newton-Raphson algorithm such that the residual
force is orthogonal to the correction. This requires the solution of a nonlinear
equation, and consequently an iterative procedure. In CalculiX this procedure
is approximated by a linear connection between:
• the scalar product of the residual force from the last iteration with the
solution correction in the present iteration (corresponds to a line search
parameter of zero) and
• the scalar product of the residual force in the present iteration with the
solution correction in the present iteration (corresponds to a line search
parameter of one).
For details of the line seach algorithm the reader is referred to [112].
With the NETWORK parameter the convergence criteria for network iter-
ations can be changed. The parameters c1t , c1f and c1p express the fraction
of the mean energy balance, mass balance and element balance the energy bal-
ance residual, the mass balance residual and the element balance residual is not
allowed to exceed, respectively. The parameters c2t , c2f , c2p and c2a is the frac-
tion of the change in temperature, mass flow, pressure and geometry since the
beginning of the increment the temperature, mass flow, pressure and geometry
change in the actual network iteration is not allowed to exceed, respectively.
The same applies to the parameters a1t , a1f , a1p , a2t , a2f , a2p and a2a , except
that they are absolute values and not fractions, e.g. the mean enery balance
residual should not exceed a1t etc. Therefore they have appropriate units.
With the CFD parameter the maximum number of iterations in certain fluid
loops can be influenced. A fluid calculation within CalculiX is triggered at the
start of a new mechanical increment. This increment is subdivided into fluid
increments based on the physical fluid properties. For each fluid increment iter-
ations are performed. Usually, iterations are performed until convergence of the
7.24 *CONTROLS 439
• IP iteration after which the residual tolerance Rpα is used instead of Rnα
(default: 9).
• IC maximum number of iterations allowed (default: 16).
• IL number of iterations after which the size of the subsequent increment
will be reduced (default: 10).
• IG maximum number of iterations allowed in two consecutive increments
for the size of the next increment to be increased (default: 4).
• IS Currently not used.
• IA Maximum number of cutbacks per increment (default: 5). A cutback
is a reattempted increment.
• IJ Currently not used.
• IT Currently not used.
Third line:
• Df Cutback factor if the solution seems to diverge(default: 0.25).
• DC Cutback factor if the logarithmic extrapolation predicts too many
iterations (default: 0.5).
• DB Cutback factor for the next increment if more than IL iterations were
needed in the current increment (default: 0.75).
• DA Cutback factor if the temperature change in two subsequent incre-
ments exceeds DELTMX (default: 0.85).
• DS Currently not used.
• DH Currently not used.
• DD Factor by which the next increment will be increased if less than IG
iterations are needed in two consecutive increments (default: 1.5).
• WG Currently not used.
Following line if PARAMETERS=FIELD is selected:
Second line:
• Rnα Convergence criterion for the ratio of the largest residual to the av-
erage force (default: 0.005). The average force is defined as the average
over all increments in the present step of the instantaneous force. The
instantaneous force in an increment is defined as the mean of the absolute
value of the nodal force components within all elements.
• Cnα Convergence criterion for the ratio of the largest solution correction
to the largest incremental solution value (default: 0.01).
7.24 *CONTROLS 441
• q0α Initial value at the start of a new step of the time average force (default:
the time average force from the previous steps or 0.01 for the first step).
• quα user-defined average force. If defined, the calculation of the average
force is replaced by this value.
• Rpα Alternative residual convergence criterion to be used after IP iterations
instead of Rnα (default: 0.02).
• ǫα Criterion for zero flux relative to q α (default: 10−5 ).
• Cǫα Convergence criterion for the ratio of the largest solution correction to
the largest incremental solution value in case of zero flux (default: 10−3 ).
• Rlα Convergence criterion for the ratio of the largest residual to the average
force for convergence in a single iteration (default: 10−8 ).
Following line if PARAMETERS=LINE SEARCH is selected:
Second line:
• not used.
• sls
max Maximum value of the line search parameter (default: 1.01).
• sls
min Minimum value of the line search parameter (default: 0.25).
• not used.
• not used.
Following line if PARAMETERS=NETWORK is selected:
Second line:
• c1t (default: 5 · 10−7 ).
• c1f (default: 5 · 10−7 ).
• c1p (default: 5 · 10−7 ).
• c2t (default: 5 · 10−7 ).
• c2f (default: 5 · 10−7 ).
• c2p (default: 5 · 10−7 ).
• c2a (default: 5 · 10−7 ).
Third line:
• a1t (default: 1020 [M][L]2 /[t]3 ; unit in SI: Watt).
• a1f (default: 1020 [M]/[t]; unit in SI: kg/s).
• a1p (default: 1020 [-]; dimensionless).
442 7 INPUT DECK FORMAT
Example:
*CONTROLS,PARAMETERS=FIELD
1.e30,1.e30,0.01,,0.02,1.e-5,1.e-3,1.e-8
leads to convergence in just one iteration since nearly any residuals are ac-
cepted for convergence (Rnα = 1030 and Cnα = 1030 .
extend over a larger area. A small correlation length will require a larger set of
random field vectors to represent the geometric tolerances to a given accuracy.
First line:
• *CORRELATION LENGTH
Second line:
• correlation length
Example:
*CORRELATION LENGTH
20.
• PaStiX
• PARDISO
• SPOOLES [3, 4].
• TAUCS
• the iterative solver by Rank and Ruecker [82], which is based on the algo-
rithms by Schwarz [88].
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, the default is
the iterative solver, which comes with the CalculiX package.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
What about the iterative solver? If SOLVER=ITERATIVE SCALING is
selected, the pre-conditioning is limited to a scaling of the diagonal terms,
SOLVER=ITERATIVE CHOLESKY triggers Incomplete Cholesky pre-conditioning.
Cholesky pre-conditioning leads to a better convergence and maybe to shorter
execution times, however, it requires additional storage roughly corresponding
to the non-zeros in the matrix. If you are short of memory, diagonal scal-
ing might be your last resort. The iterative methods perform well for truly
three-dimensional structures. For instance, calculations for a hemisphere were
about nine times faster with the ITERATIVE SCALING solver, and three
times faster with the ITERATIVE CHOLESKY solver than with SPOOLES.
For two-dimensional structures such as plates or shells, the performance might
break down drastically and convergence often requires the use of Cholesky pre-
conditioning. SPOOLES (and any of the other direct solvers) performs well in
most situations with emphasis on slender structures but requires much more
storage than the iterative solver.
The parameter DIRECT indicates that automatic incrementation should be
switched off. The increments will have the fixed length specified by the user on
the second line.
The parameter ALPHA takes an argument between -1/3 and 0. It controls
the dissipation of the high frequency response: lower numbers lead to increased
numerical damping ([65]). The default value is -0.05.
7.26 *COUPLED TEMPERATURE-DISPLACEMENT 445
The parameter STEADY STATE indicates that only the steady state should
be calculated. If this parameter is absent, the calculation is assumed to be time
dependent and a transient analysis is performed. For a transient analysis the
specific heat of the materials involved must be provided. In a steady state
analysis any loading is applied using linear ramping, in a transient analysis step
loading is applied.
The parameter DELTMX can be used to limit the temperature change in
two subsequent increments. If the temperature change exceeds DELTMX the
increment is restarted with a size equal to DA times DELTMX divided by the
temperature change. The default for DA is 0.85, however, it can be changed by
the *CONTROLS keyword. DELTMX is only active in transient calculations.
Default value is 1030 .
The parameter TIME RESET can be used to force the total time at the end
of the present step to coincide with the total time at the end of the previous step.
If there is no previous step the targeted total time is zero. If this parameter is
absent the total time at the end of the present step is the total time at the end
of the previous step plus the time period of the present step (2nd parameter
underneath the *COUPLED TEMPERATURE-DISPLACEMENT keyword).
Consequently, if the time at the end of the previous step is 10. and the present
time period is 1., the total time at the end of the present step is 11. If the
TIME RESET parameter is used, the total time at the beginning of the present
step is 9. and at the end of the present step it will be 10. This is sometimes
useful if transient coupled temperature-displacement calculations are preceded
by a stationary heat transfer step to reach steady state conditions at the start of
the transient coupled temperature-displacement calculations. Using the TIME
RESET parameter in the stationary step (the first step in the calculation) will
lead to a zero total time at the start of the subsequent instationary step.
The parameter TOTAL TIME AT START can be used to set the total time
at the start of the step to a specific value.
Finally, the parameter COMPRESSIBLE is only used in 3-D CFD calcula-
tions. It specifies that the fluid is compressible. Default is incompressible.
First line:
• *COUPLED TEMPERATURE-DISPLACEMENT
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified (default 1.).
Example:
*COUPLED TEMPERATURE-DISPLACEMENT
.1,1.
7.27 *COUPLING
Keyword type: model definition
This option is used to generate a kinematic or a distributing coupling. It
must be followed by the keyword *KINEMATIC or *DISTRIBUTING.
The parameters REF NODE, SURFACE and CONSTRAINT NAME are
mandatory, the parameter ORIENTATION is optional.
With REF NODE a reference node is chosen, the degrees of freedom of which
are used to define the constraint. In the reference node six degrees of freedom
are available: 1 to 3 for translations in the x-, y- and z- direction and 4 to
6 for rotations about the x-, y- and z- axis. For *KINEMATIC couplings the
location of the reference node determines the center of the rigid motion. For
*DISTRIBUTING couplings any forces specified by the user are applied at the
location of the reference node. Choosing another reference node will change
the effect of these forces (e.g. the moment about the center of gravity of the
coupling surface will be different). The reference node should not be one of the
nodes of the surface to which the constraint applies.
With SURFACE the nodes are selected to which the constraint applies (so-
called coupling nodes). This surface must be face-based.
The parameter CONSTRAINT NAME is used to assign a name to the cou-
pling condition. This name is not used so far.
Finally, with the ORIENTATION parameter one can assign a local coor-
dinate system to the coupling constraint. Notice that this does not induce a
change of coordinate system in the reference node (for this a *TRANSFORM
card is needed). For distributing couplings only rectangular local systems are
allowed, for kinematic couplings both rectangular and cylindrical systems are
alllowed, cf. *ORIENTATION.
For *DISTRIBUTING couplings it is not recommended to apply any other
forces but the forces and/or moments in the reference node to any node be-
longing to the coupling surface and no transformation is allowed in these nodes.
7.28 *CRACK PROPAGATION 447
First line:
• *COUPLING
• Enter any needed parameters.
Example:
defines a coupling constraint with name C1 for the nodes belonging to the
surface SURF. The reference node is node 200 and an orientation OR1 was
applied.
• CUMULATIVE means that the crack length is the crack length of the
initial crack augmented by the crack propagation increments of the sub-
sequent increments
• INTERSECTION means that the crack length at a certain location along
the crack front is determined by the distance from the point on the crack
front opposite to this location.
Since the jobname.frd file is created from scratch in every *CRACK PROPAGATION
step (this is because every *CRACK PROPAGATION step changes the number
of nodes and elements in the model due to the growing crack) it does not make
448 7 INPUT DECK FORMAT
sense to have more than one such step in an input deck. In fact, any other step
is senseless and ideally the *CRACK PROPAGATION step should be the only
step in the deck. If the user defines more than one *CRACK PROPAGATION
step in his/her input deck, the jobname.frd file will only contain the output
requested, if any, from the last *CRACK PROPAGATION step. This rule also
applies to restart calculations.
First line:
• *CRACK PROPAGATION
Second line:
• Maximum crack propagation increment.
Example:
*MATERIAL,NAME=CRACK
*USER MATERIAL,CONSTANTS=8
1.E-4,772.86,3.1,10.,177.09,10.,3162.,0.5
...
*STEP,INC=50
*CRACK PROPAGATION,INPUT=master.frd,MATERIAL=CRACK,LENGTH=CUMULATIVE
0.05,10.
7.29 *CREEP
Keyword type: model definition, material
This option is used to define the creep properties of a viscoplastic mate-
rial. There is one optional parameter LAW. Default is LAW=NORTON, the
only other value is LAW=USER for a user-defined creep law. The Norton law
satisfies:
ǫ̇ = Aσ n tm (863)
7.29 *CREEP 449
where ǫ is the equivalent creep strain, σ is the true Von Mises stress an
t is the total time. For LAW=USER the creep law must be defined in user
subroutine creep.f (cf. Section 8.1).
All constants may be temperature dependent. The card should be preceded
by a *ELASTIC card within the same material definition, defining the elastic
properties of the material. If for LAW=NORTON the temperature data points
under the *CREEP card are not the same as those under the *ELASTIC card,
the creep data are interpolated at the *ELASTIC temperature data points. If
a *PLASTIC card is defined within the same material definition, it should be
placed after the *ELASTIC and before the *CREEP card. If no *PLASTIC
card is found, a zero yield surface without any hardening is assumed.
If the elastic data is isotropic, the large strain viscoplastic theory treated in
[92] and [93] is applied. If the elastic data is orthotropic, the infinitesimal strain
model discussed in Section 6.8.16 is used. If a *PLASTIC card is used for an
orthotropic material, the LAW=USER option is not available.
First line:
• *CREEP
Following lines are only needed for LAW=NORTON (default): First line:
• A.
• n.
• m.
• Temperature.
Example:
*CREEP
1.E-10,5.,0.,100.
2.E-10,5.,0.,200.
defines a creep law with A=10−10 , n=5 and m=0 for T(temperature)=100.
and A=2 · 10−10 and n=5 for T(temperature)=200.
First line:
• *CYCLIC HARDENING
Following sets of lines defines the isotropic hardening curve: First line in the
first set:
• Von Mises stress.
• Equivalent plastic strain.
• Temperature.
Use as many lines in the first set as needed to define the complete hardening
curve for this temperature.
Use as many sets as needed to define complete temperature dependence.
Example:
*CYCLIC HARDENING
800.,0.,100.
1000.,.1,100.
900.,0.,500.
1050.,.11,500.
defines two (stress,plastic strain) data points at T=100. and two data points
at T=500. Notice that the temperature must be listed in ascending order. The
same is true for the plastic strain within a temperature block.
deviate substantially. Care should be taken that, when looking in the direction
of the cyclic symmetry axes, all dependent surfaces in the tie definitions are on
the same side. Then, naturally, this also applies to the independent surfaces.
The *CYCLIC SYMMETRY MODEL card triggers the creation of cyclic
symmetry multiple point constraints between the slave and master side. If the
nodes do not match on a one-to-one basis a slave node is connected to a master
face. To this end the master side is triangulated. The resulting triangulation
is stored in file TriMasterCyclicSymmetryModel.frd and can be viewed with
CalculiX GraphiX.
• Enter the required parameters N and TIE (the latter only if more than
one cyclic symmetry tie is defined) and their value.
Second line:
• X-coordinate of point a.
• Y-coordinate of point a.
• Z-coordinate of point a.
• X-coordinate of point b.
• Y-coordinate of point b.
• Z-coordinate of point b.
Example:
7.32 *DAMPING
Keyword type: model definition, if structural damping: material
This card is used to define Rayleigh damping for implicit and explicit dy-
namic calculations (*DYNAMIC) and structural damping for steady state dy-
namics calculations (*STEADY STATE DYNAMICS).
For Rayleigh damping there are two required parameters: ALPHA and
BETA.
Rayleigh damping is applied in a global way, i.e. the damping matrix [C] is
taken to be a linear combination of the stiffness matrix [K] and the mass matrix
[M ]:
First line:
• *DAMPING
• Enter ALPHA and BETA and their values for Rayleigh damping or STRUC-
TURAL and its value for structural damping.
Example:
*DAMPING,ALPHA=5000.,BETA=2.e-3
Example:
*DAMPING,STRUCTURAL=0.03
defines a structural damping value of 0.03 (3 %). This card must be part of
a material description.
7.33 *DASHPOT
Keyword type: model definition
With this option the force-velocity relationship can be defined for dashpot
elements. Dashpot elements only make sense for dynamic calculations (implicit
*DYNAMIC, *MODAL DYNAMIC and *STEADY STATE DYNAMICS). For
explicit *DYNAMIC calculations they have not been implemented yet. There is
one required parameter ELSET. With this parameter the element set is referred
to for which the dashpot behavior is defined. This element set should contain
dashpot elements of type DASHPOTA only.
The dashpot constant can depend on frequency and temperature. Frequency
dependence only makes sense for *STEADY STATE DYNAMICS calculations.
First line:
• *DASHPOT
• Enter the parameter ELSET and its value
Second line: enter a blank line
For each temperature a set of lines can be entered. First line in the first set:
• Dashpot constant.
• Frequency (only for steady state dynamics calculations, else blank).
• Temperature.
Use as many lines in the first set as needed to define the complete frequency
dependence of the dashpot constant (if applicable) for this temperature. Use as
many sets as needed to define complete temperature dependence.
Example:
*DASHPOT,ELSET=Eall
1.e-5
defines a dashpot constant with value 10−5 for all elements in element set
Eall and all temperatures.
7.34 *DEFORMATION PLASTICITY 455
Example:
*DASHPOT,ELSET=Eall
1.e-5,1000.,273.
1.e-6,2000.,273.
1.e-4,,373.
defines a dashpot constant with value 10−5 at a frequency of 1000 and with
value 10−6 at a frequency of 2000, both at a temperature of 273. At a temper-
ature of 373 the dashpot constant is frequency independent and takes the value
10−4 . These constants apply to all dashpot elements in set Eall.
First line:
• *DEFORMATION PLASTICITY
Following line:
• Exponent (n).
• Temperature.
Example:
*DEFORMATION PLASTICITY
210000.,.3,800.,12.,0.4
7.35 *DENSITY
Keyword type: model definition, material
With this option the mass density of a material can be defined. The mass
density is required for a frequency analysis (*FREQUENCY), for a dynamic
analysis (*DYNAMIC or *HEAT TRANSFER) and for a static analysis with
gravity loads (GRAV) or centrifugal loads (CENTRIF). The density can be
temperature dependent.
First line:
• *DENSITY
Following line:
• Mass density.
• Temperature.
Example:
*DENSITY
7.8E-9
7.36 *DEPVAR
Keyword type: model definition, material
This keyword is used to define the number of internal state variables for a
user-defined material. They are initialized to zero at the start of the calculation
and can be used within a material user subroutine. There are no parameters.
This card must be preceded by a *USER MATERIAL card.
First line:
7.37 *DESIGN RESPONSE 457
• *DEPVAR
Second line:
Example:
*DEPVAR
12
Example files: .
• ALL-DISP: the square root of the sum of the square of the displacements
in all nodes of the structure or of a subset if a node set is defined
• x-DISP: the square root of the sum of the square of the x-displacements
in all nodes of the structure or of a subset if a node set is defined
• Y-DISP: the square root of the sum of the square of the y-displacements
in all nodes of the structure or of a subset if a node set is defined
• Z-DISP: the square root of the sum of the square of the z-displacements
in all nodes of the structure or of a subset if a node set is defined
1 X ρ σi
f= ln e σ̄ , (868)
ρ i
458 7 INPUT DECK FORMAT
where σi is the von Mises stress in node i, ρ and σ̄ are user-defined pa-
rameters. The higher ρ the closer f is to the actual maximum (a value
of 10 is recommended; the higher this value, the sharper the turns in the
function). σ̄ is the target stress, it should not be too far away from the
actual maximum. The target stress must be positive.
• PS3STRESS: the minimum of the lowest principal stress of the total struc-
ture or of a subset if a node set is defined. The minimum is approxi-
mated by the Kreisselmeier-Steinhauser function. The target stress for
PS3STRESS must be negative.
• MODALSTRESS: the maximum von Mises modal stress of the total struc-
ture or of a subset if a node set is defined. The maximum is approximated
by the Kreisselmeier-Steinhauser function.
First line:
• *DESIGN RESPONSE.
Second line:
• a response function
Example:
*DESIGN RESPONSE
ALL-DISP,N1
defines the square root of the sum of the square of the displacements in set
N1 to be the design response function.
First line:
• *DESIGN VARIABLES
• Enter the TYPE parameter and its value.
Following line if TYPE=COORDINATE:
• Node set containing the design variables.
Example:
*DESIGN VARIABLES,TYPE=COORDINATE
N1
defines the set N1 as the node set containing the design variables.
7.39 *DFLUX
Keyword type: step
This option allows the specification of distributed heat fluxes. These include
surface flux (energy per unit of surface per unit of time) on element faces and
volume flux in bodies (energy per unit of volume per unit of time).
In order to specify which face the flux is entering or leaving the faces are
numbered. The numbering depends on the element type.
For hexahedral elements the faces are numbered as follows (numbers are
node numbers):
• Face 1: 1-2-3-4
• Face 2: 5-8-7-6
• Face 3: 1-5-6-2
7.39 *DFLUX 461
• Face 4: 2-6-7-3
• Face 5: 3-7-8-4
• Face 6: 4-8-5-1
for tetrahedral elements:
• Face 1: 1-2-3
• Face 2: 1-4-2
• Face 3: 2-4-3
• Face 4: 3-4-1
for wedge elements:
• Face 1: 1-2-3
• Face 2: 4-5-6
• Face 3: 1-2-5-4
• Face 4: 2-3-6-5
• Face 5: 3-1-4-6
for quadrilateral plane stress, plane strain and axisymmetric elements:
• Face 1: 1-2
• Face 2: 2-3
• Face 3: 3-4
• Face 4: 4-1
• Face N: in negative normal direction (only for plane stress)
• Face P: in positive normal direction (only for plane stress)
for triangular plane stress, plane strain and axisymmetric elements:
• Face 1: 1-2
• Face 2: 2-3
• Face 3: 3-1
• Face N: in negative normal direction (only for plane stress)
• Face P: in positive normal direction (only for plane stress)
for quadrilateral shell elements:
462 7 INPUT DECK FORMAT
• Face 3: 1-2
• Face 4: 2-3
• Face 5: 3-4
• Face 6: 4-1
• Face 3: 1-2
• Face 4: 2-3
• Face 5: 3-1
The labels NEG and POS can only be used for uniform flux and are introduced
for compatibility with ABAQUS. Notice that the labels 1 and 2 correspond to
the brick face labels of the 3D expansion of the shell (Figure 69).
for beam elements:
The beam face numbers correspond to the brick face labels of the 3D expansion
of the beam (Figure 74).
The surface flux is entered as a uniform flux with distributed flux type label
Sx where x is the number of the face. For flux entering the body the magnitude
of the flux is positive, for flux leaving the body it is negative. If the flux
is nonuniform the label takes the form SxNUy and a user subroutine dflux.f
must be provided specifying the value of the flux. The label can be up to 20
characters long. In particular, y can be used to distinguish different nonuniform
flux patterns (maximum 16 characters).
For body generated flux (energy per unit of time per unit of volume) the
distributed flux type label is BF for uniform flux and BFNUy for nonuniform
flux. For nonuniform flux the user subroutine dflux must be provided. Here too,
y can be used to distinguish different nonuniform body flux patters (maximum
16 characters).
7.39 *DFLUX 463
First line:
• *DFLUX
• Enter any needed parameters and their value
Following line for surface flux:
• Element number or element set label.
464 7 INPUT DECK FORMAT
Example:
*DFLUX,AMPLITUDE=A1
20,S1,10.
assigns a flux entering the surface with magnitude 10 times the value of
amplitude A1 to surface 1 of element 20.
Example:
*DFLUX
15,BF,10.
7.40 *DISTRIBUTING
Keyword type: model definition
With this keyword distributing constraints can be established between the
nodes belonging to an element surface and a reference node. A distributing
constraint specifies that a force or a moment in the reference node is distributed
among the nodes belonging to the element surface. The weights are calculated
from the area within the surface the reference node corresponds with.
The *DISTRIBUTING card must be immediately preceded by a *COUPLING
keyword card, specifying the reference node and the element surface. If no ORI-
ENTATION was specified on the *COUPLING card, the degrees of freedom
apply to the global rectangular system, if an ORIENTATION was used, they
apply to the local system. For a *DISTRIBUTING constraint the local system
cannot be cylindrical.
The degrees of freedom to which the distributing constraint should apply,
have to be specified underneath the *DISTRIBUTING card. They should be-
long to the range 1 to 6. Degrees of freedom 1 to 3 correspond to translations
7.40 *DISTRIBUTING 465
along the local axes, if any, else the global axes are taken. Degrees of freedom 4
to 6 correspond to rotations about the local axes (4 about the local x-axis and
so on), if any, else the global axes are taken. No matter what the user specifies,
forces are always distributed (degree of freedom 1 to 3). Consequently, the only
freedom the user has is to decide whether any additional moments should be
distributed.
In the degrees of freedom in the reference node a force/moment can be
applied by a *CLOAD card. This load system is replaced by an equivalent force
distribution in the nodes belonging to the coupling surface. No matter what
force and/or moment is applied to the reference node, all translational degrees
of freedom of the nodes in the surface are updated. This means that for the first
*CLOAD definition in the reference node in a step the parameter OP=NEW is
de facto active.
No kinematic relations are created between the reference node and the cou-
pling surface, so applying displacement constraints in the reference node has no
effect. In fact, the displacements at the reference node remain zero through-
out the calculation. In order to check the force and/or moment in the reference
node the user should use *SECTION PRINT to obtain the global force and mo-
ment on the selected surface. To check the global displacements of the surface
a *DISTRIBUTING COUPLING may be defined for the nodes in the surface.
For the global rotations a mean rotation MPC (cf. Section 8.7.1) can be used.
Please note that it is not allowed to define transformations(*TRANSFORM)
in the nodes belonging to a distributing coupling surface.
A *DISTRIBUTING coupling is usually selected in order to distribute a
force or moment area-weighted among the nodes of a surface. For this to work
properly the surface should be plane.
If any of these conditions is not satisfied, the results will be inaccurate.
There is one optional parameter: CYCLIC SYMMETRY. If it is active, the
structure is assumed to be cyclic symmetric. In that case the reference node
on the preceding *COUPLING keyword has to be on the cyclic symmetry axis.
For cyclic symmetric structures only forces and moments aligned with the cyclic
symmetry axis will be correctly redistributed.
First line:
• *DISTRIBUTING
Following line:
• first degree of freedom (only 1 to 6 allowed)
• last degree of freedom (only 1 to 6 allowed); if left blank the last degree
of freedom coincides with the first degree of freedom.
Repeat this line if needed to constrain other degrees of freedom.
Example:
466 7 INPUT DECK FORMAT
*ORIENTATION,NAME=OR1,SYSTEM=RECTANGULAR
0.,1.,0.,0.,0.,1.
*COUPLING,REF NODE=262,SURFACE=SURF,CONSTRAINT NAME=C1,ORIENTATION=OR1
*DISTRIBUTING
4,4
*NSET,NSET=N1
262
...
*STEP
*STATIC
*CLOAD
262,4,1.
specifies a moment of size 1. about the local x-axis, which happens to coincide
with the global y-axis.
which the MPC’s are substituted into each other. Basically, not all dependent
nodes in distributing couplings should be used as independent nodes as well.
For example:
*DISTRIBUTING COUPLING,ELSET=E1
LOAD,1.
*DISTRIBUTING COUPLING,ELSET=E2
LOAD2,1.
*NSET,NSET=LOAD
5,6,7,8,22,25,28,31,100
*NSET,NSET=LOAD2
8,28,100,31
*DISTRIBUTING COUPLING,ELSET=E1
LOAD,1.
*DISTRIBUTING COUPLING,ELSET=E2
LOAD2,1.
*NSET,NSET=LOAD
5,6,7,8,22,25,28,31,100
*NSET,NSET=LOAD2
8,28,100,31,5
will not work because the dependent nodes 5 and 8 are used as independent
nodes as well in EACH of the distributing coupling definitions. An error message
will result in the form:
First line:
• *DISTRIBUTING COUPLING
Following line:
• Weight
Example:
*DISTRIBUTING COUPLING,ELSET=E1
3,1.
100,1.
51,1.
428,1.
*ELSET,ELSET=E1
823
*ELEMENT,TYPE=DCOUP3D
823,4000
defines a distributing coupling between the nodes 3, 100, 51 and 428, each
with weight 1. The reference node is node 4000. A point force of 10 in direction
1 can be applied to this distributing coupling by the cards:
*CLOAD
4000,1,10.
while a displacement of 0.5 is obtained with
*BOUNDARY
4000,1,1,0.5
7.42 *DISTRIBUTION
Keyword type: model definition
The *DISTRIBUTION keyword can be used to define elementwise local co-
ordinate systems. In each line underneath the keyword the user lists an element
number or element set and the coordinates of the points “a” and “b” describing
the local system according to Figure 163 or 164 depending on whether the lo-
cal system is rectangular or cylindrical. However, the first line underneath the
*DISTRIBUTION keyword is reserved for the default local system and the ele-
ment or element set entry should be left empty. There is one required parameter
NAME specifying the name (maximum 80 characters) of the distribution.
Whether the local system is rectangular or cylindrical is determined by the
*ORIENTATION card using the distribution. The local orientations defined
underneath the *DISTRIBUTION card do not become active unless:
• the distribution is referred to by an *ORIENTATION card
• this *ORIENTATION card is used on a *SOLID SECTION card.
So far, a distribution can only be used in connection with a *SOLID SECTION
card and not by any other SECTION cards (such as *SHELL SECTION, *BEAM
SECTION etc.).
Two restrictions apply to the use of a distribution:
7.42 *DISTRIBUTION 469
First line:
• *DISTRIBUTION
• Enter the required parameter NAME.
Second line:
• empty
• X-coordinate of point a.
• Y-coordinate of point a.
• Z-coordinate of point a.
• X-coordinate of point b.
• Y-coordinate of point b.
• Z-coordinate of point b.
Following lines
• element label or element set label
• X-coordinate of point a.
• Y-coordinate of point a.
• Z-coordinate of point a.
• X-coordinate of point b.
• Y-coordinate of point b.
• Z-coordinate of point b.
Example:
*DISTRIBUTION,NAME=DI
,1.,0.,0.,0.,1.,0.
E1,0.,0.,1.,0.,1.,0.
defines a distribution with name DI. The default local orientation is defined
by a=(1,0,0) and b=(0,1,0). The local orientation for the elements in set E1 is
described by a=(0,0,1) and b(0,1,0).
7.43 *DLOAD
Keyword type: step
This option allows the specification of distributed loads. These include con-
stant pressure loading on element faces, edge loading on shells and mass loading
(load per unit mass) either by gravity forces or by centrifugal forces.
For surface loading the faces of the elements are numbered as follows (for
the node numbering of the elements see Section 3.1):
for hexahedral elements:
• face 1: 1-2-3-4
• face 2: 5-8-7-6
• face 3: 1-5-6-2
• face 4: 2-6-7-3
• face 5: 3-7-8-4
• face 6: 4-8-5-1
• Face 1: 1-2-3
• Face 2: 1-4-2
• Face 3: 2-4-3
• Face 4: 3-4-1
• Face 1: 1-2-3
• Face 2: 4-5-6
• Face 3: 1-2-5-4
• Face 4: 2-3-6-5
• Face 5: 3-1-4-6
• Face 1: 1-2
• Face 2: 2-3
• Face 3: 3-4
• Face 4: 4-1
7.43 *DLOAD 471
• Face 1: 1-2
• Face 2: 2-3
• Face 3: 3-1
For shell elements no face number is needed since there is only one kind of
loading: pressure in the direction of the normal on the shell.
The surface loading is entered as a uniform pressure with distributed load
type label Px where x is the number of the face. Thus, for pressure loading the
magnitude of the load is positive, for tension loading it is negative. For nonuni-
form pressure the label takes the form PxNUy, and the user subroutine dload.f
must be provided. The label can be up to 20 characters long. In particular,
y can be used to distinguish different nonuniform loading patterns (maximum
16 characters). A typical example of a nonuniform loading is the hydrostatic
pressure. Another option is to assign the pressure of a fluid node to an element
side. In that case the label takes the form PxNP, where NP stands for network
pressure. The fluid node must be an corner node of a network element. Instead
of a concrete pressure value the user must provide the fluid node number.
Edge loading is only provided for shell elements. Its units are force per unit
length. The label is EDNORx where x can take a value between one and three
for triangular shells and between one and four for quadrilateral shells. This
type of loading is locally orthogonal to the edge. Internally, it is replaced by
a pressure load, since shell elements in CalculiX are expanded into volumetric
elements. The numbering is as follows:
for triangular shell elements:
• Edge 1: 1-2
• Edge 2: 2-3
• Edge 3: 3-1
• Edge 1: 1-2
• Edge 2: 2-3
• Edge 3: 3-4
• Edge 4: 4-1
472 7 INPUT DECK FORMAT
the master surface as specified by the *TIE card. Consequently, the SECTOR
parameters allows to apply a distributed load to any element face in any sector.
Notice that in case an element set is used on any line following *DLOAD
this set should not contain elements from more than one of the following groups:
{plane stress, plane strain, axisymmetric elements}, {beams, trusses}, {shells,
membranes}, {volumetric elements}.
If more than one *DLOAD card occurs within the input deck, or a *DLOAD
and at least one *DSLOAD card, the following rules apply:
If a *DLOAD or *DSLOAD with label P1 up to P6 or EDNOR1 up to
EDNOR4 or BF is applied to an element for which a *DLOAD or *DSLOAD
with the SAME label was already applied before, then
• if the previous application was in the same step the load value is added,
else it is replaced
If a *DLOAD with label CENTRIF is applied to the same set AND with
the same rotation axis as in a previous application, then
• If the prevous application was in the same step, the CENTRIF value is
added, else it is replaced
If a *DLOAD with label GRAV is applied to the same set AND with the
same gravity direction vector as in a previous application, then
• If the prevous application was in the same step, the GRAV value is added,
else it is replaced
First line:
• *DLOAD
• Actual magnitude of the load (for Px type labels) or fluid node number
(for PxNU type labels)
Example:
*DLOAD,AMPLITUDE=A1
Se1,P3,10.
assigns a pressure loading with magnitude 10. times the amplitude curve of
amplitude A1 to face number three of all elements belonging to set Se1.
• CENTRIF
Example:
*DLOAD
Eall,CENTRIF,100000.,0.,0.,0.,1.,0.,0.
• GRAV
• Actual magnitude of the gravity vector.
Repeat this line if needed. Here ”gravity” really stands for any acceleration
vector.
Example:
*DLOAD
Eall,GRAV,9810.,0.,0.,-1.
Following line for gravity loading based on the momentaneous mass distri-
bution:
• NEWTON
Repeat this line if needed. Only elements loaded by a NEWTON type loading
are taken into account for the gravity calculation.
Example:
*DLOAD
Eall,NEWTON
triggers the calculation of gravity forces due to all mass belonging to the
element of element set Eall.
7.44 *DSLOAD
Keyword type: step
This option allows for (a) the specification of section stresses on the boundary
of submodels, cf. the *SUBMODEL card and (b) the application of a pressure
on a facial surface.
For submodels there are two required parameters: SUBMODEL and either
STEP or DATA SET. Underneath the *DSLOAD card faces are listed for which
a section stress will be calculated by interpolation from the global model. To
this end these faces have to be part of a *SUBMODEL card, TYPE=SURFACE.
The latter card also lists the name of the global model results file.
476 7 INPUT DECK FORMAT
In case the global calculation was a *STATIC calculation the STEP parame-
ter specifies the step in the global model which will be used for the interpolation.
If results for more than one increment within the step are stored, the last incre-
ment is taken.
In case the global calculation was a *FREQUENCY calculation the DATA
SET parameter specifies the mode in the global model which will be used for
the interpolation. It is the number preceding the string MODAL in the .frd-file
and it corresponds to the dataset number if viewing the .frd-file with CalculiX
GraphiX. Notice that the global frequency calculation is not allowed to contain
preloading nor cyclic symmetry.
The distributed load type label convention is the same as for the *DLOAD
card. Notice that
• the section stresses are applied at once at the start of the step, no matter
the kind of procedure the user has selected. For instance, the loads in a
*STATIC procedure are usually ramped during the step. This is not the
case of the section stresses.
• the section stresses are interpolated from the stress values at the nodes
of the global model. These latter stresses have been extrapolated in the
global model calculation from the stresses at the integration points. There-
fore, the section stresses are not particular accurate and generally the
global equilibrium of the submodel will not be well fulfilled, resulting in
stress concentrations near the nodes which are fixed in the submodel.
Therefore, the use of section stresses is not recommended. A better pro-
cedure is the application of nodal forces (*CLOAD) at the intersection.
These nodal forces may be obtained by performing a preliminary submodel
calculation with displacement boundary conditions and requesting nodal
force output.
For the application of a pressure on a facial surface there is one optional param-
eter AMPLITUDE specifying the name of the amplitude by which the pressure
is to be multiplied (cf. *AMPLITUDE). The load label for pressure is P.
If more than one *DSLOAD card occurs in the input deck, or a *DLOAD
and at least one *DSLOAD card, the rules explained underneath the keyword
*DLOAD also apply here.
First line:
• *DSLOAD
• For submodels: enter the parameter SUBMODEL (no argument) and
STEP with its argument
Following line for surface loading on submodels:
• Element number or element set label.
• Distributed load type label.
7.45 *DYNAMIC 477
Example:
*DSLOAD,SUBMODEL,STEP=4
Se1,P3
specifies hat on face 3 of all elements belonging to set Se1 the section stress
is to be determined by interpolation from step 4 in the global model.
Example files: .
7.45 *DYNAMIC
Keyword type: step
This procedure is used to calculate the response of a structure subject to
dynamic loading using a direct integration procedure of the equations of motion.
There are five optional parameters: DIRECT, ALPHA, EXPLICIT, SOLVER
and RELATIVE TO ABSOLUTE. The parameter DIRECT specifies that the
user-defined initial time increment should not be changed. In case of no conver-
gence with this increment size, the calculation stops with an error message. If
this parameter is not set, the program will adapt the increment size depending
on the rate of convergence. The parameter ALPHA takes an argument between
-1/3 and 0. It controls the dissipation of the high frequency response: lower
numbers lead to increased numerical damping ([65]). The default value is -0.05.
The parameter EXPLICIT can take the following values:
• PaStiX
• PARDISO
• SPOOLES [3, 4].
• TAUCS
• the iterative solver by Rank and Ruecker [82], which is based on the algo-
rithms by Schwarz [88].
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, the default is
the iterative solver, which comes with the CalculiX package.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
What about the iterative solver? If SOLVER=ITERATIVE SCALING is
selected, the pre-conditioning is limited to a scaling of the diagonal terms,
SOLVER=ITERATIVE CHOLESKY triggers Incomplete Cholesky pre-conditioning.
Cholesky pre-conditioning leads to a better convergence and maybe to shorter
execution times, however, it requires additional storage roughly corresponding
to the non-zeros in the matrix. If you are short of memory, diagonal scal-
ing might be your last resort. The iterative methods perform well for truly
three-dimensional structures. For instance, calculations for a hemisphere were
about nine times faster with the ITERATIVE SCALING solver, and three
times faster with the ITERATIVE CHOLESKY solver than with SPOOLES.
For two-dimensional structures such as plates or shells, the performance might
break down drastically and convergence often requires the use of Cholesky pre-
conditioning. SPOOLES (and any of the other direct solvers) performs well in
most situations with emphasis on slender structures but requires much more
storage than the iterative solver.
Finally, the parameter RELATIVE TO ABSOLUTE can be used if the co-
ordinate system in the previous step was attached to a rotating system and the
coordinate system in the present dynamic step should be absolute. In that case,
the velocity of the rotating system is added to the relative velocity obtained at
the end of the previous step in all nodes belonging to elements in which cen-
trifugal loading was defined. Thereafter, the centrifugal loading is deactivated.
7.45 *DYNAMIC 479
For instance, suppose that you start a calculation with a *STATIC step with
a centrifugal load, i.e. all quantities are determined in the relative, rotating
system. In a subsequent dynamic step you want to continue the calculation
in the absolute system. In that case you need the parameter RELATIVE TO
ABSOLUTE.
In a dynamic step, loads are by default applied by their full strength at the
start of the step. Other loading patterns can be defined by an *AMPLITUDE
card.
First line:
• *DYNAMIC
Second line:
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified.
Examples:
*DYNAMIC,DIRECT,EXPLICIT
1.E-7,1.E-5
defines an explicit dynamic procedure with fixed time increment 10−7 for a
step of length 10−5 .
*DYNAMIC,ALPHA=-0.3,SOLVER=ITERATIVE CHOLESKY
1.E-7,1.E-5,1.E-9,1.E-6
defines an implicit dynamic procedure with variable increment size. The nu-
merical damping was increased (α = −0.3 instead of the default α = −0.05, and
the iterative solver with Cholesky pre-conditioning was selected. The starting
increment has a size 10−7 , the subsequent increments should not have a size
smaller than 10−9 or bigger than 10−6 . The step size is 10−5 .
7.46 *ELASTIC
Keyword type: model definition, material
This option is used to define the elastic properties of a material. There is one
optional parameter TYPE. Default is TYPE=ISO, other values are TYPE=ORTHO
and TYPE=ENGINEERING CONSTANTS for orthotropic materials and TYPE=ANISO
for anisotropic materials. All constants may be temperature dependent. For
orthotropic and fully anisotropic materials, the coefficients DIJKL satisfy the
equation:
First line:
• *ELASTIC
• Enter the TYPE parameter and its value, if needed
Following line for TYPE=ISO:
• Young’s modulus.
• Poisson’s ratio.
• Temperature.
Repeat this line if needed to define complete temperature dependence.
• Temperature.
Repeat this pair if needed to define complete temperature dependence.
• D3312 .
• D1212 .
• D1113 .
• D2213 .
• D3313 .
• D1213 .
• D1313 .
• D1123 .
Third line of set:
• D2223 .
• D3323 .
• D1223 .
• D1323 .
• D2323 .
• Temperature.
Repeat this set if needed to define complete temperature dependence.
Example:
*ELASTIC,TYPE=ORTHO
500000.,157200.,400000.,157200.,157200.,300000.,126200.,126200.,
126200.,294.
First line:
7.48 *ELECTROMAGNETICS 483
• *ELECTRICAL CONDUCTIVITY
Following line:
• σ.
• Temperature.
Repeat this line if needed to define complete temperature dependence.
Example:
*ELECTRICAL CONDUCTIVITY
5.96E7
7.48 *ELECTROMAGNETICS
Keyword type: step
This procedure is used to perform a electromagnetic analysis. If transient, it
may be combined with a heat analysis. In that case the calculation is nonlinear
since the material properties depend on the solution, i.e. the temperature.
There are nine optional parameters: SOLVER, DIRECT, MAGNETOSTAT-
ICS, DELTMX, TIME RESET and TOTAL TIME AT START, NO HEAT
TRANSFER, FREQUENCY and OMEGA.
SOLVER determines the package used to solve the ensuing system of equa-
tions. The following solvers can be selected:
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, the default is
the iterative solver, which comes with the CalculiX package.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
484 7 INPUT DECK FORMAT
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
What about the iterative solver? If SOLVER=ITERATIVE SCALING is
selected, the pre-conditioning is limited to a scaling of the diagonal terms,
SOLVER=ITERATIVE CHOLESKY triggers Incomplete Cholesky pre-conditioning.
Cholesky pre-conditioning leads to a better convergence and maybe to shorter
execution times, however, it requires additional storage roughly corresponding
to the non-zeros in the matrix. If you are short of memory, diagonal scal-
ing might be your last resort. The iterative methods perform well for truly
three-dimensional structures. For instance, calculations for a hemisphere were
about nine times faster with the ITERATIVE SCALING solver, and three
times faster with the ITERATIVE CHOLESKY solver than with SPOOLES.
For two-dimensional structures such as plates or shells, the performance might
break down drastically and convergence often requires the use of Cholesky pre-
conditioning. SPOOLES (and any of the other direct solvers) performs well in
most situations with emphasis on slender structures but requires much more
storage than the iterative solver.
The parameter DIRECT indicates that automatic incrementation should be
switched off. The increments will have the fixed length specified by the user on
the second line.
The parameter MAGNETOSTATICS indicates that only the steady state
should be calculated. Since the magnetic field does not change, no heat is
produced and a heat transfer analysis does not make sense. The loading (coil
current in the shell elements) is applied by its full strength. If the MAGNETO-
STATICS parameter is absent, the calculation is assumed to be time dependent
and a transient analysis is performed. A transient analysis triggers by default
a complementary heat transfer analysis, thus the temperature dependence of
the properties of the materials involved must be provided. Here too, the coil
currents are by default applied by their full strength at the start of the step.
Other loading patterns can be defined by an *AMPLITUDE card.
The parameter DELTMX can be used to limit the temperature change in
two subsequent increments. If the temperature change exceeds DELTMX the
increment is restarted with a size equal to DA times DELTMX divided by the
temperature change. The default for DA is 0.85, however, it can be changed by
the *CONTROLS keyword. DELTMX is only active in transient calculations.
Default value is 1030 .
The parameter TIME RESET can be used to force the total time at the end
of the present step to coincide with the total time at the end of the previous step.
7.48 *ELECTROMAGNETICS 485
If there is no previous step the targeted total time is zero. If this parameter is
absent the total time at the end of the present step is the total time at the end
of the previous step plus the time period of the present step (2nd parameter
underneath the *HEAT TRANSFER keyword). Consequently, if the time at the
end of the previous step is 10. and the present time period is 1., the total time
at the end of the present step is 11. If the TIME RESET parameter is used, the
total time at the beginning of the present step is 9. and at the end of the present
step it will be 10. This is sometimes useful if transient heat transfer calculations
are preceded by a stationary heat transfer step to reach steady state conditions
at the start of the transient heat transfer calculations. Using the TIME RESET
parameter in the stationary step (the first step in the calculation) will lead to
a zero total time at the start of the subsequent instationary step.
The parameter TOTAL TIME AT START can be used to set the total time
at the start of the step to a specific value.
Next, the parameter NO HEAT TRANSFER may be used in a transient
analysis to indicate that no heat generated by the Eddy currents should be
calculated. However, an external temperature field may be defined using the
*TEMPERATURE card.
Finally, the parameters FREQUENCY and OMEGA are used to obtain the
steady state answer of the electromagnetic fields due to an alternating current.
OMEGA is the frequency of the current. The answer consists of a real part
(stored first) and an imaginary part (stored last) of the electric and magnetic
field.
First line:
• *ELECTROMAGNETICS
Second line:
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified (default 1.).
Example:
*ELECTROMAGNETICS,DIRECT
.1,1.
486 7 INPUT DECK FORMAT
defines a static step and selects the SPOOLES solver as linear equation solver
in the step (default). The second line indicates that the initial time increment
is .1 and the total step time is 1. Furthermore, the parameter DIRECT leads
to a fixed time increment. Thus, if successful, the calculation consists of 10
increments of length 0.1.
7.49 *ELEMENT
Keyword type: model definition
With this option elements are defined. There is one required parameter,
TYPE and one optional parameter, ELSET. The parameter TYPE defines the
kind of element which is being defined. The following types can be selected:
• General 3D solids
– C3D4 (4-node linear tetrahedral element)
– C3D6 (6-node linear triangular prism element)
– C3D8 (3D 8-node linear hexahedral element)
– C3D8I (3D 8-node linear hexahedral element with incompatible modes)
– C3D8R (the C3D8 element with reduced integration)
– C3D10 (10-node quadratic tetrahedral element)
– C3D10T (10-node quadratic tetrahedral element with linearly inter-
polated initial temperatures)
– C3D15 (15-node quadratic triangular prism element)
– C3D20 (3D 20-node quadratic hexahedral element)
– C3D20R (the C3D20 element with reduced integration)
• General CFD fluid elements
– F3D4 (4-node linear tetrahedral element)
– F3D6 (6-node linear triangular prism element)
– F3D8 (8-node linear hexahedral element)
• “ABAQUS” 3D solids for heat transfer (names are provided for compati-
bility)
– DC3D4: identical to C3D4
– DC3D6: identical to C3D6
– DC3D8: identical to C3D8
– DC3D10: identical to C3D10
– DC3D15: identical to C3D15
7.49 *ELEMENT 487
• Shell elements
• Axisymmetric elements
Notice that the S8, S8R, CPS8, CPS8R, CPE8, CPE8R, CAX8, CAX8R,
B32 and B32R element are internally expanded into 20-node brick elements.
Please have a look at Section 6.2 for details and decision criteria which element
to take. The element choice determines to a large extent the quality of the
results. Do not take element choice lightheartedly! The parameter ELSET is
used to assign the elements to an element set. If the set already exists, the
elements are ADDED to the set.
First line:
• *ELEMENT
7.50 *ELEMENT OUTPUT 489
Following line:
• Element number.
• Node numbers forming the element. The order of nodes around the ele-
ment is given in section 2.1. Use continuation lines for elements having
more than 15 nodes (maximum 16 entries per line).
Example:
*ELEMENT,ELSET=Eall,TYPE=C3D20R
1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
16,17,18,19,20
defines one 20-node element with reduced integration and stores it in set
Eall.
Example:
*ELEMENT OUTPUT
S,PEEQ
requests that the (Cauchy) stresses and the equivalent plastic strain is stored
in .frd format for subsequent viewing with CalculiX GraphiX.
The selected variables are stored for the complete model. Due to the averag-
ing process jumps at material interfaces are smeared out unless you model the
materials on both sides of the interface independently and connect the coinciding
nodes with MPC’s.
For frequency calculations with cyclic symmetry the eigenmodes are gener-
ated in pairs (different by a phase shift of 90 degrees). Only the first one of
each pair is stored in the frd file. If S is selected (the stresses) two load cases
are stored in the frd file: a loadcase labeled STRESS containing the real part
of the stresses and a loadcase labeled STRESSI containing the imaginary part
of the stresses. For all other variables only the real part is stored.
The key ENER triggers the calculation of the internal energy. If it is absent
no internal energy is calculated. Since in nonlinear calculations the internal
energy at any time depends on the accumulated energy at all previous times,
the selection of ENER in nonlinear calculations (geometric or material nonlin-
earities) must be made in the first step.
The first occurrence of an *EL FILE keyword card within a step wipes out
all previous element variable selections for file output. If no *EL FILE card
is used within a step the selections of the previous step apply. If there is no
previous step, no element variables will be stored.
There are ten optional parameters: FREQUENCY, FREQUENCYF, GLOBAL,
OUTPUT, OUTPUT ALL, SECTION FORCES, TIME POINTS, NSET, LAST
ITERATIONS and CONTACT ELEMENTS. The parameters FREQUENCY
and TIME POINTS are mutually exclusive.
FREQUENCY applies to nonlinear calculations where a step can consist
of several increments. Default is FREQUENCY=1, which indicates that the
results of all increments will be stored. FREQUENCY=N with N an integer
indicates that the results of every Nth increment will be stored. The final results
of a step are always stored. If you only want the final results, choose N very
big. The value of N applies to *OUTPUT,*ELEMENT OUTPUT, *EL FILE,
*ELPRINT, *NODE OUTPUT, *NODE FILE, *NODE PRINT, *SECTION PRINT
,*CONTACT OUTPUT, *CONTACT FILE and *CONTACT PRINT. If the
FREQUENCY parameter is used for more than one of these keywords with con-
flicting values of N, the last value applies to all. A frequency parameter stays
active across several steps until it is overwritten by another FREQUENCY value
or the TIME POINTS parameter.
The 3D fluid analogue of FREQUENCY is FREQUENCYF. In coupled cal-
culations FREQUENCY applies to the thermomechanical output, FREQUEN-
CYF to the 3D fluid output.
With the parameter GLOBAL you tell the program whether you would like
the results in the global rectangular coordinate system or in the local element
system. If an *ORIENTATION card is applied to the element at stake, this
card defines the local system. If no *ORIENTATION card is applied to the
element, the local system coincides with the global rectangular system unless for
shell elements, for which a local system is automatically defined by default (cf.
Section 6.2.14). Default value for the GLOBAL parameter is GLOBAL=YES,
which means that the results are stored in the global system (the only exception
7.51 *EL FILE 493
to this is for the shell stresses SNEG, SMID and SPOS, which are always stored
in the shell local system). If you prefer the results in the local system, specify
GLOBAL=NO.
The parameter OUTPUT can take the value 2D or 3D. This has only effect
for 1d and 2d elements such as beams, shells, plane stress, plane strain and ax-
isymmetric elements AND provided it is used in the first step. If OUTPUT=3D,
the 1d and 2d elements are stored in their expanded three-dimensional form.
In particular, the user has the advantage to see his/her 1d/2d elements with
their real thickness dimensions. However, the node numbers are new and do not
relate to the node numbers in the input deck. Once selected, this parameter is
active in the complete calculation. If OUTPUT=2D the fields in the expanded
elements are averaged to obtain the values in the nodes of the original 1d and 2d
elements. In particular, averaging removes the bending stresses in beams and
shells. Therefore, default for beams and shells is OUTPUT=3D, for plane stress,
plane strain and axisymmetric elements it is OUTPUT=2D. If OUTPUT=3D
is selected, the parameter NSET is deactivated.
The parameter OUTPUT ALL specifies that the data has to be stored for
all nodes, including those belonging to elements which have been deactivated.
Default is storage for nodes belonging to active elements only.
The selection of SECTION FORCES makes sense for beam elements only.
Furthermore, SECTION FORCES and OUTPUT=3D are mutually exclusive
(if both are used the last prevails). If selected, the stresses in the beam nodes
are replaced by the section forces. They are calculated in a local coordinate
system consisting of the 1-direction n1 , the 2-direction n2 and 3-direction or
tangential direction t (Figure 74). Accordingly, the stress components now have
the following meaning:
For all elements except the beam elements the parameter SECTION FORCES
has no effect. If SECTION FORCES is not selected the stress tensor is averaged
across the beam section.
With the parameter TIME POINTS a time point sequence can be referenced,
defined by a *TIME POINTS keyword. In that case, output will be provided for
all time points of the sequence within the step and additionally at the end of the
step. No other output will be stored and the FREQUENCY parameter is not
taken into account. Within a step only one time point sequence can be active.
If more than one is specified, the last one defined on any of the keyword cards
494 7 INPUT DECK FORMAT
*NODE FILE, *EL FILE, *NODE PRINT or *EL PRINT will be active. The
TIME POINTS option should not be used together with the DIRECT option on
the procedure card. The TIME POINTS parameters stays active across several
steps until it is replaced by another TIME POINTS value or the FREQUENCY
parameter.
The specification of a node set with the parameter NSET limits the output
to the nodes contained in the set. Remember that the frd file is node based,
so element results are also stored at the nodes after extrapolation from the
integration points. For cyclic symmetric structures the usage of the parameter
NGRAPH on the *CYCLIC SYMMETRY MODEL card leads to output of the
results not only for the node set specified by the user (which naturally belongs to
the base sector) but also for all corresponding nodes of the sectors generated by
the NGRAPH parameter. Notice that for cyclic symmetric structures in modal
dynamic and steady state dynamics calculations the use of NSET is mandatory.
In that case the stresses will only be correct at those nodes belonging to elements
for which ALL nodal displacements were requested (e.g. by a *NODE FILE
card).
The parameter LAST ITERATIONS leads to the storage of the displace-
ments in all iterations of the last increment in a file with name ResultsFor-
LastIterations.frd (can be opened with CalculiX GraphiX). This is useful for
debugging purposes in case of divergence. No such file is created if this param-
eter is absent.
Finally, the parameter CONTACT ELEMENTS stores the contact elements
which have been generated in each iteration in a file with the name jobname.cel.
When opening the frd file with CalculiX GraphiX these files can be read with
the command “read jobname.cel inp” and visualized by plotting the elements
in the sets contactelements stα inβ atγ itδ, where α is the step number, β the
increment number, γ the attempt number and δ the iteration number.
Starting with version 2.14 of CalculiX the selection of “S” (stress) automati-
cally triggers the output the stress error estimator “ERR” as well. This can only
be avoided by selecting NOE in a position after S (either immediately following
S, or with some other output requests in between, irrespective whether these
output requests are on the same keyword card or on different keyword cards).
First line:
• *EL FILE
• Enter any needed parameters and their values.
Second line:
• Identifying keys for the variables to be printed, separated by commas.
Example:
*EL FILE
S,PEEQ
7.52 *EL PRINT 495
requests that the (Cauchy) stresses and the equivalent plastic strain is stored
in .frd format for subsequent viewing with CalculiX GraphiX.
The keys ENER and ELSE trigger the calculation of the internal energy.
If they are absent no internal energy is calculated. Since in nonlinear calcula-
tions the internal energy at any time depends on the accumulated energy at all
previous times, the selection of ENER and/or ELSE in nonlinear calculations
(geometric or material nonlinearities) must be made in the first step.
There are six parameters, ELSET, FREQUENCY, FREQUENCYF, TO-
TALS, GLOBAL and TIME POINTS. The parameter ELSET is required, defin-
ing the set of elements for which these stresses should be printed. If this card is
omitted, no values are printed. Several *EL PRINT cards can be used within
one and the same step.
The parameters FREQUENCY and TIME POINTS are mutually exclusive.
The FREQUENCY parameter is optional and applies to nonlinear calcula-
tions where a step can consist of several increments. Default is FREQUENCY=1,
which indicates that the results of all increments will be stored. FREQUENCY=N
with N an integer indicates that the results of every Nth increment will be stored.
The final results of a step are always stored. If you only want the final results,
choose N very big. The value of N applies to *OUTPUT,*ELEMENT OUTPUT,
*EL FILE, *ELPRINT, *NODE OUTPUT, *NODE FILE, *NODE PRINT, *SECTION PRINT,*CONT
*CONTACT FILE and *CONTACT PRINT. If the FREQUENCY parameter
is used for more than one of these keywords with conflicting values of N, the
last value applies to all. A frequency parameter stays active across several steps
until it is overwritten by another FREQUENCY value or the TIME POINTS
parameter.
The 3D fluid analogue of FREQUENCY is FREQUENCYF. In coupled cal-
culations FREQUENCY applies to the thermomechanical output, FREQUEN-
CYF to the 3D fluid output.
The optional parameter TOTALS only applies to whole element variables.
If TOTALS=YES the sum of the variables for the whole element set is printed in
addition to their value for each element in the set separately. If TOTALS=ONLY
is selected the sum is printed but the individual element contributions are not.
If TOTALS=NO (default) the individual contributions are printed, but their
sum is not.
With the parameter GLOBAL (optional) you tell the program whether you
would like the results in the global rectangular coordinate system or in the
local element system. If an *ORIENTATION card is applied to the element at
stake, this card defines the local system. If no *ORIENTATION card is applied
to the element, the local system coincides with the global rectangular system.
Default value for the GLOBAL parameter is GLOBAL=NO, which means that
7.53 *ELSET 497
the results are stored in the local system. If you prefer the results in the global
system, specify GLOBAL=YES. If the results are stored in the local system the
first 10 characters of the name of the applicable orientation are listed at the end
of the line.
With the parameter TIME POINTS a time point sequence can be refer-
enced, defined by a *TIME POINTS keyword. In that case, output will be
provided for all time points of the sequence within the step and additionally
at the end of the step. No other output will be stored and the FREQUENCY
parameter is not taken into account. Within a step only one time point se-
quence can be active. If more than one is specified, the last one defined on any
of the keyword cards *NODE FILE, *EL FILE, *NODE PRINT, *EL PRINT
or *SECTION PRINT will be active. The TIME POINTS option should not
be used together with the DIRECT option on the procedure card. The TIME
POINTS parameters stays active across several steps until it is replaced by
another TIME POINTS value or the FREQUENCY parameter.
The first occurrence of an *EL FILE keyword card within a step wipes out
all previous element variable selections for print output. If no *EL FILE card
is used within a step the selections of the previous step apply, if any.
First line:
• *EL PRINT
Second line:
Example:
*EL PRINT,ELSET=Copper
E
requests to store the strains at the integration points in the elements of set
Copper in the .dat file.
7.53 *ELSET
Keyword type: model definition
This option is used to assign elements to an element set. The parameter
ELSET containing the name of the set is required (maximum 80 characters),
whereas the parameter GENERATE (without value) is optional. If present,
element ranges can be expressed by their initial value, their final value, and
an increment. If a set with the same name already exists, it is reopened and
498 7 INPUT DECK FORMAT
First line:
• *ELSET
• Enter any needed parameters and their values.
Following line if the GENERATE parameter is omitted:
• List of elements and/or sets of elements previously defined to be assigned
to this element set (maximum 16 entries per line).
Repeat this line if needed.
Following line if the GENERATE parameter is included:
• First element in set.
• Last element in set.
• Increment in element numbers between elements in the set. Default is 1.
Repeat this line if needed.
Example:
*ELSET,ELSET=E1,GENERATE
20,25
*ELSET,ELSET=E2
E1,50,51
assigns the elements with numbers 20, 21, 22, 23, 24 and 25 to element set
E1 and the elements with numbers 20, 21, 22, 23, 24, 25 (= set E1), 50 and 51
to element set E2.
Example:
*END STEP
7.55 *EQUATION
Keyword type: model definition (no REMOVE parameter) and step (only for
REMOVE)
With this option, a linear equation constraint between arbitrary displace-
ment components at any nodes where these components are active can be im-
posed. The equation is assumed to be homogeneous, and all variables are to be
written on the left hand side of the equation. The first variable is considered to
be the dependent one, and is subsequently eliminated from the equation, i.e. the
corresponding degree of freedom does not show up in the stiffness matrix. This
reduces the size of the matrix. A degree of freedom in a node can only be used
once as the dependent node in an equation or in a SPC. For CFD-applications
it is important for the stability of the calculation that the coefficient of the de-
pendent degree of freedom is as large as possible compared to the coefficients
of the independent degrees of freedom. For instance, setting the radial veloc-
ity orthogonal to the z-axis to zero corresponds to a MPC linking the x- and
y-component of the velocity. The component with the largest coefficient should
be chosen as dependent degree of freedom.
There are two optional parameters: REMOVE and REMOVE ALL. The pa-
rameter REMOVE can be used to remove equations corresponding with selected
dependent degrees of freedom. These are listed underneath the *EQUATION
keyword by node number, first degree of freedom and last degree of freedom.
This triggers the deletion of all equations for which the dependent degree of
freedom corresponds to the range from the first to the last degree of freedom of
the selected node. If the last degree of freedom was omitted, it equals the first
degree of freedom.
The parameter REMOVE ALL is used to remove all equations. Notice that
the latter option removes all linear and nonlinear equations, irrespective whether
they were defined with a *EQUATION card, a *MPC card or whether they were
generated internally. Use of the REMOVE or the REMOVE ALL parameter
usually makes sense only in step 2 or higher.
First line:
• *EQUATION
Following lines in the absence of the REMOVE and REMOVE ALL param-
eter, in a set: First line of set:
• Number of terms in the equation.
Following lines of set (maximum 12 entries per line):
• Node number of the first variable.
• Degree of freedom at above node for the first variable.
• Value of the coefficient of the first variable.
• Node number of the second variable.
• Degree of freedom at above node for the second variable.
• Value of the coefficient of the second variable.
• Etc..
Continue, giving node number, degree of freedom, value of the coefficient, etc.
Repeat the above line as often as needed if there are more than four terms in the
*EQUATION. Specify exactly four terms per line for each constraint, except for
the last line which may have less than four terms.
Following lines if the REMOVE parameter was selected:
• Node number or Node set label
• First degree of freedom
• Last degree of freedom (optional)
Repeat this line if needed.
If the REMOVE ALL parameter was selected no additional lines are neces-
sary.
Example:
*EQUATION
3
3,2,2.3,28,1,4.05,17,1,-8.22
defines an equation of the form 2.3v3 + 4.05u28 − 8.22u17 = 0, where u, v and
w are the displacement for degree of freedom one, two and three, respectively.
Example:
*EQUATION,REMOVE
10,1,3
removes all equations for which the dependent degree of freedom corresponds
to the degrees of freedom 1, 2 or 3 of node 10.
7.56 *EXPANSION
Keyword type: model definition, material
This option is used to define the thermal expansion coefficients of a material.
They are interpreted as total expansion coefficients with respect to a reference
temperature Tref , i.e. the thermal strain ǫth of a material at a final temperature
T and with initial temperature T0 is determined by
First line:
• *EXPANSION
• Enter the TYPE and ZERO parameters and their values, if needed
• α.
• Temperature.
• α11 .
• α22 .
• α33 .
• Temperature.
• α11 .
• α22 .
• α33 .
• α12 .
• α13 .
502 7 INPUT DECK FORMAT
• α23 .
• Temperature.
Example:
*EXPANSION,ZERO=273.
12.E-6,373.
20.E-6,573.
tells you that the thermal strain in a body made of this material is 100. ×
12. × 10−6 = 12. × 10−4 if heated from T=273 to T=373, and 300 × 20 × 10−6 =
60 × 10−4 if heated from T=273 to T=573.
First line:
• *FEASIBLE DIRECTION
• Enter the parameter METHOD if needed and its value
Second line:
• Mesh modification size.
Example:
defines a feasible direction step with the gradient method for the treatment
of the constraints. The maximum modification of the mesh is 0.1.
7.58 *FILM
Keyword type: step
This option allows the specification of film heat transfer. This is convective
heat transfer of a surface at temperature T and with film coefficient h to the
environment at temperature T0 . The environmental temperature T0 is also
called the sink temperature. The convective heat flux q satisfies:
q = h(T − T0 ). (872)
In order to specify which face the flux is entering or leaving the faces are
numbered. The numbering depends on the element type.
For hexahedral elements the faces are numbered as follows (numbers are
node numbers):
• Face 1: 1-2-3-4
• Face 2: 5-8-7-6
• Face 3: 1-5-6-2
• Face 4: 2-6-7-3
• Face 5: 3-7-8-4
504 7 INPUT DECK FORMAT
• Face 6: 4-8-5-1
for tetrahedral elements:
• Face 1: 1-2-3
• Face 2: 1-4-2
• Face 3: 2-4-3
• Face 4: 3-4-1
and for wedge elements:
• Face 1: 1-2-3
• Face 2: 4-5-6
• Face 3: 1-2-5-4
• Face 4: 2-3-6-5
• Face 5: 3-1-4-6
• Face 3: 1-2
• Face 4: 2-3
• Face 5: 3-4
• Face 6: 4-1
for triangular shell elements:
• Face NEG or 1: in negative normal direction
• Face POS or 2: in positive normal direction
• Face 3: 1-2
• Face 4: 2-3
• Face 5: 3-1
The labels NEG and POS can only be used for uniform, non-forced convection
and are introduced for compatibility with ABAQUS. Notice that the labels 1
and 2 correspond to the brick face labels of the 3D expansion of the shell (Figure
69).
for beam elements:
• Face 1: in negative 1-direction
• Face 2: in positive 1-direction
• Face 3: in positive 2-direction
• Face 5: in negative 2-direction
The beam face numbers correspond to the brick face labels of the 3D expansion
of the beam (Figure 74).
Film flux characterized by a uniform film coefficient is entered by the dis-
tributed flux type label Fx where x is the number of the face, followed by the
sink temperature and the film coefficient. If the film coefficient is nonuniform
the label takes the form FxNUy and a user subroutine film.f must be provided
specifying the value of the film coefficient and the sink temperature. The label
can be up to 20 characters long. In particular, y can be used to distinguish
different nonuniform film coefficient patterns (maximum 16 characters).
In case the element face is adjacent to a moving fluid the temperature of
which is also unknown (forced convection), the distributed flux type label is
FxFC where x is the number of the face. It is followed by the fluid node number
it exchanges convective heat with and the film coefficient. To define a nonuni-
form film coefficient the label FxFCNUy must be used and a subroutine film.f
defining the film coefficient be provided. The label can be up to 20 charac-
ters long. In particular, y can be used to distinguish different nonuniform film
coefficient patterns (maximum 14 characters).
506 7 INPUT DECK FORMAT
previous application then the prevous value and previous amplitude (including
film amplitude) are replaced.
First line:
• *FILM
• Enter any needed parameters and their value
Following line for uniform, explicit film conditions:
• Element number or element set label.
• Film flux type label (Fx).
• Sink temperature.
• Film coefficient.
Repeat this line if needed.
Following line for nonuniform, explicit film conditions:
• Element number or element set label.
• Film flux type label (FxNUy).
Repeat this line if needed.
Following line for forced convection with uniform film conditions:
• Element number or element set label.
• Film flux type label (FxFC).
• Fluid node.
• Film coefficient.
Repeat this line if needed.
Following line for forced convection with nonuniform film conditions:
• Element number or element set label.
• Film flux type label (FxFCNUy).
• Fluid node.
Repeat this line if needed.
Example:
*FILM
20,F1,273.,.1
assigns a film flux to face 1 of element 20 with a film coefficient of 0.1 and
a sink temperature of 273.
7.59 *FILTER
Keyword type: step
With *FILTER the sensitivities can be modified to obtain a more smooth re-
sult. It can only be used in a *SENSITIVITY step and at least one *DESIGN RESPONSE
must have been defined before.
There are four optional parameters: TYPE, BOUNDARY WEIGHTING,
EDGE PRESERVATION and DIRECTION WEIGHTING.
The TYPE of the filter can be either EXPLICIT or IMPLICIT. The explicit
filter is a monotonically decreasing linear hat function within a sphere at the
node at stake taking the value 1 at the center of the sphere and 0 at its bound-
ary. Filtering can also be performed implicitly by solving an elliptic partial
differential equation whose inverse operator is a local smoother based on the
so-called Sobolev/Helmholtz operator. Default is the implicit filter.
With BOUNDARY WEIGHTING=YES the sensitivities near the boundary
between the design space and the nodes not belonging to the design space are
gradually decreased to zero. The distance across which this happens can be
specified by the user. Default is no boundary weighting. If the BOUNDARY
WEIGHTING parameter is active but no boundary weighting distance is given
(or zero) the filter radius is taken is boundary weighting distance.
The EDGE PRESERVATION=YES parameter indicates that sharp corners
at the boundary of the design space should be kept. This means that for the
calculation of the normal on the design space, only the faces internal to the
design space are used. Default is no edge preservation.
Finally, DIRECTION WEIGHTING=YES indicates that the values within
the filter radius should be weighted with the scalar product of the local normal
with the normal at the center of the filter.
First line:
Second line:
Example:
*FILTER,TYPE=IMPLICIT
3.
First line:
• *FLUID CONSTANTS
Following line:
• Specific heat at constant pressure.
• Dynamic viscosity.
• Temperature.
Repeat this line if needed to define complete temperature dependence.
Example:
*FLUID CONSTANTS
1.032E9,71.1E-13,100.
defines the specific heat and dynamic viscosity for air at 100 K in a unit
system using N, mm, s and K: cp = 1.032 × 109 mm2 /s2 K and µ = 71.1 ×
10−13 Ns/mm2 .
First line:
• *FLUID SECTION
• First constant
• Second constant
Repeat this line if more than eight constants are needed to describe the fluid
section.
Example:
*FLUID SECTION,MATERIAL=NITROGEN,ELSET=Eall
Example:
*FLUID SECTION,MATERIAL=AIR,ELSET=Eall,TYPE=ORIFICE_PK_MS
3.14,0.1,2.,0.01,0.1
assigns material AIR to all elements in set Eall. The type of fluid section is
an orifice with the cd coefficient calculated following the formulas by Parker and
Kercher [75], modified for the influence of the rotational velocity by McGreehan
and Schotsch [58]. The area of the orifice is 3.14, the length is 0.1, the diameter
is 2., the inlet corner radius is 0.01 and the pipe diameter ratio is 0.1.
7.62 *FREQUENCY
Keyword type: step
This procedure is used to determine eigenfrequencies and the corresponding
eigenmodes of a structure. The frequency range of interest can be specified by
entering its lower and upper value. However, internally only as many frequen-
cies are calculated as requested in the first field beneath the *FREQUENCY
keyword card. Accordingly, if the highest calculated frequency is smaller than
the upper value of the requested frequency range, there is no guarantee that
all eigenfrequencies within the requested range were calculated. If the PER-
TURBATION parameter is used in the *STEP card, the load active in the last
*STATIC step, if any, will be taken as preload. Otherwise, no preload will be
active.
There are five optional parameters SOLVER, STORAGE, GLOBAL, CY-
CMPC and ALPHA. SOLVER specifies which solver is used to perform a decom-
position of the linear equation system. This decomposition is done only once. It
is repeatedly used in the iterative procedure determining the eigenvalues. The
following solvers can be selected:
• PaStiX
• PARDISO
• TAUCS
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, no eigenvalue
analysis can be performed.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
512 7 INPUT DECK FORMAT
If the MATRIXSTORAGE option is used, the stiffness and mass matrices are
stored in files jobname.sti and jobname.mas, respectively. These are ASCII files
containing the nonzero entries (occasionally, they can be zero; however, none of
the entries which are not listed are nonzero). Each line consists of two integers
and one real: the row number, the column number and the corresponding value.
The entries are listed column per column. In addition, a file jobname.dof is
created. It has as many entries as there are rows and columns in the stiffness and
mass matrix. Each line contains a real number of the form “a.b”. Part a is the
node number and b is the global degree of freedom corresponding to selected row.
Notice that the program stops after creating these files. No further steps are
treated. Consequently, *FREQUENCY, SOLVER=MATRIXSTORAGE only
makes sense as the last step in a calculation.
The parameter STORAGE indicates whether the eigenvalues, eigenmodes,
mass and stiffness matrix should be stored in binary form in file jobname.eig
for further use in a *MODAL DYNAMICS, *STEADY STATE DYNAMICS
or *SENSITIVITY procedure. Default is STORAGE=NO. Specify STOR-
AGE=YES if storage is requested.
The parameters GLOBAL and CYCMPC only make sense in the presence
of SOLVER=MATRIXSTORAGE. GLOBAL indicates whether the matrices
should be stored in global coordinates, irrespective of whether a local coor-
dinates system for any of the nodes in the structure was defined. Default is
GLOBAL=YES. For GLOBAL=NO the matrices are stored in local coordi-
nates and the directions in file jobname.dof are local directions. Notice that
the GLOBAL=NO only works if no single or multiple point constrains were
defined and one and the same coordinate system was defined for ALL nodes in
the structure. The second parameter (CYCMPC) specifies whether any cyclic
multiple point constraints should remain active while assembling the stiffness
and mass matrix before storing them. Default is CYCMPC=ACTIVE. CY-
CMPC=INACTIVE means that all cyclic MPC’s and any other MPC’s contain-
ing dependent nodes belonging to cyclic MPC’s are removed before assembling
the matrices. The CYCMPC parameter only makes sense if GLOBAL=YES,
since only then are MPC’s allowed.
The parameter ALPHA is only needed if the user wants to check the effect
of selective mass scaling in an explicit dynamics calculation for the same struc-
ture. The maximum time step in a explicit dynamics calculation is governed by
the time a wave needs to travers the smallest element in the mesh. This time
can be increased by applying selective mass scaling, which manipulates the el-
ement mass matrices by drawing the mass onto the diagonal without changing
it global value [73], [23]. Still, this procedure may change the eigenfrequencies
and eigenmodes of the structure, which may not be desirable. To check this,
the user can simulate the mass scaling by defining a value for the numerical
damping α and the minimum desired time step in the explicit dynamics calcu-
lation as the fourth argument underneath *FREQUENCY. Specifying a strictly
positive value of the time step automatically leads to selective mass scaling.
ALPHA takes a value between -1/3 and 0. It controls the dissipation of the
high frequency response: lower numbers lead to increased numerical damping
7.63 *FRICTION 513
First line:
• *FREQUENCY
• Specify the parameter ALPHA and its value, if needed.
Second line:
• Number of eigenfrequencies desired.
• Lower value of requested eigenfrequency range (in cycles/time; default:0).
• Upper value of requested eigenfrequency range (in cycles/time; default:
∞).
• Minimum time step allowed in an explicit dynamic calculation for the
same model.
Example:
*FREQUENCY
10
7.63 *FRICTION
Keyword type: model definition, surface interaction and step
With this option the friction behavior of a surface interaction can be defined.
The friction behavior is optional for contact analyses. There are no parameters.
The frictional behavior defines the relationship between the shear stress in
the contact area and the relative tangential displacement between the slave and
the master surface. It is characterized by a linear range with tangent λ (stick
slope) for small relative displacements (stick) followed by a horizontal upper
bound (slip) given by µp, where µ is the friction coefficient and p the local
pressure (Figure 131). µ is dimensionless and usually takes values between 0.1
and 0.5, λ has the dimension of force per volume and should be chosen to be
about 100 times smaller than the spring constant. If no value for λ is specified
a default is taken equal to the first elastic constant of the first encountered
material in the input deck divided by 2.
514 7 INPUT DECK FORMAT
First line:
• *FRICTION
Following line for all types of analysis except modal dynamics:
• µ(> 0).
• λ(> 0).
Example:
*FRICTION
0.2,5000.
7.64 *GAP
Keyword type: model definition
This option is used to define a gap geometry. The parameter ELSET is
required and defines the set of gap elements to which the geometry definition
applies. Right now, all gap elements must be of the GAPUNI type and can be
defined by an *ELEMENT card. The gap geometry is defined by its clearance
d and direction n (a vector of length 1). Let the displacement vector of the first
node of a GAPUNI element be u1 and the displacement vector of the second
node u2 . Then, the gap condition is defined by:
d + n · (u2 − u1 ) ≥ 0. (873)
The gap condition is internally simulated by a nonlinear spring of the type
used in node-to-face contact with a linear pressure-overclosure curve, cf. Figure
130 in which the pressure is to be replaced by the force. The defaults for the
spring stiffness (in units of force/displacement) and the tensile force at −∞ are
1012 and 10−3 , respectively. They can be changed by the user.
First line:
• *GAP
• Enter the ELSET parameter and its value.
Second line :
• gap clearance
7.65 *GAP CONDUCTANCE 515
• not used
Example:
*GAP,ELSET=E1
0.5,0.,1.,0.
defines a clearance of 0.5 and the global y-axis as gap direction for all gap
elements contained in element set E1.
First line:
• *GAP CONDUCTANCE
• Conductance.
• Contact pressure.
• Temperature.
Use as many lines in the first set as needed to define the conductance versus
pressure curve for this temperature.
Use as many sets as needed to define complete temperature dependence.
Example:
*GAP CONDUCTANCE
100.,,273.
defines a conductance coefficient with value 100. for all contact pressures
and all temperatures.
Example files: .
W = f η F · v, (874)
where f is the surface weighting factor, η the heat conversion factor, F the
tangential force and v the differential velocity between master and slave surface.
The heat flowing into the master surface correspondingly amounts to:
W = (1 − f )η F · v. (875)
The heat conversion factor specifies the amount of power converted into heat.
The user specifies the heat conversion factor, the surface weighting factor and the
differential tangential velocity (in size). If the latter is set to a number smaller
than zero, the differential velocity is calculated internally from the velocity of
the adjacent surfaces. The ability for the user to specify the differential velocity
is useful in axisymmetric structures for which the differential velocity is oriented
in circumferential direction (cf. example ring3.inp).
The *GAP HEAT GENERATION keyword must be placed underneath the
*SURFACE INTERACTION card to which it belongs. Furthermore, it can only
be used in *COUPLED and *UNCOUPLED TEMPERATURE-DISPLACEMENT
calculations. It is only used in face-to-face penalty contact.
There is one optional parameter USER. In the presence of this parameter
the gap heat generation data are obtained from user subroutine fricheat.f (cf.
Section 8.4.12). This user subroutine must have been coded, compiled and
linked by the user before calling CalculiX.
First line:
• *GAP HEAT GENERATION
• Enter USER, if appropriate.
The next line is only needed in the absence of USER:
• heat conversion factor η (0 < η ≤ 1).
• surface weighting factor f (0 ≤ f ≤ 1).
• differential tangential velocity
Example:
defines a heat conversion factor of 0.7, a surface weighting factor of 0.3 (i.e.
30 % of the heat goes into the slave surface, 70 % into the master surface) and
a differential tangential velocity of 2000 [L]/[t], where [L] is the unit of length
used by the user and [t] the unit of time.
First line:
• *GEOMETRIC CONSTRAINT.
Second line:
• the type of the geometric constraint
• a node set
• an opposite node set (for MAXMEMBERSIZE and MINMEMBERSIZE)
or a bounding node set (for PACKAGING)
• an absolute value (for MAXMEMBERSIZE, MINMEMBERSIZE, MAX-
GROWTH and MAXSHRINKAGE)
Repeat this line if needed.
Example:
*FEASIBLE DIRECTION
*GEOMETRIC CONSTRAINT
MAXMEMBERSIZE,N1,N2,.1
specifies that the distance between each node of set N1 and the nodes in set
N2 should not exceed .1 in the user’s units.
Example files: .
7.68 *GEOMETRIC TOLERANCES 519
First line:
• *GEOMETRIC TOLERANCES
Second line:
Example:
*GEOMETRIC TOLERANCES,TYPE=NORMAL,CONSTRAINED
N1,1.5,3.7
assigns normally distributed tolerances with a mean value of 1.5 length units
and a standard deviation of 3.7 length units to all nodes in set N1. The random
fields are constrained, i.e. a smooth transition of the random field vectors is
requested between the nodes in set N1 and the remaining nodes in the structure.
7.69 *GREEN
Keyword type: step
This procedure is used to calculate the Green function due to unit forces at
specific nodes in specific global directions. The Green functions are calculated
for each unit force separately. The unit forces are defined by a *CLOAD card
520 7 INPUT DECK FORMAT
(the force value specified by the user is immaterial, a unit force is taken). For
details the user is referred to Section 6.9.26.
There are two optional parameters: SOLVER and STORAGE. SOLVER
specifies which solver is used to perform a decomposition of the linear equa-
tion system. This decomposition is done only once. It is repeatedly used in
determining all Green functions. The following solvers can be selected:
• PaStiX
• PARDISO
• TAUCS
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, a Green func-
tion calculation is not possible.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
The parameter STORAGE indicates whether the scalar frequencies, Green
functions, mass and stiffness matrix should be stored in binary form in file
jobname.eig for further use in a *SENSITIVITY procedure. Default is STOR-
AGE=NO. Specify STORAGE=YES if storage is requested.
First line:
• *GREEN
Example:
*GREEN,SOLVER=PARDISO
7.70 *HCF 521
defines a Green function step and selects the PARDISO solver as linear
equation solver. For this to work, the PARDISO solver must have been linked
with CalculiX.
7.70 *HCF
Keyword type: step
This keyword card is used to consider High Cycle Fatigue (HCF) in a crack
propagation calculation. To this end, a modal calculation (*FREQUENCY)
must have been performed for the uncracked structure and the resulting stresses
must have been stored in a frd-file. Right now, no cyclic symmetry is allowed
in this modal calculation. There are three required parameters INPUT, MODE
and MISSION STEP and two optional parameters MAX CYCLE and SCAL-
ING.
The INPUT parameter is used to denote the frd-file containing the stress
results of the modal calculation for the uncracked structure. It must have
been performed in a separate calculation. Temperature results are not nec-
essary, since the temperature of the LCF (static) calculation defined on the
*CRACK PROPAGATION card is used.
With the MODE parameter the user can select which mode in the modal
calculation is to be used. This mode is scaled with the value given by the
SCALING parameter (default is 1.) and superimposed on the static step defined
by the MISSION STEP parameter.
If HCF crack propagation is not allowed (MAX CYCLE = 0; this is the
default) the calculation stops as soon as HCF propagation is detected. If it is
allowed (MAX CYCLE > 0) HCF calculation is calculated for the actual crack
propagation increment and the next increment is started. In that case, no LCF
propagation is determined.
First line:
• *HCF
Example:
*HCF,INPUT=hcf.frd,MODE=3,SCALING=0.01,MISSION STEP=4
defines high cycle fatigue using the stress results for mode 3 from file hcf.frd,
scaling them by 0.01 and superimposing them on the fourth step in the mis-
sion. This mission must have been defined using the INPUT parameter on the
*CRACK PROPAGATION card.
7.71 *HEADING
Keyword type: model definition
The heading block allows for a short problem description for identification
and retrieval purposes. This description is reproduced at the top of the output
file.
First line:
• *HEADING
Following line:
• Description of the problem.
Example:
*HEADING
Cantilever beam under tension and bending.
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, the default is
the iterative solver, which comes with the CalculiX package.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
What about the iterative solver? If SOLVER=ITERATIVE SCALING is
selected, the pre-conditioning is limited to a scaling of the diagonal terms,
SOLVER=ITERATIVE CHOLESKY triggers Incomplete Cholesky pre-conditioning.
Cholesky pre-conditioning leads to a better convergence and maybe to shorter
execution times, however, it requires additional storage roughly corresponding
to the non-zeros in the matrix. If you are short of memory, diagonal scal-
ing might be your last resort. The iterative methods perform well for truly
three-dimensional structures. For instance, calculations for a hemisphere were
about nine times faster with the ITERATIVE SCALING solver, and three
times faster with the ITERATIVE CHOLESKY solver than with SPOOLES.
For two-dimensional structures such as plates or shells, the performance might
break down drastically and convergence often requires the use of Cholesky pre-
conditioning. SPOOLES (and any of the other direct solvers) performs well in
most situations with emphasis on slender structures but requires much more
storage than the iterative solver.
If the MATRIXSTORAGE option is used, the conductivity and capacity
matrices are stored in files jobname.con and jobname.sph (specific heat), re-
spectively. These are ASCII files containing the nonzero entries (occasionally,
they can be zero; however, none of the entries which are not listed are nonzero).
Each line consists of two integers and one real: the row number, the column
number and the corresponding value. The entries are listed column per column.
In addition, a file jobname.dof is created. It has as many entries as there are
rows and columns in the stiffness and mass matrix. Each line contains a real
number of the form “a.b”. Part a is the node number and b is the global degree
of freedom corresponding to selected row (in this case 0 for the thermal degree of
freedom). Notice that the program stops after creating these files. No further
steps are treated. Consequently, *HEAT TRANSFER, MATRIXSTORAGE
only makes sense as the last step in a calculation.
The parameter DIRECT indicates that automatic incrementation should be
switched off. The increments will have the fixed length specified by the user on
524 7 INPUT DECK FORMAT
step it will be 10. This is sometimes useful if transient heat transfer calculations
are preceded by a stationary heat transfer step to reach steady state conditions
at the start of the transient heat transfer calculations. Using the TIME RESET
parameter in the stationary step (the first step in the calculation) will lead to
a zero total time at the start of the subsequent instationary step.
Finally, the parameter TOTAL TIME AT START can be used to set the
total time at the start of the step to a specific value.
First line:
• *HEAT TRANSFER
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified (default 1.).
Example:
*HEAT TRANSFER,DIRECT
.1,1.
defines a static step and selects the SPOOLES solver as linear equation solver
in the step (default). The second line indicates that the initial time increment
is .1 and the total step time is 1. Furthermore, the parameter DIRECT leads
to a fixed time increment. Thus, if successful, the calculation consists of 10
increments of length 0.1.
Example:
*HEAT TRANSFER,FREQUENCY
8
defines a frequency step for the heat transfer equation. The eight lowest
eigenvalues and corresponding eigenmodes are calculated. Notice that for the
heat equation the following relation applies between the eigenvalue λ and eigen-
frequency ω:
λ = −iω. (876)
If, on the other hand, the heat transfer option is used as an alias for the
Helmholtz equation, e.g. for acoustic problems, the same relationship as in
elastodynamics
λ = ω2 (877)
applies.
Second line if MODAL DYNAMIC is selected:
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified (default 1.).
7.73 *HYPERELASTIC
Keyword type: model definition, material
This option is used to define the hyperelastic properties of a material. There
are two optional parameters. The first one defines the model and can take one of
the following strings: ARRUDA-BOYCE, MOONEY-RIVLIN, NEO HOOKE,
OGDEN, POLYNOMIAL, REDUCED POLYNOMIAL or YEOH. The second
parameter N makes sense for the OGDEN, POLYNOMIAL and REDUCED
POLYMIAL model only, and determines the order of the strain energy poten-
tial. Default is the POLYNOMIAL model with N=1. All constants may be
temperature dependent.
Let I¯1 ,I¯2 and J be defined by:
−1/3
I¯1 = IIIC IC (878)
−2/3
I¯2 = IIIC IIC (879)
1/2
J = IIIC (880)
7.73 *HYPERELASTIC 527
where IC , IIC and IIIC are the invariants of the right Cauchy-Green deforma-
tion tensor CKL = xk,K xk,L . The tensor CKL is linked to the Lagrange strain
tensor EKL by:
2EKL = CKL − δKL (881)
where δ is the Kronecker symbol.
The Arruda-Boyce strain energy potential takes the form:
(
1 ¯ 1 11
U = µ (I1 − 3) + (I¯2 − 9) + (I¯3 − 27)
2 20λ2m 1 1050λ4m 1
)
19 519
+ (I¯4 − 81) + (I¯5 − 243) (882)
7000λ6m 1 673750λ8m 1
1 J2 − 1
+ − ln J
D 2
In CalculiX N ≤ 3.
The reduced polynomial strain energy potential takes the form:
N N
1
Ci0 (I¯1 − 3)i +
X X
U= (J − 1)2i (886)
i=1 i=1
D i
−1/6
stretches by λ̄1 , λ̄2 and λ̄3 , where λ̄i = IIIC λi , the Ogden strain energy
potential takes the form:
N N
X 2µi X 1
U= (λ̄1αi + λ̄α αi
2 + λ̄3 − 3) +
i
(J − 1)2i . (887)
i=1
α2i i=1
D i
First line:
• *HYPERELASTIC
• µ.
• λm .
• D.
• Temperature
• C10 .
• C01 .
• D1 .
• Temperature
• C10 .
• D1 .
• Temperature.
• µ1 .
• α1 .
• D1 .
7.73 *HYPERELASTIC 529
• Temperature.
Repeat this line if needed to define complete temperature dependence.
Following line for the OGDEN model with N=2:
• µ1 .
• α1 .
• µ2 .
• α2 .
• D1 .
• D2 .
• Temperature.
Repeat this line if needed to define complete temperature dependence.
Following lines, in a pair, for the OGDEN model with N=3: First line of
pair:
• µ1 .
• α1 .
• µ2 .
• α2 .
• µ3 .
• α3 .
• D1 .
• D2 .
Second line of pair:
• D3 .
• Temperature.
Repeat this pair if needed to define complete temperature dependence.
Following line for the POLYNOMIAL model with N=1:
• C10 .
• C01 .
• D1 .
• Temperature.
530 7 INPUT DECK FORMAT
• D1 .
• Temperature.
• C10 .
• C20 .
• D1 .
• D2 .
• Temperature.
• C10 .
• C20 .
• C30 .
• D1 .
• D2 .
• D3 .
• Temperature.
• C10 .
• C20 .
• C30 .
• D1 .
• D2 .
• D3 .
• Temperature.
Example:
*HYPERELASTIC,OGDEN,N=1
3.488,2.163,0.
7.74 *HYPERFOAM
Keyword type: model definition, material
This option is used to define a hyperfoam material. There is one optional
parameters, N. N determines the order of the strain energy potential. Default
is N=1. All constants may be temperature dependent.
The hyperfoam strain energy potential takes the form
N
X 2µi 1 −αi βi
U= λαi αi αi
1 + λ2 + λ3 − 3 + (J − 1) (888)
i=1
α2i βi
where λ1 , λ2 and λ3 are the principal stretches. The parameters βi are related
to the Poisson coefficients νi by:
νi
βi = (889)
1 − 2νi
and
βi
νi = . (890)
1 + 2βi
First line:
• *HYPERFOAM
• µ1 .
• α1 .
• ν1 .
• Temperature.
7.74 *HYPERFOAM 533
• µ1 .
• α1 .
• µ2 .
• α2 .
• ν1 .
• ν2 .
• Temperature.
• µ1 .
• α1 .
• µ2 .
• α2 .
• µ3 .
• α3 .
• ν1 .
• ν2 .
• ν3 .
• Temperature.
Example:
*HYPERFOAM,N=2
0.164861,8.88413,2.302e-5,-4.81798,0.,0.
7.75 *INCLUDE
Keyword type: step or model definition
The include statement allows to store part of the input deck in another file.
There is only one required parameter, INPUT, taking the name of the file in
or without double quotes (”). The double quotes are needed if the file name
contains one or more blanks.
First line:
• *INCLUDE
• Enter the parameter and its value.
Example:
*INCLUDE,INPUT=/home/guido/test/beam.spc
Example files: .
First line:
• *INITIAL CONDITIONS
• Element number.
• Element number.
• Integration point number.
• Value of first stress component (xx) in the GLOBAL coordinate system
x-y-z.
7.76 *INITIAL CONDITIONS 537
Examples:
*INITIAL CONDITIONS,TYPE=TEMPERATURE
Nall,273.
assigns the initial temperature T=273. to all nodes in (node) file Nall.
*INITIAL CONDITIONS,TYPE=VELOCITY
18,2,3.15
assigns the initial velocity 3.15 to degree of freedom 2 of node 18.
First line:
• *INITIAL MESH
Following lines:
• Node number.
• Value of the first global rectangular coordinate.
• Value of the second global rectangular coordinate.
• Value of the third global rectangular coordinate.
Examples:
*INITIAL MESH
1, 0.000000, 0.000000, 0.000000
2, 1.000000, 0.000000, 0.000000
3, 1.000000, 1.000000, 0.000000
4, 0.000000, 1.000000, 0.000000
...
Example files: .
7.78 *INITIAL STRAIN INCREASE 539
First line:
Following line:
• Element number.
• Value of first initial strain increase component (xx) in the GLOBAL co-
ordinate system x-y-z.
• Value of third initial strain increase component (zz) in the GLOBAL co-
ordinate system x-y-z.
• Value of fifth initial strain increase component (xz) in the GLOBAL co-
ordinate system x-y-z.
• Value of sixth initial strain increase component (yz) in the GLOBAL co-
ordinate system x-y-z.
Repeat this line if needed. The strain components should be given as Lagrange
strain components for nonlinear calculations and linearized strain components
for linear computations.
540 7 INPUT DECK FORMAT
Examples:
7.79 *KINEMATIC
Keyword type: model definition
With this keyword kinematic constraints can be established between each
node belonging to an element surface and a reference node. A kinematic con-
straint specifies that the displacement in a certain direction i at a node corre-
sponds to the rigid body motion of this node about a reference node. Therefore,
the location of the reference node is important.
This card must be immediately preceded by a *COUPLING keyword card. If
no ORIENTATION was specified on the *COUPLING card, the degrees of free-
dom entered immediately below the *KINEMATIC card (these are the degrees
of freedom i which take part in the rigid body motion) apply to the global rect-
angular system, if an ORIENTATION was used, they apply to the local system.
If the local system is cylindrical, the degrees of freedom 1, 2 and 3 correspond
to the displacement in radial direction, the circumferential angle and the dis-
placement in axial direction, respectively (as defined by the *ORIENTATION
card; the position of the reference node is immaterial to that respect).
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. Alternatively, a force (degrees of freedom 1 up to 3) or moment (degrees
of freedom 4 up to 6) can be applied by a *CLOAD card. In the latter case the
resulting displacements (degrees of freedom 1 up to 3) can be printed in the .dat
file by selecting U on the *NODE PRINT card for the reference node. However,
the corresponding selection of RF on the *NODE PRINT card does not work for
the reference node. Instead, the user should use *SECTION PRINT to obtain
the global force and moment on the selected surface.
First line:
• *KINEMATIC
Following line:
• last degree of freedom (only 1, 2 or 3 allowed); if left blank the last degree
of freedom coincides with the first degree of freedom.
Repeat this line if needed to constrain other degrees of freedom.
Example:
*NODE
262,.5,.5,8.
*ORIENTATION,NAME=OR1,SYSTEM=CYLINDRICAL
.5,.5,0.,.5,.5,1.
*COUPLING,REF NODE=262,SURFACE=S1,ORIENTATION=OR1,CONSTRAINT NAME=CN1
*KINEMATIC
2
*STEP
*STATIC
*BOUNDARY
262,6,6,.01
specifies a moment of size 0.01 about the z-axis through node 262. The rotation
(angle) about this axis of each node belonging to the facial surface SURF will
be identical and such that the resulting moment in the structure agrees with
the applied moment. Since only local degree of freedom 2 takes part in the
rigid body motion, the radial and axial displacement in the nodes belonging to
surface S1 is left completely free.
only one body and if it is such that it is naturally simply connected the
A-domain is empty.
For more details the reader is referred to the section on electromagnetism.
First line:
• *MAGNETIC PERMEABILITY
Following line:
• µ.
• number of the domain
• Temperature.
Repeat this line if needed to define complete temperature dependence.
Example:
*MAGNETIC PERMEABILITY
1.255987E-6,2
tells you that the magnetic permeability coefficient is 1.255987 × 10−6 , in-
dependent of temperature (if SI-units are used this is the magnetic permeability
of copper). The domain for which this material is defined is the A,V-domain.
7.81 *MASS
Keyword type: model definition
This option allows the specification of the nodal mass in the MASS elements
of the model. There is one required parameter ELSET specifying the element
set for which this mass applies. It should contain only MASS elements. The
mass value is applied in each of the elements of the set separately.
First line:
• *MASS
• Enter the parameter ELSET and its value.
Following line:
• Mass.
Example:
*MASS,ELSET=E1
1.e3
assigns a mass of 1000. in each element belonging to element set E1.
Example files: .
7.82 *MASS FLOW 543
First line:
544 7 INPUT DECK FORMAT
• *MASS FLOW
Following line:
• Element number or element set label.
• Zero.
Example:
*MASS FLOW
20,M2
7.83 *MATERIAL
Keyword type: model definition
This option is used to indicate the start of a material definition. A material
data block is defined by the options between a *MATERIAL line and either
another *MATERIAL line or a keyword line that does not define material prop-
erties. All material options within a data block will be assumed to define the
same material. If a property is defined more than once for a material, the last
definition is used. There is one required parameter, NAME, defining the name
of the material with which it can be referenced in element property options (e.g.
*SOLID SECTION). The name can contain up to 80 characters.
Material data requests outside the defined ranges are extrapolated in a con-
stant way and a warning is generated. Be aware that this occasionally occurs
due to rounding errors.
First line:
• *MATERIAL
Example:
*MATERIAL,NAME=EL
one entry per line. The order is irrelevant. The same applies to the mass
matrix. The latter is only needed in frequency (*FREQUENCY) or dynamic
(*DYNAMIC) calculations. The name of the stiffness and the mass matrix can
be at most 80 characters long.
First line:
• *MATRIX ASSEMBLE
Example:
*MATRIX ASSEMBLE,NAME=TEST,STIFFNESSFILE=beampsuper.stiff
defines a substructure with name TEST. The stiffness matrix is stored in file
“beampsuper.stiff”.
α βωj
ζj = + . (892)
2ωj 2
Consequently, α damps the low frequencies, β damps the high frequencies.
The *MODAL DAMPING keyword can be used in any step to redefine
damping values defined in a previous step.
First line:
• *MODAL DAMPING,RAYLEIGH
Example:
*MODAL DAMPING,RAYLEIGH
,,0.,2.e-4
First line:
• *MODAL DYNAMIC
• enter the SOLVER parameter and its value, if needed.
Second line if STEADY STATE is not active:
• Initial time increment. This value will be modified due to automatic incre-
mentation, if DIRECT=NO was specified. If no value is given, the initial
time increment equals the time period of the step.
7.88 *MODEL CHANGE 549
• Initial time increment. This value will be modified due to automatic in-
crementation if DIRECT=NO was specified.
Example:
*MODAL DYNAMIC
1.E-5,1.E-4
defines a modal dynamic procedure with time increment 10−5 and time pe-
riod 10−4 . The time increment is kept constant.
Example:
defines a modal dynamic procedure with initial time increment 10−5 and
relative error 10−2 . The time increment is kept constant.
One can deactivate or activate any element which has been defined in the
model section of the input deck. Before the first step all elements are by de-
fault activated. There is one required parameter TYPE=ELEMENT and there
are two mutually exclusive parameters ADD and REMOVE. One- and two-
dimensional elements which are expanded in CalculiX (such as plane stress
or shell elements) cannot be removed in the first step (to circumvent this
restriction a dummy first step doing nothing can be inserted). The ADD
parameter can be complemented by the modifiers STRAIN FREE or WITH
STRAIN (ADD=STRAIN FREE and ADD=WITH STRAIN, respectivily). If
ADD=STRAIN FREE is selected the strains at the time of adding the element,
if any, are modified by artificial initial strains such that the resulting stress
tensor is zero. In that sense the elements are stress free rather than strain
free. With ADD=WITH STRAIN the strains at the time of activation are not
modified. Default is STRAIN FREE.
To activate or deactivate contact between two surfaces, contact must have
been defined between these surfaces using a *CONTACT PAIR card before the
first step. By default all contact pairs are activated before the first step. There
is one required parameter TYPE=CONTACT PAIR and there are two mutually
exclusive parameters ADD and REMOVE.
Finally, one can turn the mechanical strain from the end of the last step into
a residual strain by using the parameter MECHSTRAINTORESIDUAL. If no
new loading is applied in the actual step this will result in zero stress provided
the force equilibrium is still satisfied. This is for instance the case when the
loading purely consists of prescribed displacements. No elements are added or
deleted.
First line:
• *MODEL CHANGE
Only one such line is allowed; repeat *MODEL CHANGE if several contact
pairs are to be modified.
7.89 *MOHR COULOMB 551
Example:
First line:
• *MOHR COULOMB
Following line:
• Temperature.
Example:
*MOHR COULOMB
20.,10.,294.
First line:
Following sets of lines define the isotropic hardening curve: First line in the
first set:
• Temperature.
Use as many lines in the first set as needed to define the complete hardening
curve for this temperature.
Use as many sets as needed to define complete temperature dependence.
Example:
7.91 *MPC
Keyword type: model definition
With this keyword card a multiple point constraint is defined, usually a
nonlinear one. Right now, four different MPC’s can be selected.
7.91 *MPC 553
• A plane MPC (name PLANE). This MPC specifies that all nodes listed
within this MPC card should stay in a plane. The first three nodes are
the defining nodes and should not lie on a line. For all subsequent nodes
a nonlinear MPC is generated expressing that they stay within the plane.
Notice that the plane can move during deformation, depending on the
motion of the defining nodes.
• A straight line MPC (name STRAIGHT). This MPC expresses that all
nodes listed within this MPC card should stay on a straight line. The
first two nodes are the defining nodes and should not coincide. For all
subsequent nodes two nonlinear MPC’s are generated expressing that they
stay on the straight line. Notice that the straight line can move during
deformation, depending on the motion of its defining nodes.
• A beam MPC (name BEAM). This MPC involves exactly two nodes the
distance between which is kept constant during the calculation.
• A user MPC (name to be defined by the user). With this option the user
can define new nonlinear MPC’s. Examples are given in Section 8.7, e.g.
the mean rotation MPC.
First line:
• *MPC
Second line:
• MPC name
• list of nodes participating in the MPC: maximum 15 entries. Zero entries
are discarded.
Following lines (as many as needed):
• list of nodes participating in the MPC: maximum 16 entries. Zero entries
are discarded.
Example:
*MPC
PLANE,3,8,15,39,14
specifies that nodes 3, 8, 15, 39 and 14 should stay in a plane. The plane is
defined by nodes 3, 8 and 15. They should not be co-linear.
• total temperature: 0
• mass flow: 1
• total pressure: 2
The use of *NETWORK MPC requires the coding of subroutines networkmpc lhs.f
and networkmpc rhs.f by the user. In these routines the user defines the MPC
(linear or nonlinear) using the information entered underneath *NETWORK
MPC. The syntax is identical to *EQUATION except for an additional parame-
ter TYPE specifying the type of MPC. Using this type the user can distinguish
between different kinds of MPC in the networkmpc lhs.f and networkmpc rhs.f
subroutines.
For instance, suppose the user wants to define a network MPC of the form:
*NETWORK MPC,TYPE=QUADRATIC
2
node1,2,a,node2,2,b
All this information including the type of the MPC is transferred to the net-
workmpc lhs.f and networkmpc rhs.f subroutines. In networkmpc rhs.f the user
has to code the calculation of -f, in networkmpc lhs.f the calculation of the
derivative of f w.r.t. each degree of freedom occurring in the MPC. This has
been done for TYPE=QUADRATIC and the reader is referred to the source
code and example networkmpc.inp for further details.
Example:
*NO ANALYSIS
requests the no analysis procedure, in which the set of equations is built but
not solved (the Jacobian determinant is checked).
First line:
• *NODAL THICKNESS
Following line:
• Thickness 1
• Thickness 2
Example:
*NODAL THICKNESS
22,0.05,0.08
556 7 INPUT DECK FORMAT
assigns to node 22 the thickness 0.05 and 0.08. Any plane stress or shell
element containing node 22 will have a local thickness of 0.05 unit lengths at
node 22. Any beam element containing node 22 will have a thickness of 0.05 unit
length in local 1-direction and a thickness of 0.08 unit length in local 2-direction.
7.95 *NODE
Keyword type: model definition
This option allows nodes and their coordinates to be defined. The parameter
NSET is optional and is used to assign the nodes to a node set. If the set already
exists, the nodes are ADDED to the set.
First line:
• *NODE
Following line:
• node number.
Example:
*NODE,NSET=Nall
1,0.,0.,0.
2,1.,0.,0.
3,0.,1.,0.
defines three nodes with node number one, two and three and rectangular
coordinates (0.,0.,0.), (1.,0.,0.) and (0.,1.,0.) respectively.
• DEPF [DISP]: Vector denoting the change in fluid depth compared to the
reference depth in 3D shallow water calculations.
• DEPT [DEPTH]: Fluid depth (in the direction of the gravity vector) in
channel networks.
• PNT [PNDTEMP]: Temperatures: magnitude and phase (only for *STEADY STATE DYNAMICS
calculations).
• PRF [PFORC]: External forces: magnitude and phase (only for *FREQUENCY
calculations with cyclic symmetry).
558 7 INPUT DECK FORMAT
• PU [PDISP]: Displacements: magnitude and phase (only for *STEADY STATE DYNAMICS
calculations and *FREQUENCY calculations with cyclic symmetry).
Notice that only values in nodes belonging to elements are stored. Val-
ues in nodes not belonging to any element (e.g. the rotational node in a
*RIGID BODY option) can only be obtained using *NODE PRINT.
There are nine optional parameters: FREQUENCY, FREQUENCYF, GLOBAL,
OUTPUT, OUTPUT ALL, TIME POINTS, NSET, LAST ITERATIONS and
CONTACT ELEMENTS. The parameters FREQUENCY and TIME POINTS
are mutually exclusive.
FREQUENCY applies to nonlinear calculations where a step can consist
of several increments. Default is FREQUENCY=1, which indicates that the
results of all increments will be stored. FREQUENCY=N with N an integer
indicates that the results of every Nth increment will be stored. The final results
of a step are always stored. If you only want the final results, choose N very
big. The value of N applies to *OUTPUT,*ELEMENT OUTPUT, *EL FILE,
*ELPRINT, *NODE OUTPUT, *NODE FILE, *NODE PRINT, *SECTION PRINT,*CONTACT OUTPUT,
*CONTACT FILE and *CONTACT PRINT. If the FREQUENCY parameter
is used for more than one of these keywords with conflicting values of N, the
last value applies to all. A frequency parameter stays active across several steps
until it is overwritten by another FREQUENCY value or the TIME POINTS
parameter.
The 3D fluid analogue of FREQUENCY is FREQUENCYF. In coupled cal-
culations FREQUENCY applies to the thermomechanical output, FREQUEN-
CYF to the 3D fluid output.
With the parameter GLOBAL you tell the program whether you would like
the results in the global rectangular coordinate system or in the local nodal
system. If an *TRANSFORM card is applied to the node at stake, this card
defines the local system. If no *TRANSFORM card is applied to the element,
the local system coincides with the global rectangular system. Default value for
the GLOBAL parameter is GLOBAL=YES, which means that the results are
stored in the global system. If you prefer the results in the local system, specify
GLOBAL=NO.
The parameter OUTPUT can take the value 2D or 3D. This has only effect
for 1d and 2d elements such as beams, shells, plane stress, plane strain and ax-
isymmetric elements AND provided it is used in the first step. If OUTPUT=3D,
the 1d and 2d elements are stored in their expanded three-dimensional form.
In particular, the user has the advantage to see his/her 1d/2d elements with
their real thickness dimensions. However, the node numbers are new and do not
relate to the node numbers in the input deck. Once selected, this parameter is
active in the complete calculation. If OUTPUT=2D the fields in the expanded
elements are averaged to obtain the values in the nodes of the original 1d and
2d elements. In particular, averaging removes the bending stresses in beams
and shells. Therefore, default for beams and shells is OUTPUT=3D, for plane
stress, plane strain and axisymmetric elements it is OUTPUT=2D. For axisym-
metric structures and OUTPUT=2D the mass flow (MF) and the external force
(RF) are stored for 360◦ , else it is stored for the displayed 3D segment, i.e. 2◦ .
If OUTPUT=3D is selected, the parameter NSET is deactivated.
The parameter OUTPUT ALL specifies that the data has to be stored for
560 7 INPUT DECK FORMAT
all nodes, including those belonging to elements which have been deactivated.
Default is storage for nodes belonging to active elements only.
With the parameter TIME POINTS a time point sequence can be referenced,
defined by a *TIME POINTS keyword. In that case, output will be provided for
all time points of the sequence within the step and additionally at the end of the
step. No other output will be stored and the FREQUENCY parameter is not
taken into account. Within a step only one time point sequence can be active.
If more than one is specified, the last one defined on any of the keyword cards
*NODE FILE, *EL FILE, *NODE PRINT or *EL PRINT will be active. The
TIME POINTS option should not be used together with the DIRECT option on
the procedure card. The TIME POINTS parameters stays active across several
steps until it is replaced by another TIME POINTS value or the FREQUENCY
parameter.
The specification of a node set with the parameter NSET limits the output
to the nodes contained in the set. For cyclic symmetric structures the usage of
the parameter NGRAPH on the *CYCLIC SYMMETRY MODEL card leads
to output of the results not only for the node set specified by the user (which
naturally belongs to the base sector) but also for all corresponding nodes of the
sectors generated by the NGRAPH parameter. Notice that for cyclic symmetric
structures the use of NSET is mandatory.
The parameter LAST ITERATIONS leads to the storage of the displace-
ments in all iterations of the last increment in a file with name ResultsFor-
LastIterations.frd (can be opened with CalculiX GraphiX). This is useful for
debugging purposes in case of divergence. No such file is created if this param-
eter is absent.
Finally, the parameter CONTACT ELEMENTS stores the contact elements
which have been generated in each iteration in a file with the name jobname.cel.
When opening the frd file with CalculiX GraphiX these files can be read with
the command “read jobname.cel inp” and visualized by plotting the elements
in the sets contactelements stα inβ atγ itδ, where α is the step number, β the
increment number, γ the attempt number and δ the iteration number.
First line:
• *NODE FILE
Second line:
Example:
requests the storage of reaction forces and temperatures in the .frd file for
all time points defined by the T1 time points sequence.
Example:
requests the storage of reaction forces and temperatures in the .frd file every
second increment. In addition, output will be stored for all time points defined
by the T1 time points sequence.
• Displacements (key=U)
• Structural temperatures and total temperatures in networks (key=NT or
TS; both are equivalent)
• Static temperatures in 3D fluids (key=TSF)
• Total temperatures in 3D fluids (key=TTF)
• Pressures in networks (key=PN). These are the total pressures for gases,
static pressures for liquids and liquid depth for channels. The fluid section
types dictate the kind of network.
• Static pressures in 3D fluids (key=PSF)
562 7 INPUT DECK FORMAT
The external forces are the sum of the reaction forces, concentrated loads
(*CLOAD) and distributed loads (*DLOAD) in the node at stake. Only in the
absence of concentrated loads in the node and distributed loads in any element
to which the node belongs, the external forces reduce to the reaction forces.
There are six parameters, FREQUENCY, FREQUENCYF, NSET, TO-
TALS, GLOBAL and TIME POINTS. The parameter NSET is required, defin-
ing the set of nodes for which the displacements should be printed. If this card
is omitted, no values are printed. Several *NODE PRINT cards can be used
within one and the same step.
The parameters FREQUENCY and TIME POINTS are mutually exclusive.
The parameter FREQUENCY is optional, and applies to nonlinear cal-
culations where a step can consist of several increments. Default is FRE-
QUENCY=1, which indicates that the results of all increments will be stored.
FREQUENCY=N with N an integer indicates that the results of every Nth
increment will be stored. The final results of a step are always stored. If
you only want the final results, choose N very big. The value of N applies to
*OUTPUT,*ELEMENT OUTPUT, *EL FILE, *ELPRINT, *NODE OUTPUT,
*NODE FILE, *NODE PRINT, *SECTION PRINT,*CONTACT OUTPUT, *CONTACT FILE
and *CONTACT PRINT. If the FREQUENCY parameter is used for more than
one of these keywords with conflicting values of N, the last value applies to all.
A frequency parameter stays active across several steps until it is overwritten
by another FREQUENCY value or the TIME POINTS parameter.
The 3D fluid analogue of FREQUENCY is FREQUENCYF. In coupled cal-
culations FREQUENCY applies to the thermomechanical output, FREQUEN-
CYF to the 3D fluid output.
The parameter TOTALS only applies to external forces. If TOTALS=YES
the sum of the external forces for the whole node set is printed in addition to
their value for each node in the set separately. If TOTALS=ONLY is selected the
sum is printed but the individual nodal contributions are not. If TOTALS=NO
(default) the individual contributions are printed, but their sum is not. Notice
7.98 *NODE PRINT 563
that the sum is always written in the global rectangular system, irrespective of
the value of the GLOBAL parameter.
With the optional parameter GLOBAL you tell the program whether you
would like the results in the global rectangular coordinate system or in the
local nodal system. If an *TRANSFORM card is applied to the node at stake,
this card defines the local system. If no *TRANSFORM card is applied to the
element, the local system coincides with the global rectangular system. Default
value for the GLOBAL parameter is GLOBAL=NO, which means that the
results are stored in the local system. If you prefer the results in the global
system, specify GLOBAL=YES. If the results are stored in the local system the
character ’L’ is listed at the end of the line.
With the parameter TIME POINTS a time point sequence can be referenced,
defined by a *TIME POINTS keyword. In that case, output will be provided for
all time points of the sequence within the step and additionally at the end of the
step. No other output will be stored and the FREQUENCY parameter is not
taken into account. Within a step only one time point sequence can be active.
If more than one is specified, the last one defined on any of the keyword cards
*NODE FILE, *EL FILE, *NODE PRINT, *EL PRINT or *FACE PRINT will
be active. The TIME POINTS option should not be used together with the
DIRECT option on the procedure card. The TIME POINTS parameters stays
active across several steps until it is replaced by another TIME POINTS value
or the FREQUENCY parameter.
The first occurrence of an *NODE PRINT keyword card within a step wipes
out all previous nodal variable selections for print output. If no *NODE PRINT
card is used within a step the selections of the previous step apply, if any.
Notice that some of the keys apply to specific domains. For instance, PS and
V can only be used for 3D fluids, PT and MF only for networks. Furthermore,
PT only makes sense for the vertex nodes of the network elements, whereas MF
only applies to the middle nodes of network elements. It is the responsibility of
the user to make sure that the sets (s)he specifies contain the right nodes. For
nodes not matching the key the printed values are meaningless. If the model
contains axisymmetric elements the mass flow applies to a segment of 2◦ . So
for the total flow this value has to be multiplied by 180.
First line:
• *NODE PRINT
• Enter the parameter NSET and its value.
Second line:
• Identifying keys for the variables to be printed, separated by commas.
Example:
*NODE PRINT,NSET=N1
RF
564 7 INPUT DECK FORMAT
requests the storage of the reaction forces in the nodes belonging to (node)
set N1 in the .dat file.
7.99 *NORMAL
Keyword type: model definition
With this option a normal can be defined for a (node,element) pair. This
only makes sense for shell elements and beam elements. For beam elements the
normal direction is the local 2-direction. If no normal is specified in a node it is
calculated on basis of the local geometry. If the normal defined by the user has
not unit length, it will be normalized. There are no parameters for this keyword
card.
First line:
• *NORMAL
• Element number
• Node number
• Global x-coordinate of the normal
• Global y-coordinate of the normal
• Global z-coordinate of the normal
Example:
*NORMAL
5,18,0.707,0.,0.707
Defines a normal with components (0.707,0.,0.707) in node 18 of element 5.
7.100 *NSET
Keyword type: model definition
This option is used to assign nodes to a node set. The parameter NSET
containing the name of the set is required (maximum 80 characters), whereas
the parameter GENERATE (without value) is optional. If present, nodal ranges
can be expressed by their initial value, their final value, and an increment. If a
set with the same name already exists, it is reopened and complemented. The
name of a set is case insensitive. Internally, it is modified into upper case and
a ’N’ is appended to denote it as node set. Nodes are internally stored in the
order they are entered, no sorting is performed.
The following names are reserved (i.e. cannot be used by the user for other
purposes than those for which they are reserved):
7.100 *NSET 565
First line:
• *NSET
Example:
*NSET,NSET=N1
1,8,831,208
*NSET,NSET=N2
100,N1
assigns the nodes with number 1, 8, 831 and 208 to (node) set N1 and the
nodes with numbers 1, 8, 831, 208 (= set N1) and 100 to set N2.
7.101 *OBJECTIVE
Keyword type: step
With *OBJECTIVE one can define the objective function for which a feasible
direction shall be computed in a *FEASIBLE DIRECTION step. The feasible
direction is basically the sensitivity of a design response function defined as
objective, possibly corrected by design responses defined as constraints and/or
geometric constraints. Right now, the calculation of a feasible direction can only
be done for TYPE=COORDINATE design variables. The objective function
can be any design response function defined in a previous *SENSITIVITY step.
It is referred to by using its name given on the *DESIGN RESPONSE line.
There is one optional parameter TARGET. If TARGET=MIN (= default)
the sensivity is calculated for a minization of the objective, if TARGET=MAX
for a maximization. The difference comes into play when determining which
constraints are active. Exactly one *OBJECTIVE keyword is required in a
*FEASIBLE DIRECTION step. This keyword has to be followed by exactly
one design response name.
First line:
• *OBJECTIVE.
• the parameter target, if needed.
Second line:
• name of a design response
Example:
*OBJECTIVE
DR1
7.102 *ORIENTATION
Keyword type: model definition
This option may be used to specify a local axis system X’-Y’-Z’ to be used for
defining material properties. For now, rectangular and cylindrical systems can
be defined, triggered by the parameter SYSTEM=RECTANGULAR (default)
and SYSTEM=CYLINDRICAL.
A rectangular system is defined by specifying a point a on the local X’ axis
and a point b belonging to the X’-Y’ plane but not on the X’ axis. A right hand
system is assumed (Figure 163).
When using a cylindrical system two points a and b on the axis must be
given. The X’ axis is in radial direction, the Z’ axis in axial direction from point
7.102 *ORIENTATION 567
Z’ Y’
Y
b
a X’ (local)
X (global)
First line:
• *ORIENTATION
• Enter the required parameter NAME, and the optional parameter SYS-
TEM if needed.
Second line (explicit definition of a and b):
• X-coordinate of point a.
• Y-coordinate of point a.
568 7 INPUT DECK FORMAT
Z’ (axial)
X’ (radial)
Z
b
Y a
Y’ (tangential)
X (global)
• Z-coordinate of point a.
• X-coordinate of point b.
• Y-coordinate of point b.
• Z-coordinate of point b.
Second line (use of a distribution):
• name of the distribution.
Third line (optional for local rectangular systems)
• local axis about which an additional rotation is to be performed (1=local
x-axis, 2=local y-axis, 3=local z-axis).
• angle of rotation in degrees.
Example:
*ORIENTATION,NAME=OR1,SYSTEM=CYLINDRICAL
0.,0.,0.,1.,0.,0.
defines a cylindrical coordinate system with name OR1 and axis through the
points (0.,0.,0.) and (1.,0.,0.). Thus, the x-axis in the global coordinate system
is the axial direction in the cylindrical system.
7.103 *OUTPUT
Keyword type: model definition
This keyword is provided for compatibility with ABAQUS. The only param-
eters are FREQUENCY and FREQUENCYF. They are optional.
The parameter FREQUENCY applies to nonlinear calculations where a step
can consist of several increments. Default is FREQUENCY=1, which indicates
that the results of all increments will be stored. FREQUENCY=N with N an
integer indicates that the results of every Nth increment will be stored. The
final results of a step are always stored. If you only want the final results, choose
N very big. The value of N applies to *OUTPUT,*ELEMENT OUTPUT,
*EL FILE, *ELPRINT, *NODE OUTPUT, *NODE FILE, *NODE PRINT, *SECTION PRINT,*CONTACT OUTP
*CONTACT FILE and *CONTACT PRINT. If the FREQUENCY parameter
is used for more than one of these keywords with conflicting values of N, the
last value applies to all. A frequency parameter stays active across several steps
until it is overwritten by another FREQUENCY value or the TIME POINTS
parameter.
The 3D fluid analogue of FREQUENCY is FREQUENCYF. In coupled cal-
culations FREQUENCY applies to the thermomechanical output, FREQUEN-
CYF to the 3D fluid output.
First line:
• *PHYSICAL CONSTANTS
Example:
Example:
7.105 *PLASTIC
Keyword type: model definition, material
This option is used to define the plastic properties of an incrementally plastic
material. There is one optional parameter HARDENING. Default is HARD-
ENING=ISOTROPIC, other values are HARDENING=KINEMATIC for kine-
matic hardening, HARDENING=COMBINED for combined isotropic and kine-
matic hardening HARDENING=USER for user defined hardening curves and
HARDENING=JOHNSON COOK for Johnson-Cook hardening [43], cf. Sec-
tion 6.8.10. All constants may be temperature dependent. The card should
be preceded by a *ELASTIC card within the same material definition, defining
the elastic properties of the material. User defined hardening curves should be
defined in the user subroutine uhardening.f
For Johnson-Cook hardening the temperature dependence is included in the
model equations. However, it may be deactivated by setting the transition
temperature equal to the melt temperature. For Johnson-Cook hardening the
material must be isotropic and a *RATE DEPENDENT card must be used to
define the rate dependence of the hardening curve.
For all other hardening types different rules apply. If the elastic data is
isotropic, the large strain viscoplastic theory treated in [92] and [93] is applied
if the NLGEOM parameter is active on the *STEP card, else the linear theory
from Section 6.8.9 is used. If the elastic data is orthotropic, the infinitesimal
strain model discussed in Section 6.8.16 is used. Accordingly, for an elastically
orthotropic material the hardening can be at most linear. Furthermore, if the
temperature data points for the hardening curves do not correspond to the
*ELASTIC temperature data points, they are interpolated at the latter points.
Accordingly, for an elastically orthotropic material, it is advisable to define the
hardening curves at the same temperatures as the elastic data.
For the selection of plastic output variables the reader is referred to Section
6.8.8.
First line:
• *PLASTIC
Following sets of lines define the isotropic hardening curve for HARDEN-
ING=ISOTROPIC and the kinematic hardening curve for HARDENING=KINEMATIC
or HARDENING=COMBINED: First line in the first set:
• Temperature.
Use as many lines in the first set as needed to define the complete hardening
curve for this temperature.
Use as many sets as needed to define complete temperature dependence.
For the definition of the isotropic hardening curve for HARDENING=COMBINED
the keyword *CYCLIC HARDENING is used.
For Johnson-Cook hardening the model constants are to be entered in the
following order:
• A.
• B.
• n (> 0).
• m (> 0).
• Tm (melt temperature).
• T0 (transition temperature).
Example:
*PLASTIC
800.,0.,273.
900.,0.05,273.
1000.,0.15,273.
700.,0.,873.
750.,0.04,873.
800.,0.13,873.
defines two stress-strain curves: one for temperature T=273. and one for
T=873. The curve at T=273 connects the points (800.,0.), (900.,0.05) and
(1000.,0.15), the curve at T=873 connects (700.,0.), (750.,0.04) and (800.,0.13).
Notice that the first point on the curves represents first yielding and must give
the Von Mises stress for a zero equivalent plastic strain.
• the surface does not contain edges or vertices of elements which do not
have a face in common with the surface. Transgression of this rule will
lead to unrealistic stress concentrations.
• the surface is not adjacent to quadratic elements the faces of which belong
to a contact surface.
Internally, the nodes belonging to the element face surface are copied and
a linear multiple point constraint is generated between the nodes expressing
that the mean force is the force specified by the user (or similarly, the mean
differential displacement is the one specified by the user). Therefore, if the
user visualizes the results with CalculiX GraphiX, a gap will be noticed at the
location of the pre-tension section.
For beam elements a linear multiple point constraint is created between the
nodes belonging to the beam element. The beam element itself is deleted,i.e.
it will not show up in the frd-file. Therefore, no other boundary conditions or
loads can be applied to such elements. Their only reason of existence is to create
an easy means in which the user can define a pretension. To this end the nodes
of the beam element (e.g. representing a bolt) should be connected by linear
equations or a *DISTRIBUTING COUPLING card to nodes of the structures
to be held together.
First line:
7.107 *RADIATE 573
• *PRE-TENSION SECTION
• Enter the NODE and the SURFACE or ELEMENT parameter and their
values
Following line (optional):
• First component in global coordinates of the normal on the surface
• Second component in global coordinates of the normal on the surface
• Third component in global coordinates of the normal on the surface
Example:
*PRE-TENSION SECTION,SURFACE=SURF1,NODE=234
1.,0.,0.
defines a pre-tension section consisting of the surface with the name SURF1
and reference node 234. The normal on the surface is defined as the positive
global x-direction.
7.107 *RADIATE
Keyword type: step
This option allows the specification of radiation heat transfer of a surface at
absolute temperature θ (i.e. in Kelvin) and with emissivity ǫ to the environment
at absolute temperature θ0 . The environmental temperature θ0 is also called the
sink temperature. If the user wishes so, it can be calculated by cavity radiation
considerations from the temperatures of other visible surfaces. The radiation
heat flux q satisfies:
• Face 2: 5-8-7-6
• Face 3: 1-5-6-2
• Face 4: 2-6-7-3
• Face 5: 3-7-8-4
• Face 6: 4-8-5-1
for tetrahedral elements:
• Face 1: 1-2-3
• Face 2: 1-4-2
• Face 3: 2-4-3
• Face 4: 3-4-1
and for wedge elements:
• Face 1: 1-2-3
• Face 2: 4-5-6
• Face 3: 1-2-5-4
• Face 4: 2-3-6-5
• Face 5: 3-1-4-6
label RxCR should be used (CR stands for cavity radiation). In that case,
the temperature immediately following the label is considered as environment
temperature for viewfactors smaller than 1, what is lacking to reach the value
of one is considered to radiate towards the environment. Sometimes, it is useful
to specify that the radiation is closed. This is done by specifying a value of the
environment temperature which is negative if expressed on the absolute scale
(Kelvin). Then, the viewfactors are scaled to one exactly. For cavity radiation
the sink temperature is calculated based on the interaction of the surface at
stake with all other cavity radiation surfaces (i.e. with label RyCR, y taking a
value between 1 and 6). Surfaces for which no cavity radiation label is specified
are not used in the calculation of the viewfactor and radiation flux. Therefore, it
is generally desirable to specify cavity radiation conditions on ALL element faces
(or on none). If the emissivity is nonuniform, the label reads RxCRNUy and a
subroutine radiate.f specifying the emissivity must be provided. The label can
be up to 17 characters long. In particular, y can be used to distinguish different
nonuniform emissivity patterns (maximum 11 characters).
Optional parameters are OP, AMPLITUDE, TIME DELAY, RADIATION
AMPLITUDE, RADIATION TIME DELAY, ENVNODE and CAVITY. OP
takes the value NEW or MOD. OP=MOD is default and implies that the ra-
diation fluxes on different faces are kept over all steps starting from the last
perturbation step. Specifying a radiation flux on a face for which such a flux
was defined in a previous step replaces this value. OP=NEW implies that all
previous radiation flux is removed. If multiple *RADIATE cards are present in
a step this parameter takes effect for the first *RADIATE card only.
The AMPLITUDE parameter allows for the specification of an amplitude
by which the sink temperature is scaled (mainly used for dynamic calculations).
Thus, in that case the sink temperature values entered on the *RADIATE card
are interpreted as reference values to be multiplied with the (time dependent)
amplitude value to obtain the actual value. At the end of the step the reference
value is replaced by the actual value at that time. In subsequent steps this
value is kept constant unless it is explicitly redefined or the amplitude is defined
using TIME=TOTAL TIME in which case the amplitude keeps its validity.
The AMPLITUDE parameter has no effect on nonuniform fluxes and cavity
radiation.
The TIME DELAY parameter modifies the AMPLITUDE parameter. As
such, TIME DELAY must be preceded by an AMPLITUDE name. TIME
DELAY is a time shift by which the AMPLITUDE definition it refers to is
moved in positive time direction. For instance, a TIME DELAY of 10 means
that for time t the amplitude is taken which applies to time t-10. The TIME
DELAY parameter must only appear once on one and the same keyword card.
The RADIATION AMPLITUDE parameter allows for the specification of
an amplitude by which the emissivity is scaled (mainly used for dynamic cal-
culations). Thus, in that case the emissivity values entered on the *RADIATE
card are interpreted as reference values to be multiplied with the (time depen-
dent) amplitude value to obtain the actual value. At the end of the step the
reference value is replaced by the actual value at that time. In subsequent steps
7.107 *RADIATE 577
First line:
• *RADIATE
• Enter any needed parameters and their value
Following line for uniform, explicit radiation conditions:
578 7 INPUT DECK FORMAT
• Emissivity.
• Default sink temperature, or, if ENVNODE is active, the sink node (only
used if the view factors sum up to a value smaller than 1).
• Emissivity.
• Default sink temperature, or, if ENVNODE is active, the sink node (only
used if the view factors sum up to a value smaller than 1).
Example:
*RADIATE
20,R1,273.,.5
First line:
• *RATE DEPENDENT
Following line:
• C.
First line:
• *REFINE MESH.
• enter the required parameter LIMIT and its value and any other optional
parameter.
Second line:
• the label of the selected criterion.
Example:
*REFINE MESH,LIMIT=50.
S
requests a refinement based on the size of the stress and a limit of 50.
7.110 *RESTART
Keyword type: prestep (*RESTART,READ), step (*RESTART,WRITE)
Sometimes you wish to continue a previous run without having to redo the
complete calculation. This is where the *RESTART keyword comes in. It can
be used to store results for a later restart, or to continue a previous calculation.
There is one required parameter specifying whether you want to read pre-
vious results (READ) or store the results of the present calculation for future
restarts (WRITE). This parameter must follow immediately after the *RESTART
keyword card.
If you specify READ, you can indicate with the parameter STEP which step
of the previous run is to be read. The results will be read from the binary file
“jobname.rin” which should have been generated in a previous run. If the STEP
parameter is absent the last step stored in the restart file is taken. A restart file
7.111 *RETAINED NODAL DOFS 581
can contain any number of steps and anything which is allowed within a step.
For instance, one can define new loads based on sets generated in previous runs.
If present, the *RESTART,READ line must be the first non-comment line in
the input deck.
If you specify WRITE, you can specify the frequency (parameter FRE-
QUENCY) at which results are stored. A frequency of two means that the
results of every second step will be stored. Default is one. The results will be
stored in binary format in file “jobname.rout”. Any existing file with this name
will be deleted prior to the first writing operation. The restart file is being
written starting with the step in which the *RESTART card appears and is
being continued up to the step in which the *RESTART card is reused, if any.
A reuse of the *RESTART card can be useful in case the user does not want
any further steps to be stored in the restart file (FREQUENCY=0), or in case
he/she wants to change the write frequency.
In order to prevent the restart file to be come too big, the user can spec-
ify the parameter OVERLAY for the *RESTART,WRITE combination. In that
case every new step being written to the restart file will delete all previous infor-
mation. So only the last step written to file will be available for any subsequent
reuse by a *RESTART,READ command.
For a subsequent restart job with name “jobname new.inp” the “jobname.rout”
file must be renamed into “jobname new.rin”. The *RESTART,WRITE com-
bination must be used within a *STEP definition
• *RESTART
Example:
*RESTART,READ,STEP=2
Example:
*RESTART,WRITE,FREQUENCY=3
This option is used to prescribe the nodal degrees of freedom which are kept
in a *SUBSTRUCTURE GENERATE analysis. It cannot be used in any other
sort of analysis.
There is one optional parameter: SORTED=NO. It is not possible to request
a sorting of the degrees of freedom entered. The entries in the substructure
stiffness matrix are in the order introduced by the user.
No transformation is allowed. Consequently, the global Carthesian system
applies.
First line:
• *RETAINED NODAL DOFS
• Enter the parameter SORTED=NO (optional).
Following line:
• Node number or node set label
• First degree of freedom retained
• Last degree of freedom retained. This field may be left blank if only one
degree of freedom is retained.
Repeat this line if needed.
Example:
retains the degrees of freedom one through three (global) of node 73.
about that node. Therefore, the location of the reference node is important
since it is in this node that the resultant force is applied (this force may be
defined by the user of may be the result of the calculation).
The reference node can be specified by the parameter REF NODE and should
have been assigned coordinates using the *NODE card. The reference node can
belong to the rigid body, but does not necessarily have to. Notice, however,
that if the reference node belongs to the rigid body any forces requested by
specifying RF on a *NODE PRINT card will not be correct. If no reference
node is defined by the user the origin of the global coordinate system is taken
(default).
For the rotational degrees of freedom a dummy rotational node is used whose
translational degrees of freedom are interpreted as the rotations about the ref-
erence node. Thus, the first degree of freedom is used as the rotation about the
x-axis of the rigid body, the second as the the rotation about the y-axis and
the third as the rotation about the z-axis. The rotational node can be defined
explicitly using the parameter ROT NODE. In that case, this node must be
been assigned coordinates (their value is irrelevant) and should not belong to
any element of the structure.
In the absence of any of the parameters REF NODE or ROT NODE, extra
nodes are generated internally assuming their tasks. The position of the default
REF NODE is the origin. However, defining the nodes explicitly can be useful
if a rotation about a specific point is to be defined (using *BOUNDARY or
*CLOAD), or if rigid body values (displacements or forces) are to be printed
using *NODE PRINT. Notice that a force defined in a rotational node has the
meaning of a moment.
Internally, a rigid body is enforced by using nonlinear multiple point con-
straints (MPC).
If the participating nodes in a rigid body definition lie on a straight line,
the rigid body rotation about the line is not defined and an error will occur.
To remove the rotational degree of freedom, specify that the rotation about the
axis is zero. If a is a unit normal on the axis and uR is the displacement of the
ROT NODE, this results in a linear MPC of the form a.uR = 0 to be specified
by the user by means of a *EQUATION card.
Example:
defines a rigid body consisting of the nodes belonging to node set rigid1 with
reference node 100 and rotational node 101.
Using
584 7 INPUT DECK FORMAT
*CLOAD
101,3,0.1
in the same input deck (see *CLOAD) defines a moment about the z-axis of
0.1 acting on the rigid body.
First line:
• *ROBUST DESIGN
Second line:
Example:
• Fluid dynamic drag stresses (key=DRAG), only makes sense for 3D fluid
calculations
7.114 *SECTION PRINT 585
• Heat flux (key=FLUX), only makes sense for heat calculations (structural
or CFD)
• Section forces, section moments and section areas(key=SOF or key=SOM
or key=SOAREA), only makes sense for structural calculations
The drag stresses are printed in the integration points of the faces. The
output lists the element, the local face number, the integration point, the x-
, y- and z- component of the surface stress vector in the global coordinate
system, the normal component, the shear component and the global coordinates
of the integration point. At the end of the listing the surface stress vectors are
integrated to yield the total force on the surface.
The heat flux is also printed in the integration points of the faces. The
output lists the element, the local face number, the integration point, the heat
flux (positive = flux leaving the element through the surface defined by the
parameter SURFACE) and the global coordinates of the integration point. At
the end of the listing the heat flux vectors are integrated to yield the total heat
flow through the surface.
The section forces, section moments and section areas are triggered by the
keys SOF, SOM and SOAREA. All three keys are equivalent, i.e. asking for
SOF (the section forces) will also trigger the calculation of the section moments
and the section areas. This implementation was selected because the extra
work needed to calculate the moments and areas once the forces are known is
neglegible. The output lists
• the components of the total surface force and moment about the origin in
global coordinates
• the coordinates of the center of gravity and the components of the mean
normal
• the components of the moment about the center of gravity in global coor-
dinates
• the area, the normal force on the section (+ is tension, - is compression)
and the size (absolute value) of the shear force.
Notice that, for internal surfaces (i.e. surfaces which have elements on both
sides) the sign of the force and the moment depends on the side the elements of
which were selected in the definition of the *SURFACE. Please look at example
beamp.inp for an illustration of this.
Since the section forces are obtained by integration of the stresses at the in-
tegration points of the faces, which are obtained by interpolation from the stress
values at the facial nodes (which in turn are determined through extrapolation
from the integration point values inside the volumetric elements and subsequent
averaging over the elements to which the node belongs) they will not be accu-
rate at locations where the stress jumps, such as at interfaces between different
materials.
586 7 INPUT DECK FORMAT
First line:
• *SECTION PRINT
• Enter the parameter SURFACE and its value.
Second line:
• Identifying keys for the variables to be printed, separated by commas.
Example:
*SECTION PRINT,SURFACE=S1,NAME=SP1
DRAG
7.115 *SELECT CYCLIC SYMMETRY MODES 587
requests the storage of the drag stresses for the faces belonging to (facial)
set N1 in the .dat file. The name of the section print is SP1.
• Enter the parameters NMIN and NMAX and their values, if appropriate.
Example:
7.116 *SENSITIVITY
Keyword type: step
This procedure is used to perform a sensitivity analysis. There are three
optional parameters: NLGEOM, READ and WRITE. If NLGEOM is active,
the change of the stiffness matrix w.r.t. the design variables is performed based
on:
• a material tangent stiffness matrix at the strain at the end of the previous
static step
588 7 INPUT DECK FORMAT
First line:
• *SENSITIVITY
• Enter the NLGEOM parameter if needed.
Example:
*SENSITIVITY
that any thicknesses defined on the *SHELL SECTION card are irrelevant. The
OFFSET parameter indicates where the mid-surface of the shell should be in
relation to the reference surface defined by the surface representation given by
the user. The unit of the offset is the thickness of the shell. Thus, OFFSET=0
means that the reference surface is the mid-surface of the shell, OFFSET=0.5
means that the reference surface is the top surface of the shell. The offset can
take any real value. Finally, the COMPOSITE parameter is used to define a
composite material. It can only be used for S8R and S6 elements. A composite
material consists of an integer number of layers made up of different materials
with possibly different orientations. For a composite material the material is
specified on the lines beneath the *SHELL SECTION card for each layer sepa-
rately. The orientation for each layer can be defined in the same way. If none
is specified, the orientation defined by the ORIENTATION parameter will be
taken, if any.
For structures in which axisymmetric elements (type CAX*) are present any
thickness defined on the present card applies to 360◦ .
First line:
• *SHELL SECTION
• Enter any needed parameters.
Second line if the parameter COMPOSITE is not used (the line is ignored
if the first line contains NODAL THICKNESS, however, to give a value is
mandatory):
• thickness
Second line if the parameter COMPOSITE is used (NODAL THICKNESS
is not allowed):
• thickness (required)
• not used
• name of the material to be used for this layer (required)
• name of the orientation to be used for this layer (optional)
Repeat this line as often as needed to define all layers.
Example:
*SHELL SECTION,MATERIAL=EL,ELSET=Eall,ORIENTATION=OR1,OFFSET=-0.5
3.
assigns material EL with orientation OR1 to all elements in (element) set
Eall. The reference surface is the bottom surface of the shell and the shell
thickness is 3 length units.
First line:
• *SOLID SECTION
Second line (only relevant for plane stress, plane strain and truss elements;
can be omitted for axisymmetric and 3D elements):
• thickness for plane stress and plane strain elements, cross-sectional area
for truss elements.
Example:
*SOLID SECTION,MATERIAL=EL,ELSET=Eall,ORIENTATION=OR1
R = R/M (895)
7.120 *SPECIFIC HEAT 591
First line:
• *SPECIFIC GAS CONSTANT
Following line:
• Specific gas constant.
Example:
First line:
• *SPECIFIC HEAT
Following line:
• Specific heat.
• Temperature.
Repeat this line if needed to define complete temperature dependence.
Example:
*SPECIFIC HEAT
446.E6
defines a specific heat with value 446. × 106 for all temperatures.
7.121 *SPRING
Keyword type: model definition
With this option the force-displacement relationship can be defined for spring
elements (cf. Sections 6.2.40,6.2.41 and 6.2.42). There is one required parameter
ELSET and there are optional parameters NONLINEAR and ORIENTATION.
With the parameter ELSET the element set is referred to for which the spring
behavior is defined. This element set should contain spring elements only. With
the parameter NONLINEAR the user can specify that the behavior of the spring
is nonlinear, default is a linear behavior. Finally, the ORIENTATION param-
eter can be used to define a local orientation of the spring for SPRING1 and
SPRING2 elements.
Please note that for a nonlinear behavior the (force,elongation) pairs have to
be entered in ascending order of the elongation. The elongation is defined as the
final length minus the initial length. The elongation can be negative, however,
it should not be smaller than the initial length of the spring. Extrapolation in
the force versus elongation graph is done in a constant way, i.e. the force is
kept constant. This leads to a zero tangent and may lead to a singular stiffness
matrix. Therefore, the elongation range should be defined large enough to avoid
this type of problems.
For SPRING1 and SPRING2 elements the degree of freedom in which the
spring acts is entered immediately underneath the *SPRING card. For a SPRINGA
element this line is left blank. This is done out of compatibility reasons with
ABAQUS. Now, CalculiX deletes any blank lines before reading the input deck.
Therefore,the only way for CalculiX to know whether the first line underneath
the *SPRING card contains degrees of freedom or spring constant information is
to inspect whether the numbers on this line are integers or reals. Therefore, for
the *SPRING card the user should painstakingly take care that any real num-
bers (spring constant, spring force, elongation, temperature) contain a decimal
point (“.”, which is a good practice anyway).
First line:
• *SPRING
• Enter the parameter ELSET and its value and any optional parameter, if
needed.
• not used.
Use as many lines in the first set as needed to define the complete force-
displacement curve for this temperature.
Use as many sets as needed to define complete temperature dependence.
Example:
*SPRING,ELSET=Eall
blank line
10.
defines a linear spring constant with value 10. for all elements in element set
Eall and all temperatures.
Example:
*SPRING,ELSET=Eall,NONLINEAR
0.,0.,293.
10.,1.,293.
100.,2.,293.
0.,0.,393.
5.,1.,393.
25.,2.,393.
7.122 *STATIC
Keyword type: step
This procedure is used to perform a static analysis. The load consists of the
sum of the load of the last *STATIC step and the load specified in the present
step with replacement of redefined loads.
There are five optional parameters: SOLVER, DIRECT, EXPLICIT, TIME
RESET and TOTAL TIME AT START. SOLVER determines the package used
to solve the ensuing system of equations. The following solvers can be selected:
• PaStiX
• PARDISO
• TAUCS
• the iterative solver by Rank and Ruecker [82], which is based on the algo-
rithms by Schwarz [88].
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, the default is
the iterative solver, which comes with the CalculiX package.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
What about the iterative solver? If SOLVER=ITERATIVE SCALING is
selected, the pre-conditioning is limited to a scaling of the diagonal terms,
SOLVER=ITERATIVE CHOLESKY triggers Incomplete Cholesky pre-conditioning.
Cholesky pre-conditioning leads to a better convergence and maybe to shorter
execution times, however, it requires additional storage roughly corresponding
to the non-zeros in the matrix. If you are short of memory, diagonal scal-
ing might be your last resort. The iterative methods perform well for truly
three-dimensional structures. For instance, calculations for a hemisphere were
about nine times faster with the ITERATIVE SCALING solver, and three
7.122 *STATIC 595
times faster with the ITERATIVE CHOLESKY solver than with SPOOLES.
For two-dimensional structures such as plates or shells, the performance might
break down drastically and convergence often requires the use of Cholesky pre-
conditioning. SPOOLES (and any of the other direct solvers) performs well in
most situations with emphasis on slender structures but requires much more
storage than the iterative solver.
The parameter DIRECT is relevant for nonlinear calculations only, and in-
dicates that automatic incrementation should be switched off.
The parameter EXPLICIT is only important for fluid computations. If
present, the fluid computation is explicit, else it is semi-implicit. Static struc-
tural computations are always implicit.
The parameter TIME RESET can be used to force the total time at the end
of the present step to coincide with the total time at the end of the previous step.
If there is no previous step the targeted total time is zero. If this parameter is
absent the total time at the end of the present step is the total time at the end
of the previous step plus the time period of the present step (2nd parameter
underneath the *STATIC keyword). Consequently, if the time at the end of
the previous step is 10. and the present time period is 1., the total time at the
end of the present step is 11. If the TIME RESET parameter is used, the total
time at the beginning of the present step is 9. and at the end of the present
step it will be 10. This is sometimes useful if thermomechanical calculations are
split into transient heat transfer steps followed by quasi-static static steps (this
can be faster than using the *COUPLED TEMPERATURE-DISPLACEMENT
option, which forces the same amount of iterations for the thermal as for the
mechanical calculations and than using the *UNCOUPLED TEMPERATURE-
DISPLACEMENT option, which forces the same amount of increments for the
thermal as for the mechanical calculations). In CalculiX the static step needs a
finite time period, however, the user frequently does not want the quasi-static
step to change the time count.
Finally, the parameter TOTAL TIME AT START can be used to set the
total time at the start of the step to a specific value.
In a static step, loads are by default applied in a linear way. Other loading
patterns can be defined by an *AMPLITUDE card.
If nonlinearities are present in the model (geometric nonlinearity or material
nonlinearity), the solution is obtained through iteration. Since the step may
be too large to obtain convergence, a subdivision of the step in increments is
usually necessary. The user can define the length of the initial increment. This
size is kept constant if the parameter DIRECT is selected, else it is varied by
CalculiX according to the convergence properties of the solution. In a purely
linear calculation the step size is always 1., no iterations are performed and,
consequently, no second line underneath *STATIC is needed.
Notice that any creep behavior (e.g. by using the keyword *CREEP) is
switched off in a *STATIC step. To include creep use the *VISCO keyword.
The syntax for both keywords is the same.
First line:
596 7 INPUT DECK FORMAT
• *STATIC
• Enter any needed parameters and their values.
Second line (only relevant for nonlinear analyses; for linear analyses, the step
length is always 1)
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified (default 1.).
• Time period of the step (default 1.).
• Minimum time increment allowed. Only active if DIRECT is not specified.
Default is the initial time increment or 1.e-6 times the time period of the
step, whichever is smaller.
• Maximum time increment allowed. Only active if DIRECT is not specified.
Default is 1.e+30.
• Initial time increment for CFD applications (default 1.e-2)
Example:
*STATIC,DIRECT
.1,1.
defines a static step and selects the SPOOLES solver as linear equation solver
in the step (default). If the step is a linear one, the other parameters are of no
importance. If the step is nonlinear, the second line indicates that the initial
time increment is .1 and the total step time is 1. Furthermore, the parameter
DIRECT leads to a fixed time increment. Thus, if successful, the calculation
consists of 10 increments of length 0.1.
For harmonic loading the steady state response is calculated for the fre-
quency range specified by the user. The number of data points within this
range n can also be defined by the user, default is 20, minimum is 2 (if the user
specifies n to be less than 2, the default is taken). If no eigenvalues occur within
the specified range, this is the total number of data points taken, i.e. including
the lower frequency bound and the upper frequency bound. If one or more eigen-
values fall within the specified range, n−2 points are taken in between the lower
frequency bound and the lowest eigenfrequency in the range, n − 2 between any
subsequent eigenfrequencies in the range and n − 2 points in between the high-
est eigenfrequency in the range and upper frequency bound. Consequently, if m
eigenfrequencies belong to the specified range, (m+1)(n−2)+m+2 = nm−m+n
data points are taken. They are equally spaced in between the fixed points
(lower frequency bound, upper frequency bound and eigenfrequencies) if the
user specifies a bias equal to 1. If a different bias is specified, the data points
are concentrated about the fixed points. Default for the bias is 3., minimum
value allowed is 1. (if the user specifies a value less than 1., the default is taken).
The number of eigenmodes used is taken from the previous *FREQUENCY step.
Since a steady state dynamics step is a perturbation step, all previous loading
is removed. The loading defined within the step is multiplied by the ampli-
tude history for each load as specified by the AMPLITUDE parameter on the
loading card, if any. In this context the AMPLITUDE cards are interpreted
as load factor versus frequency. Loading histories extending beyond the ampli-
tude frequency scale are extrapolated in a constant way. The absence of the
AMPLITUDE parameter on a loading card leads to a frequency independent
load.
For nonharmonic loading the loading across one period is not harmonic and
has to be specified in the time domain. To this end the user can specify the
starting time and the final time of one period and describe the loading within
this period with *AMPLITUDE cards. Default is the interval [0., 1.] and step
loading. Notice that for nonharmonic loading the *AMPLITUDE cards de-
scribe amplitude versus TIME. Furthermore, the user can specify the number
of Fourier terms the nonharmonic loading is expanded in (default:20). The re-
maining input is the same as for harmonic loading, i.e. the user specifies a
frequency range, the number of data points within this range and the bias.
There are two optional parameters: HARMONIC and SOLVER. HAR-
MONIC=YES (default) indicates that the periodic loading is harmonic, HAR-
MONIC=NO specifies nonharmonic periodic loading. The parameter SOLVER
determines the package used to solve for the steady state solution in the pres-
ence of nonzero displacement boundary conditions. The following solvers can
be selected:
• PaStiX
• PARDISO
598 7 INPUT DECK FORMAT
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, an error is
issued.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
First line:
• *STEADY STATE DYNAMICS
• enter any of the parameters you need.
Second line for HARMONIC=YES (default):
• Lower bound of the frequency range (cycles/time)
• Upper bound of the frequency range (cycles/time)
• Number of data points n (default: 20)
• Bias (default: 3.)
Second line for HARMONIC=NO:
• Lower bound of the frequency range (cycles/time)
• Upper bound of the frequency range (cycles/time)
• Number of data points n (default: 20)
• Bias (default: 3.)
• Number of Fourier terms n (default: 20)
• Lower bound of the time range (default: 0.)
• Upper bound of the time range (default: 1.)
7.124 *STEP 599
Example:
defines a steady state dynamics procedure in the frequency interval [12000., 14000.]
with 5 data points and a bias of 4.
Example:
7.124 *STEP
Keyword type: step
This card describes the start of a new STEP. PERTURBATION, NLGEOM,
INC, INCF, THERMAL NETWORK, AMPLITUDE and SHOCK SMOOTH-
ING are the optional parameters.
The parameter PERTURBATION is allowed for *FREQUENCY, *BUCKLE,
*GREEN, *MODAL DYNAMIC, *STEADY STATE DYNAMICS, *COMPLEX
FREQUENCY and *STATIC steps only (for *STATIC steps it only makes sense
for submodel frequency calculations with preload, else a genuine nonlinear geo-
metric calculation with NLGEOM is recommended).
If it is specified in a *FREQUENCY, *BUCKLE or *GREEN procedure, the
last *STATIC step is taken as reference state and used to calculate the stiffness
matrix. This means the inclusion of previous deformations (large deformation
stiffness) and the inclusion of previous loads as preloads (stress stiffness), taking
the temperatures into account to determine the material properties. The active
loads (mechanical and thermal) are those specified in the perturbation step. At
the end of the step the perturbation load is reset to zero.
If it is specified in a *MODAL DYNAMIC, *STEADY STATE DYNAMICS
or *COMPLEX FREQUENCY procedure it means that the data read from
the corresponding .eig-file must have been generated taking perturbation into
account (and vice versa: for instance, the absence of the perturbation parameter
in a *MODAL DYNAMIC procedure requires an .eig-file generated without
perturbation parameter in the corresponding *FREQUENCY step).
The loading active in a non-perturbative step is the accumulation of the
loading in all previous steps since but not including the last perturbation step
600 7 INPUT DECK FORMAT
(or, if none has occurred, since the start of the calculation), unless OP=NEW
has been specified since.
If NLGEOM is specified, the calculation takes geometrically nonlinear effects
into account. To this end a nonlinear strain tensor is used (Lagrangian strain
for hyperelastic materials, Eulerian strain for deformation plasticity and the de-
viatoric elastic left Cauchy-Green tensor for incremental plasticity), the step is
divided into increments and a Newton iteration is performed within each incre-
ment (notice that iterations are also performed for other kinds of nonlinearity,
such as material nonlinearity or contact conditions). Although the internally
used stresses are the Piola stresses of the second kind, they are transformed
into Cauchy (true) stresses before being printed. NLGEOM is only taken into
account if the procedure card (such as *STATIC, *DYNAMIC, *COUPLED
TEMPERATURE-DISPLACEMENT) allows for it (the *FREQUENCY card,
for example, does not directly allow for it). Once the NLGEOM parameter
has been selected, it remains active in all subsequent static calculations. With
NLGEOM=NO the inclusion of geometrically nonlinear effects can be turned
off. It stays active in subsequent steps as well, unless NLGEOM was specified
again. To check whether geometric nonlinearity was taken into account in a
specific step, look for the message “Nonlinear geometric effects are taken into
account” in the output.
The step size and the increment size can be specified underneath the pro-
cedure card. The maximum number of increments in the step (for automatic
incrementation) can be specified by using the parameter INC (default is 100)
for thermomechanical calculations and INCF (default is 10000) for 3D fluid
calculations. In coupled fluid-structure calculations INC applies to the thermo-
mechanical part of the computations and INCF to the 3D fluid part.
The option THERMAL NETWORK allows the user to perform fast ther-
mal calculations despite the use of specific network elements (e.g. gas pipers,
labyrinths etc), which are characterized by a TYPE description on the *FLUID SECTION
card. In general, the use of specific network elements triggers the alternating so-
lution of the network and the structure, leading to longer computational times.
In thermal calculations with only generic network elements (no TYPE specified
on the *FLUID SECTION cards), the temperatures in the network are solved
simulaneously with the temperatures on the structural side (which is much faster
than the alternating way). Now, sometimes the user would like to use specific
elements, despite the fact that only temperatures have to be calculated, e.g. in
order to determine the heat transfer coefficients based on flow characteristics
such as Prandl and Reynolds number (this requires the use of the user film rou-
tine film.f). Specifying THERMAL NETWORK on the FIRST *STEP card in
the input deck takes care that in such a case the simulaneous solving procedure
is used instead of the alternating one.
the parameter AMPLITUDE can be used to define whether the loading
in this step should be ramped (AMPLITUDE=RAMP) or stepped (AMPLI-
TUDE=STEP). With this option the default for the procedure can be over-
written. For example, the default for a *STATIC step is RAMP. By specifying
AMPLITUDE=STEP the loading in the static step is applied completely at the
7.125 *SUBMODEL 601
beginning of the step. Note, however, that amplitudes on the individual loading
cards (such as *CLOAD, *BOUNDARY....) take precedence.
Finally, the parameter SHOCK SMOOTHING is used for compressible flow
calculations. It leads to a smoothing of the solution and may be necessary to
obtain convergence. This parameter must be in the range from 0. to 2. The
default ist zero. If no convergence is obtained, this parameter is automatically
augmented to 0.001 if its value was zero and to twice its value else and the
calculation is repeated (possibly more than once). Smaller values of SHOCK
SMOOTHING lead to sharper and more accurate results. One possible strategy
ist to start with zero and let CalculiX find out the minimum value for which
convergence occurs.
• *STEP
Example:
*STEP,INC=1000,INCF=20000
7.125 *SUBMODEL
Keyword type: model definition
This keyword is used to define submodel boundaries. A submodel is a part of
a bigger model for which an analysis has already been performed. A submodel
is used if the user would like to analyze some part in more detail by using a more
dense mesh or a more complicated material model, just to name a few reasons.
At those locations where the submodel has been cut from the global model,
the boundary conditions are derived from the global model results. These are
the boundaries defined by the *SUBMODEL card. In addition, in a purely
mechanical calculation it allows to map the temperatures to all nodes in the
submodel (not just the boundary nodes).
There are four kinds of boundary conditions one may apply: the user may
map the displacements from the global model (or temperatures in a purely
thermal or a thermo-mechanical calculation ) to the boundaries of the submodel,
the stresses to the boundaries of the submodel, the forces to the boundaries
of the submodel or the user may select to map the temperatures in a purely
mechanical calculation to all nodes belonging to the submodel. Mapping the
602 7 INPUT DECK FORMAT
stresses or forces may require fixing a couple of additional nodes to prevent rigid
body modes.
In order to perform the mapping (which is basically an interpolation) the
global model is remeshed with tetrahedra. The resulting mesh is stored in file
TetMasterSubmodel.frd and can be viewed with CalculiX GraphiX.
There are three parameters of which two are required. The parameters
TYPE and INPUT are required. TYPE can take the value SURFACE or NODE,
depending on whether the user wants to define stress boundary conditions or
displacement/temperature/force boundary conditions, respectively. The param-
eter INPUT specifies the file, in which the results of the global model are stored.
This must be a .frd file.
A submodel of the SURFACE type is defined by element face surfaces. These
must be defined using the *SURFACE,TYPE=ELEMENT card. Submodels of
the NODE type are defined by sets of nodes. It is not allowed to define a
local coordinate system (with a *TRANSFORM card) in these nodes. Several
submodel cards may be used in one and the same input deck, and they can
be of different types. The global result file, however, must be the same for all
*SUBMODEL cards. Furthermore, a node (for the NODE type submodel) or
an element face (for the SURFACE type submodel) may only belong to at most
one *SUBMODEL.
The optional parameter GLOBAL ELSET defines an elset in the global
model which will be used for the interpolation of the displacements or stresses
onto the submodel boundary defined underneath the *SUBMODEL card. For
the creation of this element set the parameter GENERATE is not allowed (cf.
*ELSET). Although this element set contains element numbers belonging to the
global model, it must be defined in the submodel input deck using the *ELSET
card. For instance, suppose the global model contains elements from 1 to 1000
and that the submodel contains only 10 elements numbered from 1 to 10. Both
models have no elements in common, however, they may have element numbers
in common (as is the case in this example). Suppose that the global elements
to be used for the interpolation of the boundary conditions onto the submodel
have the numbers 600 up to 604. Then the following card defines the global
elset
*ELSET,ELSET=GLOBALSET1
600,601,602,603,604
and has to be included in the submodel input deck, although in this deck
only elements 1 to 10 are defined by a *ELEMENT card, i.e. in the submodel
input deck element numbers are referenced which are not at all defined within
the deck. This is fine for submodel decks only.
If no GLOBAL ELSET parameter is used the default GLOBAL ELSET is
the complete global model. Global elsets of different *SUBMODEL cards may
have elements in common.
Notice that the *SUBMODEL card only states that the model at stake is
a submodel and that it defines part of the boundary to be of the nodal or of
7.125 *SUBMODEL 603
First line:
• *SUBMODEL
• Enter the parameters TYPE and INPUT and their value, and, if necessary,
the GLOBAL ELSET parameter.
Following line for TYPE=NODE:
• Node or node set to be assigned to this surface (maximum 16 entries per
line).
Repeat this line if needed.
Following line for TYPE=SURFACE:
• Element face surface (maximum 1 entry per line).
Repeat this line if needed.
Example:
*SUBMODEL,TYPE=NODE,INPUT=global.frd
part,
1,
8
states that the present model is a submodel. The nodes with number 1, 8
and the nodes in the node set “part” belong to a Dirichlet part of the boundary,
i.e. a part on which the displacements are obtained from the global model.
The results of the global model are stored in file global.frd. Whether they are
really used, depends on whether a *BOUNDARY,SUBMODEL card is defined
for these nodes.
Example files: .
604 7 INPUT DECK FORMAT
• PARDISO
• SPOOLES [3, 4].
Default is the first solver which has been installed of the following list: PAR-
DISO, SPOOLES. If none is installed, a substructure generation is not possible.
First line:
• *SUBSTRUCTURE GENERATE
• Enter SOLVER, if needed, and its value.
Example:
*SUBSTRUCTURE GENERATE,SOLVER=PARDISO
The required parameter FILE NAME is used to define the name of the file
in which the stiffness is to be stored. The extension .mtx is default and cannot
be changed. It is automatically appended to the name given by the user.
First line:
• Enter the parameter FILE NAME and OUTPUT FILE and their values,
and optionally, the parameter STIFFNESS with its fixed value.
Example:
defines file substruc.mtx for the storage of the substructure stiffness matrix
in MATRIX format.
7.128 *SURFACE
Keyword type: model definition
This option is used to define surfaces made up of nodes or surfaces made
up of element faces. A mixture of nodes and element faces belonging to one
and the same surface is not possible. There are two parameters: NAME and
TYPE. The parameter NAME containing the name of the surface is required.
The TYPE parameter takes the value NODE for nodal surfaces and ELEMENT
for element face surfaces. Default is TYPE=ELEMENT.
At present, surfaces are used to establish cyclic symmetry conditions and to
define contact (including tied contact). The master and slave surfaces in cyclic
symmetry conditions must be nodal surfaces. For contact, the slave surface can
be a nodal or element face surface, while the master surface has to be a element
face surface.
Element faces are identified by the surface label Sx where x is the number
of the face. The numbering depends on the element type.
For hexahedral elements the faces are numbered as follows (numbers are
node numbers):
• Face 1: 1-2-3-4
• Face 2: 5-8-7-6
• Face 3: 1-5-6-2
• Face 4: 2-6-7-3
• Face 5: 3-7-8-4
606 7 INPUT DECK FORMAT
• Face 6: 4-8-5-1
for tetrahedral elements:
• Face 1: 1-2-3
• Face 2: 1-4-2
• Face 3: 2-4-3
• Face 4: 3-4-1
and for wedge elements:
• Face 1: 1-2-3
• Face 2: 4-5-6
• Face 3: 1-2-5-4
• Face 4: 2-3-6-5
• Face 5: 3-1-4-6
• Face 3: 1-2
• Face 4: 2-3
• Face 5: 3-4
• Face 6: 4-1
• Face 3: 1-2
• Face 4: 2-3
• Face 5: 3-1
Notice that the labels 1 and 2 correspond to the brick face labels of the 3D
expansion of the shell (Figure 69).
for beam elements:
The beam face numbers correspond to the brick face labels of the 3D expansion
of the beam (Figure 74).
First line:
• *SURFACE
• Enter the parameter NAME and its value, and, if necessary, the TYPE
parameter.
Example:
*SURFACE,NAME=left,TYPE=NODE
part,
1,
8
assigns the nodes with number 1, and 8 and the nodes belonging to node set
part to a surface with name left.
Example:
*SURFACE,NAME=new
38,S6
Section 6.7.6) can be specified too (default value 10−3 ). For face-to-face contact
only the slope of the pressure-overclosure relationship is needed.
The tabular pressure-overclosure relationship is a piecewise linear curve. The
user enters (pressure,overclosure) pairs. Outside the interval specified by the
user the pressure stays constant. The value of c0 , from which the maximum
clearance is calculated for which a spring contact element is generated (by mul-
tiplying with the square root of the spring area, cf. Section 6.7.6) takes the value
10−3 and cannot be changed by the user. Due to programming restraints the
use of a tabular pressure-overclosure relationship in a thermomechanical calcu-
lation implies the use of a *GAP CONDUCTANCE card defining the thermal
conductance across the contact elements.
The tied pressure-overclosure behavior simulates a truly linear relationship
between the pressure and the overclosure for positive and negative pressures.
At zero overclosure the pressure is zero. It can only be used for face-to-face
penalty contact and similates tied contact between the slave and master face.
Notice that all slave faces will be tied to opposite master faces, if any, irrespec-
tive whether there is a gap between them or not. The only parameter is the
slope of the pressure-overclosure relationship. However, tied contact requires
the specification of the stick slope on a *FRICTION card.
Hard pressure-overclosure behavior is internally reduced to linear pressure-
overclosure behavior with the default constants. In case of mortar contact true
hard behavior can be simulated by omiting the *SURFACE BEHAVIOR card
within the *SURFACE INTERACTION card.
First line:
• *SURFACE BEHAVIOR
• Enter the parameter PRESSURE-OVERCLOSURE and its value.
Following line if PRESSURE-OVERCLOSURE=EXPONENTIAL:
• c0 .
• p0 .
Following line if PRESSURE-OVERCLOSURE=LINEAR:
• slope K of the pressure-overclosure curve (> 0).
• σ∞ (> 0, irrelevant vor face-to-face contact).
• c0 (> 0, irrelevant for face-to-face contact, optional for node-to-face con-
tact)
Following line if PRESSURE-OVERCLOSURE=TABULAR:
• pressure.
• overclosure.
610 7 INPUT DECK FORMAT
Example:
*SURFACE BEHAVIOR,PRESSURE-OVERCLOSURE=EXPONENTIAL
1.e-4,.1
defines a distance of 10−4 length units at which the contact pressure is .001
pressure units, whereas the contact pressure at loose contact is 0.1 pressure
units.
First line:
• *SURFACE INTERACTION
Example:
*SURFACE INTERACTION,NAME=SI1
7.131 *TEMPERATURE
Keyword type: step
This option is used to define temperatures and, for shell and beam elements,
temperature gradients within a purely mechanical *STEP definition. *TEM-
PERATURE should not be used within a pure thermal or combined thermome-
chanical analysis. In these types of analysis the *BOUNDARY card for degree
of freedom 11 should be used instead.
Optional parameter are OP, AMPLITUDE, TIME DELAY, USER, SUB-
MODEL, STEP, DATA SET, FILE and BSTEP. OP can take the value NEW
or MOD. OP=MOD is default and implies that thermal load in different nodes
is accumulated over all steps starting from the last perturbation step. Specifying
the temperature for a node for which a temperature was defined in a previous
step replaces this last value. OP=NEW implies that the temperatures are reini-
tialised to the initial values. If multiple *TEMPERATURE cards are present
in a step this parameter takes effect for the first *TEMPERATURE card only.
For shell elements a temperature gradient can be defined in addition to a
temperature. The temperature applies to nodes in the reference surface, the
gradient acts in normal direction. For beam elements two gradients can be
defined: one in 1-direction and one in 2-direction. Default for the gradients is
zero.
The AMPLITUDE parameter allows for the specification of an amplitude by
which the temperature is scaled (mainly used for dynamic calculations). Thus,
in that case the values entered on the *TEMPERATURE card are interpreted
as reference values to be multiplied with the (time dependent) amplitude value
to obtain the actual value. At the end of the step the reference value is replaced
by the actual value at that time, for use in subsequent steps.
The TIME DELAY parameter modifies the AMPLITUDE parameter. As
such, TIME DELAY must be preceded by an AMPLITUDE name. TIME
DELAY is a time shift by which the AMPLITUDE definition it refers to is
moved in positive time direction. For instance, a TIME DELAY of 10 means
that for time t the amplitude is taken which applies to time t-10. The TIME
DELAY parameter must only appear once on one and the same keyword card.
If the USER parameter is selected the temperature values are determined by
calling the user subroutine utemp.f, which must be provided by the user. This
applies to all nodes listed beneath the *TEMPERATURE keyword. Any tem-
perature values specified behind the nodal numbers are not taken into account.
If the USER parameter is selected, the AMPLITUDE parameter has no effect
and should not be used.
The SUBMODEL parameter is used to specify that the nodes underneath the
*TEMPERATURE card should get their temperature values by interpolation
from a global model. Each of these nodes must be listed underneath exactly one
nodal *SUBMODEL card. The SUBMODEL parameter automatically requires
the use of the STEP or DATA SET parameter.
In case the global calculation was a *STATIC calculation the STEP parame-
ter specifies the step in the global model which will be used for the interpolation.
612 7 INPUT DECK FORMAT
If results for more than one increment within the step are stored, the last incre-
ment is taken.
In case the global calculation was a *FREQUENCY calculation the DATA
SET parameter specifies the mode in the global model which will be used for
the interpolation. It is the number preceding the string MODAL in the .frd-file
and it corresponds to the dataset number if viewing the .frd-file with CalculiX
GraphiX. Notice that the global frequency calculation is not allowed to contain
preloading nor cyclic symmetry.
If the SUBMODEL card is used no temperature values need be specified.
The SUBMODEL parameter and the AMPLITUDE parameter are mutually
exclusive.
Temperature gradients are not influenced by the AMPLITUDE parameter.
If more than one *TEMPERATURE card occurs in an input deck, the fol-
lowing rules apply: if a *TEMPERATURE is applied to the same node as in
a previous application then the previous value and previous amplitude are re-
placed.
Finally, temperatures can also be read from an .frd file. The file name has
to be specified with the FILE parameter, the step within this file from which
the temperatures are to be read can be specified with the BSTEP parameter,
default is 1. All temperatures for that step available in the .frd file will be read
and stored. In case part of the temperatures is listed explicitly in the input deck
and/or part is defined by a user routine and/or part is read from file (by using
several *TEMPERATURE cards within one and the same step) it is important
to know that reading from file takes precedence. This means that (no matter
the order in which the *TEMPERATURE cards are defined in the input deck):
Example:
*TEMPERATURE
N1,293.
300,473.
301,473.
302,473.
assigns a temperature T=293 to all nodes in (node) set N1, and T=473 to
nodes 300, 301 and 302.
*TEMPERATURE,FILE=temperatures.frd,BSTEP=4
7.132 *TIE
Keyword type: model definition
This option is used to tie two surfaces. It can only be used with 3-dimensional
elements (no plane stress, plane strain, axisymmetric, beam or shell elements).
There is one required parameter NAME. Optional parameters are POSITION
TOLERANCE, ADJUST, CYCLIC SYMMETRY and MULTISTAGE. The last
two parameters are mutually exclusive. The dependent surface is called the slave
surface, the independent surface is the master surface. The user can freely decide
which surface is taken as slave and which as master. The surfaces are defined
using *SURFACE. Nodes belonging to the dependent surface cannot be used
as dependent nodes in other SPC’s or MPC’s. Only nodes on an axis of cyclic
symmetry can belong to both the slave as well as to the master surface.
Default (i.e. in the absense of the CYCLIC SYMMETRY and the MULTI-
STAGE parameter) is a tie of two adjacent surfaces in a structural calculation.
This is also called tied contact. In that case MPC’s are generated connecting the
slave nodes with the master faces, provided the orthogonal distance between the
nodes and the adjacent face does not exceed the POSITION TOLERANCE. If
no tolerance is specified, or the tolerance is smaller than 10−10 , a default toler-
ance applies equal to 2.5% of the typical element size. In addition, the projection
of the slave node onto the master face must lie within this face or at any rate not
farther away (measured parallel to the face) than the default tolerance just de-
fined. For tied contact the slave surface can be a nodal or element face surface,
whereas the master surface has to consist of element faces. Nodes which are
not connected are stored in file jobname WarnNodeMissMasterIntersect.nam
and can be read into CalculiX GraphiX by using the command “read job-
name WarnNodeMissMasterIntersect.nam inp”. Nodes which are connected are
automatically adjusted, i.e. the position of the slave nodes is modified such that
614 7 INPUT DECK FORMAT
they lie exactly on the master surface, unless ADJUST=NO was specified by
the user. In order to create the MPC’s connecting the slave and master side,
the latter is triangulated.
The tie can be assigned a name by using the parameter NAME. This name
can be referred to on the *CYCLIC SYMMETRY MODEL card.
The parameter CYCLIC SYMMETRY is used to tie two surfaces bounding
one and the same datum sector in circumferential direction. Both the slave
and the master surface can be node or face based. For face based surfaces the
nodes belonging to the face are identied at the start of the algorithm which
generates the cyclic multiple point constraints. For each slave node, a master
node is determined which matches the slave node within a tolerance specified
by the parameter POSITION TOLERANCE after rotation about the cyclic
symmetry axis. The latter rotation is an important aspect: for the purpose of
generating cyclic symmetry constraints distances are measured in radial planes
through the cyclic symmetry axis. Circumferential deviations do NOT enter
the calculation of this distance. A separate check, however, verifying whether
the geometry matches the number of sectors defined by the user, is performed.
For details the reader is referred to *CYCLIC SYMMETRY MODEL. If no tol-
erance is specified, or the tolerance is smaller than 10−30 , a default tolerance
is calculated equal to 10−10 times the mean of the distance of every master
node to its nearest neighboring master node. Subsequently, a cyclic symmetry
constraint is generated. If no master node is found within the tolerance, the
face on the master surface is identified to which the rotated slave node belongs,
and a more elaborate multiple point constraint is generated. If none is found,
the closest face is taken. If this face does not lie within 10% of its length from
the slave node, no MPC’s are generated for this node, an error is issued and
the node is stored in file jobname WarnNodeMissCyclicSymmetry.nam. This
file can be read into CalculiX GraphiX by using the command “read job-
name WarnNodeMissCyclicSymmetry.nam inp”.
The parameter MULTISTAGE is used to tie two coincident nodal surfaces
(no face based surfaces allowed) each of which belongs to a different datum
sector. In that way two axially neighboring datum sectors can be tied. In this
case, the order in which the user specifies the surfaces is not relevant: the surface
belonging to the smallest datum sector is taken as master surface. The larger
datum sector should not extend the smaller datum sector by more than once the
smaller datum sector, no matter in what circumferential direction (clockwise or
counterclockwise). This option should not be used in the presence of network
elements.
The parameter NAME is needed if more than one *TIE constraint is defined.
It allows the user to distinguish the tie constraints when referring to them in
other keyword cards (e.g. *CYCLIC SYMMETRY MODEL).
Notice that *TIE can only be used to tie ONE slave surface with ONE master
surface. It is not allowed to enter more than one line underneath the *TIE card.
Furthermore, *TIE cards must not use a name which has already been used for
another *TIE.
7.133 *TIME POINTS 615
First line:
• *TIE
• enter any parameters, if needed.
Following line:
• Name of the slave surface.
• Name of the master surface.
Example:
*TIE,POSITION TOLERANCE=0.01
left,right
defines a datum sector with slave surface left and master surface right, and
defines a position tolerance of 0.01 length units.
First line:
• *TIME POINTS
• Enter the required parameter NAME, and the optional parameter if needed.
616 7 INPUT DECK FORMAT
• Time.
• Time.
• Time.
• Time.
• Time.
• Time.
• Time.
• Time.
• Starting time
• End time
• Time increment
Example:
*TIME POINTS,NAME=T1
.2,.3.,.8
defines a time points sequence with name T1 consisting of times .2, .3 and
.8 time units. The time used is the local step time.
Example:
*TIME POINTS,NAME=T1,GENERATE
0.,3.,1.
defines a time points sequence with name T1 consisting of the time points
0., 1., 2., and 3. The time used is the local step time.
Z’ Y’
Y
b
a X’ (local)
X (global)
7.134 *TRANSFORM
Keyword type: model definition
This option may be used to specify a local axis system X’-Y’-Z’ to be used for
defining SPC’s, MPC’s and nodal forces. For now, rectangular and cylindrical
systems can be defined, triggered by the parameter TYPE=R (default) and
TYPE=C.
A rectangular system is defined by specifying a point a on the local X’ axis
and a point b belonging to the X’-Y’ plane but not on the X’ axis. A right hand
system is assumed (Figure 165).
When using a cylindrical system two points a and b on the axis must be
given. The X’ axis is in radial direction, the Z’ axis in axial direction from point
a to point b, and Y’ is in tangential direction such that X’-Y’-Z’ is a right hand
system (Figure 166).
The parameter NSET, specifying the node set for which the transformation
applies, is required.
If several transformations are defined for one and the same node, the last
transformation takes effect.
Notice that a non-rectangular local coordinate system is not allowed in nodes
which belong to plane stress, plane strain, or axisymmetric elements. If a local
rectangular system is defined the local z-axis must coincide with the global z-axis
(= axis orthogonal to the plane in which these elements are defined).
First line:
618 7 INPUT DECK FORMAT
Z’ (axial)
X’ (radial)
Z
b
Y a
Y’ (tangential)
X (global)
• *TRANSFORM
• Enter the required parameter NSET, and the optional parameter TYPE
if needed.
Second line:
• X-coordinate of point a.
• Y-coordinate of point a.
• Z-coordinate of point a.
• X-coordinate of point b.
• Y-coordinate of point b.
• Z-coordinate of point b.
Example:
*TRANSFORM,NSET=No1,TYPE=R
0.,1.,0.,0.,0.,1.
Default is the first solver which has been installed of the following list: SGI,
PaStiX, PARDISO, SPOOLES and TAUCS. If none is installed, the default is
the iterative solver, which comes with the CalculiX package.
The SGI solver should by now be considered as outdated.SPOOLES is very
fast, but has no out-of-core capability: the size of systems you can solve is lim-
ited by your RAM memory. With 32GB of RAM you can solve up to 1,000,000
equations. TAUCS is also good, but my experience is limited to the LLT decom-
position, which only applies to positive definite systems. It has an out-of-core
capability and also offers a LU decomposition, however, I was not able to run
either of them so far. PARDISO is the Intel proprietary solver and is about
a factor of two faster than SPOOLES. The most recent solver we tried is the
freeware solver PaStiX from INRIA. It is really fast and can use the GPU. For
large problems and a high end Nvidea graphical card (32 GB of RAM) we got an
acceleration of a factor between 3 and 8 compared to PARDISO. We modified
PaStiX for this, therefore you have to download PaStiX from our website and
compile it for your system. This can be slightly tricky, however, it is worth it!
What about the iterative solver? If SOLVER=ITERATIVE SCALING is
selected, the preconditioning is limited to a scaling of the diagonal terms,
620 7 INPUT DECK FORMAT
lead to a zero total time at the start of the subsequent instationary step.
Finally, the parameter TOTAL TIME AT START can be used to set the
total time at the start of the step to a specific value.
First line:
• *UNCOUPLED TEMPERATURE-DISPLACEMENT
• Enter any needed parameters and their values.
• Initial time increment. This value will be modified due to automatic in-
crementation, unless the parameter DIRECT was specified (default 1.).
• Time period of the step (default 1.).
• Minimum time increment allowed. Only active if DIRECT is not specified.
Default is the initial time increment or 1.e-5 times the time period of the
step, whichever is smaller.
• Maximum time increment allowed. Only active if DIRECT is not specified.
Default is 1.e+30.
Example:
*UNCOUPLED TEMPERATURE-DISPLACEMENT
.1,1.
First line:
• *USER MATERIAL
Example:
Example files: freq test, lin stat cooks beam 128, userbeam.
First line:
• *USER MATERIAL
*USER MATERIAL,CONSTANTS=8
500000.,157200.,400000.,157200.,157200.,300000.,126200.,126200.,
294.
300000.,57200.,300000.,57200.,57200.,200000.,26200.,26200.,
394.
defines a user-defined material with eight constants for two different tem-
peratures, 294 and 394.
First line:
• *USER SECTION
• Enter any needed parameters.
Following line:
• First constant
• Second constant
• etc (maximum eight constants on this line)
Repeat this line if more than eight constants are needed to describe the user
section.
Example:
*USER SECTION,MATERIAL=EL,ELSET=Eall,CONSTANTS=1
0.01
624 7 INPUT DECK FORMAT
assigns material EL to all elements in (user element) set Eall. There is one
constant with value 0.01.
Example files: .
First line:
• *VALUES AT INFINITY
Second line:
• Static temperature at infinity
• Norm of the velocity vector at infinity
• Static pressure at infinity
• Density at infinity
• Length of the computational domain
Example:
*VALUES AT INFINITY
40.,1.,11.428571,1.,40.
7.140 *VIEWFACTOR
Keyword type: step
Sometimes you wish to reuse the viewfactors calculated in a previous run,
or store the present viewfactors to file for future use. This can be done using
the keyword card *VIEWFACTOR.
There are six optional parameters: READ, WRITE, WRITE ONLY, NO
CHANGE, INPUT and OUTPUT. READ/NO CHANGE and WRITE/WRITE
ONLY are mutually exclusive, i.e. if you specify READ you cannot specify
7.140 *VIEWFACTOR 625
WRITE or WRITE ONLY and so on. These parameters are used to specify
whether you want to read previous viewfactors (READ/NO CHANGE) or store
the viewfactors of the present calculation for future runs (WRITE and WRITE
ONLY). For reading there is an optional parameter INPUT, for writing there is
an optional parameter OUTPUT.
If you specify READ or NO CHANGE, the results will be read from the
binary file “jobname.vwf” (which should have been generated in a previous
run) unless you use the parameter INPUT. In the latter case you can specify any
filename (maximum 126 characters) containing the viewfactors. If the filename
contains blanks, it must be delimited by double quotes and the filename should
not exceed 124 characters. The geometry of the faces exchanging radiation
must be exactly the same as in the actual run. Notice that the parameter
INPUT must be preceded by the READ or NO CHANGE parameter. The
parameter NO CHANGE has the same effect as the READ parameter except
that it additionally specifies that the viewfactors did not change compared with
the previous step. If this parameter is selected the LU decomposition of the
radiation matrix is not repeated and a lot of computational time can be saved.
This parameter can obviously not be used in the first step of the calculation.
In thermal calculations (keyword *HEAT TRANSFER) the viewfactors are
calculated at the start of each step since the user can change the radiation
boundary conditions in each step. If the viewfactors are not read from file,
i.e. if there is no *VIEWFACTOR,READ or *VIEWFACTOR,NO CHANGE
card in a step they are calculated from scratch. In thermomechanical calcu-
lations (keyword *COUPLED TEMPERATURE-DISPLACEMENT) the view-
factors are calculated at the start of each iteration. Indeed, the deformation
of the structure in the previous iteration can lead to a change of the viewfac-
tors. However, if the user reads the viewfactors from file the recalculation of
the viewfactors in each iteration anew is turned off. In that case it is assumed
that the viewfactors do not change during the entire step.
If you specify WRITE or WRITE ONLY, the viewfactors will be stored in
binary format in file “jobname.vwf” unless you use the parameter OUTPUT.
In the latter case you can specify any filename (maximum 125 characters) in
which the viewfactors are to be written. Any existing file with this name will be
deleted prior to the writing operation. If the filename contains blanks, it must
be delimited by double quotes and the filename should not exceed 123 charac-
ters. Notice that the parameter OUTPUT must be preceded by the WRITE
or WRITE ONLY parameter. If you specify WRITE ONLY the program stops
after calculating and storing the viewfactors.
A *VIEWFACTOR card is only active in the step in which it occurs.
Example:
626 8 USER SUBROUTINES.
*VIEWFACTOR,WRITE
Example:
*VIEWFACTOR,READ,INPUT=viewfactors.dat
7.141 *VISCO
Keyword type: step
This procedure is used to perform a static analysis for materials with vis-
cous behavior. The syntax is identical to the *STATIC syntax, except for the
extra parameter CETOL. This parameter is required and defines the maximum
difference in viscous strain within a time increment based on the viscous strain
rate at the start and the end of the increment. To get an idea of its size one can
divide the stress increase one would typically allow within a time increment by
the E-modulus.
Although the specification of the CETOL parameter is mandatory, it is only
used so far for materials for which the elastic behavior is linear and isotropic.
Notice that the default way of applying loads in a *VISCO step is step
loading, i.e. the loading is fully applied at the start of the step. This is different
from a *STATIC step, in which the loading is ramped. Using a *VISCO step
only makes sense if at least one materials exhibits viscous behavior.
8 User subroutines.
Although the present software is protected by the GNU General Public License,
and the user should always get the source code, it is sometimes more practical
to get a nicely described user interface to plug in your own routines, instead of
having to analyze the whole program. Therefore, for specific tasks well-defined
interfaces are put at the disposal of the user. These interfaces are basically
FORTRAN subroutines containing a subroutine header, a description of the
input and output variables and declaration statements for these variables. The
body of the routine has to be written by the user.
To use a user subroutine, replace the dummy routine in the CalculiX dis-
tribution by yours (e.g. dflux.f from the distribution by the dflux.f you wrote
yourself) and recompile.
8.1 Creep (creep.f) 627
subroutine creep(decra,deswa,statev,serd,ec,esw,p,qtild,
& temp,dtemp,predef,dpred,time,dtime,cmname,leximp,lend,
& coords,nstatv,noel,npt,layer,kspt,kstep,kinc)
!
! user creep routine
!
! INPUT (general):
!
! statev(1..nstatv) internal variables
! serd not used
! ec(1) equivalent creep at the start of the increment
! ec(2) not used
! esw(1..2) not used
! p not used
! temp temperature at the end of the increment
! dtemp not used
! predef not used
! dpred not used
! time(1) value of the step time at the end of the increment
! time(2) value of the total time at the end of the increment
! dtime time increment
! cmname material name
! leximp not used
! lend if = 2: isotropic creep
! if = 3: anisotropic creep
! coords(1..3) coordinates of the current integration point
! nstatv number of internal variables
! noel element number
! npt integration point number
! layer not used
! kspt not used
628 8 USER SUBROUTINES.
subroutine uhardening(amat,iel,iint,t1l,epini,ep,dtime,fiso,dfiso,
& fkin,dfkin)
!
! INPUT:
!
! amat: material name (maximum 80 characters)
! iel: element number
! iint: integration point number
! t1l: temperature at the end of the increment
! epini: equivalent irreversible strain at the start
! of the increment
8.3 User-defined initial conditions 629
subroutine sdvini(statev,coords,nstatv,ncrds,noel,npt,
& layer,kspt)
!
! user subroutine sdvini
!
!
! INPUT:
!
! coords(1..3) global coordinates of the integration point
! nstatv number of internal variables (must be
! defined by the user with the *DEPVAR card)
! ncrds number of coordinates
! noel element number
! npt integration point number
! layer not used
! kspt not used
!
! OUTPUT:
!
630 8 USER SUBROUTINES.
subroutine sigini(sigma,coords,ntens,ncrds,noel,npt,layer,
& kspt,lrebar,rebarn)
!
! user subroutine sigini
!
! INPUT:
!
! coords coordinates of the integration point
! ntens number of stresses to be defined
! ncrds number of coordinates
! noel element number
! npt integration point number
! layer currently not used
! kspt currently not used
! lrebar currently not used (value: 0)
! rebarn currently not used
!
! OUTPUT:
!
! sigma(1..ntens) initial stress values in the integration
! point. If ntens=6 the order of the
! components is 11,22,33,12,13,23
!
subroutine dflux(flux,sol,kstep,kinc,time,noel,npt,coords,
& jltyp,temp,press,loadtype,area,vold,co,lakonl,konl,
& ipompc,nodempc,coefmpc,nmpc,ikmpc,ilmpc,iscale,mi,
& sti,xstateini,xstate,nstate_,dtime)
!
! user subroutine dflux
!
!
! INPUT:
!
! sol current temperature value
! kstep step number
! kinc increment number
! time(1) current step time
! time(2) current total time
! noel element number
! npt integration point number
! coords(1..3) global coordinates of the integration point
! jltyp loading face kode:
! 1 = body flux
! 11 = face 1
! 12 = face 2
! 13 = face 3
! 14 = face 4
! 15 = face 5
! 16 = face 6
! temp currently not used
! press currently not used
8.4 User-defined loading 633
! present increment
! nstate_ number of state variables
! dtime time length of the increment
!
!
! OUTPUT:
!
! flux(1) magnitude of the flux
! flux(2) not used; please do NOT assign any value
! iscale determines whether the flux has to be
! scaled for increments smaller than the
! step time in static calculations
! 0: no scaling
! 1: scaling (default)
subroutine dload(f,kstep,kinc,time,noel,npt,layer,kspt,
& coords,jltyp,loadtype,vold,co,lakonl,konl,
& ipompc,nodempc,coefmpc,nmpc,ikmpc,ilmpc,iscale,veold,
& rho,amat,mi)
!
! user subroutine dload
!
!
! INPUT:
!
! kstep step number
! kinc increment number
! time(1) current step time
! time(2) current total time
! noel element number
! npt integration point number
! layer currently not used
! kspt currently not used
! coords(1..3) global coordinates of the integration point
! jltyp loading face kode:
! 21 = face 1
! 22 = face 2
! 23 = face 3
! 24 = face 4
8.4 User-defined loading 635
! 25 = face 5
! 26 = face 6
! loadtype load type label
! vold(0..4,1..nk) solution field in all nodes
! 0: temperature
! 1: displacement in global x-direction
! 2: displacement in global y-direction
! 3: displacement in global z-direction
! 4: static pressure
! veold(0..3,1..nk) derivative of the solution field w.r.t.
! time in all nodes
! 0: temperature rate
! 1: velocity in global x-direction
! 2: velocity in global y-direction
! 3: velocity in global z-direction
! co(3,1..nk) coordinates of all nodes
! 1: coordinate in global x-direction
! 2: coordinate in global y-direction
! 3: coordinate in global z-direction
! lakonl element label
! konl(1..20) nodes belonging to the element
! ipompc(1..nmpc)) ipompc(i) points to the first term of
! MPC i in field nodempc
! nodempc(1,*) node number of a MPC term
! nodempc(2,*) coordinate direction of a MPC term
! nodempc(3,*) if not 0: points towards the next term
! of the MPC in field nodempc
! if 0: MPC definition is finished
! coefmpc(*) coefficient of a MPC term
! nmpc number of MPC’s
! ikmpc(1..nmpc) ordered global degrees of freedom of the MPC’s
! the global degree of freedom is
! 8*(node-1)+direction of the dependent term of
! the MPC (direction = 0: temperature;
! 1-3: displacements; 4: static pressure;
! 5-7: rotations)
! ilmpc(1..nmpc) ilmpc(i) is the MPC number corresponding
! to the reference number in ikmpc(i)
! rho local density
! amat material name
! mi(1) max # of integration points per element (max
! over all elements)
! mi(2) max degree of freedomm per node (max over all
! nodes) in fields like v(0:mi(2))...
!
! OUTPUT:
636 8 USER SUBROUTINES.
!
! f magnitude of the distributed load
! iscale determines whether the flux has to be
! scaled for increments smaller than the
! step time in static calculations
! 0: no scaling
! 1: scaling (default)
!
subroutine film(h,sink,temp,kstep,kinc,time,noel,npt,
& coords,jltyp,field,nfield,loadtype,node,area,vold,mi,
& ipkon,kon,lakon,iponoel,inoel,ielprop,prop,ielmat,
& shcon,nshcon,rhcon,nrhcon,ntmat_,cocon,ncocon)
!
! user subroutine film
!
!
! INPUT:
!
! sink most recent sink temperature
! temp current temperature value
! kstep step number
! kinc increment number
! time(1) current step time
! time(2) current total time
! noel element number
! npt integration point number
! coords(1..3) global coordinates of the integration point
! jltyp loading face kode:
! 11 = face 1
! 12 = face 2
! 13 = face 3
! 14 = face 4
! 15 = face 5
! 16 = face 6
! field currently not used
! nfield currently not used (value = 1)
! loadtype load type label
! node network node (only for forced convection)
8.4 User-defined loading 637
! material i
! shcon(3,1,i) specific gas constant of material i
! nshcon(i) number of temperature data points for the specific
! heat of material i
! rhcon(0,j,i) temperature at density temperature point j of
! material i
! rhcon(1,j,i) density at the density temperature point j of
! material i
! nrhcon(i) number of temperature data points for the density
! of material i
! ntmat_ maximum number of temperature data points for
! any material property for any material
! ncocon(1,i) number of conductivity constants for material i
! ncocon(2,i) number of temperature data points for the
! conductivity coefficients of material i
! cocon(0,j,i) temperature at conductivity temperature point
! j of material i
! cocon(k,j,i) conductivity coefficient k at conductivity
! temperature point j of material i
!
! OUTPUT:
!
! h(1) magnitude of the film coefficient
! h(2) not used; please do NOT assign any value
! sink (updated) sink temperature (need not be
! defined for forced convection)
! ntmat_ maximum number of temperature data points for
! any material property for any material
! ncocon(1,i) number of conductivity constants for material i
! ncocon(2,i) number of temperature data points for the
! conductivity coefficients of material i
! cocon(0,j,i) temperature at conductivity temperature point
! j of material i
! cocon(k,j,i) conductivity coefficient k at conductivity
! temperature point j of material i
!
! OUTPUT:
!
! h(1) magnitude of the film coefficient
! h(2) not used; please do NOT assign any value
! sink (updated) sink temperature (need not be
! defined for forced convection)
! heatnod extra heat flow going to the network node
! (zero if not specified)
! heatfac extra heat flow going to the structural face
! (zero if not specified)
8.4 User-defined loading 639
!
subroutine radiate(e,sink,temp,kstep,kinc,time,noel,npt,
& coords,jltyp,field,nfield,loadtype,node,area,vold,mi,
& iemchange)
!
! user subroutine radiate
!
!
! INPUT:
!
! sink present sink temperature
! temp current temperature value
! kstep step number
! kinc increment number
! time(1) current step time
! time(2) current total time
! noel element number
! npt integration point number
! coords(1..3) global coordinates of the integration point
! jltyp loading face kode:
! 11 = face 1
! 12 = face 2
! 13 = face 3
! 14 = face 4
! 15 = face 5
! 16 = face 6
! field currently not used
! nfield currently not used (value = 1)
! loadtype load type label
! node currently not used
! area area covered by the integration point
! vold(0..4,1..nk) solution field in all nodes
640 8 USER SUBROUTINES.
! 0: temperature
! 1: displacement in global x-direction
! 2: displacement in global y-direction
! 3: displacement in global z-direction
! 4: static pressure
! mi(1) max # of integration points per element (max
! over all elements)
! mi(2) max degree of freedomm per node (max over all
! nodes) in fields like v(0:mi(2))...
!
! OUTPUT:
!
! e(1) magnitude of the emissivity
! e(2) not used; please do NOT assign any value
! sink sink temperature (need not be defined
! for cavity radiation)
! iemchange = 1 if the emissivity is changed during
! a step, else zero.
!
subroutine ufaceload(co,ipkon,kon,lakon,
& nelemload,sideload,nload)
!
!
! INPUT:
!
! co(0..3,1..nk) coordinates of the nodes
! ipkon(*) element topology pointer into field kon
! kon(*) topology vector of all elements
! lakon(*) vector with elements labels
! nelemload(1..2,*) 1: elements faces of which are loaded
! 2: nodes for environmental temperatures
! sideload(*) load label
! nload number of facial distributed loads
!
! user routine called at the start of each step; possible use:
! calculation of the area of sets of elements for
! further use to calculate film or radiation coefficients.
! The areas can be shared using common blocks.
!
subroutine gapcon(ak,d,flowm,temp,predef,time,ciname,slname,
& msname,coords,noel,node,npred,kstep,kinc,area)
!
! user subroutine gapcon
!
!
! INPUT:
!
! d(1) separation between the surfaces
! d(2) pressure transmitted across the surfaces
! flowm not used
! temp(1) temperature at the slave node
! temp(2) temperature at the corresponding master
642 8 USER SUBROUTINES.
! position
! predef not used
! time(1) step time at the end of the increment
! time(2) total time at the end of the increment
! ciname surface interaction name
! slname not used
! msname not used
! coords(1..3) coordinates of the slave node
! noel element number of the contact spring element
! node slave node number
! npred not used
! kstep step number
! kinc increment number
! area slave area
!
! OUTPUT:
!
! ak(1) gap conductance
! ak(2..5) not used
!
• The ABAQUS umat routines for linear materials (small strain analyses).
• The ABAQUSNL umat routines for nonlinear materials (finite strain anal-
yses).
• Modify the CalculiX sources. This option is supported for the three in-
terfaces.
Each of these approaches has its own advantages and its own pitfalls.
8.5 User-defined mechanical material laws. 643
mangling of FORTRAN functions which could be used to circumvent this issue. Another
solution is that FORTRAN implementations can be used using a C wrapper, which is quite
feasible but this requires some advanced knowledge of C and FORTRAN interfacing.
644 8 USER SUBROUTINES.
used within one and the same input deck, e.g. the user could use DRUCKER-
PRAGER1 and DRUCKER-PRAGER2 if he has two different Drucker-Prager
materials in his model. Using the block
elseif(amat(1:4).eq.’USER’) then
!
amatloc(1:76)=amat(5:80)
amatloc(77:80)=’ ’
call umat_user(amatloc,iel,iint,kode,elconloc,emec,emec0,
& beta,xikl,vij,xkl,vj,ithermal,t1l,dtime,time,ttime,
& icmd,ielas,mi(1),nstate_,xstateini,xstate,stre,stiff,
& iorien,pgauss,orab,pnewdt,ipkon)
elseif(amat(1:14).eq.’DRUCKER-PRAGER’) then
!
amatloc(1:66)=amat(15:80)
amatloc(67:80)=’ ’
call umat_drucker-prager(amatloc,iel,iint,kode,elconloc,emec,
& emec0,beta,xikl,vij,xkl,vj,ithermal,t1l,dtime,time,ttime,
& icmd,ielas,mi(1),nstate_,xstateini,xstate,stre,stiff,
& iorien,pgauss,orab,pnewdt,ipkon)
which has to be inserted in routine umat main.f. Notice that the DRUCKER-
PRAGER part is removed from the material name before entering the subrou-
tine, i.e. if the user has named his material DRUCKER-PRAGER1 only 1 will
be transferred to the user subroutine.
After storing umat main.f and umat drucker prager.f, umat drucker prager.f
has to be added to the FORTRAN routines in Makefile.inc and CalculiX has to
be recompiled, i.e. a new executable has to be generated.
After this, the Drucker-Prager material routine is at the disposal of the user.
To select it, he has to use the *USER MATERIAL card and start the name of
this material with DRUCKER-PRAGER. Furthermore, he has to know how
many constants he has to define for this material (should be in the documen-
tation of the material model) and how many internal variables there are (to be
inserted underneath the *DEPVAR card; should also be in the documentation
of the material model). If our Drucker-Prager material is characterized by 4
constants and 2 internal variables (this is out-of-the-blue) the input should look
like:
*MATERIAL,NAME=DRUCKER-PRAGEREXAMPLE
*USER MATERIAL,CONSTANTS=4
constant1,constant2,constant3,constant4
*DEPVAR
2
8.5 User-defined mechanical material laws. 645
The header and input/output variables of the umat user routine are as fol-
lows:
subroutine umat_user(amat,iel,iint,kode,elconloc,emec,emec0,
& beta,xokl,voj,xkl,vj,ithermal,t1l,dtime,time,ttime,
& icmd,ielas,mi,nstate_,xstateini,xstate,stre,stiff,
& iorien,pgauss,orab,pnewdt,ipkon)
!
! calculates stiffness and stresses for a user defined material
! law
!
! icmd=3: calcutates stress at mechanical strain
! else: calculates stress at mechanical strain and the stiffness
! matrix
!
! INPUT:
!
! amat material name
! iel element number
! iint integration point number
!
! kode material type (-100-#of constants entered
! under *USER MATERIAL): can be used for materials
! with varying number of constants
!
! elconloc(*) user defined constants defined by the keyword
! card *USER MATERIAL (actual # =
! -kode-100), interpolated for the
! actual temperature t1l
!
! emec(6) Lagrange mechanical strain tensor (component order:
! 11,22,33,12,13,23) at the end of the increment
! (thermal strains are subtracted)
! emec0(6) Lagrange mechanical strain tensor at the start of the
! increment (thermal strains are subtracted)
! beta(6) residual stress tensor (the stress entered under
! the keyword *INITIAL CONDITIONS,TYPE=STRESS)
!
! xokl(3,3) deformation gradient at the start of the increment
! voj Jacobian at the start of the increment
! xkl(3,3) deformation gradient at the end of the increment
! vj Jacobian at the end of the increment
!
! ithermal 0: no thermal effects are taken into account
! >0: thermal effects are taken into account (triggered
! by the keyword *INITIAL CONDITIONS,TYPE=TEMPERATURE)
646 8 USER SUBROUTINES.
subroutine str2mat(str,ckl,vj,cauchy)
!
! converts the stress in spatial coordinates into material coordinates
! or the strain in material coordinates into spatial coordinates.
!
! INPUT:
!
! str(6): Cauchy stress, Kirchhoff stress or Lagrange strain
! component order: 11,22,33,12,13,23
! ckl(3,3): the inverse deformation gradient
! vj: Jakobian determinant
! cauchy: logical variable
! if true: str contains the Cauchy stress
! if false: str contains the Kirchhoff stress or
648 8 USER SUBROUTINES.
! Lagrange strain
!
! OUTPUT:
!
! str(6): Piola-Kirchhoff stress of the second kind (PK2) or
! Euler strain
!
The second routine, “stiff2mat.f” converts the tangent stiffness matrix from
spatial coordinates into material coordinates.
subroutine stiff2mat(elas,ckl,vj,cauchy)
!
! converts an element stiffness matrix in spatial coordinates into
! an element stiffness matrix in material coordinates.
!
! INPUT:
!
! elas(21): stiffness constants in the spatial description, i.e.
! the derivative of the Cauchy stress or the Kirchhoff
! stress with respect to the Eulerian strain
! ckl(3,3): inverse deformation gradient
! vj: Jacobian determinant
! cauchy: logical variable
! if true: elas is written in terms of Cauchy stress
! if false: elas is written in terms of Kirchhoff stress
!
! OUTPUT:
!
! elas(21): stiffness constants in the material description,i.e.
! the derivative of the second Piola-Kirchhoff stress (PK2)
! with respect to the Lagrangian strain
!
@CALCULIXBEHAVIOURS CHABOCHE
Here, the library name has been stripped from system-specific conventions
(the leading lib and the .so extension). The base name of the library and the
name of the function must be upper-case. This is due to the way CalculiX
interprets the input file.
To distinguish two materials using the same external behaviour, one may add
a unique identifier at the end of the material name. This identifier starts with the
@ character. For example, one may use the material names @CALCULIXBEHAVIOURS CHABOCHE@1
and @CALCULIXBEHAVIOURS CHABOCHE@2 to create two distinct materials (with
distinct material properties) which will call the same external behaviour.
Limitations. Notice that the following fields are not supported so far:
sse, spd, scd, rpl, ddsddt, drplde, drpldt, predef, dpred, drot, pnewdt, celent,
layer, kspt. If you need these fields, contact “dhondt@t-online.de”. Further-
more, the following fields have a different meaning:
– stran:
∗ in CalculiX: Lagrangian strain tensor
∗ in ABAQUS: logarithmic strain tensor
– dstran:
∗ in CalculiX: Lagrangian strain increment tensor
2 Under windows, the library name has the dll extension.
650 8 USER SUBROUTINES.
elseif(labmpc(ii)(1:4).eq.’USER’) then
call umpc_user(aux,aux(3*maxlenmpc+1),const,
& aux(6*maxlenmpc+1),iaux,n,fmpc(ii),iit,idiscon)
For more details the user is referred to [24]. To use a user-defined equation
its name must be specified on the line beneath the keyword *MPC, followed by
a list of all the nodes involved in the MPC. This list of nodes is transferred to
the user routine, as specified by the following header and input/output variables
of the umpc user routine:
subroutine umpc_user(x,u,f,a,jdof,n,force,iit,idiscon)
!
! updates the coefficients in a user mpc
!
! INPUT:
!
! x(3,n) Carthesian coordinates of the nodes in the
! user mpc.
! u(3,n) Actual displacements of the nodes in the
654 8 USER SUBROUTINES.
! user mpc.
! jdof Actual degrees of freedom of the mpc terms
! n number of terms in the user mpc
! force Actual value of the mpc force
! iit iteration number
!
! OUTPUT:
!
! f Actual value of the mpc. If the mpc is
! exactly satisfied, this value is zero
! a(n) coefficients of the linearized mpc
! jdof Corrected degrees of freedom of the mpc terms
! idiscon 0: no discontinuity
! 1: discontinuity
! If a discontinuity arises the previous
! results are not extrapolated at the start of
! a new increment
!
The subroutine returns the value of f (f (u01 , u02 , ...., u0n )), the coefficients of
df
the linearization ( du i
) and the degrees of freedom involved.
0
The parameter idiscon can be used to specify whether a discontinuity took
place. This usually means that the degrees of freedom in the MPC changed
from the previous call. An example of this is a gap MPC. If a discontinuity
occurred in an increment, the results (displacements..) in this increment are
NOT extrapolated to serve as an initial guess in the next increment.
An example is given next.
The more nodes are contained in a mean rotation MPC the longer the non-
linear equation. This leads to a large, fully populated submatrix in the system
of equations leading to long solution times. Therefore, it is recommended not
to include more than maybe 50 nodes in a mean rotation MPC.
Example:
*NODE
162,0.,1.,0.
*MPC
MEANROT,3,3,3,2,2,2,14,14,14,39,39,39,42,42,42,
50,50,50,48,48,48,162
..
*STEP
*STATIC
*BOUNDARY
162,1,1,.9
..
*END STEP
specifies a mean rotation MPC. Its size is 0.9 radians = 51.56◦ and the global
y-axis is the rotation axis. The participating nodes are 3,2,14,39,42,50 and 48.
The theory behind the mean rotation MPC is explained in [24], Section 3.6,
in case that all nodes are lying in a plane orthogonal to the rotation axis. If
this is not the case, the derivation in [24] is not correct and has to be extended.
Indeed, for the general case p′i and u′i in Equation (3.98) of that reference have
to be replaced by their projection on a plane orthogonal to the rotation vector
a. The projection P y of a vector y is given by:
P y = y − (y · a)a. (898)
Defining bi ≡ P p′i Equation (3.101)of the reference has to be replaced by (no
implicit summation in this section)
(bi × P u′i ) · a
λi = (899)
kbi k · kbi + P u′i k
(recall that the vector product of a vector with itself vanishes). λi is the sinus of
the angle between P p′i , which is the projected vector from the center of gravity
of the nodal set for which the mean rotation MPC applies to one of its nodes i,
and P p′i + P u′i , which is the projection of the vector connecting the deformed
position of the center of gravity with the deformed position of node i. The mean
rotation in the mean rotation MPC is supposed to be equal to a given angle γ,
i.e. the equation to be satisfied is:
656 8 USER SUBROUTINES.
N
X N
X
sin−1 λi ≡ γi = N γ. (900)
i=1 i=1
∂kyk y ∂y
= · , (901)
∂u kyk ∂u
∂P y ∂y ∂y
= [I − a ⊗ a] · ≡P· , (902)
∂u ∂u ∂u
a · (y × P) = a × y. (903)
1 X
u′i = ui − uj , (905)
N j
∂u′i 1
= I · (δip − ), (906)
∂up N
where I is the unit second order tensor. Using the above formulas one arrives
at
(δip − N1 ) bi + P u′i
∂λi bi
= a × − λi , (907)
∂up kbi + P u′i k kbi k kbi + P u′i k
and
(δip − N1 ) bi + P u′i
∂γi 1 bi
=p ′ a × − λi , (908)
∂up 1 − λ2i kbi + P ui k kbi k kbi + P u′i k
Example:
*NODE
262,7.200000,0.,0.
*MPC
DIST,129,129,129,10,10,10,262
..
*STEP
*STATIC
*BOUNDARY
262,1,1,0.
..
*END STEP
specifies a maximum distance MPC. The distance between nodes 129 and
10 is not allowed to exceed 7.2 units.
• nodef(1)=50, idirf(1)=2
• nodef(2)=108, idirf(2)=1
• nodef(3)=3338, idirf(3)=2
For details on these subroutines, the user is referred to the comments at the
start of these routines.
659
9 Programming rules.
CalculiX CrunchiX is a mixture of FORTRAN77 (with elements from FOR-
TRAN90) and C. C is primarily used for automatic allocation and reallocation
purposes. FORTRAN is the first language I learned and I must admit that I’m
still a FORTRAN addict. I use C where necessary, I avoid it where possible.
Roughly speaking, the main routine and some of the routines called by main
are in C, the others are in FORTRAN. This means that no C routine is called
by a FORTRAN routine, a FORTRAN routine may be called by a C routine
or a FORTRAN routine. There are NO commons in the code. All data trans-
fer is through arguments of subroutine calls. All arguments are transferred by
address, not value (there may be one or two exceptions on this rule in the code).
In summary, the following programming rules apply:
• All FORTRAN routines are started with “implicit none”. For choosing
names of variables, however, you should stick to the “implicit real(a-h,o-
z)” rule, i.e. integers start by the letters i up to n, reals by the letters a
up to h and o up to z. Characters and logicals can start by any character.
This applies to C and FORTRAN.
This set of rules grew out of my long-year experience with C and FORTRAN.
These are personal preferences, and some of them are really useful in order
to avoid different-to-trace programming errors. If you want to contribute to
CalculiX, I expect you to adhere to these rules.
Starting with version 2.8 the environment variable CCX LOG ALLOC has
been introduced. If set to 1 (default is zero) one gets detailed information on all
allocated, reallocated and deallocated fields during the executation of CalculiX.
This may be particularly important during debugging of segmentation faults.
10 Program structure.
The main subroutine of CalculiX is ccx 2.22.c. It consists roughly of the follow-
ing parts:
1. Reading the step input data (including the prestep data for the first step)
• openfile
• readinput
• allocation
10.1.1 openfile
In this subroutine the input (.inp) and output files (.dat, .frd, .sta, .cvg) are
opened. The .dat file contains data stored with *NODE PRINT and *EL
PRINT, the .frd file contains data stored with *NODE FILE and *EL FILE,
the .sta and .cvg file contain information on the convergence of the calculation.
10.1 Allocation of the fields 661
10.1.2 readinput
This subroutine reads the input and stores it in field inpc. Before storing, the
following actions are performed:
Furthermore, the number of sets are counted and stored in nset , the number
of lines in inpc are stored in nline. The variable nset is used for subsequent
allocation purposes. Finally, the order in which inpc is to be read is stored in
the fields ipoinp and inp. Indeed, some keyword cards cannot be interpreted
before others were read, e.g. a material reference in a *SOLID SECTION card
cannot be interpreted before the material definition in the *MATERIAl card
was read. The order in which keyword cards must be read is defined in field
nameref in subroutine keystart.f. Right now, it reads:
1. *RESTART,READ
2. *NODE
3. *USER ELEMENT
4. *ELEMENT
5. *MATRIX ASSEMBLE
6. *NSET
7. *ELSET
8. *TRANSFORM
9. *MATERIAL
10. *DISTRIBUTION
11. *ORIENTATION
12. *SURFACE
13. *TIE
14. *SURFACE INTERACTION
15. *INITIAL CONDITIONS
16. *AMPLITUDE
662 10 PROGRAM STRUCTURE.
ipoinpc(l1−1)+1
row i j1 j3
row j1
line l1 line l2 row j2 ipoinpc(l2)
row j2 ipoinpc(l3−1)+1
line l3 line l4 row j3
ipoinpc(l4)
row j3 ipoinpc(l5−1)+1
line l5 line l6 0
ipoinpc(l6)
17. *CONTACTPAIR
18. *COUPLING
This means that *RESTART,READ has to be read before all other cards,
then comes *NODE etc. The way inpc is to be read is stored in the fields ipoinp,
inp and ipoinpc. The two-dimensional field ipoinp consists of 2 columns and
nentries rows, where nentries is the number of keyword cards listed in the list
above, i.e. right now nentries=19. The first column of row i in field ipoinp
contains a row number of field inp, for instance j1. Then, the first column of
row j1 in field inp contains the line number where reading for keyword i should
start, the second column contains the line number where reading should end
and the third column contains the line number in field inp where the reading
information for keyword i continues, else it is zero. If it is zero the corresponding
row number in inp is stored in the second column of row i in field ipoinp. Lines
are stored consecutively in field inpc (without blanks and without comment
lines). Line l1 starts at ipoinpc(l1-1)+1 (first character) and ends at ipoinpc(l1)
(last character). Notice that ipoinpc(0)=0. This structure uniquely specifies in
what order field inpc must be read. This is also illustrated in Figure 167
If you want to add keywords in the above list you have to
• update the data statement for the field nameref in the FORTRAN sub-
routines keystart.f and writeinput.f
• update the data statement for the field namelen in the FORTRAN sub-
routine keystart.f. It contains the number of characters in each keyword.
• look for the block running
else if(strcmp1(&buff[0],"*ORIENTATION")==0){
FORTRAN(keystart,(&ifreeinp,ipoinp,inp,"ORIENTATION",
nline,&ikey));
}
in file readinput.c, copy the block and replace ORIENTATION by the new
keyword.
• insert the new keyword in the comment list at the beginning of subroutine
keystart.f
• update this section of the documentation, i.e. insert the new keyword in
the list above and change the value for nentries;
10.1.3 allocate
In the subroutine allocation.f the input is read to determine upper bounds for the
fields in the program. These upper bounds are printed so that the user can verify
them. These upper bounds are used in the subsequent allocation statements in
ccx 2.22.c. This procedure might seem slightly awkward, however, since the
subroutines reading the input later on are in FORTRAN77, a reallocation is
not possible at that stage. Therefore, upper bounds must have been defined.
It is important to know where fields are allocated, reallocated and deallo-
cated. Most (re-, de-) allocation is done in ccx 2.22.c. Table (19) gives an
overview where the allocation (A), reallocation (R) and deallocation (D) is done
in file ccx 2.22.c. A fundamental mark in this file is the call of subroutine cal-
input, where the input data is interpreted. A couple of examples: field kon
contains the topology of the elements and is allocated with size nkon, which
is an upper bound estimate, before all steps. After reading the input up to
and including the first step in subroutine calinput the field is reallocated with
the correct size, since at that point all elements are read and the exact size is
known. This size cannot change in subsequent steps since it is not allowed to
define new elements within steps. The field xforc is allocated with the upper
bound estimate nforc before entering subroutine calinput. After reading the
input up to and including the first step its size is reallocated with the true size
nforc. Before entering calinput to read the second step (or any subsequent step)
xforc is reallocated with size nforc , since new forces can be defined in step two
(and in any subsequent step). After reading step two, the field is reallocated
with the momentary value of nforc, and so on. All field which can change due
to step information must be reallocated in each step.
664
Table 19: Allocation table for file ccx 2.22.c.
10 PROGRAM STRUCTURE.
ndirbounold irstrt(1) < 0: A A R/R nboun
xbounold irstrt(1) < 0: A A R/R nboun
ipompc A R R nmpc
labmpc A R R 20*nmpc+1
ikmpc A R R nmpc
ilmpc A R R nmpc
fmpc A R R nmpc
nodempc A 3*memmpc
coefmpc A memmpc
10.1 Allocation of the fields
Table 19: (continued)
665
666
Table 19: (continued)
set A R 81*nset
istartset A R nset
iendset A R nset
ialset A R nalset
elcon A R (ncmat +1)*
*ntmat *nmat
nelcon A R 2*nmat
rhcon A R 2*ntmat *nmat
nrhcon A R nmat
shcon A R 4*ntmat *nmat
nshcon A R nmat
cocon A R 7*ntmat *nmat
ncocon A R 2*nmat
alcon A R 7*ntmat *nmat
nalcon A R 2*nmat
alzero A R nmat
10 PROGRAM STRUCTURE.
dacon ndamp>0: A ndamp>0: R nmat
xmodal A 11+nevdamp
plicon npmat >0: A npmat > 0: R (2*npmat +1)*
*ntmat *nmat
nplicon npmat >0: A npmat > 0: R (ntmat +1)*nmat
667
668
Table 19: (continued)
10 PROGRAM STRUCTURE.
thicke A R mi[2]*nkon
offset A R network>0: R 2*ne
iponoel A R infree[3]
inoel A R 3*(infree[2]-1)
rig A R infree[3]
ne2boun A R 2*infree[3]
ics ncs > 0 or ncs >0: R ncs
npt > 0: A else npt >0: D
dcs ncs > 0 or ncs >0 or -
npt > 0: A npt >0: D
cs ntie > 0: A irstrt(1)<0 and mcs > 0: R 17*mcs
mcs>ntie : R else: D
10.1 Allocation of the fields
Table 19: (continued)
669
670 10 PROGRAM STRUCTURE.
10.1.4 restart
If a *RESTART,WRITE card is present in the input deck a restart file is written
(extension .rout) in subroutine restartwrite.f (called from ccx 2.22.c).
If a *RESTART,READ card is detected a restart file (extension .rin) is read
in the following subroutines, all of them called by ccx 2.22.c:
10.2.1 SPC’s
The first one is the cataloguing algorithm for SPC’s (single point constraints,
*BOUNDARY). Let’s say a boundary condition m is defined for node i in di-
rection j ∗ . According to the input deck rules j ∗ can take the following values:
• For structures:
– 0 or 11: temperature
– 1..3: translational dofs
– 4..6: rotational dofs
• For networks:
10.2 Reading the step input data 671
• j ∗ = 8 is mapped onto j = 4
• j ∗ = 11 is mapped onto j = 0 (11 was kept out of compatibility with
Abaqus).
Since static pressure is only used for fluids, rotations only for structures,
and the electric potential only for electromagnetic calculations the triple use
of dof 4 is no problem: it is not possible that a pressure and a rotation is
applied in the same node. The same applies to the other degrees of freedom.
For instance,j=2 can be a displacement (in global y-direction) in a structural
node, a total pressure in a network node or a velocity (in global y-direction) in
a CFD-calculation.
Then, a degree of freedom idof = 8 ∗ (i − 1) + j is assigned to this boundary
condition. Subsequently, it is stored at location k in the one-dimensional field
ikboun, where all previous boundary degrees of freedom are stored in numerical
order such that ikboun(k − 1) < idof < ikboun(k + 1). Furthermore the number
of the boundary condition (m) is stored in ilboun: ilboun(k)=m, and the node of
the boundary condition, its direction and value are stored in the one-dimensional
fields nodeboun, ndirboun and xboun: nodeboun(m) = i, ndirboun(m) = j and
xboun(m) = value. If an amplitude definition applies to the boundary condition,
its number n is stored in the one-dimensional field iamboun: iamboun(m) = n.
The SPC type is stored in the one-dimensional field typeboun. SPC’s can be
of different types, depending on whether the were defined by a genuin *BOUND-
ARY CARD, or introduced for other reasons. The field typeboun is a one-
dimensional character*1 field. Other reasons to introduce SPC’s are:
• P = PLANE MPC
• S = STRAIGHT MPC
• U = USER MPC
*BOUNDARY
8,1,1,0.
10,1,2,0.
7,3,3,-1.
and nboun=4.
Finally, the following one-dimensional fields are also used:
• nodebounold: contains the node numbers of the SPC’s at the end of the
last step
• ndirbounold: contains the directions of the SPC’s at the end of the last
step
• xbounold: contains the values of the SPC’s at the end of the last step, or,
if this is the first step, zero values.
10.2 Reading the step input data 673
• xbounact: contains the values of the SPC’s at the end of the present
increment, or, for linear calculations, at the end of the present step. The
field xbounact is derived from the fields xbounold and xboun by use of the
present time and/or amplitude information. How this is done depends on
the procedure and is explained later on.
• xbounini: contains the values of the SPC’s at the end of the last increment,
or, if this is the first increment in the first step, zero’s. This field is used
for nonlinear calculations only.
Notice that among the boundary conditions SPC’s are somewhat special.
They are sometimes called geometric boundary conditions to distinguish them
from the natural boundary conditions such as the application of a concentrated
or distributed load. To remove a natural boundary condition, just set it to zero.
This is not true for geometric boundary conditions: by setting a SPC to zero, the
corresponding node is fixed in space which usually does not correspond to what
one understands by removing the SPC, i.e. free unconstrained motion of the
node. Therefore, to remove a SPC the option OP=NEW must be specified on
the *BOUNDARY keyword card. This removes ALL SPC constraints. Then,
the constraints which the user does not wish to remove must be redefined.
Depending on the procedure (*STATIC, *DYNAMIC...), the change of SPC’s
is applied in a linear way. This means that the old SPC information must be
kept to establish this linear change. That’s why the fields nodebounold and
ndirbounold are introduced. The relationship between the old and new SPC’s
is established in subroutine spcmatch, called from ccx 2.22.c.
The variable n can be an arbitrary integer, i.e. the linear equation can
contain arbitrarily many terms. To store these equations (also called MPC’s)
the one-dimensional field ipompc and the two-dimensional field nodempc, which
contains three columns, are used. For MPC i, row i in field ipompc contains
the row in field nodempc where the definition of MPC i starts: if ipompc(i) = j
then the degree of freedom of the first term of the MPC corresponds to direction
nodempc(j, 2) in node nodempc(j, 1). The coefficient of this term is stored in
coef mpc(j). The value of nodempc(j, 3) is the row in field nodempc with the
information of the next term in the MPC. This continues until nodempc(k, 3) =
0 which means that the term in row k of field nodempc is the last term of MPC
i.
For example, consider the following MPC:
row i j1
row j1
10 1 j2 5.
row j2
147 1 j3 3.
row j3
58 3 0 4.5
where u1 (10) stands for the displacement in global x-direction of node num-
ber 10, similar for the other terms. Assume this MPC is equation number i.
Then, the storage of this equation could look like in Figure 168.
The first term in a MPC is special in that it is considered to be the dependent
term. In the finite element calculations the degree of freedom corresponding to
such a dependent term is written as a function of the other terms and is removed
from the system of equations. Therefore, no other constraint can be applied to
the DOF of a dependent term. The DOF’s of the dependent terms of MPC’s are
catalogued in a similar way as those corresponding to SPC’s. To this end, a one-
dimensional field ikmpc is used containing the dependent degrees of freedom in
numerical order, and a one-dimensional field ilmpc containing the corresponding
MPC number. The meaning of these fields is completely analogous to ikboun
and ilboun and the reader is referred to the previous section for details.
In addition, MPC’s are labeled. The label of MPC i is stored in labmpc(i).
This is a one-dimensional field consisting of character words of length 20 (in
FORTRAN: character*20). The label is used to characterize the kind of MPC.
Right now, the following kinds are used:
The MEANROT, PLANE and STRAIGHT MPC’s are selected by the *MPC
keyword card, a RIGID MPC is triggered by the *RIGID BODY keyword card,
and a CYCLIC MPC by the *CYCLIC SYMMETRY MODEL card. A SUB-
CYCLIC MPC is not triggered explicitly by the user, it is determined internally
in the program.
Notice that non-homogeneous MPC’s can be reduced to homogeneous ones
by introducing a new degree of freedom (introduce a new fictitious node) and
assigning the inhomogeneous term to it by means of a SPC. Nonlinear MPC’s
can be transformed in linear MPC’s by linearizing them [24]. In CalculiX this
is currently done for PLANE MPC’s, STRAIGHT MPC’s, USER MPC’s and
RIGID BODY definitions. Notice that SPC’s in local coordinates reduce to
linear MPC’s.
Finally, there is the variable icascade. It is meant to check whether the
MPC’s changed since the last iteration. This can occur if nonlinear MPC’s
apply (e.g. a coefficient is at times zero and at other times not zero) or under
contact conditions. This is not covered yet. Up to now, icascade is assumed to
take the value zero, i.e. the MPC’s are not supposed to change from iteration
to iteration. (to be continued)
It does not apply to gravity and centrifugal loads. These are treated sepa-
rately.
The two-dimensional integer field nelemload contains two columns and as
many rows as there are distributed loads. Its first column contains the element
number the load applies to. Its second column is only used for forced convection
in which case it contains the fluid node number the element exchanges heat
with. The load label is stored in the one-dimensional field sideload (maximum 20
characters per label). The two-dimensional field xload contains two columns and
again as many rows as there are distributed loads. For *DFLUX and *DLOAD
the first column contains the nominal loading value, the second column is not
used. For *FILM and *RADIATE loads the first column contains the nominal
film coefficient and the emissivity, respectively, and the second column contains
the sink temperature. For forced convection, cavity radiation and non uniform
loads some of the above variables are calculated during the program execution
and the predefined values in the input deck are not used. The nominal loading
values can be changed by defining an amplitude. The number of the amplitude
(in the order of the input deck) is stored in the one-dimensional field iamload.
Based on the actual time the actual load is calculated from the nominal value
and the amplitude, if any. It is stored in the one-dimensional field xloadact.
In the subroutine calinput.f, the distributed loads are ordered according to
the element number they apply to. Accordingly, the first load definition in the
input deck does not necessarily correspond to the first row in fields nelemload,
xload, iamload, xloadact and sideload.
As an example, assume the following distributed loads:
*DLOAD
10,P3,8.3
*FILM
6,F4,273.,10.
12,F4FC,20,5.
F4 0
sideload = P3 , iamload = 0 . (915)
F 4F C 0
The two-dimensional integer field ibody contains three columns and as many
rows as there are body loads. Its first column contains a code identifying the
kind of load:
• 1 = centrifugal load
• 3 = generalized gravity
the element number or element set name they apply to. An element number is
interpreted as a character.
As an example, assume the following body loads:
*DLOAD
Eall,CENTRIF,1.E8,0.,0.,0.,1.,0.,0.
8,GRAV,9810.,0.,0.,-1.
E1,NEWTON
• coeffc(0,i): node and global degree of freedom (dof) to which this con-
straint applies in the form 10*(node-1)+dof
• coeffc(1,i): force in that node and direction for a unit force in local x-
direction in the reference node
10.2 Reading the step input data 679
• coeffc(2,i): force in that node and direction for a unit force in local y-
direction in the reference node
• coeffc(3,i): force in that node and direction for a unit force in local z-
direction in the reference node
• coeffc(4,i): force in that node and direction for a unit moment about the
local x-direction in the reference node
• coeffc(5,i): force in that node and direction for a unit moment about the
local y-direction in the reference node
• coeffc(6,i): force in that node and direction for a unit moment about the
local z-direction in the reference node
• 1: the first force constraint in field coeffc for this distributing coupling
+0.5
10.2.7 Sets
A set is used to group nodes or elements. In the future, it will also be used
to define surface based on nodes and surfaces based on element faces. A set i
is characterized by its name set(i) and two pointers istartset(i) and iendset(i)
pointing to entries in the one-dimensional field ialset. The name set(i) consists of
at most 81 characters, the first eighty of which can be defined by the user. After
the last user-defined character the character ’N’ is appended for a node set and
’E’ for an element set. For surfaces, which are internally treated as sets, these
characters are ’S’ for nodal surfaces and ’T’ for element facial surfaces. The
extra character allows the user to choose identical names for node and elements
sets and/or surfaces. The nodes or elements a set consists of are stored in field
ialset between row istartset(i) and row iendset(i). If the parameter GENERATE
was not used in the set definition, the entries in ialset are simply the node or
element numbers. If GENERATE is used, e.g.
*NSET,NSET=N1,GENERATE
20,24
the start number, the end number and increment preceded by a minus sign
are stored, in that order. Accordingly, for the above example: 20,24,-1. Conse-
quently, a negative number in field ialset always points to an increment to be
used between the two preceding entries. For example, if the only two sets are
defined by:
*NSET,NSET=N1,GENERATE
20,24
*NSET,NSET=N1
383,402,883
*ELSET,ELSET=N1,GENERATE
3,8
20
24
−1
383
N 1N 1 6
set = , istartset = , iendset = , ialset = 402 . (918)
N 1E 7 9
883
3
8
−1
• -1: Arruda-Boyce
• -2: Mooney-Rivlin
• -3: Neo-Hooke
• -4: Ogden (N=1)
• -5: Ogden (N=2)
• -6: Ogden (N=3)
• -7: Polynomial (N=1)
• -8: Polynomial (N=2)
682 10 PROGRAM STRUCTURE.
*MATERIAL,NAME=EL
*ELASTIC
210000.,.3,293.
200000.,.29,393.
180000.,.27,493.
293. 393. 493.
nelcon = 2 3 , elcon(∗, ∗, 1) = 210000. 200000. 180000 , (919)
.3 .29 .27
10.3 Expansion of the one-dimensional and two-dimensional elements 683
row i j1
row j1
elem k1 node l1 row j2
row j2
elem k2 node l2 row j3
row j3
elem k3 node l3 0
Figure 169: Structures to store all elements to which a given node belongs
which the node belongs to. Therefore, to store the expansions and the normals
a structure is used similar to the field kon to store the topology of the elements.
The field kon is a one-dimensional field containing the topology of all ele-
ments, one after the other. The entry ipkon(i) points to the location in field
kon just before the start of the topology of element i, i.e. the first node of
element i is located at position ipkon(i)+1 in field kon, the last node at position
ipkon(i)+numnod, where numnod is the number of nodes of the element, e.g.
20 for a 20-node element. Thus, local position m of element j corresponds to
global node number kon(ipkon(j)+m). Now, a similar structure is used for the
normals and nodes of the expansions since these variables are linked to a local
position within an element rather than to a global node number. To this end
the two-dimensional field iponor and one-dimensional fields xnor and knor are
used.
The entry iponor(1,ipkon(j)+m) points to the location of the normal at local
position m of element j within field xnor, i.e. the three components of the normal
are stored in xnor(iponor(1,ipkon(j)+m)+1), xnor(iponor(1,ipkon(j)+m)+2) and
xnor(iponor(1,ipkon(j)+m)+3). In the same way the entry iponor(2,ipkon(j)+m)
points to the location of the new nodes of the expansion at local position m of
element j within field knor, i.e. the three new node numbers are stored at
knor(iponor(2,ipkon(j)+m)+n), n=1,2,3. The order of the node numbers is
illustrated in Figure 69. This applies to the expansion of two-dimensional el-
ements. For the expansion of beam elements xnor contains six entries: three
entries for unit vector 1 and three entries for unit vector 2 (Figure 73), i.e.
xnor(iponor(1,ipkon(j)+m)+1),...,xnor(iponor(1,ipkon(j)+m)+6). Since the ex-
pansion of a beam element leads to 8 extra nodes (Figure 74) 8 entries are pro-
vided in field knor. The field xnor is initialized with the values from keyword
card *NORMAL.
The procedure runs as follows: for a node i all 2D elements to which the node
belongs are determined. Then, the normals on these elements are determined
using the procedure explained in Section 6.2.14 starting with the normals prede-
fined by a *NORMAL keyword card. Notice that extra normals are also defined
at thickness discontinuities, offset discontinuities or element type changes (e.g.
a plane stress element adjacent to a shell element). Therefore, this step is more
about how many different expansions are needed rather than different normals:
if, for instance the thickness of a flat plate changes discontinuously, two different
expansions are needed at the discontinuity nodes although the normal does not
change. Next, all beam elements to which node i belongs are determined and
normals are determined in a similar way. For each normal appropriate nodes
are generate for the expansion (three for 2D elements, eight for 1D elements).
If overall only one normal suffices, no knot exists and no rigid body needs to
be defined, unless the rotational degrees of freedom in the node are constrained
or moments applied. If more than one normal ensues or the rotational degrees
of freedom are addressed by the user in any way, a rigid body is generated. In
a rigid body definition all expansion nodes of shells and beam participate, for
plane stress, plane strain or axisymmetric elements only the midside nodes take
part.
686 10 PROGRAM STRUCTURE.
Caution is due to the fact that the entries in the fields kon and iponor do not
correspond to the same nodes any more after leaving gen3delem.f. This is be-
cause the original element topology of the elements is shifted in field kon to allow
the storage of the expanded topology. For instance, suppose that element i is a
S8 element. Upon entering gen3delem.f the topology of this element is stored in
entries (kon(ipkon(i)+j,j=1,8) and soon afterwards the pointers to the expanded
nodes and normals are stored in (ipkon(ipkon(i)+j,j=1,8). However, upon leav-
ing gen3delem.f the original topology is shifted to (kon(ipkon(i)+20+j,j=1,8) (a
S8 element is expanded into a 20-node element) and the expanded topology is
stored in (kon(ipkon(i)+j),j=1,20). Field iponor, however, is not changed.
1 2
4
3
Figure 170: Beam element connection
and axisymmetric elements the displacement in z for the zero-z nodes is zero.
u1 + u2 + u3 + u4 − 4u0 = 0 (920)
where u stands for any displacement component (or temperature compo-
nent for heat transfer calculations), i.e. the above equation actually represents
3 equations for mechanical problems, 1 for heat transfer problems and 4 for
thermomechanical problems. Notice that only edge nodes of the beam element
are used, therefore it can also be applied to midside nodes of beam elements. It
expresses that the displacement in the 3D node is the mean of the displacement
in the expanded edge nodes.
For 2D shell elements the connection is expressed by equation (see Figure
171 for the node numbers)
u1 + u2 − 2u0 = 0. (921)
The same remarks apply as for the beam element.
Finally, for plane strain, plane stress and axisymmetric elements the connec-
tion is made according to Figure 172 and equation:
u1 − u0 = 0. (922)
688 10 PROGRAM STRUCTURE.
2
Figure 171: Shell element connection
0 1
15 7
8 2
3
16 14
6 6
13
5
ξ =−I 3 ξ l =1
2 6
l 20 ζ =1 19 5
7
η =−2
η =II I
l
ηl =II
II III
III ξ II
17 5 I
18
7
11 3
4
1
4
12
10
8 8
1
2
4
1 9
The stresses in the expanded element are at first determined in the inte-
gration points (e.g. the Gauss-Kronrod points, cf. Figure 76). Then, they are
expanded to the nodes of the element. Consequently, the stresses are available
at all 20 nodes of the element in Figure 173. In order to obtain the section force
the following local coordinate systems are introduced:
• The local element ξ − η − ζ-system. ξ is along the axis of the beam (from
the first node of the element to the last node), ζ is along the user-defined
1-direction of the beam, η corresponds to the minus 2-direction. The 2-
direction is defined such that ξ-1-2 corresponds to a positive axis system.
• On the positive face of the beam element (the face corresponding to the
last end node of the beam definition, i.e. ξ = 1) the positive direction
for the section forces, which is denoted by I, II and III in Figure 173
corresponds to the element 1-direction, 2-direction and ξ.
• On the negative face of the beam element the positive direction for the
section forces, denoted by I, II and III points in the other direction of the
corresponding axes on the positive face (action=reaction).
• The local node numbering within the negative face is also labeled by 1
to 8 in small circles and corresponds to a local coordinate system ξl , ηl =
-I,II = ζ, η.
The system I-II-III in the faces denotes the positive direction of the section
forces. The location of the integration points in the corresponding ξl , ηl system
is obtained from the local element coordinate system ξ −η −ζ through the above
face-dependent relationships.
In order to get the section forces the stresses are calculated in the integration
points of the positive and negative face by interpolation from the stresses at the
nodes belonging to the respective face. The integration point scheme depends
on the beam section.
10.4 Contact
10.4.1 Penalty contact
Contact is triggered by the keyword card *CONTACT PAIR. It defines an in-
teraction between a nodal or element face slave surface and a element face
master surface. The master surface is triangulated using standard triangulation
schemes for the different kind of faces (3-node, 4-node, 6-node or 8-node). This
is done in subroutines allocont.f, triangucont.f and trianeighbor.f. This trian-
gulation is a topological one and does not depend on the concrete coordinates.
It is performed at the start of nonlingeo.c. The resulting triangles are stored in
692 10 PROGRAM STRUCTURE.
ipe(*) ime(4,*)
x 31 5 3 y
node 20 x
y 50 5 2
6
31
▲ 14
▲5
20
50
▲5 20 31 50 1034
tie1 ▲5 ▲ 14
▲14 50 31 6
itietri(2,1) ▲ 14 ▲5
straight(16,*) cg(3,*)
▲5 ▲5 cg x cg y cgz
▲14 ▲14
field koncont (Figure 174): for triangle i the locations koncont(1..3,i) contain the
nodes belonging to the triangle, koncont(4,i) contains the element face to which
the triangle belongs. The element face is characterized by a code consisting of
10*(element number)+face number. So the code for face 4 of element 33 is 334.
The triangles are stored in the order of the contact tie constraints they belong
to. For tie constraint i the location of the first triangle in field koncont is given
by itietri(1,i), the location of the last one by itietri(2,i).
The triangulation of the master surfaces allows for fast algorithms to deter-
mine the master face opposite of a given slave node. To facilitate this search, a
field imastop is created: imastop(i,j) yields for triangle j the triangle opposite of
node koncont(i,j). This is the neighboring triangle containing the edge to which
node koncont(i,j) does not belong. This adjacency information is needed to ap-
ply the search algorithms in Section 1.7 of [31]. To facilitate the construction
of imastop (done in subroutine trianeighbor.f), the edges of the triangulation
are catalogued by use of two auxiliary fields ipe(*) and ime(4,*). An edge is
characterized by two nodes i and j, suppose i < j. Then, if no other edge was
encountered so far for which i was the lowest node, the present edge is stored in
ime(1..4,ipe(i)), where ime(1,ipe(i)) contains j, ime(2,ipe(i)) contains one of the
triangles to which the edge belongs, e.g. t1, ime(3,ipe(i)) contains the local po-
sition in koncont(1..3,t1) of the node belonging to t1 but not on the edge i-j and
ime(4,ipe(i)) is a pointer to ime(1..4,ime(4,ipe(i))) containing any other edge
for which i is the lowest node number, else it is zero. ’For node-to-face penalty
contact these auxiliary fields are deleted upon leaving trianeighbor. For face-
to-face penalty contact they are further used in slavintpoints.f and for mortar
contact in slavintmortar.f.
For further calculations both the slave nodes and the slave surfaces have to
be catalogued. In case the slave surface is defined by nodes, the corresponding
faces have to be found. To this end, all external faces of the structure are cat-
alogued by fields ipoface and nodface in subroutine findsurface.f (Figure 175).
Assuming face f1 to contain corner nodes i < j < k < l, f1 is stored in nod-
face(1..5,ipoface(i)). The entries 1..5 contain: node j, node k, node l, a face
label in the form 10*element number + local face number and a pointer to any
other face for which i is the lowest node.
The slave nodes are stored in field islavnode(*) (Figure 176), tie per tie
and sorted in increasing order for each tie separately. nslavnode(i) contains the
position in islavnode before the first slave node of tie i. If ntie is the number
of ties, nslavnode contains ntie+1 entries, in order to mark the end of the field
islavnode as well. The total number of slave nodes is denoted by nslavs. For
face-to-face contact the field clearslavnode contains the difference between the
clearance specified by the user with the keyword card *CLEARANCE and the
clearance calculated based on the actual coordinates. This field is zero in the
absence of the *CLEARANCE card. The field clearini contains the clearance
for each node belonging to the slave face at stake. This information is copied
from field clearslavnode.
The slave faces are stored in islavsurf(1..2,*) (Figure 177 and Figure 178).
islavsurf(1,*) contains the slave faces, tie per tie (not in any way sorted),
694 10 PROGRAM STRUCTURE.
ipoface(*) nodface(5,*)
Figure 175: Storage of all faces for the determination of the external faces
10.4 Contact 695
islavnode(*)
clearslavnode(3,*) springarea(2,*)
(only face−to−face) (only node−to−face)
nslavnode(1)
area overlap
sorted
tie 1
nslavnode(2)
tie 2 sorted
tie ntie
sorted
nslavnode(ntie+1)
nslavs=nslavnode(ntie+1)
islavsurf(2,*) areaslav(*)
itiefac(1,1) face 1
face 2
not
tie 1 relevant
itiefac(2,1)
itiefac(1,2)
tie 2
itiefac(2,2)
tie ntie
itiefac(2,ntie)
=ifacecount
ifaceount+1
tie 1
itiefac(2,1)
itiefac(1,2)
ξs ηs ws ξ m η m master nx ny nz
tie 2 face
integration
points in
slave face 2
itiefac(2,2)
ξs ηs ws ξ m ηm master
face nx n y nz
tie ntie
nintpoint
itiefac(2,ntie)
=ifacecount
ifacecount+1 nintpoint
# pointer weight
node i
weight
0 weight
Figure 179: Storage of the slave faces belonging to a given slave node
position within field islavsurf(1,*) of a face to which node i belongs and an entry
inoels(2,iponoels(i)) pointing to any other faces to which node i belongs. Field
xnoels contains the weight of the node within the face. This information is
gathered in subroutine inicont.c.
The master nodes are catalogued in field imastnode in the sane way that
the slave nodes are stored in islavnode (Figure 180). The master nodes are
stored tie per tie, within each tie they are sorted in ascending order. For tie i
nmastnode(i) points towards the location in imastnode immediately before the
master node with the smallest number within tie i, nmastnode(i) points towards
the master node within tie i with the largest number. The size of imastnode is
nmastnode(ntie+1), where ntie is the number of ties. In each iteration and/or
increment the topological information of each master triangle is complemented
by geometrical information consisting of the center of gravity (in field cg) and the
equations of the triangle plane and the planes quasi-perpendicular to the triangle
and containing its edges. For triangle i the coordinates of the center of gravity
are stored in cg(1..3,i). The coefficients of the equation of the plane orthogonal
to the triangle and containing the first edge are stored in straight(1..4,i). The
first edge is defined as the edge through nodes koncont(1,i) and koncont(2,i).
Similar for edge 2 (straight(5..8,i)) and edge 3 (straight(9..12,i)). The coeffi-
cients of the triangle plane are stored in straight(13..16,i). The geometrical
information is calculated in routine updatecontpen.f. The planes bordering the
triangles are quasi-orthogonal to the triangle in the sense that they are in-
between the truly orthogonal planes and the planes through the triangle edges
and orthogonal to the neighboring triangles. To this end the mean normals are
stored in field xmastnor(3,*) (Figure 180).
Further geometrical information is the area of each slave face i, stored in
areaslav(i), the area corresponding to slave node i, stored in springarea(1,i) and
the penetration at the start of each step in slave node i (< 0 if any penetration
, else 0), stored in springarea(2,i). These calculations are performed each time
gencontelem n2f.f or gencontelem f2f.f is called.
Subsequently, contact spring elements are generated (routine gencontelem.f).
To this end, each node belonging to the dependent contact slave surface is
treated separately. To determine the master surface the node interacts with,
a triangle belonging to the triangulation of the corresponding master surface
are identified, such that its center of gravity is closest to the dependent node.
Then, a triangle is identified by adjacency, such that the orthogonal projection
of the slave node is contained in this triangle. If such a triangle is found, a
contact spring element is generated consisting of the dependent node and the
independent surface the triangle belongs to, provided the node penetrates the
structure or the clearance does not exceed a given margin. Before checking the
penetration or clearance an adjustment of the geometry is performed in case
the user has activated the ADJUST parameter. If any of these conditions is not
satisfied, no contact spring element is generated for this dependent node and the
next node is treated. The sole purpose of the triangulation of the master surface
is the fast identification of the independent face a dependent node interacts with.
The stiffness matrix of the contact spring elements is calculated in springs-
700 10 PROGRAM STRUCTURE.
imastnode(*) xmastnor(3,*)
nmastnode(1)
nx ny nz
sorted
tie 1
nmastnode(2)
tie 2 sorted
tie ntie
sorted
nmastnode(ntie+1)
tiff.f, called by mafillsm.f. In order to determine the stiffness matrix the local
coordinates of the projection of the dependent node onto the independent sur-
face are needed. This is performed in attach.f. Use is made of a cascaded regular
grid to determine the location within the independent surface which is closest to
the dependent node. The local coordinates are needed to determine the shape
functions and their derivatives. The contact force is determined in springforc.f,
called by results.f. Here too, routine attach.f is called.
Since the geometrical information is recalculated in every iteration, large de-
formations are taken into account, unless the user has specified SMALL SLID-
ING in which case the geometry update takes place once at the start of each
new increment.
The material properties of the contact spring, defined by means of the
*SURFACE INTERACTION, the *SURFACE BEHAVIOR and the *FRIC-
TION card, are stored in the same fields as the *MATERIAL and *ELAS-
TIC,TYPE=ISOTROPIC card.
The general structure of the contact algorithms for nonlinear geometric cal-
culations is as follows. The contact topology is determined in inicont.c. This
routine is called once at the start of a new step and calls the following routines:
• tiefaccont: determinnig the field islavsurf and itieface (slave nodes), islavn-
ode and nslavnode (slave faces), iponoels, xnoels and inoels (only for node-
to-face contact) and imastnode and nmastnode (master nodes).
For face-to-face penalty contact the routine precontact.c is called at the start
of each new increment. Its purpose is:
• to determine the location of the integration points in the slave faces based
on the matching of the slave and the master faces (slavintpoints.f).
702 10 PROGRAM STRUCTURE.
field kon
ipkon(i)
Master nodes
Slave node
ipkon(i)
nope number of nodes in spring element
(sum of master and slave nodes)
Master nodes
Slave nodes
• 7-9: the relative tangential displacement between slave and master surface
• to generate contact spring elements at those slave nodes for which the
clearance does not exceed a predefined value c0 (gencontelem n2f.f). Ad-
ditionally, gencontelem 2nf performs the calculation of:
of nodes (slave+master), the master nodes, the slave nodes, the address of the
integration point in pslavsurf and the address of the slave face in islavsurf.
Contact properties (*SURFACE BEHAVIOR, *FRICTION, *CONTACT
DAMPING, *GAP HEAT GENERATION) are preceded by a *SURFACE IN-
TERACTION card and are internally treated as material properties, i.e. the
*SURFACE INTERACTION card is treated in the same way as a *MATE-
RIAL card. All data are stored in the elastic field elcon, except for the tabular
pressure-overclosure data, which are stored in the isotropic hardening field pli-
con, and the gap conductance data, which are stored in the kinematic hardening
field plkcon. The contact properties in elcon are stored in the order of Table 20
for exponential, linear, tabular and tied pressure-overclosure behavior.
The following remarks are due:
• “entry” is the index inside elcon. For instance, for linear pressure-overclosure
behavior elcon(2,1,i)=K, where “1” is the temperature label (no tempera-
ture dependence for this constant) and “i” is the internal material number.
• the third line in the table is the number of the method, i.e. exponential
pressure-overclosure = 1 etc. These numbers are stored as reals by adding
0.5.
706 10 PROGRAM STRUCTURE.
√
• c0 = c0coef slave area, where c0 > 0 is the clearance below which a con-
tact spring element is generated. For tabular pressure-overclosure behav-
ior the value of c0coef is fixed. c0 is only used in this form for node-to-face
contact. For face-to-face contact c0 = 0.
• the slave and master nodes degrees of freedom. They are stored in a similar
way in fields ktot and ltot. The size of these fields is neqtot:=3*nslavs+3*nmasts.
Furthermore, in the same routine the friction coefficient in each slave node
is stored in field fric(1...nslavs).
Then, the matrices in between the big brackets in Equation (362) are calcu-
lated. They consist of a linear combination of the mass and damping matrix, or,
since Rayleigh damping is assumed, a linear combination of the mass and stiff-
ness matrix. Subsequently, these matrices are reduced to the internal degrees of
freedom only (recall that [Mii ] and [Dii ] is used in Equation (362)) in subrou-
tine reducematrix.f. Finally, the matrix corresponding to the left hand side is
factorized. It will be repeatedly used for solving the system in each increment.
Now, the increment loop can start. The following actions are performed:
10.4 Contact 707
• Solve the equation system corresponding to Equation (362). Since the left
hand side is stored in fields adb and aub this is covered by the regular
penalty dynamic calculations and does not require special treatment.
• Use routines resultsini.c and iniparll.c to calculate {Ui }k+1 and {Ub }k .
Notice that distname and ornam may be identical. The only way in which
to detect that orname(i) points to an orientation and not just a distribution is
by checking orab(7,i). If this is zero it is a distribution, else it is an orientation.
As soon as a *SOLID SECTION card is encountered pointing to an orien-
tation (e.g. OR) the following steps are undertaken:
• In a loop over all orientations i the first occurrence of the orientation name
on the *SOLID SECTION card (i.e. OR) is checked for. This orientation
is the default one (if the *ORIENTATION was defined by a distribution
it corresponds to the first line underneath a *DISTRIBUTION card).
• For all elements k belonging to the element set on the *SOLID SECTION
card: if m=ielorien(1,k) is negative AND orname(-m)=OR AND orab(7,-
m) is nonzero then ielorien(1,k) is set to -m. Else it is set to the default
orientation.
710 10 PROGRAM STRUCTURE.
• a SPC j in the same node and in the same direction was also active in the
previous step; this SPC is identified and the corresponding value, which
was stored in position j of field xbounold before calling spcmatch, is now
stored in position i of field xbounold.
However, the expansion is not done if any of the MPC’s which depend on
each other is nonlinear. For nonlinear MPC’s the coefficients of the MPC are
not really known at the stage in which cascade.c is called. Indeed, in most
cases the coefficients depend on the solution, which is not known yet: an itera-
tive procedure results. Therefore, in a nonlinear MPC terms can vanish during
the solution procedure (zero coefficients) thereby changing the dependencies be-
tween the MPC’s. Thus, the dependencies must be determined in each iteration
anew and subroutine cascade.c is called from within the iterative procedure in
subroutine nonlingeo.c. This will be discussed later.
In cascade.c there are two procedures to de-cascade the MPC’s. The first one
(which is the only one productive right now) is heuristic and iteratively expands
the MPC’s until no dependencies are left. This procedure worked very well thus
far, but lacks a theoretical convergence proof. The second procedure, which is
assured to work, is based on linear equation solving and uses SPOOLES. The
dependent terms are collected on the left hand side, the independent ones on the
right hand side and the sets of equations resulting from setting one independent
term to 1 and the others to 0 are subsequently solved: the system of equations
A Ud = B Ui (926)
is solved to yield
−1
Ud = A B Ui (927)
in which Ud are the dependent terms and Ui the independent terms.
However, in practice the MPC’s do not heavily depend on each other, and the
SPOOLES procedure has proven to be much slower than the heuristic procedure.
Then, the active degrees of freedom are numbered (positive numbers). Sub-
sequently, the structure of the matrix is determined on basis of the topology of
the elements and the multiple point constraints.
For SPOOLES, ARPACK and the iterative methods the storage scheme is
limited to the nonzero SUBdiagonal positions of the matrix only. The scheme
is as it is because of historical reasons, and I do not think there is any reason
not to use another scheme, such as a SUPERdiagonal storage. The storage is
described as follows:
• the field irow contains the row numbers of the SUBdiagonal nonzero’s,
column per column.
• jq(i) contains the location in field irow of the first SUBdiagonal nonzero
in column i
All three fields are one-dimensional, the size of irow corresponds with the
number of nonzero SUBdiagonal entries in the matrix, the size of icol and jq
is the number of active degrees of freedom. The diagonal entries of the matrix
stored separately and consequently no storage information for these items is
needed.
The thermal entries, if any, are stored after the mechanical entries, if any.
The number of mechanical entries is neq[0] (C-notation), the total number of
entries (mechanical and thermal) is neq[1]. In the same way the number of
nonzero mechanical SUBdiagonal entries is nzs[0], the total number of SUBdi-
agonal entries is nzs[1]. In thermomechanical applications the mechanical and
thermal sub-matrices are assumed to be distinct, i.e. there is no connection in
the stiffness matrix between the mechanical and the thermal degrees of freedom.
Therefore, the mechanical and thermal degrees of freedom occupy two distinct
areas in the storage field irow.
File mastructcs calculates the storage for cyclic symmetric structures. These
are characterized by the double amount of degrees of freedom, since cyclic sym-
metry results in a complex system which is reduced to a real system twice the
size. The cyclic symmetry equations are linear equations with complex coeffi-
cients and require a separate treatment. The fields used for the storage, however,
are the same.
10.7 Filling and solving the set of equations, storing the results 713
• for linear static calculations with SPOOLES or the iterative solver the
appropriate routine is prespooles.c
• for linear dynamic calculations (i.e. modal dynamic analysis) the routine
is dyna.c
• determine the required results for all degrees of freedom, starting from the
displacement solution for the active degrees of freedom. This is done in
subroutine results.f, including any storage in the .dat file.
• store the results in the .frd file. For structures not exhibiting cyclic sym-
metry this is performed in routine out.f, for cyclic symmetric structures
routine frdcyc.c is called before calling out. If an error occurred during
the matrix fill the output is reduced to the pure geometry.
The different routines in the above listing will be discussed separately, since
they are common to most types of analysis.
714 10 PROGRAM STRUCTURE.
[envtemp.f] tempload.f
[radcyc.c] [radflowload.c]
preliminary = [contact.c]
inicont.c
checktime.f nonlinmpc.f
initial acceleration [remastruct.c]
[preliminary
results.f
mafillsm.f
spooles.c or equivalent]
start of increment loop
preliminary
prediction.c
results.f
start of iteration loop
preliminary
[results.f]
mafillsm.f or rhs.f
calcresidual.c
spooles or equivalent
results.f
calcresidual.c
checkconvergence.c
end of iteration loop
[results.f
frdcyc.c or out.f]
end of increment loop
[results.f
frdcyc.c or out.f]
∗ subtract the internal from the external forces to obtain the resid-
ual forces;
∗ solving the system of equations with in spooles.c, preiter.c or
any other available sparse matrix solver. For explicit dynamic
calculations explicit calculation of the solution (no system needs
to be solved). The solution is the acceleration at the start of the
step.
• after the final increment (only if no output resulted in this final increment
due to user input control)
– determining the required results for all degrees of freedom, starting
from the displacement solution for the active degrees of freedom.
This is done in subroutine results.f, including any storage in the .dat
file.
– storing the results in the .frd file. For structures not exhibiting cyclic
symmetry this is performed in routine out.f, for cyclic symmetric
structures routine frdcyc.c is called before calling out. If an error
occurred during the matrix fill the output is reduced to the pure
geometry.
K U = ω2 M U
(928)
then the shift-invert mode requires algorithms for solving
K − σM U = X1 (929)
and for calculating
Y = M X2 (930)
where X1 and X2 are given and σ is a parameter. In CalculiX, it is set
to 1. These operations are used in an iterative procedure in order to determine
the eigenvalues and the eigenmodes. For the first operation SPOOLES is used.
SPOOLES solves a system by using a LU decomposition. This decomposition
is performed before the iteration loop initiated by ARPACK since the left hand
side of Equation (929) is always the same. Only the backwards substitution is
inside the loop. The second operation (Equation (930)) is performed in routine
op.f and is a simple matrix multiplication. Notice that this routine depends on
the storage scheme of the matrix.
For cyclic symmetric structures the following additional tasks must be per-
formed:
• Expanding the structure in case more than one segment is selected for out-
put purposes (parameter NGRAPH on the *CYCLIC SYMMETRY MODEL
keyword card). This is done before the mafillsm call.
• Calculating the results for the extra sectors based on the results for the
basis sector. This is performed after the call of routine results.f.
10.8.2 results
In subroutine results.f the dependent quantities in the finite element calculation,
such as the displacements, stress, the internal forces, the temperatures and the
heat flux, are determined from the independent quantities, i.e. the solution
vector of the equation system. There are several modes in which results.f can
be called, depending on the value of the variable iout:
• iout=0: the displacements and temperatures are calculated from the sys-
tem solution and subsequently used to calculate strains, stresses..., no
result output
• iout=1: the displacements and temperatures are calculated from the sys-
tem solution and subsequently used to calculate strains, stresses..., result
output is requested (.dat or .frd file)
results materialdata_me
mechmodel linel
rubber
defplas
incplas
umat_main umat_abaqusnl
umat_abaqus
materialdata_th umat_aniso_plas
umat_aniso_creep
thermmodel umatht umat_elastic_fiber
umat_lin_iso_el
umat_single_crystal
umat_user
Notice that the stresses and heat flux determined so far was calculated in
the integration points. In the last part of results.f these values are extrapolated
to the nodes, if requested by the user.
A distinction is being made between corner nodes and midside nodes of fluid
elements. Remember that network elements consist of two corner nodes and
one middle node (Section 6.2.37). The mass flow is not necessarily uniquely de-
termined at the corner nodes, since more than two branches can come together.
Therefore, it is logical to define the mass flow as unknown in the middle of a
network element. The same applies to the geometric parameter, if applicable.
Similarly, the total temperature or total pressure may not be known within
the element, since the exact location of discontinuities (such as enlargements
or orifices) is not necessarily known. Consequently, it is advantageous to define
the total temperature and total pressure as unknowns in the corner nodes. The
static temperature is not a basic variable. Once the total temperature, mass
flow and total pressure are known, the static temperature can be calculated. It
is a derived quantity and only useful for gases.
Similar to field nactdof for structural applications a field nactdog is intro-
duced for network applications. It can be viewed as a matrix with 4 rows and as
many columns as there are nodes in the model (including structural nodes; this
is done to avoid additional pointing work between the local gas node number
and the global node number). It indicates whether a specific degree of freedom
in a gas node is active: if the entry is nonzero (actually positive; contrary to
nactdof nactdog does not take negative values) it is active, else it is inactive
(which means that the value is known or not applicable because the node is a
structural node). The degrees of freedom correspond to the first three rows of
Table 21 and are repeated in Table 22 for clarity. Here too, only the first three
rows are relevant.
Consequently, if nactdog(2,328) is nonzero, it means that the total pressure
in node 328 is an unknown in the system. Actually, the nonzero value represents
the number of the degree of freedom attached to the total pressure in node 328.
The number of the degree of freedom corresponds with the column number in
the resulting set of equations. What nactdog is for the degrees of freedom is
nacteq for the equations. It is a field of the same size of nactdog but now a
nonzero entry indicates that a specific conservation equation applies to the node,
cf. Table 23.
If nacteq(1,8002) is nonzero, it means that the conservation of mass equa-
tion has to be formulated for node 8002. The nonzero value is actually the
row number of this equation in the set of equations. If the value is zero, the
10.9 Aerodynamic and hydraulic networks 725
equation does not apply, e.g. because the mass flow in all adjacent elements
is known. The last row in field nacteq (at least for corner nodes) is used to
account for isothermal conditions. These only apply to gas pipes of type GAS
PIPE ISOTHERMAL and exit restrictors preceded by an isothermal gas pipe
element. An isothermal element introduces an extra equation specifying that
the static temperature in the two corner nodes of the pipe is equal. This can
be transformed into a nonlinear equation in which the total temperature in one
node (the dependent node) is written as a function of the total temperature in
the other node and the other variables (total pressure in the nodes, mass flow).
To account for this extra equation, the conservation of energy is not expressed
for the dependent node (indeed, one can argue that, in order for the static
temperatures to be equal an unknown amount of heat has to be introduced in
the dependent node). So if nacteq(3,8002)=n is nonzero it means that node
8002 is the dependent node in an isothermal relation linking the static nodal
temperature to the one of node n.
Field ineighe(i),i=1,...,ntg is used to determine the static temperature in an
end node. If it is zero, node i is a mid-node. If it is equal to -1, the node is a
chamber, for which the static temperature equals the total temperature. If it
is positive, its value is the element number of a gas pipe element or restrictor
element (but not equal to a restrictor wall orifice), for which the static tem-
perature is different from the total temperature. The mass flow of the referred
element is used to calculate the static temperature from the total temperature.
pressure may be more applicable for gas networks, this has not been im-
plemented yet).
In that way also the field nactdog is filled (with the value 1 for an unknown
variable, 0 else). Next, the nodes with known boundary values (*BOUNDARY
cards) are removed (the corresponding value in nactdog is set to zero), and the
unknown DOFs are numbered consecutively yielding the final form for nactdog.
Notice that the global number of gas node i is itg(i). Since field itg is ordered in
an ascending order, subroutine nident.f can be used to find the local gas node
number for a given global number. In the remaining text “gas node i” refers to
the local number whereas “node i” refers to a global number.
In a loop over all network elements the necessary equations are determined.
In a given corner node the conservation of mass equation is formulated if the
mass flow in at least one of the adjacent network elements is unknown. The con-
servation of energy is written if the temperature in the corner node is unknown.
Finally, conservation of momentum equation (also called element equation) is
formulated for a midside node of a network element if not all quantities in the
element equation are known. This latter check is performed in the subroutine
flux.f (for iflag=0). It contains on its own subroutines for several fluid section
types, e.g. subroutine orifice.f for the fluid section of type ORIFICE. The num-
ber of unknowns relevant for the network element depends on its section type.
After having identified all necessary equations in field nacteq they are numbered
and the number of equations is compared with the number of unknowns. They
must be equal in order to have a unique solution.
Next, multiple point constraints among network nodes are taken into ac-
count. They are defined using the *EQUATION keyword card. It is not allowed
to use network nodes and non-network nodes in one and the same equation.
Finally, dependent and independent nodes are determined for each isother-
mal element and the appropriate entries in field nacteq (third row, cf. previous
section) are defined. If at the stage of the matrix filling an corner node is a
dependent node of an isothermal element the conservation of energy equation
in that node is replaced by an equation that the static temperature in the de-
pendent and independent node are equal.
• If for some reason supercritical flow is not feasible (e.g. the critical depth
is reached somewhere along the channel), proceed downstream to the next
element and so on until there is again a supercritical solution, e.g. starting
at node A. Before going on with this supercritical solution start from
node A upstream calculating a subcritical flow until a jump occurs or the
upstream element in the channel is reached. Then, continue downstream
calculating a supercritical flow starting at node A.
mass flow. They correspond with the degrees of freedom shown in Table 24.
The critical depth is actually not an independent unknown, it is calculated as
soon as the mass flow is known.
Right now, the fluid element routines are the sluicegate (includes the weir),
the straightchannel, the reservoir and the contraction (includes the enlargement
and the step) routines. The IO elements (input/output) do not need a routine
and are not considered to be “true” elements. Field ineighe(i) gives the number
of true elements in end node i. Fields iponoel and inoel allow for the deter-
mination of ALL elements (true and IO) belonging to node i. Entry iponoel(i)
points to a first element in inoel(1,iponoel(i)), inoel(2,iponoel(i)) points to the
next element etc. up to the point where inoel(2,...)=0. The upstream, middle
and downstream node of an element nelem are called nup, nmid and ndo, re-
spectively, the upstream and downstream neighbor (assuming there is only one)
nelup and neldo. The upstream and downstream depth is hup and hdo.
There are extra routines for the calculation of:
• Look for a sluice gate or wear element one of the end nodes of which is
connected to only one “true” element (i.e. the element itself). This is the
starting point of a frontwater curve calculation
• Proceed downstream calculating a supercritical flow. Determine the next
downstream element using the actual element and its downstream node
(nelup and nup for the downstream element) and fields iponoel and inoel.
• If no supercritical flow is possible, set hup = -1 and move downstream until
supercritical flow is feasible again, e.g. at node A. Store the appropriate
information of this switching node in fields nstack and istack. Important
here is that a negative depth points to the unfeasibility of a frontwater
curve starting at that node.
• proceed from node A upstream with subcritical flow. For each element
use its number and its upstream node to determine the next upstream
element. Continue this until a jump is detected or the originating sluice
gate or weir is reached. Then, proceed downstream with the most recently
stored information on stack
• when arriving at a reservoir, check for a fall or jump in the reservoir. Else
start an upstream calculation as detailed before.
• else the discharge was given at the sluice gate. From Q, ha and hdo the
value of hup can be determined.
10.10.2 Wear
A wear can only be used upstream of a channel. It corresponds to a sluice gate
with an infinite value for ha.
For a frontwater curve:
• else if hup > 0 and Q=0, the discharge can be calculated from hup and
the knowledge that critical conditions are reached at ndo.
• else the discharge was given at the sluice gate. From Q and hdo the value
of hup can be determined.
10.10.4 Reservoir
This element is treated in subroutine reservoir.f. In forward mode the value
of hup can be negative or positive. If it is negative no frontwater curve was
calculated and a backwater curve has to be determined (hdo is set to -1). If it
is positive a backwater curve was calculated and hdo is calculated as the height
after a jump using subroutine hns.f.
The further calculation depends on the value of hdo:
• If hdo exceeds the depth of the reservoir hr the backwater curve leads to a
fall in the reservoir or a jump in the reservoir and the downstream depth
is set to hr.
For a frontwater curve the specific energy is calculated in nup. Then, using
subroutine henergy.f a supercritical depth is calculated corresponding to the
same specific energy and discharge for the downstream geometry of the element
(cf. Section 6.6.5) and defined as hdo. Two cases arise:
For a backwater curve the specific energy is calculated in ndo. Then, using
subroutine henergy.f a subcricital depth is calculated corresponding to the same
specific energy and discharge for the upstream geometry of the element
10.11.1 Renumbering
In CFD-calculations computational speed is very important. In order to avoid
having to check whether nodes and/or elements are really part of the fluid (e.g.
because there are gaps in the numbering, or part of the nodes belongs to the
structure in fluid-structure calculations), the fluid nodes and fluid elements are
renumbered in ascending order without any gaps. This is done in subroutine
rearrangecfd.f. This also includes the renumbering of the boundary conditions
(SPC’s and MPC’s) and the loading. In the CBS method the size of the equation
system for the conservation laws is the number of nodes, except for the pressure
equation for incompressible fluids, in which the SPC boundary condition degrees
of freedom are subtracted.
• Storage of all external faces of the mesh (i.e. faces which belong to only
one element) in fields nelemface (element number) and sideface (face num-
ber). The field nelemface is sorted in ascending order. The face number
corresponds to the load face numbering in Section 6.11.2.
Start
matrix structure
xi+1 = xi + ∆x,
x = ρǫt , V , p, ρk, ρω
initial calculations
LU-decomposition p-matrix
find kxi+1 k, k∆xk,
x = ρǫt , V , p, ρk, ρω
BC pi+1 → ∆p
∆V = ∆V ∗ + ∆V ∗∗
matrix structure
smooth xi+1 → xi+1 , x = ρǫt , V , ρ
initial calculations
i=0
i++ determine ∇pi+1
determine ∆t
no
RHS ∆ρ and solve k∆xk < ǫkxi+1 k?
∆V = ∆V ∗ + ∆V ∗∗ End
• For shallow water calculations: the depth in all fluid nodes (this is the
element length in the direction of the gravity vector).
• The value of the conservative variables in all fluid nodes starting from the
physical variables. The conservative variables, stored in field vcon(1..nk,0..mi(2)),
are ǫt , ρvi (i = 1, 2, 3), ρ, ρk and ρω. For efficiency first ǫt is stored for all
nodes, then ρv1 and so on..., since they are solved for separately (so a
single pointer suffices to switch between the fields). The physical vari-
ables are the static temperature T , the velocity components vi , the static
pressue p and the turbulence parameters k and ω. They are stored in field
vold(0..mi(2),1..nk) in the way conventional to structural calculations, i.e.
first all parameters for node 1, then for node 2....
At this point the preparation phase is finished an the major loop starts
calculating the solution at the subsequent time points
Next is the calculation of the loading. This includes the nodal forces, the facial
and volumetric distributed loads, the given velocities, the given static pressure
and the given static temperature. These quantities are applied as step values
(no ramping), unless an amplitude is defined to change their values.
In this step the first correction to the momentum is determined. To this end
the Right Hand Side (RHS) of the equation system is calculated (this is done in
mafillv1rhs.f and e c3d v1rhs.f). Notice that at this point the RHS is calculated
not only the ∆V ∗ equation system, but also for ∆p (partially), ∆V ∗∗ (partially),
∆ǫt , ∆k and ∆ω (incompressible fluids) and for ∆ρ (partially), ∆V ∗∗ , ∆ǫt , ∆k
and ∆ω (compressible fluids). This saves time since any auxiliary variables have
to calculated only once. Furthermore, this part is parallelized (multithreading)
since it involves a loop over all elements which can be nicely cut into pieces. The
equations are solved in routine solveeq in an iterative way (not only for ∆V ∗
but also for ∆ǫt , ∆k and ∆ω, which are used later on in the algorithm). This
is necessary, since the LHS has been approximated by lumping. The number
of iterations is set in solveeq.f and is called maxit. Right now, it has the value
1, which means that no iterations take place. If the user wishes to change this,
the source code has to be recompiled. The solution of the equations is stored in
field v(1..nk,1),v(1..nk,2) and v(1..nk,3)). Notice that ∆V ∗ is not added to V
at this point. Next, ∆V ∗ is changed such that the velocity boundary conditions
are matched. These conditions are applied in the form ρi V i+1 , where ρi is
the density at the start of the increment and V i+1 is the velocity boundary
condition corresponding to the time at the end of the increment (ρi+1 is not
known at this point).
In the second step the pressure is determined for liquids and the density for
gases. For liquids this involves the solution of a regular system of equations, the
LHS of which has been LU-decomposed. This can be performed in a parallel
way if the user has activated the multithreading option for the linear equation
solver, e.g. the option -DUSE MT for SPOOLES in the Makefile and specified
the number of cpus by means of the environment variable NUM CPU SOLVE.
The RHS is obtained by adding a term based on ∆V ∗ to the value calculated
in mafillsmv1rhs.f. This is done in mafillprhs.f and e c3d prhs.f. For gases a
lumped system is solved leading to the density correction. In both cases the
corrections are stored on a nodal basis in field v(1..nk,4)). Finally, for fluids the
pressure boundary conditions are applied in routine applybounp.f. For gases
this has to wait till later, since the gas pressure is not known at this point.
740 10 PROGRAM STRUCTURE.
• objectset(1,*)
• objectset(2,*)
• objectset(3,*)
• objectset(4,*)
• objectset(5,*)
elementpernode
extfacepernode elemperorien
getdesiinfo elemperdesi
elemperdesi
normalsonsurface_se
normalsforequ_se
createinum
frd_sen
smalldist
randomfieldmain
desiperelem
tempload
mastructse
gennactdofinv
energy objective
displacement, stress or shape
read read
eigenvalue or green objective
iponoel inoel
El # 1 pointer
node i
El # 2 0
Figure 188: Data structure for all elements belonging to a given node
• The external faces of the structure are determined and stored in the data
format explained in Figure 175 as well as in the data format shown in
Figure 189 (findextsurface.f)
• All external faces to which a given node belongs are stored in fields ipo-
noelfa and inoelfa according to the data structure shown in Figure 190
(extfacepernode.f)
• The design variables (i.e. nodes) are stored in ascending order in field
nodedesi(*). The total number of design variables is ndesi (getdesiinfo.f)
• All elements belonging to one and the same design variable are stored
in fields istartdesi and ialdesi according to the structure in Figure 191
(elemperdesi.f)
10.12 Sensitivity Analysis 745
external
face i node1 nodes
S4 pointer node2 belonging
node3 to external
node4
face i
external
face nsurfs
S3/S4/S6/S8
Figure 189: Data structure storing the kind of external face and the nodes
belonging to that face
746 10 PROGRAM STRUCTURE.
iponoelfa inoelfa
node i
pointer
face loc 0
Figure 190: Data structure for all external faces belonging to a given node
istartdesi ialdesi
element 1
element 2 elements belonging
design element 3 to design variable i
variable i element 4
pointer
element 5
element 1
element 2
Figure 191: Data structure for all elements belonging to a specific design variable
10.12 Sensitivity Analysis 747
iponoel(*) and inoel(2,*) were used to store all elements to which a given
node belongs, cf. Figure 188 (elemperorien.f).
• All elements belonging to one and the same design variable are stored
in fields istartdesi and ialdesi according to the structure in Figure 191
(elemperdesi.f). This is analogous to the case in which the coordinates
are the design variables.
The next four routines are common to coordinate design variables as well as
orientation design variables:
• First the design variables per element are determined and stored in fields
istartelem(*) and ialelem(*) in exactly the same way as fields istartdesi(*)
and ialdesi(*) were used to store the elements per design variable according
to Figure 191 (desiperelem.f).
At this point the preprocessing part is split according to whether the ob-
jectives are the eigenvalues or Green functions, in which case the eigenvalues,
eigenmodes, stiffness matrix and mass matrix are read from file (generate in
a previous *FREQUENCY or *GREEN step), or whether the objective is the
mass, the stress or the shape energy, in which case the stiffness matrix and the
matrix structure are read from file (generated in a previous *STATIC step).
∂Fext
(934)
∂s
is calculated.
∂Fext ∂K
− ·U (935)
∂s ∂s
is determined.
∂(K − σM )
− ·U (936)
∂s
is calculated, where σ is an appropriately defined scalar.
Out of computational efficiency the latter terms are calculated at the element
level and assembled into a global matrix thereupon.
The last major routine, objectivemain se.c assembles the previous informa-
tion to obtain the final sensitivity. For the orientation as design variable these
sensitivities are immediately stored in the .dat or the .frd file. The sensitivity
for the geometry (normal directions of nodes on the external surface) as design
variable, however, is kept for further postprocessing in sens coor.c.
For the objective G the total sensitivity dG(s,U(s))
ds is written as ∂G ∂G
∂s + ∂U ·
∂U ∂G ∂G
∂s . So the objective function is used in the terms ∂s and ∂U . The routine
objectivemain se.c is split according to the objective function:
750 10 PROGRAM STRUCTURE.
• The MASS objective function does not depend on the displacements, i.e.
the deformation of a body does not change its mass. So only the first term
in the above equation is needed. This term examines how the change of
the design variables directly changes the mass. For the orientation as de-
sign variable the mass does not change at all. For coordinates as design
variables, however, ∂G
∂s is appropriately calculated. This is done by deter-
mining G for the unperturbed geometry and for the geometry in which one
of the design variables (the geometric change in normal direction in a node
on the external surface) is changed by a small amount (finite difference
approximation). The routine in which this is done is objective mass dx.f.
In general, the objective function does not have to apply to the total
structure, e.g. one can define the mass of part of the structure as design
variable. In that case all other elements are deactivated. This is done in
routine actideacti.f. This applies to all objective functions, for which only
part of the structure is included.
• For the STRAIN ENERGY as objective function a distinction has to be
made whether the calculation is geometrically linear or nonlinear. For a
linear geometric calculation Equation (810) reduces to:
DG ∂G ∂F ∂K
= +U − ·U . (937)
Ds ∂s ∂s ∂s
The first term on the right hand side is calculated in a similar way as
for the MASS in routine objective shapeener dx.f. The term in brack-
ets on the right hand side was already determined in results se.f and
mafillsmmain se.f. Premultiplying it with the displacements from the pre-
vious static step and adding the first term yields the sensitivities (objec-
tive shapeener tot.f).
For a nonlinear geometric calculation Equation (810) reduces to:
DG ∂G T ∂Fext ∂Fint
= + Fint K −1 − . (938)
Ds ∂s ∂s ∂s
T
Now, Y ≡ Fint K −1 is calculated by solving the set of equations KY = Fint .
The remaining operations are similar to the linear case.
• For the EIGENFREQUENCY as objective function the sensitivity reduces
to:
∂λi ∂K ∂M
= UiT · − λi · Ui . (939)
∂s ∂s ∂s
The part starting with the brackets on the right hand side has been de-
termined in mafillsmmain se.f. Consequently,the sensitivity of the eigen-
frequencies only requires the premultiplication with the eigenmodes. This
is done in objective freq.f and objective freq cs.f (cyclic symmetry).
10.12 Sensitivity Analysis 751
For the sensitivity of the eigenmodes (only calculated for the orientation
as design variable) the relevant equation is Equation (814), which can also
be written as:
∂Ui
(K − λi M ) = Fi . (940)
∂s
Assuming the sensitivity to be a linear combination of the eigenmodes:
∂Ui X
= cj U j , (941)
∂s j
UjT Fi
cj = , i 6= j (942)
λj − λi
T
∂Ui
2 M Ui = 0, (943)
∂s
• For the sensitivity of the Green functions (only calculated for the orienta-
tion as design variables) the relevant equation reads:
∂Ui ∂K
(K − ω02 M ) = · Ui . (945)
∂s ∂s
752 10 PROGRAM STRUCTURE.
and requires the solution of a system of equations for each design variable.
The system matrix, however, does not change, so the LU-decomposition
of the matrix has only to be done once.
For the orientation as design variable the frequency sensitivities are stored
in the .dat file, whereas the sensitivities of the eigenmodes and/or Green
functions are stored in the .frd file (frd sen.c, called from objectivemain se.c).
For the geometry as design variable only the frequency sensitivities are de-
termined. They are not stored in objectivemain se.c since they may need
further postprocessing in sensi coor.c.
• The ALL-DISP objective function is differently defined for orientation de-
sign variables than for geometric design variables. The processing, how-
ever, is similar. The relevant equation is
∂U ∂Fext ∂Fint
= K −1 − , (946)
∂s ∂s ∂s
i.e. the stress S is in general a direct function of the design variables and
an indirect function through the displacements. Indeed, the stress is the
result of the “multiplication” of the material contants with the derivative
of the displacements with respect to the geometry.
10.12 Sensitivity Analysis 753
For geometrical design variables both terms ∂S/∂s and ∂S/∂U have to
be evaluated, i.e. keeping the displacements at the nodes constant while
changing the geometry will lead to stress changes, as well as changing the
displacements while keeping the geometry constant.
For orientation design variables ∂S/∂s = 0 since the stress change only
comes through the material law.
For geometrical design variables the stress in the unperturbed state is cal-
culated in resultsstr.c, while the derivative w.r.t. s is done in stress sen dx.f
and the derivative w.r.t. U in stress sen dv.f. The calculation of Equa-
tion (810) is done exactly as explained in Section 6.9.23 from left to right,
i.e. first calculating (∂G/∂s)K −1 before continuing with the expression in
brackets.
For orientation design variables the sensivity can be written as
∂U
U (s + ∆s) ≈ U (s) + ∆s. (950)
∂s
So the stress sensitivities require the knowledge of the displacement sen-
sitivities. This was treated in the previous item. For orientation design
variables the above operations require the routines resultsnoddir.f and re-
sultsstr.c (and their subroutines). The results (i.e. the sensitivity of the
von Mises stress at all nodes w.r.t. a change in an anisotropic orientation)
are stored in the frd-file.
∂Ui T ∂M
2 M Ui = −UiT Ui , (951)
∂s ∂s
and ci now satisfies:
1 ∂M
ci = − UiT Ui , (952)
2 ∂s
instead of being zero. Defining
∂S
αj = Uj , (953)
∂Ui
754 10 PROGRAM STRUCTURE.
• Creating a transition region from the design node region to its complement
(feasibledirection.c).
The continuous gradient field is the sensitivity with respect to a Dirac delta
function perturbation of the design surface at the node at stake. Both
fields are coupled by the surface mesh mass matrix MA . Therefore, to
get the continuous gradient field the calculated sensitivities are multiplied
with the inverse of the surface mesh mass matrix:
dg dG
= MA−1 . (956)
ds ds
10.12 Sensitivity Analysis 755
• The filtering which is done after the sensitivity analysis and after the
calculation of the feasible direction follows the idea of vertex morphing.
This means that conceptually an additional control field z, apart from
the design variables s, is introduced with the size of the number of design
variables on which the mathematical optimization problem is solved. This
control field is connected with the design variables by the following formula
DG(z, s(z)) ∂G ∂G ∂s ∂G ∂s
= + = . (957)
Dz ∂z ∂s ∂z ∂s ∂z
Since a change in control field does not alter the geometry and hence
the design response G, the partial derivative ∂G/∂z = 0. The expression
∂s/∂z can be regarded as a smoothing operator (filter) between the design
variables and the control field. In vertex morphing this filtering operation
has to be done twice. First, after the sensitivity analysis (sensi coor.c),
called backward filtering, in order to transform the sensitivities calculated
at the design variables to the control field. The output in the frd file
is the unfiltered sensitivity at the design variables as well as the filtered
one, which can be interpreted as the sensitivity on the control field. And
a second time to map the final feasible direction back to the nodal de-
sign variables, called forward filtering, which is done in feasibledirection.c.
Again, two output fields are written in the frd file: the feasible direction
calculated on the control field and the forward filtered feasible direction
on the nodal design variables.
For the filtering itself two different filters are available, an explicit and
an implicit one. Ragarding the explicit filter, independent if backward or
forward filtering is done, the sensitivity values at a given node are thereby
replaced by a weighted sum of the sensitivities of the nodes within a sphere
with a user-defined radius. The weighting function is 1 at the node at
stake and decreases radially in a user-defined way to zero at the edge of
the sphere:
dG dG ds dG dG
= = A = AT , (958)
dz ds dz ds ds
(I − ǫ∇2 )s = z, (959)
dG dG
(I − ǫ∇2 ) = . (960)
dz ds
756 10 PROGRAM STRUCTURE.
dG dG
= MA (KA + MA )−1 , (961)
dz ds
where
X Z
(MA )kl = ϕk ϕl dA (962)
f :k∈f Af
and
X Z
(KA )kl = ǫ2 (∇ϕk )T · (∇ϕl )dA. (963)
f :k∈f Af
For the complete derivation of the explicit and implicit filtering meth-
ods the interested user is referred to [7]. If the parameter DIRECTION
WEIGHTING is active on the *FILTER card the sensitivity values at a
node i are replaced by a weighted sum of the sensitivities at the nodes j
within the sphere multiplied by the scalar product of the normal vector
at j and the normal vector at i.
• If the parameter BOUNDARY WEIGHTING=YES is selected on the
*FILTER card the sensitities are linearly decreased to zero at the edge of
the design domain. This edge is defined by all nodes which are not design
variables but belong to external faces which contain at least one design
variable. If a design node lies within a user-defined boundary weighting
distance from this edge a linear reduction proportional to the actual dis-
tance is applied. This assures a smooth transition of the sensitivities to
zero at the edge of the design domain.
10.13 Mesh refinement 757
node
ieln(2,*)
ifreeln: current
free position
El 1
ipoeln(node)
El 2 0
if not used:
next free position
no 1 < no 2 if > 0
.......
ipoed(no 1)
no 1 < no 3 0 −1
.......
if not used:
next free position
size: nexternedg
ieled(2,*)
ifreele: current
free position
El 1
ipoeled(edge)
El 2 0
if not used:
next free position
The last fields ipoeled(i) and ieled(2,*) point to the elements to which edge i
belongs in the same way the element per node relationship is stored in ipoeln(*)
and ieln(2,*), Figure 195.
ipofa(no 1)
no 1 < no 4 < no 5 0
if not used:
next free position
size: nexternfa
All these fields (except the external ones) are dynamically adjusted during
mesh refinement.
4 node
edge
face
6
4
2 5
1
3
3
3
2
4
1
2
Figure 197: Node, edge and face numbering within a tetrahedral element
i.e. it only contains the middles nodes of the quadratic tetrahedral elements of
the unrefined mesh. This field is used to calculate field ifacext and is discarded
immediately afterwards.
Fields with the same number of lines as kontet are ifatet(1..4,*), bc(1..4,*),
cg(1..3,*) and iedtet(1..6,*). They contain:
• ifatet(1..4,*): the numbers of the faces belonging to the tetrahedral ele-
ment. The order corresponds to Figure 197. The sign of the face number is
the sign of the expression for the face equation in which the coordinates of
the node opposite to the face (within the same element) were substituted.
• bc(1..4,*): bc(1..3,*) contains the coordinates of the center of the circum-
scribed sphere of the element, bc(4,*) contains its radius.
• cg(1..3,*): contains the coordinates of the center of gravity of the element.
• iedtet(1..6,*): contains the number of the edges belonging to the element
corresponding to the order in Figure 197.
All these fields are dynamic. The actual size used for allocation purposes is
netet .
10.13 Mesh refinement 763
• initialize kontet (take non-tet elements into account, close the gaps in the
tet numbering)
Notice that the tetrahedral elements are stored as if all of them were linear,
ie. C3D4-elements. The only quadratic information of the unrefined mesh is
stored in fields iedgext and ifacext, to be discussed below.
determineextern.f Next, the external nodes, edges and faces are identified.
A face is external if it belongs to only one element. If the face is external
iexternfa(i) is set to 1, else it is 0.
All nodes in an external face are external. For these nodes iexternnode is
set to 1, else it is 0.
All edges in an external face are external. The value for these edges in
iexternedg is at first set to 1, else it is 0.
764 10 PROGRAM STRUCTURE.
start projectvertexnodes
cattet smoothbadvertex
catedges_refine meshquality
determineextern removesliver
midexternaledges smoothingvertexnodes
searchmidneigh
edgedivide
i++
projectmidnodes
newnodes surface
smoothbadmid smoothing
checkexiedge edges
quadmeshquality midnodes
cavityext_refine
smoothingmidnodes
calculated
writerefinemesh
edgedivide
subsurface
writenewmesh
newnodes
edges
end
checkexiedge
cavity_refine
catnodes
meshquality smoothing
smoothingvertexnodes
catnodes
The elements in the unrefined mesh adjacent to the external faces are stored
in element set ialsete, the number of such elements is called nexternel.
At this point the preliminary work is finished and the major refinement loop
starts. It consists of two parts: refinement of the external edges followed by the
refinement of the internal edges.
first loop: calculateh.f The first time the loop is run, the tetrahedral mesh
is still the unrefined mesh. The following actions are performed in calculateh.f:
then an average edge length in the node of 0.1 will lead to a value of
0.025 in this node, i.e. the desired edge length is locally 0.025. Notice
that the refinement information is stored in filab(48), which is a character
string of length 87. In positions 1:2 “RM” is stored, the field to which the
refinement criterion applies is stored in positions 3:6, the limit in positions
7:26 (f20.0) and the element set to be refined in positions 27:87.
• determine the minimum value of d(*) across the complete mesh and store
it in dmin .
all but the first loop: calculated.f For the second and further loops the
field d(*) containing the length of the edges and dmin are recalculated. The
h-field is obtained by interpolation within the unrefined mesh.
where int(x) is the integer smaller than or equal to the real number x. This
creates at most 2 edges out of 1.
newnodes.f This routine contains a loop over all edges. For each edge i which
is to be divided into two sub-edges the following actions are taken:
• determine the coordinates of the new node on the edge and store them in
a consecutively arranged field conewnodes(1..3,*) with the total number
of new nodes stored in the scalar nnewnodes. Let us assume that edge
i is the j-th edge to be subdivided, then the coordinates are stored in
conewnodes(1..3,j)
• determine a base element to which the edge belongs (an arbitrary element
of the shell of the edge) and store the number in ibasenewnodes(j)
• store the edge number on which the nodes lies (i.e. here i) in field
iedgnewnodes(*), i.e. iedgnewnodes(j)=i.
10.13 Mesh refinement 767
• determine the value of the h-field in the new node by interpolation within
the unrefined mesh and store it in hnewnodes(j)
• if any element has a very small volume or at least one very small height
the original mesh of the cavity is restored
• since elements have been deleted and created the base element numbers
of the nodes still to be inserted may not be correct any more: perform a
check on these nodes and correct the base element numbers if necessary.
• label the newly generated faces and edges as external or not. Sub-edges of
the edge on which the new node was inserted inherit the label from field
iexternaledg
– loop over all their edges and check whether they are still needed (i.e.
still belong to another face)
– remove the face
• create new elements connecting the new node with each of the cavity faces
• if any element has a very small volume or at least one very small height
the original mesh of the cavity is restored
• since elements have been deleted and created the base element numbers
of the nodes still to be inserted may not be correct any more: perform a
check on these nodes and correct the base element numbers if necessary.
10.13 Mesh refinement 769
where j are the neighbors of i, hj := (hi + hj )/2 (hi is the desired edge
length in node i) and ω is a relaxation factor taking the value of 0.5. Defining
the quality of the ball to be the quality of its worst element (i.e. highest value),
a node i is only smoothed if the quality of its ball after smoothing has a smaller
value (i.e. is better) than before smoothing.
max Qj , (967)
j∈balli
by modifying the position of node i, i.e changing its x-, y- and z-coordinates
(three parameters).
removesliver.f After projection so called sliver elements may exist, i.e. ele-
ments with nearly zero volume although the area of all their faces is finite [31].
These elements are removed. A sliver satisfies the following conditions:
genmidnodes.f In this routine the middle nodes are created in the geometric
middle of the end nodes of each edge. So there is a one-to-one relationship
between the edges and the middle nodes. The middle node i on edge j is given
by i=iedgmid(j).
calculatehmid.f The desired edge length in the middle nodes (needed for the
weighted smoothing) is obtained by interpolation between the end nodes.
Jmax − Jmin < Jmin > < −Jmin >
Q∗i = + 1030 (1 − Jmin ) , (968)
Jmax + Jmin |Jmin | |Jmin |
where < x >= x if x > 0 and < x >= 0 if x ≤ 0. The second term in the
above equation takes precedence as soon as any Jacobian determinant in the
element is negative.
projectmidnodes.f Also here the procedure is similar to the one for vertex
nodes. Projection may lead to bad elements. A quadratic element is bad if the
Jacobian determinant in at least one integration point is negative. Then, the
projection is successively reduced. In that case, all edges belonging to the shell
are listed as bad edges.
In the first term of the right hand side Qj is the quality measure for lin-
ear tetrahedra. To this end each quadratic tetrahedral element is subdivided
into 8 linear tetrahedrons. This measure seems to be more appropriate than
using Q∗i during the optimization and leads to better shaped tetrahedrons. So
basically the first term optimizes the volume of the 8 linear subtetrahedra of
the quadratic tetrahedron. The second term avoids the presence of negative
Jacobian determinants at the integration points (abreviated as ip in the above
formula).
inodestet a b c .....
nnodestet
x
x
x
global
independent x x
nodes of the
new mesh x
x
x
x
x
maxrow
icol ar br cr ....
jq(2)
row
numbers
column 2 coef. jqt(2)
(ordered) column
numbers
of row 2
jq(3)
nzs
jq(nnodestet+1) jqt(maxrow+1)
• au: stores the nonzero entries in the matrix (i.e. the “x” in Figure 199)
column by column. Entries within each column are ordered corresponding
to the ascending row numbers.
• irow: corresponds to the row number (the global number of the indepen-
dent nodes in the connecting equations) of the entries in au.
• jq(i): entry in fields au and irow corresponding to the first nonzero value
in column i. The size of the field is nnodestet+1 in order to mark the last
entry in fields au and irow (corresponds to jq(nnodestet+1)-1).
• irowt: lists the column numbers in the matrix, row by row. Contrary to
field irow the entries within each row are not ordered.
• jqt(i): entry in field irowt corresponding to the first nonzero value in row
i.
• loc: localizes each entry in field irowt within field irow and au, i.e. entry
irowt(i) corresponds with entry irow(loc(i)) and au(loc(i)).
• ixcol(i)= icol(i)*(nnodestet+1)+i.
Figure 201 describes these fields for a simple example involving the following
connecting equations:
1 2 3 nnodestet=3
3 f
jq 1 3 6 8
6 a g
icol 2 3 2
31 b c
ixcol 9 14 11
59 d
78 e jqt 1 2 4 6 7 8
6 6 3
31 1 1
31 7 3
59 2 1
78 3 2
3 4 2
6 5 2
Figure 201: Example for the fields defining the connecting equations
10.13 Mesh refinement 777
unrefined mesh by a SPC of the form u22 = 0. Then u22 occurs as dependent
degree of freedom in the SPC and the MPC above. This is not allowed in
CalculiX: a node can occur at most once as dependent dof. Therefore, the MPC
has to be reordered, e.g. in the form
Notice that all coefficients in matrix au are nonpositive since the shape
function values for a linear or quadratic triangle are nonnegative (used in the
interpolation procedure). Therefore, all rearranged equations are characterized
by a nonpositive coefficient of the dependent terms.
The procedure may not be fool proof (especially if a lot of SPC’s or MPC’s
contrain the unrefined mesh). If, due to the rearrangement of other equations
no independent node in an equation not treated yet remains, an error message
is issued and the program stops.
The procedure just described is repeated for each step, since the SPC’s and
MPC’s can change from step to step. Before starting the procedure, however,
the equations from the last step are reordered in their original form (i.e. with a
leading coefficient of 1).
2. read and store the uncracked stress and possibly temperature results in
fields integerglob and doubleglob
node
number
boun. boun.
sorted! edge edge
1 2
nbounnod
4. determine the front nodes: these are boundary nodes (i.e. on the bound-
ary of the crack triangulations) lying inside the structure. The way this
is done is by taken recourse to routines interpolextnodes.f and basis.f.
The latter routine interpolates the stress and temperature from the un-
cracked structure onto each boundary node. In fact, basis.f is a very
general routine doing the interpolation to whatever point characterized
by its global carthesian coordinates. It looks for a location inside the
master mesh which is as close as possible to the given point and assigns
the fields interpolated in this location. Furthermore, it returns the in-
terpolated values, the interpolation coefficients, the nodes of the master
mesh used for the interpolation, the coordinates of the interpolation loca-
tion and the distance from the given point to the interpolation location.
780 10 PROGRAM STRUCTURE.
ifront(*) ifrontrel(*)
node boundary
number node
number
(relative
sorted! position
in
ibounnod)
nfront
Figure 203: Fields for the front nodes (before analyzing the adjacency relations)
5. determine the due order of the nodes in field ifront by taking the ad-
jacency relations into account (done in routine adjacentbounodes.f) and
adding to each non-closed front a node on either side (start and end of
the front) just outside the structure, Figure 204. Due to this, the value of
nfront will have changed if not all cracks are subsurface cracks. The nodes
are stored in clockwise direction when looking in the positive shell normal
direction. The start and end location of each front is stored in fields istart-
front(1..nnfront) and iendfront(1..nnfront), where nnfront is the number
of fronts. A zero in the corresponding field isubsurffront(1..nnfront) indi-
cates that the front belongs to a surface crack, a one that it belongs to a
10.14 Crack propagation 781
istartfront(1) istartcrackfro(1)
relative
position
front 1
in
ibounnod
iendfront(1)
istartfront(2)
front 2
iendfront(2) iendcrackfro(1)
nfront
Figure 204: Fields for the front nodes (after analyzing the adjacency relations)
subsurface crack, Figure 205. The field “field” in Figure 204 is representa-
tive for a large number of fields: xt(3,*), xn(3,nstep,*), xa(3,nstep,*), xn-
plane(3,nstep,*), xaplane(3,nstep,*), posfront(*), acrack(nstep,*), xk1(nstep,*),
xk2(nstep,*), xk3(nstep,*), xkeq(nstep,*), phi(nstep,*), psi(nstep,*), xke-
qmin(*), xkeqmax(*), dadn(*), wk1(*), wk2(*), wk3(*), dkeq(*), dom-
step(*), domphi(*), ifrontprop(*), which will be discussed further in this
section.
The fronts are stored crack by crack. The start and end of each crack
in field ifront is stored in fields istartcrackfro(1..ncrack) and iendcrack-
fro(1..ncrack) (Figure 206), where ncrack is the number of cracks. Figure
204 applies to a case in which the first crack consists of two fronts.
At the same time, also the node order in field ibounnod is changed ac-
cording to adjacency, crack by crack. Remember that this field contains
all boundary nodes, no matter whether they belong to a front or not.
Therefore, each crack in field ibounnod is a closed contour. After chang-
ing the node order in ibounnod all related fields in Figure 202 are also
modified appropriately as well as the entries in field ifrontrel (Figure 204),
so that full consistency is guaranteed. The starting and ending position
of each crack in field ibounnod is stored in istartcrackbou(1..ncrack) and
iendcrackbou(1..ncrack).
6. The cross section location of the crack front with the external bound-
ary is reevaluated. Recall that this location was determined in adjacent-
bounodes.f as the projection of the external boundary node closest to the
structure onto the surface of the structure (coordinates in costruc). Let
782 10 PROGRAM STRUCTURE.
relative relative
front position position
number in in 0 or 1
ifront ifront
nnfront
ncrack
r d
p d* θ
c
θ∗
ad b
q
B
Figure 207: Calculation of a front position external but close to the free surface.
784 10 PROGRAM STRUCTURE.
us assume that in Figure 207 the free surface is AB and nodes p and q are
on the front, q is external. r is the projection of q on the surface and is
a first approximation of the intersection point a. A better approximation
for a is:
d p−q
a≈q+ . (980)
cos θ kp − qk
d∗ p−q
d=q+ ∗
, (981)
cos(θ ) kp − qk
where
(c − q) · (p − q)
cos(θ∗ ) = . (982)
kc − qk · kp − qk
7. A local coordinate system in each node of the crack front is created and
stored in fields xt(3,nfront), xn(3,nfront) and xa(3,nfront). This is done
in routine createlocalsys.f. It consists of:
r d
acrack(j,i)
a* p
ij
θ
λ q
B
Figure 208: Calculation of the distance of a front node from the intersection of
a straight line mit unit vector a∗ with the free surface
9. The crack length is smoothed and shape factors are determined in rou-
tines cracklength smoothing.f and crack shape.f, respectively. The pro-
cedures are described in Section 6.9.27. For the shape factors a field
786 10 PROGRAM STRUCTURE.
10. The stress intensity factors for mode I, mode II and mode III are calculated
in stressintensity.f and stored in fields xk1(nstep,nfront), xk2(nstep,nfront)
and xk3(nstep,nfront). The equivalent stress intensity factor, the deflec-
tion angle and twist angle are stored in xkeq(nstep,nfront), phi(nstep,nfront)
and psi(nstep,nfront). Subsequently, the equivalent K-factor and the de-
flection angle is smoothed in stressintensity smoothing.f. The target crack
increment length is determined in calcdatarget.f. For details the reader is
again referred to Section 6.9.27.
11. The crack propagation rate is calculated in routine crackrate.f. Again, this
routine is conceived as a user subroutine. Right now, a rather simple algo-
rithm is implemented using the maximum equivalent K-factor for the com-
plete mission at a given location along the crack front. More sophisticated
procedures are conceivable using cycle extraction such as in [85]. Output
of this routine includes the crack propagation increment da(nfront), the
crack propagation rate dadn(nfront), the worst KI , KII and KIII fac-
tors wk1(nfront), wk2(nfront) and wk3(nfront), the largest and smallest
equivalent K-factor in the mission xkeqmin(nfront) and xkeqmax(nfront),
the equivalent stress intensity range of the main cycle dkeq(nfront), the
dominant step dompstep(nfront) and the dominant deflection angle dom-
phi(nfront). The number of cycles in this increment is calculated based
on the target crack increment and the maximum crack propagation rate
anywhere along a crack front.
12. In crackprop.f the position of the propagated node is calculated for each
front node. The propagation is in the direction of a. At a free boundary
the new crack front has to cut the free surface, therefore at least the
first and last node on a front have to lie outside the structure. This is
checked by the interpolation routine basis.f. If e.g. the first node is inside
the structure, the line segment connecting the node with its propagated
position is rotated in steps of 5◦ until the propagated node lies outside the
structure. In order for this procedure to work under all circumstances a
minimum crack propagation increment of 1.2 × 10−6 [L] is defined.
Notice that for this procedure to work properly, the first and last node
of the actual front have to lie on the intersection of the front with the
free surface. This is not necessarily guaranteed by using the field costruc.
Indeed, the values in costruc are determined in routine basis.f. If a node
is inside the structure, costruc contains its actual coordinates, if it is
outside the structure, it contains the coordinates of its projection onto
the free surface. If the front makes an angle with the free surface which
is significantly different from 90◦ , the projection will not lie on the front.
Therefore, for the end nodes a correction is made similar to Figure 208:
10.14 Crack propagation 787
• set a = b = 1
• start loop
• create a triangle ia , jb and jb+1 .
• If nb 6= nb+1 , then let’s say that nb = ic (c naturally exists, since
nb belongs to the actual front). Then, create triangle ic , ic+1 , jb+1 ,
triangle ic+1 , ic+2 , jb+1 .. until triangle ic+n−1 , ic+n , jb+1 where
ic+n = nb+1 . Set a to c + n.
• if ip and jq both belong to the last created triangle, exit.
• set b + 1 to b.
• cycle loop
After all increments have been calculated (or if nowhere along the crack front
propagation occurred or if Kc was exceeded anywhere along the crack fronts)
the results are stored in frd-format.
• Mesh refinement
– Determine the desired edge length in newly created nodes (newn-
odes.f, updategeodata.f)
– Determine the interpolation coefficients for the connection of a node
in the unrefined mesh to the refined mesh (treatment of SPC’s and
MPC’s: genmpc.f)
– Determine the interpolation coefficients for the connection of a node
in the refined mesh to the unrefined mesh (treatment of temperatures:
genratio.f)
• Crack propagation calculations
– For the crack length definition: find the intersection of a straight line
of the external surface of the structure (cracklength.f)
– For the crack propagation: find the intersection of the crack front
with the external surface of the structure (crackprop.f)
– Determine the nodes on the crack boundary which are inside the
structure (interpolextnodes.f)
• Submodel calculations
– Interpolation of displacements, stresses... onto the boundary of the
submodel (interpolsubmodel.f)
In the next sections the different aspects of the procedure are analyzed in
detail.
North
y
corner of smallest rectangle
C
4 F,G 3
B
West p East
x
A,D
H 1 2
South
the points are denoted A, B, C and D (A and D coincide). Then, the distance
from p to these points is calculated, sorted, and stored in an array. The size of
this array is the number of closest neighbors requested, so in our case only the
smallest three distances are kept.
Next, the rectangle is expanded in each direction until the next cloud point
is reached, denoded by E, F, G and H. Again, the distance from p to these
points is calculated, stored in the distance array, sorted and the lowest three
values are kept (only the three closest points are needed). Now, this procedure
is repeated until the smallest distance from p to one of the corner points of the
rectangle (symbolized by 1, 2, 3 and 4 for the largest rectangle shown in the
figure) exceeds the largest value in the distance array. Then we know that we
have found the closest three neighboring points.
The procedure in three dimensions is completely equivalent, we just have
two extra directions “backward” and “forward”.
x
−1 1
ξ
−1
order to do so a regular grid, e.g. with side length 0.1, is drawn about the origin
in the local coordinate system. The distance from the interpolation location to
the 8 locations on the grid around the origin (black filled circles in the figure)
and the origin itself is calculated and evaluated (using the shape functions of
the element): if the distance is smallest in the origin, a local minimum is found
and the next finer level grid is used. If not, e.g. if the minimum is the upper
right corner, a new grid of 9 locations is drawn about this minimum location
(consisting partially of existing black filled circles and new black unfilled circles)
and the procedure is repeated, until a local minimum is found, i.e. the distance
is smallest at the center of the square grid of 9 locations. The path may for
instance look is in the lower right part of the figure.
At the local minimum a new grid is created with a grid size of one tenth
of the previous grid (e.g. 0.01) and the procedure is repeated till a refined
position of the minimum is found. Then again the grid size is refined and so on,
usually up to a grid size of 10−8 in local coordinates. The resulting minimum
is calculated and the distance from the interpolation position. The relevant
routines are attach 2d.f and attach 3d.f.
794 10 PROGRAM STRUCTURE.
variable meaning
FILE NAMES (132 characters long)
jobnamec(1) jobname
jobnamec(2) INPUT file on *VIEWFACTOR card
jobnamec(3) OUTPUT file on *VIEWFACTOR card
jobnamec(4) INPUT file on *SUBMODEL card (global model)
or on *CRACK PROPAGATION card
jobnamec(5) FILENAME on *SUBSTRUCTURE MATRIX OUTPUT
card (storage file for stiffness matrix)
jobnamec(6) FILE on *TEMPERATURE card
REARRANGEMENT OF THE ORDER IN THE INPUT DECK
ifreeinp next blank line in field inp
ipoinp(1,i) index of the first column in field inp containing information
on a block of lines in the input deck corresponding to fun-
damental key i; a fundamental key is a key for which the
order in the input file matters (the fundamental keys are
listed in file keystart.f)
ipoinp(2,i) index of the last column in field inp containing informa-
tion on a block of lines in the input deck corresponding to
fundamental key i;
inp a column i in field inp (i.e. inp(1..3,i)) corresponds to a
uninterrupted block of lines assigned to one and the same
fundamental key in the input deck. inp(1,i) is its first line
in the input deck, inp(2,i) its last line and inp(3,i) the next
column in inp corresponding to the same fundamental key;
it takes the value 0 if none other exists.
MATERIAL DESCRIPTION
nmat # materials
matname(i) name of material i
no *ELECTRO-
MAGNETICS
calculation
nelcon(1,i) # (hyper)elastic constants for material i (negative kode for
nonlinear elastic constants)
nelcon(2,i) # temperature data points for the elastic constants of ma-
terial i
elcon(0,j,i) temperature at (hyper)elastic temperature point j of mate-
rial i
elcon(k,j,i) (hyper)elastic constant k at elastic temperature point j of
material i
*ELECTROMAGNETICS
calculation
10.16 List of variables and their meaning 795
variable meaning
nelcon(1,i) # magnetic permeability constants for material i (always
two)
nelcon(2,i) # temperature data points for the magnetic permeability
constants of material i
elcon(0,j,i) temperature at magnetic permeability temperature point j
of material i
elcon(1,j,i) magnetic permeability at magnetic permeability tempera-
ture point j of material i
elcon(2,j,i) domain of material i
general
nrhcon(i) # temperature data points for the density of material i
rhcon(0,j,i) temperature at density temperature point j of material i
rhcon(1,j,i) density at the density temperature point j of material i
nshcon(i) # temperature data points for the specific heat of material
i
shcon(0,j,i) temperature at temperature point j of material i
shcon(1,j,i) specific heat at constant pressure at the temperature point
j of material i
shcon(2,j,i) dynamic viscosity at the temperature point j of material i
shcon(3,1,i) specific gas constant of material i
no *ELECTRO-
MAGNETICS
calculation
nalcon(1,i) # of expansion constants for material i
nalcon(2,i) # of temperature data points for the expansion coefficients
of material i
alcon(0,j,i) temperature at expansion temperature point j of material i
alcon(k,j,i) expansion coefficient k at expansion temperature point j of
material i
*ELECTROMAGNETICS
calculation
nalcon(1,i) # of electrical conductivity constants for material i (always
1)
nalcon(2,i) # of temperature data points for the electrical conductivity
constants of material i
alcon(0,j,i) temperature at electrical conductivity temperature point j
of material i
alcon(1,j,i) electrical conductivity coefficient at electrical conductivity
temperature point j of material i
general
ncocon(1,i) # of conductivity constants for material i
ncocon(2,i) # of temperature data points for the conductivity coeffi-
cients of material i
796 10 PROGRAM STRUCTURE.
variable meaning
cocon(0,j,i) temperature at conductivity temperature point j of material
i
cocon(k,j,i) conductivity coefficient k at conductivity temperature point
j of material i
orname(i) name of orientation i
orab(1..6,i) coordinates of points a and b defining the new orientation
orab(7,i) -1: cylindrical local system
1: rectangular local system
norien # orientations
isotropic harden-
ing
nplicon(0,i) # temperature data points for the isotropic hardening curve
of material i
nplicon(j,i) # of stress - plastic strain data points at temperature j for
material i
plicon(0,j,i) temperature data point j of material i
plicon(2*k-1,j,i) stress corresponding to stress-plastic strain data point k at
temperature data point j of material i
plicon(2*k-1,j,i) for springs: force corresponding to force-displacement data
point k at temperature data point j of material i
plicon(2*k-1,j,i) for penalty contact: pressure corresponding to pressure-
overclosure data point k at temperature data point j of
material i
plicon(2*k,j,i) plastic strain corresponding to stress-plastic strain data
point k at temperature data point j of material i
for springs: displacement corresponding to force-
displacement data point k at temperature data point j of
material i
for penalty contact: overclosure corresponding to pressure-
overclosure data point k at temperature data point j of
material i
kinematic hard-
ening
nplkcon(0,i) # temperature data points for the kinematic hardening
curve of material i
nplkcon(j,i) # of stress - plastic strain data points at temperature j for
material i
plkcon(0,j,i) temperature data point j of material i
plkcon(2*k-1,j,i) stress corresponding to stress-plastic strain data point k at
temperature data point j of material i
for penalty contact: conductance corresponding to
conductance-pressure data point k at temperature data
point j of material i
10.16 List of variables and their meaning 797
variable meaning
plkcon(2*k,j,i)
plastic strain corresponding to stress-plastic strain data
point k at temperature data point j of material i
for penalty contact: pressure corresponding to
conductance-pressure data point k at temperature
data point j of material i
kode=-1 Arrudy-Boyce
-2 Mooney-Rivlin
-3 Neo-Hooke
-4 Ogden (N=1)
-5 Ogden (N=2)
-6 Ogden (N=3)
-7 Polynomial (N=1)
-8 Polynomial (N=2)
-9 Polynomial (N=3)
-10 Reduced Polynomial (N=1)
-11 Reduced Polynomial (N=2)
-12 Reduced Polynomial (N=3)
-13 Van der Waals (not implemented yet)
-14 Yeoh
-15 Hyperfoam (N=1)
-16 Hyperfoam (N=2)
-17 Hyperfoam (N=3)
-50 deformation plasticity
-51 incremental plasticity (no viscosity)
-52 viscoplasticity
< -100 user material routine with -kode-100 user defined constants
with keyword *USER MATERIAL
PROCEDURE DESCRIPTION
iperturb(1) = -1 : linear iteration in a nonlinear calculation
= 0 : linear
= 1 : second order theory for frequency/buckling/Green
calculations following a static step (PERTURBATION se-
lected)
≥ 2 : Newton-Raphson iterative procedure is active
= 3 : nonlinear material (linear or nonlinear geometric
and/or heat transfer)
iperturb(2) 0 : linear geometric (NLGEOM not selected)
1 : nonlinear geometric (NLGEOM selected)
nmethod 1 : static (linear or nonlinear)
2 : frequency(linear)
3 : buckling (linear)
4 : dynamic (linear or nonlinear)
5 : steady state dynamics
798 10 PROGRAM STRUCTURE.
variable meaning
6 : Coriolis frequency calculation
7 : flutter frequency calculation
8 : magnetostatics
9 : magnetodynamics (inductive heating)
10 : electromagnetic eigenvalue problems
11 : superelement creation
12 : sensitivity analysis
irstrt(1) 0: no restart calculation
-1: RESTART,READ active; overwritten by write fre-
quency while reading the restart file
n>0: write frequency; either read from a restart
file with RESTART,READ or specified explicitly on a
RESTART,WRITE card.
irstrt(2) 0: no OVERLAY while writing a restart file
1: OVERLAY while writing a restart file
iout governs the output and the calculation of the solution in
results.c
-2: v is assumed to be known and is used to calculate
strains, stresses..., no result output; corresponds to iout=-
1 with in addition the calculation of the internal energy
density
-1: v is assumed to be known and is used to calculate
strains, stresses..., no result output; is used to take changes
in SPC’s and MPC’s at the start of a new increment or
iteration into account
0: v is calculated from the system solution and strains,
stresses.. are calculated, no result output
1: v is calculated from the system solution and
strains,stresses.. are calculated, requested results output
2: v is assumed to be known and is used to calculate strains,
stresses..., requested results output
GEOMETRY DESCRIPTION
nk highest node number
co(i,j) coordinate i of node j
inotr(1,j) transformation number applicable in node j
inotr(2,j) a SPC in a node j in which a transformation applies corre-
sponds to a MPC. inotr(2,j) contains the number of a new
node generated for the inhomogeneous part of the MPC
TOPOLOGY DESCRIPTION
ne highest element number
mi(1) max # of integration points per element (max over all ele-
ments)
10.16 List of variables and their meaning 799
variable meaning
mi(2) max degree of freedom per node (max over all nodes) in
fields like v(0:mi(2))...
if 0: only temperature DOF
if 3: temperature + displacements
if 4: temperature + displacements/velocities + pressure
kon(i) field containing the connectivity lists of the elements in suc-
cessive order
for 1d and 2d elements (no composites) the 3d-expansion
is stored first, followed by the topology of the original 1d
or 2d element, for a shell composite this is followed by the
topology of the expansion of each layer
For element i
ipkon(i) (location in kon of the first node in the element connectiv-
ity list of element i)-1; for expanded elements the expanded
connectivity comes first followed by the original 1d/2d con-
nectivity
lakon(i) element label
C3D4: linear tetrahedral element (F3D4 for 3D-fluids)
C3D6: linear wedge element (F3D6 for 3D-fluids)
C3D6 E: expanded plane strain 3-node element = CPE3
C3D6 S: expanded plane stress 3-node element = CPS3
C3D6 A: expanded axisymmetric 3-node element = CAX3
C3D6 L: expanded 3-node shell element = S3
C3D8: linear hexahedral element (F3D8 for 3D-fluids)
C3D8I: linear hexahedral element with incompatible modes
C3D8 E: expanded plane strain 4-node element = CPE4
C3D8 S: expanded plane stress 4-node element = CPS4
C3D8 A: expanded axisymmetric 4-node element = CAX4
C3D8I L: expanded 4-node shell element = S4
C3D8I B: expanded 2-node beam element = B31
C3D8R: linear hexahedral element with reduced integration
C3D8R E: expanded plane strain 4-node element with re-
duced integration = CPE4R
C3D8R S: expanded plane stress 4-node element with re-
duced integration = CPS4R
C3D8R A: expanded axisymmetric 4-node element with re-
duced integration = CAX4R
C3D8R L: expanded 4-node shell element with reduced in-
tegration = S4R
C3D8R B: expanded 2-node beam element with reduced
integration = B31R
C3D10: quadratic tetrahedral element
C3D15: quadratic wedge element
800 10 PROGRAM STRUCTURE.
variable meaning
C3D15 E: expanded plane strain 6-node element = CPE6
C3D15 S: expanded plane stress 6-node element = CPS6
C3D15 A: expanded axisymmetric 6-node element = CAX6
C3D15 L: expanded 6-node shell element = S6
C3D15 LC: expanded composite 6-node shell element = S6
C3D20: quadratic hexahedral element
C3D20 E: expanded plane strain 8-node element = CPE8
C3D20 S: expanded plane stress 8-node element = CPS8
C3D20 A: expanded axisymmetric 8-node element = CAX8
C3D20 L: expanded 8-node shell element = S8
C3D20 B: expanded 3-node beam element = B32
C3D20R: quadratic hexahedral element with reduced inte-
gration
C3D20RE: expanded plane strain 8-node element with re-
duced integration = CPE8R
C3D20RS: expanded plane stress 8-node element with re-
duced integration = CPS8R
C3D20RA: expanded axisymmetric 8-node element with re-
duced integration = CAX8R
C3D20RL: expanded 8-node shell element with reduced in-
tegration = S8R
C3D20RLC: expanded composite 8-node shell element with
reduced integration = S8R
C3D20RB: expanded 3-node beam element with reduced
integration = B32R
GAPUNI: 2-node gap element
ESPRNGA1 : 2-node spring element
EDSHPTA1 : 2-node dashpot element
ESPRNGC3 : 4-node contact spring element
ESPRNGC4 : 5-node contact spring element
ESPRNGC6 : 7-node contact spring element
ESPRNGC8 : 9-node contact spring element
ESPRNGC9 : 10-node contact spring element
ESPRNGF3 : 4-node advection spring element
ESPRNGF4 : 5-node advection spring element
ESPRNGF6 : 7-node advection spring element
ESPRNGF8 : 9-node advection spring element
network elements (D-type):]
DATR : absolute to relative
DCARBS : carbon seal
DCARBSGE : carbon seal GE (proprietary)
DCHAR : characteristic
DGAPFA : gas pipe Fanno adiabatic
10.16 List of variables and their meaning 801
variable meaning
DGAPFAA : gas pipe Fanno adiabatic Albers (proprietary)
DGAPFAF : gas pipe Fanno adiabatic Friedel (proprietary)
DGAPFI : gas pipe Fanno isothermal
DGAPFIA : gas pipe Fanno isothermal Albers (propri-
etary)
DGAPFIF : gas pipe Fanno isothermal Friedel (propri-
etary)
DLABD : labyrinth dummy (proprietary)
DLABFSN : labyrinth flexible single
DLABFSP : labyrinth flexible stepped
DLABFSR : labyrinth flexible straight
DLABSN : labyrinth single
DLABSP : labyrinth stepped
DLABSR : labyrinth straight
DLDOP : oil pump (proprietary)
DLICH : channel straight
DLICHCO : channel contraction
DLICHDO : channel discontinuous opening
DLICHDR : channel drop
DLICHDS : channel discontinuous slope
DLICHEL : channel enlargement
DLICHRE : channel reservoir
DLICHSG : channel sluice gate
DLICHSO : channel sluice opening
DLICHST : channel step
DLICHWE : channel weir crest
DLICHWO : channel weir slope
DLIPIBE : (liquid) pipe bend
DLIPIBR : (liquid) pipe branch (not available yet)
DLIPICO : (liquid) pipe contraction
DLIPIDI : (liquid) pipe diaphragm
DLIPIEL : (liquid) pipe enlargement
DLIPIEN : (liquid) pipe entrance
DLIPIGV : (liquid) pipe gate valve
DLIPIMA : (liquid) pipe Manning
DLIPIMAF : (liquid) pipe Manning flexible
DLIPIWC : (liquid) pipe White-Colebrook
DLIPIWCF : (liquid) pipe White-Colebrook flexible
DLIPU : liquid pump
DLPBEIDC : (liquid) restrictor bend Idelchik circular
DLPBEIDR : (liquid) restrictor bend Idelchik rectangular
DLPBEMA : (liquid) restrictor own (proprietary)
DLPBEMI : (liquid) restrictor bend Miller
802 10 PROGRAM STRUCTURE.
variable meaning
DLPBRJG : (liquid) (liquid) branch joint GE
DLPBRJI1 : (liquid) branch joint Idelchik1
DLPBRJI2 : (liquid) (liquid) branch joint Idelchik2
DLPBRSG : (liquid) (liquid) branch split GE
DLPBRSI1 : (liquid) branch split Idelchik1
DLPBRSI2 : (liquid) branch split Idelchik2
DLPC1 : (liquid) orifice Cd=1
DLPCO : (liquid) restrictor contraction
DLPEL : (liquid) restrictor enlargement
DLPEN : (liquid) restrictor entry
DLPEX : (liquid) restrictor exit
DLPLOID : (liquid) restrictor long orifice Idelchik
DLPLOLI : (liquid) restrictor long orifice Lichtarowicz
DLPUS : (liquid) restrictor user
DLPVF : (liquid) vortex free
DLPVS : (liquid) vortex forced
DLPWAOR : (liquid) restrictor wall orifice
DMRGF : Moehring centrifugal
DMRGP : Moehring centripetal
DORBG : orifice Bragg (proprietary)
DORBT : bleed tapping
DORC1 : orifice Cd=1
DORMA : orifice proprietary, rotational correction Albers
(proprietary)
DORMM : orifice McGreehan Schotsch, rotational correc-
tion McGreehan and Schotsch
DORPA : orifice Parker and Kercher, rotational correction
Albers (proprietary)
DORPM : orifice Parker and Kercher, rotational correction
McGreehan and Schotsch
DORPN : preswirl nozzle
DREBEIDC : restrictor bend Idelchik circular
DREBEIDR : restrictor bend Idelchik rectangular
DREBEMA : restrictor own (proprietary)
DREBEMI : restrictor bend Miller
DREBRJG : branch joint GE
DREBRJI1 : branch joint Idelchik1
DREBRJI2 : branch joint Idelchik2
DREBRSG : branch split GE
DREBRSI1 : branch split Idelchik1
DREBRSI2 : branch split Idelchik2
DRECO : restrictor contraction
DREEL : restrictor enlargement
10.16 List of variables and their meaning 803
variable meaning
DREEN : restrictor entrance
DREEX : restrictor exit
DRELOID : restrictor long orifice Idelchik
DRELOLI : restrictor long orifice Lichtarowicz
DREUS : restrictor user
DREWAOR : restrictor wall orifice
DRIMS : rim seal (proprietary)
DRTA : relative to absolute
DSPUMP : scavenge pump (proprietary)
DVOFO : vortex forced
DVOFR : vortex free
Uxxxxabc : user element with type number xxxx, num-
ber of integration points a, maximum degree of freedom in
any node b and number of nodes c; a,b and c are calcu-
lated internally based on the information on the *USER
ELEMENT card; notice that a, b and c are the character
equivalent, e.g. a=char(number of integration points)
ielorien(j,i) orientation number of layer j
ielmat(j,i) material number of layer j
ielprop(i) pointer to the position in field prop af-
ter which the properties for element i start
(prop(ielprop(i)+1),prop(ielprop(i)+2)...); for networks
and general beam sections
nuel number of different user element types
For user element
i
iuel(1,i) type number of the user element
iuel(2,i) number of itegration points
iuel(3,i) max degree of freedom in any of the nodes
iuel 4,i) number of nodes belonging to the element
SETS AND SURFACES
nset number of sets (including surfaces)
ialset(i) member of a set or surface: this is a
- node for a node set or nodal surface
- element for an element set
- number made up of 10*(element number)+facial number
for an element face surface
if ialset(i)=-1 it means that all nodes or elements (depend-
ing on the kind of set) in between ialset(i-2) and ialset(i-1)
are also member of the set
For set i
set(i) name of the set; this is the user defined name
+ N for node sets
804 10 PROGRAM STRUCTURE.
variable meaning
+ E for element sets
+ S for nodal surfaces
+ T for element face surfaces
istartset(i) pointer into ialset containing the first set member
iendset(i) pointer into ialset containing the last set member
TIE CONSTRAINTS
ntie number of tie constraints
For tie constraint
i
tieset(1,i) name of the tie constraint;
for contact constraints (which do not have a name) the
adjust nodal set name is stored, if any, and a C is appended
at the end (C is replaced by - for deactivated contact pairs)
for multistage constraints a M is appended at the end
for a contact tie a T is appended at the end
for submodels (which do not have a name) a fictitious name
SUBMODELi is used, where i is a three-digit consecutive
number and a S is appended at the end
for sensitivity sets a D is appended at the end (for design
variables)
tieset(2,i) dependent surface name
+ S for nodal surfaces (node-to-face contact)
+ T for facial surfaces (node-to-face or face-to-face contact)
+ M for facial surfaces (quad-quad Mortar contact)
+ P for facial surfaces (quad-lin Petrov Galerkin Mortar
contact)
+ G for facial surfaces (quad-quad Petrov Galerkin Mortar
contact)
+ O for facial surfaces (quad-lin Mortar contact)
tieset(3,i) independent surface name + T
tietol(1,i) tie tolerance; used for cyclic symmetry ties
special meaning for contact pairs:
> 0 for large sliding
< 0 for small sliding
if |tietol| ≥ 2, adjust value = |tietol|-2
tietol(2,i) for contact pairs: number of the relevant interaction defi-
nition (is treated as a material)
for ties: -1 means ADJUST=NO, +1 means AD-
JUST=YES (default)
tietol(3,i) only for contact pairs: the clearance defined in a *CLEAR-
ANCE card
10.16 List of variables and their meaning 805
variable meaning
tietol(4,i) only for contact pairs: > 0 if reactivated with *MODEL
CHANGE, ADD in the present step, else =0
CONTACT
ncont total number of triangles in the triangulation of all inde-
pendent surfaces
ncone total number of slave nodes in the contact formulation
mortar -2: no contact
-1: massless dynamic contact
0: node-to-surface penalty contact
1: surface-to-surface penalty contact
2: mortar contact
For triangle i
koncont(1..3,i) nodes belonging to the triangle
koncont(4,i) element face to which the triangle belongs: 10*(element
number) + face number
cg(1..3,i) global coordinates of the center of gravity
straight(1..4,i) coefficients of the equation of the plane perpendicular to
the triangle and containing its first edge (going through
the first and second node of koncont)
straight(5..8,i) idem for the second edge
straight(9..12,i) idem for the third edge
straight(13..16,i) coefficients of the equation of the plane containing the tri-
angle
For contact tie
constraint i
itietri(1,i) first triangle in field koncont of the master surface corre-
sponding to contact tie constraint i
itietri(2,i) last triangle in field koncont of the master surface corre-
sponding to contact tie constraint i
SHELL (2D) AND BEAM (1D) VARIABLES (INCLUDING PLANE STRAIN,
PLANE STRESS AND AXISYMMETRIC ELEMENTS)
iponor(2,i) two pointers for entry i of kon. The first pointer points
to the location in xnor preceding the normals of en-
try i, the second points to the location in knor pre-
ceding the newly generated dependent nodes of entry i.
The entry i relates to the unexpanded version of the
element and, for element j, assumed to be stored at
kon(ipkon(j)+1)...kon(ipkon(j)+m), where m is the num-
ber of 2d nodes belonging to the element
xnor(i) field containing the normals in nodes on the elements they
belong to
knor(i) field containing the extra nodes needed to expand the shell
and beam elements to volume elements
806 10 PROGRAM STRUCTURE.
variable meaning
thickn(2,i) thicknesses (one for shells, two for beams) in node i
thicke(j,i) thicknesses (one (j=1) for non-composite shells, two (j=1,2)
for beams and n (j=1..n) for composite shells consisting of
n layers) in element nodes. The entries correspond to the
nodal entries in field kon
offset(2,i) offsets (one for shells, two for beams) in element i
iponoel(i) pointer for node i into field inoel, which stores the 1D and
2D elements belonging to the node.
inoel(3,i) field containing an element number, a local node number
within this element and a pointer to another entry (or zero
if there is no other).
inoelfree next free field in inoel
rig(i) integer field indicating whether node i is a rigid node
(nonzero value) or not (zero value). In a rigid node or knot
all expansion nodes except the ones not in the midface of
plane stress, plane strain and axisymmetric elements are
connected with a rigid body MPC. If node i is a rigid node
rig(i) is the number of the rotational node of the knot; if the
node belongs to axisymmetric, plane stress and plane strain
elements only, no rotational node is linked to the knot and
rig(i)=-1
AMPLITUDES
nam # amplitude definitions
amta(1,j) time of (time,amplitude) pair j
amta(2,j) amplitude of (time,amplitude) pair j
namtot total # of (time,amplitude) pairs
For amplitude i
amname(i) name of the amplitude
namta(1,i) location of first (time,amplitude) pair in field amta
namta(2,i) location of last (time,amplitude) pair in field amta
namta(3,i) in absolute value the amplitude it refers to; if
abs(namta(3,i))=i it refers to itself. If abs(namta(3,i))=j,
amplitude i is a time delay of amplitude j the value of
which is stored in amta(1,namta(1,i)); in the latter case
amta(2,namta(1,i)) is without meaning; If namta(3,i)>0
the time in amta for amplitude i is step time, else it is
total time.
TRANSFORMS
ntrans # transform definitions
trab(1..6,i) coordinates of two points defining the transform
trab(7,i) =-1 for cylindrical transformations
=1 for rectangular transformations
10.16 List of variables and their meaning 807
variable meaning
SINGLE POINT CONSTRAINTS
nboun # SPC’s
For SPC i
nodeboun(i) SPC node
ndirboun(i) SPC direction
typeboun(i) SPC type (SPCs can contain the nonhomogeneous part of
MPCs)
A=acceleration
B=prescribed boundary condition
M=midplane
R=rigidbody
U=usermpc
xboun(i) magnitude of constraint at end of a step
xbounold(i) magnitude of constraint at beginning of a step
xbounact(i) magnitude of constraint at the end of the present increment
xbounini(i) magnitude of constraint at the start of the present incre-
ment
iamboun(i) amplitude number
for submodels the step number is inserted
ikboun(i) ordered array of the DOFs corresponding to the SPC’s
(DOF=8*(nodeboun(i)-1)+ndirboun(i))
ilboun(i) original SPC number for ikboun(i)
MULTIPLE POINT CONSTRAINTS
labmpc(i) label of MPC i
j=ipompc(i) starting location in nodempc and coefmpc of MPC i
nodempc(1,j) node of first term of MPC i
nodempc(2,j) direction of first term of MPC i
k=nodempc(3,j) next entry in field nodempc for MPC i (if zero: no more
terms in MPC)
coefmpc(j) first coefficient belonging to MPC i
nodempc(1,k) node of second term of MPC i
nodempc(2,k) direction of second term of MPC i
coefmpc(k) coefficient of second term of MPC i
ikmpc (i) ordered array of the dependent DOFs correspond-
ing to the MPC’s DOF=8*(nodempc(1,ipompc(i))-
1)+nodempc(2,ipompc(i))
ilmpc (i) original MPC number for ikmpc(i)
memmpc upper value of sum of number of terms in all MPC’s
mpcend last occupied entry in nodempc and coefmpc
maxlenmpc maximum number of terms in any MPC
icascade 0 : MPC’s did not change since the last iteration
1 : MPC’s changed since last iteration : dependency check
in cascade.c necessary
808 10 PROGRAM STRUCTURE.
variable meaning
2 : at least one nonlinear MPC had DOFs in common with
a linear MPC or another nonlinear MPC. dependency check
is necessary in each iteration
FORCE CONSTRAINTS
nfc number of force constraints
coeffc(0,i) dof in the coupling surface corresponding to constraint i in
the form dof=10*node+dir
coeffc(1..6,i) coefficients for constraint i
ndc number of distributing couplings
ikdc(i) dof of distributing coupling i in the form dof=8*(refnode-
1)+refdir
idc(1,i) first constraint in field coeffc for distributing coupling i
idc(2,i) last constraint in field coeffc for distributing coupling i
idc(3,i) orientation for distributing coupling i
POINT LOADS
nforc # of point loads
For point load i
nodeforc(1,i) node in which force is applied
nodeforc(2,i) sector number, if force is real; sector number + # sectors
if force is imaginary (only for modal dynamics and steady
state dynamics analyses with cyclic symmetry)
ndirforc(i) direction of force
xforc(i) magnitude of force at end of a step
xforcold(i) magnitude of force at start of a step
xforcact(i) actual magnitude
iamforc(i) amplitude number
idefforc(i) 0: no force was defined for this node and direction on the
same sector before within the actual step
1: at least one force was defined for this node and direction
on the same sector before within the actual step
ikforc(i) ordered array of the DOFs corresponding to the point loads
(DOF=8*(nodeboun(i)-1)+ndirboun(i))
ilforc(i) original SPC number for ikforc(i)
FACIAL DISTRIBUTED LOADS
nload # of facial distributed loads
For distributed
load i
nelemload(1,i) element to which distributed load is applied
nelemload(2,i) node for the environment temperature (only for heat trans-
fer analyses); sector number, if load is real; sector number
+ # sectors if load is imaginary (only for modal dynamics
and steady state dynamics analyses with cyclic symmetry)
10.16 List of variables and their meaning 809
variable meaning
sideload(i) load label; indicated element side to which load is applied
xload(1,i) magnitude of load at end of a step or, for heat transfer
analyses, the convection (*FILM) or the radiation coeffi-
cient (*RADIATE)
xload(2,i) the environment temperature (only for heat transfer anal-
yses
xloadold(1..2,i) magnitude of load at start of a step
xloadact(1..2,i) actual magnitude of load
iamload(1,i) amplitude number for xload(1,i)
for submodels the step number is inserted
iamload(2,i) amplitude number for xload(2,i)
idefload(i) 0: no load was defined on the same element with the same
label and on the same sector before within the actual step
1: at least one load was defined on the same element with
the same label and on the same sector before within the
actual step
MASS FLOW RATE
nflow # of network elements
TEMPERATURE LOADS
t0(i) initial temperature in node i at the start of the calculation
t1(i) temperature at the end of a step in node i
t1old(i) temperature at the start of a step in node i
t1act(i) actual temperature in node i
iamt1(i) amplitude number
MECHANICAL BODY LOADS
nbody # of mechanical body loads
For body load i
ibody(1,i) code identifying the kind of body load
1: centrifugal loading
2: gravity loading with known gravity vector
3: generalized gravity loading
4: Coriolis (for steady state dynamics)
ibody(2,i) amplitude number for load i
ibody(3,i) load case number for load i
cbody(i) element number or element set to which load i applies
xbody(1,i) size of the body load
xbody(2..4,i) for centrifugal loading: point on the axis
for gravity loading with known gravity vector: normalized
gravity vector
xbody(5..7,i) for centrifugal loading: normalized vector on the rotation
axis
xbodyact(1,i) actual magnitude of load
810 10 PROGRAM STRUCTURE.
variable meaning
xbodyact(2..7,i) identical to the corresponding entries in xbody
idefbody(i) 0: no body load was defined on the same set with the same
code and the same load case number before within the ac-
tual step
1: at least one body load was defined on the same set with
the same code and the same load case number before within
the actual step
For element i
ipobody(1,i) body load applied to element i, if any, else 0
ipobody(2,i) index referring to the line in field ipobody containing
the next body load applied to element i, i.e. ipo-
body(1,ipobody(2,i)), else 0
STRESS, STRAIN AND ENERGY FIELDS
eei(i,j,k) in general : Lagrange strain component i in integration
point j of element k (linear strain in linear elastic calcula-
tions)
for elements with DEFORMATION PLASTICITY prop-
erty: Eulerian strain component i in integration point j of
element k (linear strain in linear elastic calculations)
eeiini(i,j,k) Lagrange strain component i in integration point of element
k at the start of an increment
een(i,j) Lagrange strain component i in node j (mean over all adja-
cent elements linear strain in linear elastic calculations)
stx(i,j,k) Cauchy or PK2 stress component i in integration point j of
element k at the end of an iteration (linear stress in linear
elastic calculations).
For spring elements stx(1..3,1,k) contains the relative dis-
placements for element k and stx(4..6,1,k) the contact
stresses
sti(i,j,k) PK2 stress component i in integration point j of element
k at the start of an iteration (linear stress in linear elastic
calculations)
stiini(i,j,k) PK2 stress component i in integration point j of element k
at the start of an increment
stn(i,j) Cauchy stress component i in node j (mean over all adjacent
elements; ”linear” stress in linear elastic calculations)
ener(1,j,k) strain energy in integration point j of element k;
ener(2,j,k) kinetic energy in integration point j of element k; if k is a
contact spring element: friction energy (j=1)
enerini(1,j,k) strain energy in integration point of element k at the start
of an increment
10.16 List of variables and their meaning 811
variable meaning
enerini(2,j,k) kinetic energy in integration point j of element k at the start
of an increment; if k is a contact spring element: friction
energy at the start of an increment(j=1)
enern(j) strain energy in node j (mean over all adjacent elements
THERMAL ANALYSIS
ithermal(1) 0 : no temperatures involved in the calculation
(in this manual also 1 : stress analysis with given temperature field
called ithermal) 2 : thermal analysis (no displacements)
3 : coupled thermal-mechanical analysis : temperatures
and displacements are solved for simultaneously
4 : uncoupled thermal-mechanical analysis : in a new in-
crement temperatures are solved first, followed by the dis-
placements
ithermal(2) used to determine boundary conditions for plane stress,
plane strain and axisymmetric elements
0 : no temperatures involved in the calculation
1 : no heat transfer nor coupled steps in the input deck
2 : no mechanical nor coupled steps in the input deck
3 : at least one mechanical and one thermal step or at least
one coupled step in the input deck
v(0,j) temperature of node j at the end of an iteration (for ither-
mal > 1)
vold(0,j) temperature of node j at the start of an iteration (for ither-
mal > 1)
vini(0,j) temperature of node j at the start of an increment (for
ithermal > 1)
fn(0,j) actual temperature at node j (for ithermal > 1)
qfx(i,j,k) heat flux component i in integration point j of element k at
the end of an iteration
qfn(i,j) heat flux component i in node j (mean over all adjacent
elements)
DISPLACEMENTS AND SPATIAL/TIME DERIVATIVES
v(i,j) displacement of node j in direction i at the end of an itera-
tion
vold(i,j) displacement of node j in direction i at the start of an iter-
ation
vini(i,j) displacement of node j in direction i at the start of an in-
crement
ve(i,j) velocity of node j in direction i at the end of an iteration
veold(i,j) velocity of node j in direction i at the start of an iteration
veini(i,j) velocity of node j in direction i at the start of an increment
accold(i,j) acceleration of node j in direction i at the start of an iter-
ation
812 10 PROGRAM STRUCTURE.
variable meaning
accini(i,j) acceleration of node j in direction i at the start of an incre-
ment
vkl(i,j) (i,j) component of the displacement gradient tensor at the
end of an iteration
xkl(i,j) (i,j) component of the deformation gradient tensor at the
end of an iteration
xikl(i,j) (i,j) component of the deformation gradient tensor at the
start of an increment
ckl(i,j) (i,j) component of the inverse of the deformation gradient
tensor
LINEAR EQUATION SYSTEM
nasym 0: symmetrical system
1: asymmetrical system
ad(i) element i on diagonal of stiffness matrix
au(i) element i in lower triangle of stiffness matrix
irow(i) row of element i in field au (i.e. au(i))
icol(i) number of subdiagonal nonzero’s in column i (only for sym-
metric matrices)
jq(i) location in field irow of the first subdiagonal nonzero in
column i (only for symmetric matrices)
adb(i) element i on diagonal of mass matrix, or, for buckling, of
the incremental stiffness matrix (only nonzero elements are
stored)
aub(i) element i in upper triangle of mass matrix, or, for buckling,
of the incremental stiffness matrix (only nonzero elements
are stored)
neq[0] # of mechanical equations
neq[1] sum of mechanical and thermal equations
neq[2] neq[1] + # of single point constraints (only for modal cal-
culations)
nzl number of the column such that all columns with a higher
column number do not contain any (projected) nonzero off-
diagonal terms (≤ neq[1])
nzs[0] sum of projected nonzero mechanical off-diagonal terms
nzs[1] nzs[0]+sum of projected nonzero thermal off-diagonal terms
nzs[2] nzs[1] + sum of nonzero coefficients of SPC degrees of free-
dom (only for modal calculations)
nactdof(i,j) >0: actual degree of freedom (in the system of equations)
of DOF i of node j
<0 and even: -nactdof(i,j)/2 is the SPC number applied to
this degree of freedom
10.16 List of variables and their meaning 813
variable meaning
<0 and odd: (-nactdof(i,j)+1)/2 is the MPC number for
which this degree of freedom constitutes the dependent
term
inputformat =0: matrix is symmetric; lower triangular matrix is stored
in fields ad (diagonal), au (subdiagonal elements), irow, icol
and jq.
=1: matrix is not symmetric. Diagonal and subdiagonal
entries are stored as for inputformat=0; The superdiagonal
entries are stored at the end of au in exactly the same order
as the symmetric subdiagonal counterpart
INTERNAL AND EXTERNAL FORCES
fext(i) external mechanical forces in DOF i (due to point loads and
distributed loads, including centrifugal and gravity loads,
but excluding temperature loading and displacement load-
ing)
fextini(i) external mechanical forces in DOF i (due to point loads and
distributed loads, including centrifugal and gravity loads,
but excluding temperature loading and displacement load-
ing) at the end of the last increment
finc(i) external mechanical forces in DOF i augmented by con-
tributions due to temperature loading and prescribed dis-
placements; used in linear calculations only
f(i) actual internal forces in DOF i due to :
actual displacements in the independent nodes;
prescribed displacements at the end of the increment in the
dependent nodes;
temperatures at the end of the increment in all nodes
fini(i) internal forces in DOF i at the end of the last increment
b(i) right hand side of the equation system : difference between
fext and f in nonlinear calcultions; for linear calculations,
b=finc.
fn(i,j) actual force at node j in direction i
INCREMENT PARAMETERS
jmax(1) in a *SUBSTRUCTURE GENERATE procedure:
if 1: FILE=USER DEFINED
if 2: FILE=MATRIX
in all other procedures: maximum number of thermome-
chanical increments
jmax(2) maximum number of CFD increments
tinc user given increment size (can be modified by the program
if the parameter DIRECT is not activated)
tper user given step size
814 10 PROGRAM STRUCTURE.
variable meaning
dtheta normalized (by tper) increment size
theta normalized (by tper) size of all previous increments (not
including the present increment)
reltime theta+dtheta
dtime real time increment size
time real time size of all previous increments INCLUDING the
present increment
ttime real time size of all previous steps
DIRECT INTEGRATION DYNAMICS
alpha[0] parameter in the alpha-method of Hilber, Hughes and Tay-
lor
alpha[1] if > 1: a transformation from a local rotating system to
the global fixed system should be applied before starting
the calculation
else: no such transformation should be applied
bet,gam parameters in the alpha-method of Hilber, Hughes and Tay-
lor
iexpl =0 : implicit dynamics
=1 : explicit dynamics
mscalmethod < 0: no explicit dynamics
0: explicit dyn., no mass nor contact spring scaling
1: explicit dyn., mass scaling, no contact spring scaling
2: explicit dyn., no mass scaling, contact spring scaling
3: explicit dyn., mass scaling and contact spring scaling
smscale(i) scaling coefficient for element i
if i <= ne0: mass scaling coefficient
if i > ne0: contact spring scaling coefficient
FREQUENCY CALCULATIONS
mei[0] number of requested eigenvalues
mei[1] number of Lanczos vectors
mei[2] maximum number of iterations
mei[3] if 1: store eigenfrequencies, eigenmodes, mass matrix and
possibly stiffness matrix in .eig file, else 0
fei[0] tolerance (accuracy)
fei[1] lower value of requested frequency range
fei[2] upper value of requested frequency range
fei[3] minimum time increment in an eventually subsequent ! ex-
plicit dynamics step
CYCLIC SYMMETRY CALCULATIONS
mcs number of cyclic symmetry parts
ics one-dimensional field; contains all independent nodes, one
part after the other, and sorted within each part
10.16 List of variables and their meaning 815
variable meaning
rcs one-dimensional field; contains the corresponding radial co-
ordinates
zcs one-dimensional field; contains the corresponding axial co-
ordinates
For cyclic sym-
metry part i
cs(1,i) number of segments in 360◦
cs(2,i) minimum nodal diameter
cs(3,i) maximum nodal diameter
cs(4,i) number of nodes on the independent side
cs(5,i) number of sections to be plotted
cs(6..12,i) coordinates of two points on the cyclic symmetry axis
cs(13,i) if ¿ 0: number of the element set (e.g. for plotting purposes)
if ¡ 0: -cs(13,i) is the number of a substructure element (also
called superelement)
cs(14,i) total number of independent nodes in all previously defined
cyclic symmetry parts
cs(15,i) cos(angle) where angle = 2*π/cs(1,mcs)
cs(16,i) sin(angle) where angle = 2*π/cs(1,mcs)
cs(17,i) number of tie constraint
MODAL DYNAMICS AND STEADY STATE DYNAMICS CALCULATIONS
For Rayleigh damping (modal and steady state dy-
namics)
xmodal(1) αm (first Rayleigh coefficient)
xmodal(2) βm (second Rayleigh coefficient)
For steady state dynamics
xmodal(3) lower frequency bound fmin
xmodal(4) upper frequency bound fmax
xmodal(5) number of data points ndata + 0.5
xmodal(6) bias
xmodal(7) if harmonic: -0.5; if not harmonic: number of Fourier coef-
ficients + 0.5
xmodal(8) lower time bound tmin for one period (nonharmonic load-
ing)
xmodal(9) upper time bound tmax for one period (nonharmonic load-
ing)
For damping (modal and steady state dynamics)
xmodal(10) internal number of node set for which results are to be
calculated
xmodal(11) for Rayleigh damping: -0.5
for direct damping: largest mode for which ζ is defined +0.5
For direct damping
xmodal(12.. values of the ζ coefficients
816 10 PROGRAM STRUCTURE.
variable meaning
imddof(*) dofs which are retained (requested output, applied loads..)
nmddof number of dofs in imddof
imdnode(*) nodes which are retained (requested output, contact
nodes..)
nmdnode number of nodes in imdnode
imdboun(*) boundary conditions needed at retained nodes
nmdboun size of field imdboun
imdmpc(*) MPCs needed at retained nodes
nmdmpc size of field imdmpc
imdelem(*) elements which are retained (calculation of stresses at the
integration points....)
nmdelem size of field imdelem
iznode(*) nodes in imdnode + nodes with loading (user and non-
user); only the results in the nodes in iznode are mapped
onto the other sectors
nznode size of field iznode
izdof(*) retained dofs: dofs in imddof + dofs in nodes with non-user
cloads and dloads; only those dofs are stored in field z
nzdof size of field izdof
OUTPUT IN .DAT FILE
prset(i) node or element set corresponding to output request i
prlab(i) label corresponding to output request i. It contains 6
characters. The first 4 are reserved for the field name,
e.g. ’U ’ for displacements, the fifth for the value of the
TOTALS parameter (’T’ for TOTALS=YES, ’O’ for TO-
TALS=ONLY and ’ ’ else) and the sixth for the value of
the GLOBAL parameter (’G’ for GLOBAL=YES and ’L’
for GLOBAL=NO).
nprint number of print requests
10.16 List of variables and their meaning 817
variable meaning
OUTPUT IN .FRD FILE
818 10 PROGRAM STRUCTURE.
variable meaning
filab(i) label corresponding to output field i. It contains 6 charac-
ters for the kind of output and 81 characters for the node
set for which the output is requested, if any. The first 4 are
reserved for the field name. The order is fixed: filab(1)=’U
’, filab(2)=’NT ’,filab(3)=’S ’,filab(4)=’E ’, filab(5)=’RF
’, filab(6)=’PEEQ’, filab(7)=’ENER’, filab(8)=’SDV
’, filab(9)=’HFL ’, filab(10)=’RFL ’, filab(11)=’PU ’,
filab(12)=’PNT ’, filab(13)=’ZZS ’, filab(14)=’TT ’,
filab(15)=’MF ’, filab(16)=’PT ’, filab(17)=’TS ’, fi-
lab(18)=’PHS ’, filab(19)=’MAXU’,filab(20)=’MAXS’,
filab(21)=’V ’,filab(22)=’PS ’,filab(23)=’MACH’, fi-
lab(24)=’CP ’, filab(25)=’TURB’, filab(26)=’CONT ’
filab(27)=’CELS ’, filab(28)=’DEPT ’, filab(29)=’HCRI
’, filab(30)=’MAXE’, filab(31)=’PRF ’, filab(32)=’ME
’, filab(33)=’HER, filab(34)=’VF ’, filab(35)=’PSF ’,
filab(36)=’TSF ’, filab(37)=’PTF ’, filab(38)=’TTF ’,
filab(39)=’SF ’, filab(40)=’HFLF’, filab(41)=’SVF ’,
filab(42)=’ECD ’, filab(43)=’POT ’, filab(44)=’EMFE’,
filab(45)=’EMFB’, filab(46)=’PCON’, filab(47)=SEN
’, filab(48)=’RM ’ (the latter refers to mesh re-
finement), filab(49)=’DEPF’, filab(50)=’DTF ’, fi-
lab(51)=’SNEG’,filab(52)=’SMID’,filab(53)=’SPOS’,
filab(54)=’KEQ ’,filab(55)=’THE ’. Results are stored
for the complete mesh. A field is not selected if the first
4 characters are blank, e.g. the stress is not stored if
filab(3)(1:4)=’ ’. An exception to this rule is formed
for filab(1): here, only the first two characters are used
and should be either ’U ’ or ’ ’, depending on whether
displacements are requested are not. The third character
takes the value ’C’ if the user wishes that the contact
elements in each iteration of the last increment are stored
in dedicated files, else it is blank. The fourth character
takes the value ’I’ if the user wishes that the displacements
of the iterations of the last increment are stored (used for
debugging in case of divergence), else it is blank. If the
mesh contains 1D or 2D elements, the fifth character takes
the value ’I’ if the results are to be interpolated, ’M’ if
the section forces are requested instead of the stresses and
’E’ if the 1D/2D element results are to be given on the
expanded elements. In all other cases the fifth character
is blank: ’ ’. The sixth character contains the value of
the GLOBAL parameter (’G’ for GLOBAL=YES and ’L’
for GLOBAL=NO). The entries filab(13)=’RFRES ’ and
filab(14)=’RFLRES’ are reserved for the output of the
residual forces and heat fluxes in case of no convergence
and cannot be selected by the user: the residual forces
and heat fluxes are automatically stored if the calculation
stops due to divergence.
10.16 List of variables and their meaning 819
variable meaning
inum(i) =-1: network node
=1: structural node or 3D fluid node
CONVECTION NETWORKS
ntg number of gas nodes
For gas node i
itg(i) global node number
nactdog(j,i) if 6= 0 indicates that degree of freedom j of gas node i is is an
unknown; the nonzero number is the column number of the
DOF in the convection system of equations. The physical
significance of j depends on whether the node is a midside
node or corner node of a fluid element:
j=0 and corner node: total temperature
j=1 and midside node: mass flow
j=2 and corner node: total pressure
j=3 and midside node: geometry (e.g. α for a gate valve)
nacteq(j,i) if 6= 0 indicates that equation type j is active in gas node
i; the nonzero number is the row number of the DOF in
the convection system of equations. The equation type of
j depends on whether the node is a midside node or corner
node of a network element:
j=0 and corner node: conservation of energy
j=1 and corner node: conservation of mass
j=2 and midside node: convervation of momentum
ineighe(i) only for gas network nodes (no liquids):
if 0: itg(i) is a midside node
if -1: itg(i) is a chamber
if > 0: ineighe(i) is a gas pipe element itg(i) belongs to
variable meaning
if 2: purely thermal (alternating solution (presence of Dx-
elements) or simultaneous (no Dx elements))
if 3: coupled thermodynamic network (alternating solution)
if 4: purely aerodynamic (total temperature is known ev-
erywhere; alternating solution)
THERMAL RADIATION
ntr number of element faces loaded by radiation = radiation
faces
iviewfile −2: NO CHANGE option on the *VIEWFACTOR card,
no reading, no calculating, no writing
−1: reading the viewfactors from file, no writing
1: calculating the viewfactors, no writing
2: calculating the viewfactors, writing to file and continuing
3: calculating the viewfactors, stop after storing the view-
factors to file
For radiation
face i
kontri(1..3,j) nodes belonging to triangle j
kontri(4,j) radiation face number (> 0 and ≤ ntri)to which triangle j
belongs
nloadtr(i) distributed load number (> 0 and ≤ nload) corresponding
to radiation face i
ITERATION VARIABLES
istep step number
iinc increment number
iit iteration number
= -1 only before the first iteration in the first increment of
a step
= 0 before the first iteration in an increment which was
repeated due to non-convergence or any other but the first
increment of a step
> 0 denotes the actual iteration number
PHYSICAL CONSTANTS
physcon(1) Absolute zero
physcon(2) Stefan-Boltzmann constant
physcon(3) Newton Gravity constant
physcon(4) Static temperature at infinity (for 3D fluids)
physcon(5) Velocity at infinity (for 3D fluids)
physcon(6) Static pressure at infinity (for 3D fluids)
physcon(7) Density at infinity (for 3D fluids)
physcon(8) Typical size of the computational domain (for 3D fluids)
10.16 List of variables and their meaning 821
variable meaning
physcon(9) Turbulence parameter
if 0 ≤ physcon(9) < 1: laminar
if 1 ≤ physcon(9) < 2: k-ǫ Model
if 2 ≤ physcon(9) < 3: q-ω Model
if 3 ≤ physcon(9) < 4: SST Model
physcon(11) number of eigenvectors used in the creation of a random
field
physcon(12) standard deviation used in the creation of a random field
physcon(13) correlation length used in the creation of a random field
physcon(14) shock smoothing coefficient (CFD method)
COMPUTATIONAL FLUID DYNAMICS
vold(0,i) Static temperature in node i
vold(1..3,i) Velocity components in node i
vold(4,i) Pressure in node i
voldaux(0,i) Total energy density ρǫt in node i
voldaux(1..3,i) Momentum density components ρvi in node i
voldaux(4,i) Density ρ in node i
v(0,i) Total energy density correction in node i
v(1..3,i) Momentum density correction components in node i
v(4,i) For fluids: Pressure correction in node i
For gas: Density correction in node i
ELECTROMAGNETICS
vold(0,i) Static temperature in node i
vold(1..3,i) Magnetic vector potential A (domain 2 or 3) in node i
vold(4,i) Electric scalar potential V (domain 2) in node i
vold(5,i) Magnetic scalar potential P (domain 1) in node i
sti(1..3,j,k) Electric field in the A−V domain (domain 2) in integration
point j of element k
sti(4..6,j,k) Magnetic field in any domain in integration point j of ele-
ment k
neq[0] # of electromagnetic equations (covering the magnetic
scalar potential in domain 1, the magnetic vector potential
and electric scalar potential in domain 2 an the magnetic
vector potential in domain 3)
neq[1] sum of electromagnetic and thermal equations
nzs[0] sum of projected nonzero electromagnetic off-diagonal
terms
nzs[1] nzs[0]+sum of projected nonzero thermal off-diagonal terms
h0ref(1..3,i) magnetic intensity in infinite space due to the nominally
applied electrical potential across the coils
h0(1..3,i) magnetic intensity in infinite space due to the actually ap-
plied electrical potential across the coils
822 10 PROGRAM STRUCTURE.
variable meaning
CONVERGENCE PARAMETERS
qa[0] q̄iα for the mechanical forces (average force)
qa[1] q̄iα for the thermal forces (average flux)
qa[2] -1: no time increment decrease
>0: time increment multiplication factor (< 1) due to di-
vergence in a material routine
qa[3] maximum of the change of the viscoplastic strain within a
given increment over all integration points in all elements
qam[0] q̃iα for the mechanical forces
qam[1] q̃iα for the concentrated heat flux
α
ram[0] ri,max for the mechanical forces
α
ram[1] ri,max for the concentrated heat flux
ram[2] the node corresponding to ram[0]
ram[3] the node corresponding to ram[1]
ram[4] ram[0] (present iteration) + ram[0] (previous iteration
ram[5] number of contact elements (present iteration) - number of
contact elements (previous iteration)
uam[0] ∆uα i,max for the displacements
uam[1] ∆uα i,max for the temperatures
cam[0] cαi,max for the displacements
cam[1] cαi,max for the temperatures
cam[2] largest temperature change within the increment
cam[3] node corresponding to cam[0]
cam[4] node corresponding to cam[1]
for networks
uamt largest increment of gas temperature
camt[0] largest correction to gas temperature
camt[1] node corresponding to camt[0]
uamf largest increment of gas massflow
camf[0] largest correction to gas massflow
camf[1] node corresponding to camt[0]
uamp largest increment of gas pressure
camp[0] largest correction to gas pressure
camp[1] node corresponding to camt[0]
iflagact 0: number of contact elements did not significantly change
between present and prevous iteration
1: else (i.e. did significantly change)
THREE-DIMENSIONAL INTERPOLATION
cotet(1..3,i) coordinates of nodes i
kontet(1..4,i) nodes belonging to tetrahedron i
ipofa(i) entry in field inodfa pointing to a face for which node i is
the smallest number
10.16 List of variables and their meaning 823
variable meaning
inodfa(1..3,i) nodes j, k and l belonging to face i such that j < k < l
inodfa(4,i) number of another face for which inodfa(1,i) is the smallest
number. If no other exists the value is zero
planfa(1..4,i) coefficients a, b, c and d of the plane equation
ax+by+cz+d=0 of face i
ifatet(1..4,i) faces belonging to tetrahedron i. The sign identifies the half
space to which i belongs if evaluating the plane equation of
the face
It is important to notice the difference between cam[1] and cam[2]. cam[1] is the
largest change within an iteration of the actual increment. If the corrections in
subsequent iterations all belonging to the same increment are 5,1,0.1, the value
of cam[1] is 5. cam[2] is the largest temperature change within the increment,
in the above example this is 6.1.
11 Verification examples.
The verification examples are simple examples suitable to test distinct fea-
tures. They can be used to check whether the installation of CalculiX is cor-
rect, or to find examples when using a new feature. All verification examples
are stored in ccx 2.22.test.tar.bz2. The larger fluid examples can be found in
ccx 2.22.fluidtest.tar.bz2, the larger structural examples in ccx 2.22.structest.tar.bz2.
References
[1] ABAQUS Theory Manual. Hibbitt, Karlsson & Sorensen, Inc., 1080 Main
Street, Pawtucket, RI 02860-4847, U.S.A. (1997).
[2] Anderson, J.D.Jr., Introduction to flight. Mc Graw-Hill International Edi-
tions (1989).
[3] Ashcraft, C., Grimes, R.G., Pierce, D.J., and Wah, D.K., The User Manual
for SPOOLES, Release 2.0: An object oriented software library for solving
sparse linear systems of equations. Boeing Shared Services Group, P.O. Box
24346, Mail Stop 7L-22, Seattle, Washington 98124 U.S.A. (1998).
[4] Ashcraft, C. and Wah, D.K., The Reference Manual for SPOOLES, Release
2.0: An object oriented software library for solving sparse linear systems
of equations. Boeing Shared Services Group, P.O. Box 24346, Mail Stop
7L-22, Seattle, Washington 98124 U.S.A. (1998).
[5] Ashcroft, N.W., and Mermin, N.D., Solid State Physics. Saunders College,
Philadelphia (1976).
[6] Ashdown, I., Radiosity: A Programmer’s Perspective. Wiley, New York
(1994).
[7] Asl, R.N. and Bletzinger, K.-U., The implicit bulk-surface filtering method
for node-based shape optimization and a comparison of explicit and implicit
filtering techniques. Structural and Multidisciplinary Optimization 66:111
(2023), https://doi.org/10.1007/s00158-023-03548-2.
[8] Barlow, J., Optimal stress locations in finite element models. Int. J. Num.
Meth. Engng. 10 , 243-251 (1976).
[9] Beatty, M.F., Topics in finite elasticity: hyperelasticity of rubber, elas-
tomers, and biological tissues - with examples. Appl. Mech. Rev. 40(12)
, 1699-1734 (1987).
[10] Belytschko, T., Liu, W.K. and Moran, B., Nonlinear Finite Elements for
Continua and Structures. John Wiley & Sons, New York (2001).
[11] Berlamont, J., Hydraulica. Katholieke Universiteit Leuven, Belgium
(1980).
REFERENCES 825
[16] Carter, J.E., Numerical solutions of the Navier-Stokes equations for the
supersonic laminar flow over a two-dimensional compression corner. NASA
TR R-385 Report (1972).
[17] Chanson, H., The hydraulics of open channel flow: an introduction. Elsevier
Butterworth-Heinemann, Oxford (2004).
[18] Chen, L., Bletzinger, K.-U., Geiser, A. and Wüchner, R., A modified search
direction method for ineauality constrained optimization problems using
the singular-value decomposition of normalized resopnse gradients. Struc-
tural and Multidisciplinary Optimization. https://doi.org/10.1007/s00158-
019-02320-9.
[20] Clausen, J., Damkilde, L., Anderson, L., Efficient return algorithms for
associated plasticity with multiple yield planes. Int. J. Num. Meth. Engng.
66 , 1036-1059 (2006).
[22] Crossley, A.J., Accurate and efficient numerical solutions for the Saint
Venant equations of open channel flow. Ph.D. Thesis, University of Not-
tingham (1999).
[23] Czech, C., Efficiency evaluation of explicit finite element methods. Mas-
ter Thesis, Technical University of Munich, Department of Civil, Geo and
Environmental Engineering, Germany (2019).
[24] Dhondt, G., The Finite Element Method for Three-Dimensional Thermo-
mechanical Applications. John Wiley & Sons, (2004).
[25] Dhondt, G., and Hackenberg, H.-P., Use of a rotation-invariant linear strain
measure for linear elastic crack propagation calculations. Engng. Frac.
Mech. 247 , 107634 (2021).
826 REFERENCES
[26] Egli, A., The Leakage of Steam Through Labyrinth Seals. Trans. ASME.
57 , 115-122 (1935).
[27] Eringen, A.C., Mechanics of Continua. Robert E. Krieger Publishing Com-
pany, Huntington, New York (1980).
[28] Ferziger, J.H. and Perić, M., Computational Methods for Fluid Dynamics,
third rev. edition. Springer (2002).
[29] Fitzpatrick, R., Maxwell’s Equations and the Principles of Electromag-
netism. Infinity Sciense Press LLC, Hingham, Massachusetts (2008).
[30] Flanagan, D.P. and Belytschko, T., Uniform strain hexahedron and quadri-
lateral with orthogonal hourglass control. Int. J. Num. Meth. Eng. 17 ,
679-706 (1981).
[31] George, P.-L. and Borouchaki, H., Triangulation de Delaunay et maillage.
Hermes, Paris (1997).
[32] Greitzer, E.M., Tan, C.S. and Graf, M.B., Internal Flow. Cambridge Uni-
versity, Cambridge, UK (2004).
[33] Hamrock, B.J., Schmid, S.R. and Jacobson, B.O. Fundamentals of Fluid
Film Lubrication, 2nd Edition. Marcel Dekker Inc., New York (2004).
[34] Harr, M.E., Groundwater and Seepage. Dover Publications Inc., New York
(1990).
[35] Hartmann, S., Kontaktanalyse dünnwandiger Strukturen bei großen Defor-
mationen. Ph.D. Thesis, Institut für Baustatik und Baudynamik, Univer-
sität Stuttgart (2007).
[36] Hay, N. and Spencer, A., Discharge coefficients of cooling holes with ra-
diused and chamfered inlets. ASME 91-GT-269 (1991).
[37] Holzapfel, G.A., Gasser, T.C. and Ogden, R.W., A New Constitutive
Framework for Arterial Wall Mechanics and a Comparative Study of Ma-
terial Models. J. Elasticity 61, 1-48 (2000).
[38] Hüeber, S., Discretization techniques and efficient algorithms for contact
problems. Ph.D. Thesis, Institut für Angewandte Analysis und Numerische
Simulation, Universität Stuttgart (2008).
[39] Hughes, T.J.R., The Finite Element Method. Dover Publications Inc., Mi-
neola, New York (2000).
[40] Idelchik, I.E., Handbook of Hydraulic Resistance, 2nd Edition. Hemisphere
Publishing Corp (1986).
[41] Incropera, F.P. and DeWitt, D.P., Fundamentals of Heat and Mass Trans-
fer. John Wiley & Sons, New York (2002).
REFERENCES 827
[42] Itskov, M., A generalized orthotropic hyperelastic material model with ap-
plication to incompressible shells. Int. J. Num. Meth. Engng. 50 , 1777-1799
(2001).
[43] Johnson, G.R. and Cook, W.H., A constitutive model and data for metals
subjected to large strains, high strain rates and high temperatures. Pro-
ceedings of the 7th International Symposium on Ballistics , The Hague,
19-21 April 1983, 541-547.
[44] Jones, W.P. and Launder, B.E., The prediction of laminarization with a
two-equation model of turbulence. Int. J. Heat Mass Transfer 15 , 301-314
(1972).
[45] Köhl, M., Dhondt, G. and Broede, J., Axisymmetric substitute structures
for circular disks with noncentral holes. Computers & Structures 60(6) ,
1047-1065 (1996).
[47] Kundu, P.K. and Cohen, I.M., Fluid Mechanics (second edition). Academic
Press (2002).
[48] Kutz, K.J. and Speer, T.M., Simulation of the secondary air system of aero
engines. Transactions of the ASME 116 (1994).
[51] Lehoucq, R.B., Sorensen, D.C. and Yang, C., ARPACK Users’ Guide, So-
lution of Large-Scale Eigenvalue Problems with Implicitly Restarted Arnoldi
Methods. (1998).
[52] Leine, R.I. and van de Wouw, N., Stability and Convergence of Mechanical
Systems with Unilateral Constraints. Lecture Notes in Applied and Com-
putational Mechanics Vol 36. Springer Verlag Berlin Heidelberg (2008).
[53] Lichtarowicz, A., Duggins, R.H. and Markland, E., Discharge coefficient
for incompressible non cavitating flow through long orifices. Journal of
Mechanical Engineering Sciences 7(2) , 210-219 (1965).
[54] Liew, K.M. and Lim, C.W., A higher-order theory for vibration of doubly
curved shallow shells. Journal of Applied Mechanics 63 , 587-593 (1996).
[58] McGreehan, W.F. and Schotsch, M.J., Flow Characteristics of Long Ori-
fices With Rotation and Corner Radiusing. ASME-Paper, 87-GT-162, 1-6
(1987).
[61] Méric, L., Poubanne, P. and Cailletaud, G., Single Crystal Modeling for
Structural Calculations: Part 1 - Model Presentation. Journal of Engineer-
ing Materials and Technology 113 , 162-170 (1991).
[62] Méric and Cailletaud, G., Single Crystal Modeling for Structural Calcu-
lations: Part 2 - Finite Element Implementation. Journal of Engineering
Materials and Technology 113 , 171-182 (1991).
[64] Miller, D.S., Internal Flow Systems. Britisch Hydromechanics Research As-
sociation (B.H.R.A.) Fluid Engineering Series (1978).
[65] Miranda, I., Ferencz, R.M. and Hughes, T.J.R., An improved implicit-
explicit time integration method for structural dynamics. Earthquake En-
gineering and Structural Dynamics 18 , 643-653 (1989).
[69] Monjaraz Tec, C.D., Gross, J. and Krack, M., A massless boundary com-
ponent mode synthesis method for elastodynamic contact problems. Com-
puters & Structures. 260 (2022) 106698.
[74] Pacher, M., On the Energy Conservation in the dynamic Contact solved
by implicit dynamic Finite Element Method. Master Thesis, University of
Trento, Department of Industrial Engineering, Italy (2016).
[75] Parker, D.M. and Kercher, D.M., An enhanced method to compute the
compressible discharge coefficient of thin and long orifices with inlet corner
radiusing. Heat Transfer in Gas Turbine Engines HTD-188 , 53-63 (ASME
1991).
[76] Patankar, S.V. and Spalding, D.B., A calculation procedure for heat, mass
and momentum transfer in three-dimensional parabolic flows Int. J. Heat
Mass Transfer. 15 , 1787-1806 (1972).
[80] Pulliam, T.H. and Barton, J.T., Euler computations of AGARD working
group 07 airfoil test cases. AIAA-85-0018 (1985).
[81] Rama, G., Marinkovic, D. and Zehn, M., A three-node shell ele-
ment based on the discrete shear gap and assumed natural deviatoric
strain approaches. J. Braz. Soc. Mech. Sci. Eng. 40 , 356, (2018).
https://doi.org/10.1007/s40430-018-1276-4.
[83] Richard, H.A., Fulland, M. and Sander, M., Theoretical crack path predic-
tion Fatigue Fract. Engng. Mater. Struct.. 28 , 3-12 (2004).
[85] Richard, H.A., Fulland, M. and Sander, M., Theoretical crack path predic-
tion Fatigue Fract. Engng. Mater. Struct.. 28 , 3-12 (2004).
[89] Silvester, P.P. and Ferrari, R.L, Finite elements for electrical engineers.
Cambridge University Press (1996).
[90] Simo, J.C. and Hughes, T.J.R., Computational Inelasticity . Springer, New
York (1997).
[91] Simo, J.C. and Taylor, R.L., Quasi-incompressible finite elasticity in princi-
pal stretches. Continuum basis and numerical algorithms. Computer Meth-
ods in Applied Mechanics and Engineering. 85 , 273-310 (1991).
[92] Simo, J.C., A framework for finite strain elastoplasticity based on maximum
plastic dissipation and the multiplicative decomposition: Part I. Continuum
formulation. Computer Methods in Applied Mechanics and Engineering. 66
, 199-219 (1988).
[93] Simo, J.C., A framework for finite strain elastoplasticity based on maximum
plastic dissipation and the multiplicative decomposition: Part II: computa-
tional aspects. Computer Methods in Applied Mechanics and Engineering.
68 , 1-31 (1988).
[94] Sitzmann, S., Willner, K. and Wohlmuth, B.I., A dual Lagrange method for
contact problems with regularized contact conditions. Int. J. Num. Meth.
Engng.. 99(3) , 221-238 (2014).
[95] Sitzmann, S., Willner, K. and Wohlmuth, B.I., A dual Lagrange method for
contact problems with regularized frictional contact conditions: Modelling
micro slip Computer Methods in Applied Mechanics and Engineering. 285
, 468-487 (2015).
[97] Sitzmann, S., Robust algorithms for contact problems with constitutive
contact laws. Ph.D. Thesis, Friedrich-Alexander-Universität Erlangen-
Nürnberg (2015).
[98] Sloan, S.W., A FORTRAN program for profile and wavefront reduction.
Int. J. Num. Meth. Engng. 28, 2651-2679 (1989).
[99] Smith, A.J. Ward, Internal fluid flow. Oxford University Press (1980).
[101] Spalart, P.R., and Rumsey, C.L., Effective Inflow Conditions for Turbu-
lence Models in Aerodynamic Calculations. AIAA Journal. 45(10) , 2544-
2553 (2007).
[102] Studer, C., Numerics of Unilateral Contacts and Friction. Lecture Notes
in Applied and Computational Mechanics Vol 47. Springer Verlag Berlin
Heidelberg (2009).
[103] Taylor, R.L, Beresford, P.J. and Wilson, E.L., A non-conforming element
for stress analysis. Int. J. Num. Meth. Engng. 10 , 1211-1219 (1976).
[104] Van Doormal, J.P. and Raithby, G.D., Enhancements of the SIMPLE
method for predicting incompressible fluid flows. Num. Heat Transfer. 7 ,
147-163 (1984).
[105] Vazsonyi, A., Pressure loss in elbows and duct branches. Trans. ASME
66, 177-183 (1944).
[106] Washizu, K., Some considerations on a naturally curved and twisted slen-
der beam. Journal of Mathematics and Physics 43 , 111-116.
[107] Wilcox, D.C., Turbulence modeling for CFD. La Cañada, CA: DCW In-
dustries (1993).
[108] Wriggers, P., Computational Contact Mechanics. John Wiley & Sons
(2002).
[110] Zienkiewicz, O.C. and Codina, R., A general algorithm for compressible
and incompressible flow - Part 1: The split, characteristic-based scheme.
Int. J. Num. Meth. Fluids 20, 869-885 (1995).
[111] Zienkiewicz, O.C., Morgan, K. and Satya Sai, B.V.K., A general algorithm
for compressible and incompressible flow - Part II. Tests on the explicit
form. Int. J. Num. Meth. Fluids 20, 887-913 (1995).
832 REFERENCES
[112] Zienkiewicz, O.C. and Taylor, R.L., The finite element method.McGraw-
Hill Book Company (1989).
[113] Zienkiewicz, O.C., Taylor, R.L. and Nithiarasu, P., The finite element
method for fluid dynamics. 6th edition, Elsevier (2006).
[114] Zienkiewicz, O.C. and Zhu, J.Z., The superconvergent patch recovery and
a posteriori error estimates. Part 1: The recovery technique. Int. J. Num.
Meth. Engng. 33, 1331-1364 (1992).
[115] Zienkiewicz, O.C. and Zhu, J.Z., The superconvergent patch recovery and
a posteriori error estimates. Part 2: Error estimates and adaptivity. Int. J.
Num. Meth. Engng. 33, 1365-1382 (1992).
[116] Zimmermann, H., Some aerodynamic aspects of engine secondary air sys-
tems. ASME 889-GT-209.