Introduction
An .inp file is the text input deck of the finite element program
Abaqus: a list of keywords,
each followed by its data, that describes the nodes and elements of a model, its
materials, and the analysis steps to run. The open source solver
CalculiX reads input of the same style, and many
meshers and converters write it to exchange meshes.
The Abaqus keyword manuals were not used for this page. The rules here are those of the CalculiX 2.22 manual, checked against open source readers of Abaqus files. CalculiX supports its own selection of keywords and parameters, so an Abaqus deck may hold much that is not listed here.
Lines
| Line | Starts with | Contents |
|---|---|---|
| Keyword line | * | The keyword, then parameters separated by commas. A parameter with a value is written NAME=value; others are bare words, such as GENERATE |
| Comment line | ** | Ignored. It may appear anywhere |
| Data line | anything else | Values separated by commas, in the order the keyword defines. There are no fixed columns |
- The input is not case sensitive. CalculiX removes all blanks and changes everything except file names to upper case.
- Names of sets, materials and so on may have up to 80 characters.
- A data block runs until the next line that starts with
*. - Long lists continue on further lines. CalculiX takes at most 16 entries on an element or set line. The BasicTools reader joins a line that ends with a comma to the line after it.
*INCLUDE,INPUT=nameis replaced by the contents of another file. The name may be in double quotes, which are needed if it contains blanks.- Units are not written. The numbers must be in a consistent set of units.
Order of a deck
Model definition keywords, which describe geometry, topology and materials, come before
the first step. Each step then starts with *STEP, names a procedure such as
*STATIC, gives loads and output requests, and ends with
*END STEP. A material definition is a *MATERIAL,NAME=… line
followed by material property keywords; it ends at the next *MATERIAL or
at a keyword that is not a material property.
*HEADING
One brick element pulled at one end.
*NODE,NSET=Nall
1,0.,0.,0.
2,1.,0.,0.
3,1.,1.,0.
4,0.,1.,0.
5,0.,0.,1.
6,1.,0.,1.
7,1.,1.,1.
8,0.,1.,1.
*ELEMENT,TYPE=C3D8,ELSET=Eall
1,1,2,3,4,5,6,7,8
*NSET,NSET=Fixed
1,4,5,8
*BOUNDARY
Fixed,1,3
*MATERIAL,NAME=EL
*ELASTIC
210000.,0.3
*SOLID SECTION,ELSET=Eall,MATERIAL=EL
*STEP
*STATIC
*CLOAD
2,1,100.
3,1,100.
6,1,100.
7,1,100.
*NODE FILE
U
*EL FILE
S
*END STEP
Files written by Abaqus preprocessors may also group the mesh in *PART …
*END PART blocks and place copies of the parts with
*INSTANCE … *END INSTANCE inside *ASSEMBLY …
*END ASSEMBLY. The open source readers used here skip these keywords, and
CalculiX does not list them.
Nodes and elements
| Keyword | Parameters | Each data line |
|---|---|---|
*HEADING | none | A description of the problem |
*NODE | NSET (optional) adds the nodes to a set | Node number, x, y, z. Two-dimensional meshes in some files give only two coordinates |
*ELEMENT | TYPE (required); ELSET (optional) adds the elements to a set | Element number, then the node numbers in the order of the type |
*NSET | NSET (required); GENERATE | Node numbers and names of earlier node sets. With GENERATE: first, last, increment (default 1) |
*ELSET | ELSET (required); GENERATE | Element numbers and names of earlier element sets. With GENERATE: first, last, increment (default 1) |
*SURFACE | NAME (required); TYPE=ELEMENT (default) or NODE | For element surfaces an element or element set and a face label Sx; for node surfaces a node or node set |
*SOLID SECTION | ELSET and MATERIAL (required); ORIENTATION, NODAL THICKNESS | Second line only for plane and truss elements: thickness, or cross-section area |
A set named again is reopened and extended. A node set and an element set may share a name.
Element types
These are the values of TYPE that CalculiX accepts.
| Group | Types |
|---|---|
| Solids | C3D4, C3D6, C3D8, C3D8I (incompatible modes), C3D8R, C3D10, C3D10T, C3D15, C3D20, C3D20R; the suffix R means reduced integration and the digits give the node count |
| Heat transfer names | DC3D4, DC3D6, DC3D8, DC3D10, DC3D15, DC3D20: the same as the solids, kept for compatibility with Abaqus |
| Fluid | F3D4, F3D6, F3D8 |
| Shells | S3, S4, S4R, S6, S8, S8R |
| Membranes | M3D3, M3D4, M3D4R, M3D6, M3D8, M3D8R |
| Plane stress | CPS3, CPS4, CPS4R, CPS6, CPS8, CPS8R |
| Plane strain | CPE3, CPE4, CPE4R, CPE6, CPE8, CPE8R |
| Axisymmetric | CAX3, CAX4, CAX4R, CAX6, CAX8, CAX8R |
| Beams | B21, B31, B31R, B32, B32R |
| Trusses | T2D2, T3D2, T3D3 |
| Special | D (3-node network), GAPUNI, DASHPOTA, SPRING1, SPRING2, SPRINGA, DCOUP3D, MASS, and user elements Uxxxx |
The meshio reader also maps other
Abaqus names to plain shapes, among them C3D8H, C3D20RH,
C3D10M, T3D2H, B33, STRI3,
STRI65, S4R5, S9R5, R3D3 and
CAX4P.
Node order of solid elements
Corner nodes come first, then mid-edge nodes. In the table, “9: 1–2” means that node 9 lies on the edge from node 1 to node 2.
| Type | Corners | Mid-edge nodes |
|---|---|---|
C3D4 | 1, 2, 3 round the base; 4 the apex | none |
C3D10 | as C3D4 | 5: 1–2, 6: 2–3, 7: 3–1, 8: 1–4, 9: 2–4, 10: 3–4 |
C3D6 | 1, 2, 3 on one triangle; 4, 5, 6 on the other, 4 joined to 1 | none |
C3D15 | as C3D6 | 7: 1–2, 8: 2–3, 9: 3–1, 10: 4–5, 11: 5–6, 12: 6–4, 13: 1–4, 14: 2–5, 15: 3–6 |
C3D8 | 1–4 round one face; 5–8 round the opposite face, 5 joined to 1 | none |
C3D20 | as C3D8 | 9: 1–2, 10: 2–3, 11: 3–4, 12: 4–1, 13: 5–6, 14: 6–7, 15: 7–8, 16: 8–5, 17: 1–5, 18: 2–6, 19: 3–7, 20: 4–8 |
Face labels
A face of an element surface is S followed by the face number. The numbers
below are the corner nodes of each face.
| Element shape | Faces |
|---|---|
| Hexahedron | 1: 1-2-3-4; 2: 5-8-7-6; 3: 1-5-6-2; 4: 2-6-7-3; 5: 3-7-8-4; 6: 4-8-5-1 |
| Tetrahedron | 1: 1-2-3; 2: 1-4-2; 3: 2-4-3; 4: 3-4-1 |
| Wedge | 1: 1-2-3; 2: 4-5-6; 3: 1-2-5-4; 4: 2-3-6-5; 5: 3-1-4-6 |
| Quadrilateral, plane or axisymmetric | 1: 1-2; 2: 2-3; 3: 3-4; 4: 4-1; plane stress also N and P, the negative and positive normal sides |
| Triangle, plane or axisymmetric | 1: 1-2; 2: 2-3; 3: 3-1; plane stress also N and P |
| Quadrilateral shell | NEG or 1 and POS or 2: the normal sides; 3: 1-2; 4: 2-3; 5: 3-4; 6: 4-1 |
| Triangular shell | NEG or 1 and POS or 2; 3: 1-2; 4: 2-3; 5: 3-1 |
| Beam | 1: negative 1-direction; 2: positive 1-direction; 3: positive 2-direction; 5: negative 2-direction |
Materials, constraints and loads
| Keyword | Each data line |
|---|---|
*ELASTIC (isotropic, the default TYPE=ISO) | Young’s modulus, Poisson’s ratio, temperature; repeated for temperature dependence. Other types are ORTHO, ENGINEERING CONSTANTS and ANISO |
*BOUNDARY | Node or node set, first constrained degree of freedom, last one (may be blank) and, inside a step, the prescribed value. Without a value, before the first step, the freedoms are fixed at zero |
*CLOAD | Node or node set, degree of freedom, magnitude |
*AMPLITUDE,NAME=… | Pairs of time and value, at most four pairs on a line |
CalculiX keywords
All keywords of the CalculiX 2.22 manual, by the place the manual allows them. Every
name is written with a leading *.
| Place | Keywords |
|---|---|
| Model definition | BEAM SECTION, CLEARANCE, CONTACT DAMPING, CONTACT PAIR, COUPLING, CYCLIC SYMMETRY MODEL, DASHPOT, DESIGN VARIABLES, DISTRIBUTING, DISTRIBUTING COUPLING, DISTRIBUTION, ELEMENT, ELSET, FLUID SECTION, GAP, HEADING, INITIAL CONDITIONS, KINEMATIC, MASS, MATERIAL, MATRIX ASSEMBLE, MEMBRANE SECTION, MPC, NETWORK MPC, NODAL THICKNESS, NODE, NORMAL, NSET, ORIENTATION, OUTPUT, PHYSICAL CONSTANTS, PRE-TENSION SECTION, RIGID BODY, SHELL SECTION, SOLID SECTION, SPRING, SUBMODEL, SURFACE, SURFACE INTERACTION, TIE, TIME POINTS, TRANSFORM, USER ELEMENT, USER SECTION, VALUES AT INFINITY |
| Material properties | CONDUCTIVITY, CREEP, CYCLIC HARDENING, DAMPING (for structural damping), DEFORMATION PLASTICITY, DENSITY, DEPVAR, ELASTIC, ELECTRICAL CONDUCTIVITY, EXPANSION, FLUID CONSTANTS, HYPERELASTIC, HYPERFOAM, MAGNETIC PERMEABILITY, MOHR COULOMB, MOHR COULOMB HARDENING, PLASTIC, RATE DEPENDENT, SPECIFIC GAS CONSTANT, SPECIFIC HEAT, USER MATERIAL |
| Surface interaction | FRICTION (also in steps), GAP CONDUCTANCE, GAP HEAT GENERATION (also in steps), SURFACE BEHAVIOR |
| Model or step | AMPLITUDE, BOUNDARY, EQUATION, INCLUDE |
| Step | BASE MOTION, BUCKLE, CFD, CFLUX, CHANGE CONTACT TYPE, CHANGE FRICTION, CHANGE MATERIAL, CHANGE PLASTIC, CHANGE SOLID SECTION, CHANGE SURFACE BEHAVIOR, CLOAD, COMPLEX FREQUENCY, CONSTRAINT, CONTACT FILE, CONTACT OUTPUT, CONTACT PRINT, CONTROLS, CORRELATION LENGTH, COUPLED TEMPERATURE-DISPLACEMENT, CRACK PROPAGATION, DESIGN RESPONSE, DFLUX, DLOAD, DSLOAD, DYNAMIC, ELECTROMAGNETICS, ELEMENT OUTPUT, EL FILE, EL PRINT, END STEP, FEASIBLE DIRECTION, FILM, FILTER, FREQUENCY, GEOMETRIC CONSTRAINT, GEOMETRIC TOLERANCES, GREEN, HCF, HEAT TRANSFER, INITIAL MESH, INITIAL STRAIN INCREASE, MASS FLOW, MODAL DAMPING, MODAL DYNAMIC, MODEL CHANGE, NO ANALYSIS, NODE FILE, NODE OUTPUT, NODE PRINT, OBJECTIVE, RADIATE, REFINE MESH, RETAINED NODAL DOFS, ROBUST DESIGN, SECTION PRINT, SELECT CYCLIC SYMMETRY MODES, SENSITIVITY, STATIC, STEADY STATE DYNAMICS, STEP, SUBSTRUCTURE GENERATE, SUBSTRUCTURE MATRIX OUTPUT, TEMPERATURE, UNCOUPLED TEMPERATURE-DISPLACEMENT, VIEWFACTOR, VISCO |
| Restart | RESTART: *RESTART,READ before the model, as the first line that is not a comment; *RESTART,WRITE in a step |
Reading a file
- Expand
*INCLUDElines and drop lines starting**. - At each line starting
*, split at commas into the keyword and its parameters, ignoring case. - Collect the data lines up to the next keyword.
- For a mesh,
*NODE,*ELEMENT,*NSETand*ELSETare enough; other keywords can be skipped with their data.
There is no signature. A text file with *NODE and *ELEMENT
keyword lines, often after *HEADING, is very likely an input deck. Other
programs also use the extension .inp for unrelated text input.
Not described
The explorer has no viewer for input decks, so a dropped file shows as text.
Known, not yet covered
- Reference: the parameters and data lines of most keywords in the list above, which the CalculiX manual describes.
- Reference: keywords, parameters and element types that only Abaqus has, including the data of
*PART,*INSTANCEand*ASSEMBLYand the way instances are moved and turned. The Abaqus manuals were not used. - Reference: the node order of shell, plane, axisymmetric, beam and special elements.
- Viewer: there is no input deck plugin.
Links
Software
Developers
- meshio – reads and writes the nodes, elements and sets (Python)
- BasicTools – mesh toolkit with an input deck reader (Python)
Reference
- CalculiX CrunchiX user’s manual 2.22 – input deck format, every keyword and the element types, by Guido Dhondt
- meshio Abaqus reader and writer – element type names and set handling (Python)
- BasicTools InpReader – keyword parsing, continuation lines and the keywords it skips (Python)
- Gmsh input deck writer – what a mesh export holds (C++)