FEACode Complete Cards Reference Manual
Comprehensive engineering documentation for all 64 pre-processor, solver, nonlinear axial, dynamics, import/export, and visualization cards in FEACode (2D Planar (*2dxy) & 3D Euler-Bernoulli, Tapered *nonprismatic, Per-Element *offset, Truss, One-Way & Nonlinear Spring Links, 7-DOF Vlasov Warping & Thin-Walled Profiles, Co-Rotational NLGEOM, Modal, Buckling, Transient *dynamic, *timepoints, CGX 2D/3D .frd, ParaView VTK 2D/3D .vtu/.pvd & CalculiX-Aligned Steady-State Dynamics).
Preface
FEACode is a lightweight, single-executable C++17 structural analysis engine for 3D frames, trusses,
one-way/nonlinear axial links, and 7-DOF Vlasov thin-walled warping beams. It combines classic card-based FEA input syntax
(*node, *elem, *load, *solution, *dynamic) with built-in
LibreOffice Basic and Python 2 / Python 3 (*python2, *python3)
scripting engines plus an integrated dual-mode terminal code editor (./fea or --edit), allowing
engineers to parametrically generate, modify, solve, visualize, and verify structural models directly from plain-text scripts
with zero external runtime dependencies.
Key Capabilities
-
Embedded Parametric Scripting (Basic & Python 2/3): Mix FEA cards directly with LibreOffice Basic
variables, expressions, 1D/2D arrays,
For...Next,Do...Loop,While...Wend,If...Then...Else,Select Case, user-definedSub/Functionroutines, and built-in file I/O—or switch top-level blocks to built-in Python 2 (*python2) / Python 3 (*python3:def,import math, 1D lists,range/xrange,#comments). Supports time/state callbacksf(time[, u])on loads, springs, and Winkler bases, and strain-dependent tangent-modulus callbacksE(eps)on*nonlinspringlinks. -
Units, Gravity, Materials & Cross-Sections: Supports
SI,IPS,kNm, andkipsftunit systems (with automatic default A36 steel properties), 2D XY planar mode (*2dxy), explicit gravitational acceleration override (*gravityacceleration), material damping ratioeta, three beam formulations (*bmtype/*beamtype: 6-DOF 3D Euler-Bernoulli frames, 3D trusses, and 7-DOF Vlasov thin-walled warping beams), numerical section properties with rigid offsets (*section:off1,off2), external section catalogs (*secbase), and parametric or mesh/contour profiles (*sectype:Ibeam,Chan,T,L,doubleL,RTube,Pipe,Rect,Round, pluscustom.unvtriangular/quad meshes closed.dxfcontours with inner holes, and arbitrary open/multi-cellthinwalledprofiles solved via P2/2D warping & shear FEM), linearly tapered beams (*nonprismatic), and per-element end offsets (*offset) with automatic property, shear-center, warping, and extreme-fiber calculations. -
Coordinate Systems, Groups & Mesh Tools: Define geometry in Global Cartesian, Cylindrical (X, Y, Z),
Spherical, or element-local (
*csys, elem) coordinates with skewed supports, rotated springs, skewed ties, and local-CSYS loads/groups; organize entities with rule-based groups (*nodalgr,*elemgr) and boolean operations (*grpbool:OR,AND,NOT); and transform meshes using*move,*copy(propagating hinges, warping restraints, and Winkler bases),*scale,*rotsec,*reorient,*divide(with automatic load, hinge, warping-restraint, and Winkler redistribution),*emerge(coincident node welding, T-junction splitting, and duplicate cleanup),*compnum,*renum, and*infopre-flight checks. -
Boundary Conditions, Constraints, Nonlinear Links & Loads: Supports rigid nodal restraints
(
*sup), elastic and nonlinear/time-varying nodal springs (*springsup), continuous Hermite Winkler elastic foundations (*winklerbase, defaulting to one-sided tensionless uplift separation innlgeomor bilateral viakey=twosided), one-way axial trusses (*tensiononly,*compressiononly), nonlinear tangent-modulus links/guys (*nonlinspring), kinematic node-to-node constraints (*tie), end-hinge releases (*hingesvia static condensation), Vlasov end warping restraints (*restrained), global gravity (grav), nodal forces, moments, and bimoments (bm), prescribed displacements/settlements, uniform, projected (pxp..pzp,qtrxp..qtrzp), and partial trapezoidal member loads (global & local), interior point loads, span moments (mcx..mczl), span bimoments (bmc), thermal loads (temp), named base loads (*blname), and load combinations (*comb,*combname). -
Solvers, Dynamics, Visualization & Interoperability: Runs linear static (Gauss-Jordan → automatic
RCM/MMD Skyline LDLT), 3D co-rotational nonlinear static (
static, nlgeomvia Newton-Raphson or Crisfield Arc-Length, tuned with*nlcontrol), modal & prestressed modal (*stringeffect,*modaldamping), Euler/Vlasov buckling, CalculiX-aligned steady-state frequency-domain dynamics (*steadystatedyn), and implicit HHT-α / explicit CDM transient dynamics (*dynamic,*timepoints). Includes interactive 3D HTML5 viewers (*plot), multi-format outputs (*output: 2D/3D-aware HTML5 & TXT, adaptive CalculiX CGXcgx2d/cgx3d.frd, and ParaViewvtk2d/vtk3d.vtu/.pvdwith 3D Vlasov warping & Cauchy shear stresses), and CAD/BIM/FEA exchange (*import/*export: DXF, IGES, STAAD.Pro, Frame3DD, CalculiX, flat FEACode, STEP AP214, IGES 3D, and IFC4).
Quick Reference Table (All 64 Cards)
| # | Card | Aliases | Category | Quick Syntax | Summary |
|---|---|---|---|---|---|
| 01 | *model | — | Model Scope | *model, <model_name> | Start a new model container and push a fresh model-local Basic variable scope. |
| 02 | *end | — | Model Scope | *end | Close the active *model block and pop its local Basic variable scope. |
| 03 | *header | — | Model Scope | *header, <description text> | Attach a descriptive project title/subtitle to reports and *info diagnostics. |
| 04 | *units | — | Model Scope | *units, SI | IPS | kNm | kipsft | Set consistent engineering unit system, gravity g, and default A36 steel properties. |
| 05 | *2dxy | — | Model Scope | *2dxy [, on | off | 3d] | Activate 2D XY planar mode (active DOFs Ux, Uy, Rz; auto-locks Uz/Rx/Ry & filters 2D outputs/exports). |
| 06 | *gravityacceleration | — | Model Scope | *gravityacceleration, <val> | Set or override gravitational acceleration g for modal, SSD & transient dynamic mass conversion. |
| 07 | *stop | — | Model Scope | *stop | Pause deck parsing immediately; ignore all subsequent lines until *continue. |
| 08 | *continue | — | Model Scope | *continue | Resume deck parsing after a preceding *stop card. |
| 09 | *info | — | Model Scope | *info | Print model diagnostics, entity counts, bounding box, and pre-flight solver checks. |
| 10 | *python2 | *py2 | Model Scope | *python2, on | off | Enable/disable built-in Python 2 scripting mode (classic int '/', print stmt, xrange, def, lists, math, file I/O). |
| 11 | *python3 | *py3 | Model Scope | *python3, on | off | Enable/disable built-in Python 3 scripting mode (true float '/', '//', print(), range, def, lists, math, file I/O). |
| 12 | *mat | *material | Materials | *mat, id, E, nu [, density, alpha, eta] | Define or update one or more isotropic linear elastic materials. |
| 13 | *setmat | *setmaterial | Materials | *setmat, <mat_id> | Switch the active default material used when mat_id is omitted in section cards. |
| 14 | *bmtype | *beamtype | Materials | *bmtype, [id,] euler | truss | Vlas | Register a named beam formulation (Euler, Truss, or 7-DOF Vlasov) and set it active. |
| 15 | *setbmtype | *setbeamtype | Materials | *setbmtype, <id | euler | truss | Vlas> | Activate a previously registered *bmtype ID or built-in beam formulation. |
| 16 | *secbase | — | Materials | *secbase, <path> [, num_values=7] | Load a text catalog of named standard cross-sections for instantiation via *section or *setsec. |
| 17 | *section | *sec | Materials | *section, id, [mat_id], A [, Iz, Iy, J, H1, H2, angle, off1, off2] | Define an explicit numerical cross-section or instantiate a *secbase catalog section. |
| 18 | *sectype | — | Materials | *sectype, id, mat, shape|custom|thinwalled, (dims|file) [, ang, off1, off2] | Define 9 parametric shapes, custom 2D .unv/.dxf sections, or arbitrary open/multi-cell thinwalled profiles with exact Vlasov & 2D shear properties. |
| 19 | *setsec | *setsection | Materials | *setsec, <sec_id> [, mat_id] | Activate an existing section (or instantiate a *secbase template) as the default for new *elem cards. |
| 20 | *nonprismatic | *nonprism | Materials | *nonprismatic, <target_elems>, <sec_I>, <sec_J> | Define linearly tapered 14-DOF Vlasov/Euler beams between two matching parametric *sectype sections. |
| 21 | *csys | *cys | Geometry | *csys, 0..4 | elem, <id> [, i|j|mid|0] | global | Select Cartesian, Cylindrical X/Y/Z, Spherical, or element-local CSYS for nodes, transforms, skewed BCs/ties, loads & groups. |
| 22 | *node | *nodes | Geometry | *node [, group] -> id, c1, c2 [, c3] | Define 3D nodal coordinates in the active *csys, optionally adding nodes to a named group. |
| 23 | *elem | *element | Geometry | *elem [, sec_id] [, group] -> id, n1, n2 | Define 2-node 3D frame, truss, or Vlasov beam elements connecting node n1 (end i) to n2 (end j). |
| 24 | *setelem | *setelement | Geometry | *setelem, <sec_id>, <target_elems_or_group> | Reassign a different section to existing elements by ID list, range, or group. |
| 25 | *import | — | Geometry | *import, dxf|igs|staad|frame3dd|ccx|feacode, <file> [, keys...] | Import wireframe CAD geometry or full structural FEA models from external formats. |
| 26 | *nodalgr | *nodalgroup | Geometry | *nodalgr, <group> -> loc|locr|adj|ids | Select nodes into a named group by coordinates, relative bounds, element adjacency, or ID list. |
| 27 | *elemgr | *elemgroup | Geometry | *elemgr, <group> -> loc|locr|incline|len|lenr|ids | Select elements into a named group by location, inclination angle, length, or ID list. |
| 28 | *grpbool | *groupboolean | Geometry | *grpbool, <out>, <g1>, and|or|not, <g2> | Combine existing groups using set intersection (AND), union (OR), or difference (NOT). |
| 29 | *grename | *gren, *rename, *grouprename | Geometry | *grename, <old_group>, <new_group> | Rename an existing user-defined entity group. |
| 30 | *gdel | — | Geometry | *gdel, <group> [, keep] | Delete a group—cascading deletion to its entities unless 'keep' is specified. |
| 31 | *del | *delete | Geometry | *del, <target_ids_or_groups> | Delete specific nodes, elements, or groups and clean up attached BCs and loads. |
| 32 | *move | — | Transforms | *move, <target|csys> -> dx, dy, dz [ rx, ry, rz] | Translate and/or rotate targeted entities or shift/rotate the active local *csys. |
| 33 | *copy | — | Transforms | *copy, <target> [, nold] -> dx, dy, dz [ rx, ry, rz] | Duplicate nodes, elements, hinges, restraints, Winkler bases, and (unless nold) loads. |
| 34 | *scale | — | Transforms | *scale, [target,] sx [, sy, sz] | Apply uniform or non-uniform 3-axis coordinate scaling to the model or a target group. |
| 35 | *rotsec | — | Transforms | *rotsec, <target_elems>, <angle_deg> | Override the cross-section roll angle (degrees) on targeted elements. |
| 36 | *reorient | — | Transforms | *reorient [, target_elems] | Reverse element connectivity (swap n1 <-> n2) and flip end-dependent attributes. |
| 37 | *divide | *div | Transforms | *divide, <target_elems>, i | j, <dist> | Split elements at an exact distance from end i or j, redistributing loads, hinges, and Winkler bases. |
| 38 | *emerge | — | Transforms | *emerge [, tol] | Weld coincident nodes within tolerance, remove duplicate elements, and split T-junction intersections. |
| 39 | *compnum | *compressnumbers | Transforms | *compnum [, group] | Compress node and element IDs into contiguous sequences (globally or within a group). |
| 40 | *renum | *renumber | Transforms | *renum [, group] | Spatially renumber nodes and elements for clean adjacency and compact stiffness bandwidth. |
| 41 | *sup | *support | Boundary Conditions | *sup -> <target>, all | pinned | x, y, z, rx, ry, rz | Apply rigid zero-displacement nodal boundary restraints on selected DOFs. |
| 42 | *springsup | *springsupport | Boundary Conditions | *springsup -> <target>, all|pin|x..rz, <k | BasicFunc(time[,u])> | Attach elastic or nonlinear/time-varying Basic-function nodal spring supports. |
| 43 | *winklerbase | *winkler | Boundary Conditions | *winklerbase -> <target>, Cz | Cx,Cy,Cz [, key=twosided] | Attach continuous Winkler elastic foundation along beam elements (one-sided in nlgeom by default). |
| 44 | *tensiononly | *tension-only, *tension_only | Boundary Conditions | *tensiononly, <target_elems> [, off] | Tension-only truss behavior in *dynamic & nlgeom (auto-converts non-truss beams to trusses). |
| 45 | *compressiononly | *compression-only, *compression_only, *componly | Boundary Conditions | *compressiononly, <target_elems> [, off] | Compression-only truss behavior in *dynamic & nlgeom (auto-converts non-truss beams to trusses). |
| 46 | *nonlinspring | *nlspring, *nonlinearspring | Boundary Conditions | *nonlinspring, <target_elems>, <Func(eps) | off> | Nonlinear axial truss integrating user-defined tangent modulus E(eps) in *dynamic & nlgeom. |
| 47 | *tie | *ties | Boundary Conditions | *tie, <dofs: all|pin|x..rz> -> <master_tgt>, <slave_tgt> | Couple selected DOFs between master and slave nodes via rigid multipoint penalty links. |
| 48 | *hinges | — | Boundary Conditions | *hinges, <target_elems> -> i|j|ij|ji, <dofs|pin> | Release internal member end degrees of freedom (shear-tab beams, pinned braces, torsion releases). |
| 49 | *offset | *offsets | Boundary Conditions | *offset, <target>, i|j|ij, offy|offz, <val> | off | Apply per-element rigid centroidal end offsets (uniform or asymmetric I/J haunches) overriding section offsets. |
| 50 | *restrained | — | Boundary Conditions | *restrained -> <target_elems>, i | j | ij | ji | Restrain the 7th Vlasov warping DOF (ψ = dφ/dx = 0) at element ends. |
| 51 | *blname | — | Loads | *blname -> bl_num, <Base Load Name> | Assign descriptive labels to Base Load IDs for console logs and HTML/TXT reports. |
| 52 | *combname | — | Loads | *combname -> comb_num, <Combination Name> | Assign descriptive labels to Load Combination IDs for reports and solver logs. |
| 53 | *load | — | Loads | *load -> bl, target, type (incl. pxp..pzp, qtrxp..qtrzp), val(s) | f(time) | Define nodal forces/moments/bimoments, prescribed displacements, uniform/projected/trapezoidal/point/moment/thermal loads & gravity. |
| 54 | *comb | *combinations | Loads | *comb [, id=N] -> mult1, mult2, ... | Define auto-numbered factored combinations of Base Loads (optional id=N start) for static, nlgeom, modal, buckling & dynamics. |
| 55 | *nlcontrol | *nlctrl | Solvers | *nlcontrol -> key, val | key=val | reset | show | Configure default solver parameters for geometrically nonlinear (static, nlgeom) analyses. |
| 56 | *stringeffect | *stringeff, *streff, *prestress | Solvers | *stringeffect, bl/comb N [, nl] | off | Include geometric stiffness prestress (Ke + Kg) from static forces in subsequent modal analyses. |
| 57 | *modaldamping | *moddamp, *modaldamp | Solvers | *modaldamping [, rayleigh|off] -> m1, m2, zeta | ,, alpha, beta | Override material eta damping with CalculiX-style direct per-mode ζ or Rayleigh (α, β) damping. |
| 58 | *timepoints | *timepoint, *tp, *time points | Solvers | *timepoints [, name=TP1] [, generate] | off | CalculiX *TIME POINTS exact snapshot instants for *dynamic & nlgeom (multi-frame cgx2d/3d, vtk2d/3d & HTML tab). |
| 59 | *dynamic | *dyn | Solvers | *dynamic, bl/comb N [, AddMassFrom=, implicit|explicit, direct, alpha, nlgeom, damp, hist] | CalculiX-aligned direct transient time-integration (Implicit HHT-alpha & Explicit CDM, linear & NLGEOM). |
| 60 | *steadystatedyn | *ssd, *steadystate | Solvers | *steadystatedyn, bl/comb N [, harmonic|nonharmonic] -> f_min, f_max [, ...] | CalculiX-style frequency-domain steady-state modal dynamics (harmonic sweep & periodic Fourier). |
| 61 | *solu | *solution | Solvers | *solu -> static [nlgeom ...] | modal ... | buckling ... | Execute Linear Static, Geometrically Nonlinear Static (nlgeom), Modal, or Euler Buckling solvers. |
| 62 | *export | — | Export | *export, format [, filename] [, key] | Export geometry, flat FEACode decks, external FEA solver inputs (adaptive CCX, STAAD SPACE/PLANE, Frame3DD), or 3D solid CAD/BIM. |
| 63 | *output | — | Export | *output, html|txt|cgx2d|cgx3d|vtk2d|vtk3d|nlgeom_*|dyn_* [, file] [, N] [, bin] | Generate 2D/3D-aware HTML5/TXT reports, adaptive CalculiX CGX 1D/3D .frd, or ParaView VTK 2D/3D .vtu/.pvd files. |
| 64 | *plot | *plothtml | Export | *plot, 1 | 2 [, filename.html] | Generate standalone interactive HTML5 viewer (key=1 Canvas, key=2 Three.js 3D shapes/tapers + Tab 3 Custom/ThinWalled Section Inspector). |
Input Deck Conventions & Syntax Primer
1. Case-Insensitivity & Comments
All card names (*node, *NODE) and keywords are case-insensitive. Apostrophe (') starts an inline or full-line comment (UTF-8 / Cyrillic supported). LibreOffice Basic variables, arrays, For..Next, If..Then, Select Case, and Sub/Function execute seamlessly alongside cards.
2. Inline vs. Multi-Line Card Blocks
Most cards accept either inline arguments (*sup, 1, all or *sup 1, all) or a header followed by indented/plain data lines until the next *card. Blank commas preserve positional arguments (e.g., *section, S1, , 0.01 inherits active material).
3. Target Expressions & Auto-Groups
Targets accept single IDs (5), lists (1, 4, 9), ranges (1-10 or (1 to 10)), user groups, or built-in auto-groups: nall (all nodes), eall (all elements), plus automatic groups created for every section ID and material ID.
4. Basic / Python Time, State & Strain Functions f(time[, u]) & E(eps)
*load, *springsup, and *winklerbase accept inline expressions or Basic Function / Python def callbacks (time = λ∈[0,1] in nlgeom, physical t (s) in *dynamic/nonharmonic, frequency f (Hz) in harmonic). *nonlinspring accepts tangent modulus functions E(eps) of effective axial strain eps/epsilon.
*model, <model_name>
' ... cards and Basic code ...
*end
Purpose
Initializes a clean FEACode structural model container, clears all previous solver results (static, nlgeom, modal, buckling, dynamic), resets solver control flags (*nlcontrol, *stringeffect, *modaldamping), and pushes a local LibreOffice Basic variable scope that lasts until *end. The model name is also used as the default stem for *output, *plot, and *export filenames when no explicit filename is supplied.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
model_name | String | model | Identifier used in report headers and default output filenames (e.g., PortalFrame_results.html). |
Nuances & Engineering Notes
- Multiple sequential *model ... *end blocks are supported inside a single input file—useful for parametric studies or multi-model verification suites.
- If a new *model is encountered while a previous *model was not closed by *end, FEACode automatically pops the unclosed model-local Basic scope before starting the new model.
- Global Basic variables and Sub/Function definitions declared outside *model remain accessible inside *model, whereas variables created inside *model are discarded at *end.
- Every *model starts with UnitSystem::NONE and no explicit materials until *units or *mat is specified.
Examples of Use
Dim globalSpan As Double = 6.0 ' Global Basic variable (persists across models)
*model, WarehouseFrame_A
*units, SI
Dim localHeight As Double = 4.2 ' Model-local variable (destroyed at *end)
*node
1, 0, 0, 0
2, globalSpan, 0, localHeight
*end
*model, WarehouseFrame_B
' Starts completely clean; localHeight no longer exists, globalSpan still equals 6.0
*units, SI
*end*end
Purpose
Marks the formal end of the active *model block, flushes any deferred trailing card blocks (such as *steadystatedyn or *nlcontrol), pops the model-local Basic variable scope, and runs end-of-model sanity warnings.
Parameters: None (standalone keyword card).
Nuances & Engineering Notes
- All Basic variables declared between *model and *end stop existing immediately after *end.
- If *nlcontrol was modified after the last static, nlgeom solve without another nonlinear solve following it, *end emits a warning alerting you that those settings had no effect.
- Any pending multi-line card (e.g., *steadystatedyn or *modaldamping) is automatically finalized right before *end closes the model.
- Basic code after *end continues executing normally in the global scope, allowing post-processing file I/O or starting a subsequent *model.
Examples of Use
*model, CantileverCheck
*units, SI
*mat, steel, 2.0e11, 0.3, 7850
*section, S1, steel, 0.01, 1e-4, 1e-4, , 0.2, 0.2
*node
1, 0, 0, 0
2, 4, 0, 0
*elem, S1
1, 1, 2
*sup, 1, all
*load
1, 2, fz, -10000
*solu, static
*output, html
*end*header, <free-form description text>
Purpose
Stores a human-readable engineering description string on the active model. This text is displayed in the *info diagnostic summary and in the title banner of generated *output HTML/TXT reports and *export decks.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
description text | Raw text | (empty) | Arbitrary UTF-8 text (including Cyrillic/Unicode and commas); everything after the first comma/space is preserved verbatim. |
Nuances & Engineering Notes
- Unlike most cards, *header captures the entire remainder of the line verbatim rather than splitting fields by commas, so commas inside your title are preserved.
- Calling *header multiple times overwrites the previous header string with the most recent one.
- Comments starting with an apostrophe (') are still stripped by the preprocessor before *header reads the text.
Examples of Use
*model, SeattleOffice5F
*header, 5-Story Steel Moment/Braced Frame — ASCE 7-22 LRFD Verification
*units, kipsft*units, SI | IPS | kNm | kipsft
Purpose
Establishes the consistent force-length-mass unit system for the model. FEACode does not auto-convert coordinates you type; instead, *units configures report labels, sets gravitational acceleration g for modal mass extraction (m = W / g), and automatically registers a default ASTM A36 steel material (A36_default) scaled to the chosen unit system until you define an explicit *mat.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
SI | Keyword | g = 9.80665 m/s² | N, m, Pa, kg/m³ — Default A36: E=2.0e11, ν=0.3, ρ=7850, α=1.2e-5, η=0.001 |
IPS | Keyword | g = 386.08858 in/s² | lbf, in, psi, lbf·s²/in⁴ — Default A36: E=2.9e7, ν=0.3, ρ=7.34e-4, α=6.5e-6 |
kNm | Keyword | g = 9.80665 m/s² | kN, m, kPa, t/m³ — Default A36: E=2.0e8, ν=0.3, ρ=7.85, α=1.2e-5 |
kipsft | Keyword | g = 32.17405 ft/s² | kips, ft, ksf, kip·s²/ft⁴ — Default A36: E=4.176e6, ν=0.3, ρ=0.0152, α=6.5e-6 |
Nuances & Engineering Notes
- The unit keyword is case-insensitive (si, SI, kNm, knm, kipsft, IPS are all valid).
- Calling *units before *mat allows you to define *section or *sectype immediately using A36_default; once your first explicit *mat card is executed, A36_default is automatically replaced and rebound.
- In IPS and kipsft, material density must be mass density (weight density divided by g) if you apply *load grav with physical acceleration g (e.g., -386.09 or -32.174), OR weight density if you apply grav with unit factor -1.0 (as in the Argon IPS benchmark).
- Gravity g from
*unitscan be overridden explicitly via*gravityacceleration, val. Modal, steady-state dynamic, and transient dynamic solvers require at least one of*unitsor*gravityacceleration.
Examples of Use
*model, Footbridge
*units, kNm
' All coordinates in m, forces in kN, E in kPa (2.0e8 kPa for steel), density in t/m^3 (7.85)
*model, USBuilding
*units, kipsft
' All coordinates in ft, forces in kips, E in ksf (4.176e6 ksf for steel)*2dxy [, on | off | 3d] ' Bare *2dxy enables 2D XY planar mode
Purpose
Switches the active model into dedicated 2D planar XY structural analysis mode with active degrees of freedom Ux, Uy, Rz and locked out-of-plane DOFs (Uz = Rx = Ry = 0). Simplifies 2D frame, truss, portal, and beam-on-elastic-foundation decks while automatically filtering out-of-plane columns across HTML/TXT reports, 2D viewers, and external exports.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
on (omitted) | Keyword | on | Activates 2D XY planar mode, projecting any pre-existing non-zero nodal Z coordinates to Z = 0 and sanitizing pre-existing 3D out-of-plane loads, Winkler Cz, offz, warping restraints, and Z/RX/RY DOFs. |
off | 0 | false | 3d | Keyword | 3D | Disables 2D XY planar mode and restores full 6/7-DOF 3D behavior. |
Nuances & Engineering Notes
- Streamlined 2D input:
*nodeaccepts 2 coordinatesid, x, y;*load ... gravaccepts 2 componentsgx, gy; 1-argument*winklerbase, tgt, Cymaps directly to in-plane localCy(and 2-argument maps toCx, Cy). - One-sided Winkler uplift in 2D: In
static, nlgeomand*dynamic, nlgeom, one-sided*winklerbaseevaluates tensionless contact separation along localy(v_loc <= 0) whenCz == 0andCy > 0. - Automatic 3D sanitization: Out-of-plane loads (
fz, mx, my, bm, uz, uxx, uyy, pz, pzp, pzl, qtrz.., pcz.., mcx, mcy, bmc),offz, andZ/RX/RYDOFs in supports, springs, ties, and hinges are skipped with clear warnings—including when*2dxyis placed after geometry/load cards. - 2D-native outputs & exports:
*output, htmland*output, txtomit zero 3D columns (showingUx, Uy, Rz,Fx, Fy, Mz,Mz, N, |Qy|);*plotopens in clean top-down XY view;*export, staadwrites nativeSTAAD PLANE(lossless round-trip);*export, ccxand*export, frame3ddautomatically add out-of-planeZ/RX/RYlocks.
Examples of Use
*model, Portal2D
*units, si
*2dxy
*mat, steel, 2.0e11, 0.3, 7850
*sectype, S1, steel, rect, 0.25, 0.15
*node
1, 0, 0
2, 0, 3
3, 5, 3
4, 5, 0
*elem, S1
1, 1, 2
2, 2, 3
3, 4, 3
*sup
1, all
4, pin
*hinges, 2, j, rz
*load
1, 2, fx, 12000
1, 2, py, -5000
1, grav, 0, -9.80665
*solu
static
modal, bl 1, 3
*output, html, portal2d.html
*output, txt, portal2d.txt
*export, staad, portal2d.std
*end*gravityacceleration, <val>
Purpose
Explicitly sets or overrides the gravitational acceleration constant g used by *solu, modal, *dynamic, and *steadystatedyn to convert vertical static loads and concentrated nodal moments into translational masses (m = |W| / g) and rotational inertias (Ir = |Mr| / g).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
val | Double / Expr | Required (> 0) | Positive finite gravitational acceleration in active model length/s² units (e.g., 9.80665 m/s², 9.81 m/s², 386.08858 in/s², 32.17405 ft/s²). Accepts Basic/Python expressions. |
Nuances & Engineering Notes
- Overrides
*units: Whenever*gravityaccelerationis defined, its value takes precedence over the default g from*units(regardless of whether it appears before or after*units). - Mandatory for dynamics without
*units: If neither*unitsnor*gravityaccelerationis specified, modal, steady-state dynamic, and transient dynamic solvers halt with an explicit[Error]rather than silently assuming SI gravity. - Does not apply self-weight loads:
*gravityaccelerationonly sets the mass-conversion constant g; to apply structural self-weight forces, still includegrav, gx, gy, gzinside*load. - Validation: Zero, negative, or non-finite values emit an
[Error]and are rejected.
Examples of Use
' Override SI default 9.80665 with textbook 9.81 m/s^2:
*units, SI
*gravityacceleration, 9.81
' Unitless mm-N-s model without *units (g = 9806.65 mm/s^2):
*model, MillimeterFrame
*gravityacceleration, 9806.65*stop
Purpose
Acts as a block-level execution gate in FEACode input scripts. When *stop is encountered, the interpreter pauses execution of both FEACode cards and Basic statements until a matching *continue card (or end of file) is reached.
Parameters: None (standalone keyword card).
Nuances & Engineering Notes
- Useful for temporarily disabling large sections of a deck (e.g., skipping expensive *solu or *export calls while checking geometry with *plot) without commenting out every line.
- Unlike *end, *stop does NOT close the *model or clear model-local Basic variables—everything stays intact for when *continue resumes.
- FEACode prints an informational notice with the line number where *stop paused parsing.
Examples of Use
*node
1, 0, 0, 0
2, 5, 0, 0
*stop
' Everything below is ignored until *continue
*node
999, 50, 50, 50
*continue
*elem, S1
1, 1, 2*continue
Purpose
Clears the paused state set by *stop and resumes normal interpretation of FEACode cards and LibreOffice Basic code on the next line.
Parameters: None (standalone keyword card).
Nuances & Engineering Notes
- *continue is the ONLY card recognized while the interpreter is paused by *stop.
- Calling *continue when the deck is not paused is a harmless no-op.
- You can place multiple *stop ... *continue pairs anywhere inside a model deck.
Examples of Use
*stop
*export, dxf, debug_mesh.dxf
*export, ccx, debug_ccx.inp
*continue
*solu, static
*output, html*info
Purpose
Outputs a formatted console diagnostic report summarizing the current state of the active model: model name, header, unit system, counts of nodes, elements, materials, sections, secbase entries, groups, supports, spring supports, ties, hinges, loads, combinations, 3D bounding box extents, and automated pre-flight checks (missing supports, missing loads, zero-length elements, unconnected nodes).
Parameters: None (standalone keyword card).
Nuances & Engineering Notes
- Can be placed multiple times in a script (e.g., before and after *emerge or *copy) to inspect how mesh operations changed entity counts and bounding boxes.
- Equivalent to passing the --info command-line flag when running fea <file> --info, except *info triggers at the exact point it appears in the deck.
- Does not alter any model data or solver results.
Examples of Use
*emerge, 0.01
*info
*solu, static*py2
*python2, on | off ' or bare *python2 (defaults to on)
*py2, on | off
Purpose
Switches FEACode's built-in zero-dependency scripting engine from default LibreOffice Basic to authentic Python 2 syntax mode (or returns to LibreOffice Basic with off). Shares the unified EvalContext variable, list/array, and procedure namespace seamlessly with all *cards and Basic sections.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
on (or 1, true, omitted) | Keyword | on | Activates Python 2 mode: # comments, classic int/int floor division (5 / 2 == 2, 5.0 / 2 == 2.5), print a, b statements or print(a), xrange() & range(), <> & !=, half-away-from-zero round(). |
off (or 0, false, end) | Keyword | Basic | Closes Python 2 mode and returns to default LibreOffice Basic parsing. |
Nuances & Engineering Notes
- Column-0 Rule:
*python2, on|off,*model, and*endmust appear at column 0 (never inside an indented loop orifblock). - Persists across models: Active Python 2 mode stays enabled across multiple
*model ... *endblocks until explicitly turnedoffor switched to*python3, on. - Authentic Py2 semantics: Functions declared with
definside*python2recordlangMode = 2, so integer division (p / q) keeps Python 2 behavior even when called later from Basic or*python3. Watch for integer truncation in engineering fractions—writefloat(i) / nor use*python3, on. - Engineering Subset & Guardrails: Supports
import math(built-in), 1D lists[...], list comprehensions,if/elif/else,for/while/break/continue/pass/assert,def/return/global, and built-in file I/O (open,.readline(),.write(),.close(),fileexists,killfile). Mixing Basic keywords (Dim,Next,End If) or^inside Python mode emits a fail-fast[Error].
Examples of Use
*python2, on
*model, Py2_SSBeam
*units, SI
*mat, st2, 2.0e11, 0.3, 0.0
*section, s2, st2, 0.01, 1.0e-4, 1.0e-4, 2.0e-4, 0.2, 0.2
n_el = 4
*node
for i in xrange(n_el + 1):
i + 1, i * 1.5, 0.0, 0.0
*elem, s2, beam2
for i in xrange(1, n_el + 1):
i, i, i + 1
*sup
1, pin, rx
5, y, z
*load
1, beam2, pz, -6000.0
*solution, static
*output, txt, py2_ss.txt
*end
mid_node = n_el / 2 + 1 # Py2 int/int -> 2 + 1 = 3
print "Midspan node:", mid_node
*python2, off*py3
*python3, on | off ' or bare *python3 (defaults to on)
*py3, on | off
Purpose
Activates FEACode's built-in zero-dependency Python 3 scripting dialect (or returns to LibreOffice Basic with off). Enables indentation-based Python 3 parametric modeling, def functions (including solver callbacks f(time) and f(time, u)), built-in math, 1D lists, and automated verification file I/O with zero external Python installation.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
on (or 1, true, omitted) | Keyword | on | Activates Python 3 mode: true float division (5 / 2 == 2.5), floor division (5 // 2 == 2), required print(...) function, range(), banker's half-to-even round(), strict rejection of legacy xrange and <>. |
off (or 0, false, end) | Keyword | Basic | Closes Python 3 mode and returns to default LibreOffice Basic parsing. |
Nuances & Engineering Notes
- Indentation & Column-0 Rules: Card headers/data lines inside Python
for/while/ifblocks must be indented deeper than the block header (tabs = 4 spaces); dedenting to column 0 closes the block.*python3,*model, and*endmust always sit at column 0. - Rich Built-in Engineering Subset: Supports
#comments, single/double-quoted strings with escapes,\& bracket continuations,;inline statement separator,**,//,%, chained comparisons (0 <= x < 10),in/not in, ternarya if cond else b, augmented assignments (+=..**=), tuple unpacking, 1D lists ([...],[0]*n, list comprehensions,.append(), negative indexing,len/sum/min/max), string slicing/methods, built-inimport math [as m], and file I/O (open,.readline(),.write(),.close(),fileexists,filelen,filecopy,renamefile,killfile). - Lexical Scoping in
def: Assignments inside Pythondefare local by default; useglobal var1, var2to mutate script-level globals. Top-leveldeffunctions work directly asf(time)/f(time, u)callbacks in*load,*springsup,*winklerbase,nlgeom,*dynamic, and*steadystatedyn. - Fail-Fast Guardrails: External imports other than
math,class,try/except,with,lambda,yield,{...}dicts, triple quotes,^, and Basic keywords emit clear fail-fast[Error]messages.
Examples of Use
*python3, on
import math
def gap_spring(time, u):
return 5.0e5 * (1.0 + 20.0 * abs(u)) if u < 0.0 else 0.0
*model, Py3_Cantilever_Spring
*units, SI
*mat, steel, 2.0e11, 0.3, 0.0
*section, S1, steel, 0.05, 1.0e-4, 1.0e-4, 2.0e-4, 0.2, 0.2
*node
for i in range(5):
i + 1, i * 1.0, 0.0, 0.0
*elem, S1
for i in range(1, 5):
i, i, i + 1
*sup, 1, all
*springsup
5, z, gap_spring
*load
1, 5, fz, -50000.0 * time
*nlcontrol, ndiv, 4, initstep, 0.2, tol, 1e-8
*solution, static, nlgeom, bl 1, newton
*output, txt, py3_nl.txt
*end
*python3, off*material
' Inline form:
*mat, id, E, nu [, density, alpha, eta]
' Multi-line block form:
*mat
id1, E1, nu1 [, density1, alpha1, eta1]
id2, E2, nu2 [, density2, alpha2, eta2]
Purpose
Defines isotropic structural materials and automatically sets the most recently added material as the active default material for subsequent *section / *sectype cards. Shear modulus G is automatically computed as G = E / (2*(1 + nu)).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
id | String | Required | Case-insensitive material identifier (e.g., steel, conc, wood). |
E | Double | Required | Young's elastic modulus in active stress units (e.g., 2.0e11 Pa in SI). |
nu | Double | 0.0 | Poisson's ratio (used to compute G = E / (2*(1+nu)); clamped so 1+nu >= 0.05). |
density | Double | 0.0 | Mass density for *load grav self-weight (kg/m³ in SI, t/m³ in kNm). |
alpha | Double | 0.0 | Coefficient of linear thermal expansion for *load temp (1/°C or 1/°F). |
eta | Double | 0.0 | Material structural/viscous damping ratio used in strain-energy-weighted composite modal damping (unless overridden by *modaldamping). |
Nuances & Engineering Notes
- The first explicit *mat definition automatically deletes the implicit A36_default material (created by *units) and rebinds any earlier sections that referenced A36_default to this new material.
- Redefining an existing material id updates its properties in place without breaking existing section references.
- Every material automatically creates a corresponding auto-group containing elements using that material.
- When multiple materials have different eta values, *solu modal computes exact composite strain-energy-weighted modal damping zeta_k = sum(eta_e * U_e) / sum(U_e).
Examples of Use
*units, SI
*mat
steel, 2.0e11, 0.30, 7850, 1.2e-5, 0.02
conc, 3.0e10, 0.20, 2400, 1.0e-5, 0.05
alum, 7.0e10, 0.33, 2700, 2.3e-5, 0.005*setmaterial
*setmat, <mat_id>
' or multi-line:
*setmat
<mat_id>
Purpose
Changes the active default material pointer in the model state. Any subsequent *section or *sectype card that leaves its mat_id field blank automatically inherits this material.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
mat_id | String | Required | Identifier of a previously defined *mat material (case-insensitive). |
Nuances & Engineering Notes
- Does NOT retroactively change materials on already-defined sections; it only affects future section definitions or *setsec calls.
- If an explicit mat_id is supplied inside *section or *sectype, that explicit ID takes precedence over *setmat.
- Lookup is case-insensitive (Steel and steel refer to the same material).
Examples of Use
*mat, steel, 2.0e11, 0.3, 7850
*mat, alum, 7.0e10, 0.33, 2700
*setmat, alum
*section, TieRod, , 0.0025 ' Uses alum automatically
*setmat, steel
*sectype, MainBeam, , Ibeam, (0.30, 0.01, 0.15, 0.015)*beamtype
' Register named beam type ID and make it active:
*bmtype, <id>, euler | truss | Vlas
' Directly activate a built-in beam type:
*bmtype, euler | truss | Vlas
Purpose
Selects or registers the structural beam finite-element formulation attached to subsequent *section / *sectype definitions. Supports 3D 6-DOF Euler-Bernoulli frame elements (euler), axial-only 3D pin-jointed bars (truss), and 7-DOF Vlasov thin-walled warping-torsion beams (Vlas / vlasov).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
id | String/Int | Optional | Custom alias ID (e.g., 1, 2, vl, tr) registered for later reuse with *setbmtype. |
type | Keyword | euler | euler (6-DOF frame), truss (axial-only bar), or Vlas / vlasov (7-DOF warping beam with Cw, wMax, bimoments, and LTB/FTB). |
Nuances & Engineering Notes
- Vlas (7-DOF warping) requires geometric warping constants (Cw, wMax, shear center ySC/zSC, monosymmetry betaY/betaZ), so it ONLY works with *sectype (parametric shapes or custom UNV/DXF meshes). If you define a numeric *section while Vlas is active, FEACode logs an info message and automatically converts that section to Euler.
- Truss sections zero out bending/torsional stiffness in the solver while preserving raw Iz/Iy/J internally so *export key=1 can convert the model to all-Euler if needed.
- In static, nlgeom, truss elements always use 1 sub-element (nSub = 1) regardless of nDiv, because straight pin-ended bars have exact single-element co-rotational axial kinematics.
Examples of Use
*bmtype, 1, euler
*bmtype, 2, truss
*bmtype, 7, Vlas
' Active type is now Vlas (7-DOF):
*sectype, I300V, steel, Ibeam, (0.30, 0.010, 0.15, 0.015)
*setbmtype, 2
*section, BraceRod, steel, 0.0012*setbeamtype
*setbmtype, <id | euler | truss | Vlas>
' or multi-line:
*setbmtype
<id | euler | truss | Vlas>
Purpose
Switches the active beam formulation pointer without registering a new ID. Accepts either a custom ID defined via *bmtype (e.g., 1, 2, vl) or a built-in keyword (euler, truss, Vlas, vlasov).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
id | keyword | String/Int | Required | Registered beam-type ID or built-in formulation keyword. |
Nuances & Engineering Notes
- Like *setmat, *setbmtype only affects sections created after it; existing sections retain their original beam type.
- Switching back to *setbmtype, euler after defining Vlasov sections prevents unintended Vlasov behavior on simple rectangular or auxiliary members.
Examples of Use
*bmtype, 1, euler
*bmtype, 2, truss
*setbmtype, Vlas
*sectype, GirderV, steel, Ibeam, (0.40, 0.012, 0.20, 0.018)
*setbmtype, 1
*section, AuxBeam, steel, 0.01, 1e-4, 1e-4, , 0.2, 0.2*secbase, <filepath_or_stem> [, num_values_to_read]
Purpose
Reads a plain-text section database file (comma- or whitespace-delimited) into the model's secbaseCatalog template table. Each row defines a section ID followed by standard geometric properties (A, Iz, Iy, J, H1, H2, etc.). Catalog sections are templates and only become active model sections when instantiated by *section, id [, mat_id] or *setsec, id [, mat_id].
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
path | String | Required | Filename or path to the section catalog; FEACode automatically checks exact path, path + '.txt', and paths relative to the input script directory. |
num_values | Integer | 7 | Number of columns to read per row (including section ID). Default 7 reads: id, A, Iz, Iy, J, H1, H2. |
Nuances & Engineering Notes
- Catalog rows can use either commas or spaces as delimiters, and blank fields (e.g., omitted J) are automatically filled using default formulas (J = Iz + Iy).
- You can generate temporary catalogs on the fly inside a script using Basic File I/O (Open ... For Output) right before *secbase.
- Instantiating a catalog section binds it to the currently active material (or the explicit mat_id passed to *section / *setsec) and active beam type.
Examples of Use
' Catalog file wbeams.txt contents:
' W14x38, 0.0072, 1.6e-4, 1.1e-5, , 0.358, 0.172
' W10x22 0.0042 4.9e-5 4.7e-6 1.0e-7 0.258 0.146
*secbase, wbeams, 7
*section, W14x38, steel
*setsec, W10x22, steel*sec
' Explicit numerical section (inline or multi-line):
*section, id, [mat_id], A [, Iz, Iy, J, H1, H2, angle, off1, off2]
' Instantiate from *secbase catalog:
*section, catalog_id [, mat_id]
Purpose
Defines a beam or truss cross-section directly from numerical properties (area, moments of inertia, torsional constant, overall depths, roll angle, and rigid centroid offsets) and sets it as the active section for subsequent *elem cards.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
id | String | Required | Unique section identifier (case-insensitive). |
mat_id | String | Active *mat | Material ID; leave blank (,,) to inherit current *setmat material. |
A | Double | Required | Cross-sectional area. |
Iz, Iy | Double | 0 / auto | Second moments of area about local z (in-plane x-y bending) and local y (x-z bending). |
J | Double | Iz + Iy | St. Venant torsional constant; defaults to Iz + Iy when omitted or blank. |
H1, H2 | Double | 0.0 | Overall section dimensions along local y (H1) and local z (H2), used for extreme fiber bending stress (cY=H1/2, cZ=H2/2) and 3D plotting. |
angle | Double | 0.0 | Initial cross-section roll angle in degrees (CCW about local +x axis). |
off1, off2 | Double | 0.0, 0.0 | Rigid centroid eccentricities along local y (off1) and local z (off2), transforming element stiffness and forces via exact rigid-arm kinematics (Steiner parallel-axis coupling). |
Nuances & Engineering Notes
- Because *section does not supply thin-walled warping geometry (Cw, wMax), defining *section while *bmtype Vlas is active automatically converts that section to Euler (with an info notice). Use *sectype for 7-DOF Vlasov beams.
- All numerical fields accept full LibreOffice Basic expressions (e.g., b*h, b*h^3/12).
- Rigid offsets (off1, off2) work consistently across linear static, nlgeom (with finite-rotation rigid arms), modal, buckling, and *plot viewers.
- Every section automatically creates an auto-group named after its section ID.
Examples of Use
Dim b As Double = 0.25, h As Double = 0.40
*section
ColSec, steel, b*h, b*h^3/12, h*b^3/12, , h, b, 0
TopFlange, steel, 0.005, 2e-5, 2e-5, 4e-5, 0.05, 0.10, 0, 0.0, 0.20
BotFlange, steel, 0.005, 2e-5, 2e-5, 4e-5, 0.05, 0.10, 0, 0.0, -0.20' Parametric shape (parenthesized or flat dimensions):
*sectype, id, mat_id, Ibeam|Chan|T|L|doubleL|RTube|Pipe|Rect|Round, (dims...) [, angle, off1, off2]
' Custom 2D cross-section from .unv mesh or closed .dxf contour:
*sectype, id, mat_id, custom|unv|dxf, (file_path [, scale=1.0, density=14, arc_segs=48]) [, angle, off1, off2]
' Arbitrary open/closed/multi-cell thin-walled cross-section (inline multiline OR external file):
*sectype, id, mat_id, thinwalled [, angle, off1, off2]
pt_id, x, y[,] ' Corner coordinates (x -> local z, y -> local y)
line_id, corner_i, corner_j, thickness ' Wall segments connecting corners
*sectype, id, mat_id, thinwalled, (file_path) [, angle, off1, off2]
Purpose
Automatically computes exact section properties (A, Iz, Iy, J, H1, H2, cYMax, cZMax, shear center ySC/zSC, Vlasov warping constant Cw, max sectorial coordinate wMax, and monosymmetry parameters betaY/betaZ) from parametric engineering shapes or arbitrary 2D cross-section files (.unv triangular/quad mesh or closed .dxf polylines/lines/arcs/circles with holes). Required for 7-DOF Vlasov beams and full 3D extruded rendering in *plot 2 and *export stp3d/igs3d/ifc3d.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
Ibeam (i) | 4 dims | (d, tw, bf, tf) | Doubly symmetric wide-flange I-beam / W-shape. |
Chan (c, channel) | 4 dims | (d, tw, bf, tf) | Singly symmetric C-channel (computes exact eccentric shear center ySC). |
T (tee, tbeam) | 4 dims | (d, tw, bf, tf) | Monosymmetric T-section / WT-shape (computes exact betaY for flange-vs-stem LTB). |
L (angle) | 3 dims | (d, b, t) | Single leg angle. |
doubleL (2L, dbl_l) | 4 dims | (d, b, t, gap) | Back-to-back double angle separated by gusset gap. |
RTube (box, hss) | 3 dims | (h, b, t) | Rectangular hollow structural section / box tube. |
Pipe (tube) | 2 dims | (d, t) | Circular hollow pipe (outer diameter d, wall thickness t). |
Rect (rectangle) | 2 dims | (h, b) | Solid rectangular bar. |
Round (circle, rod) | 1 dim | (d) | Solid circular bar / rod. |
custom (unv, dxf, mesh) | file + opts | (file [, scale, dens, arc]) | Solves 2D Saint-Venant/Vlasov FEM + 2D elasticity shear factors over imported .unv mesh or auto-triangulated closed .dxf contours with inner holes. |
thinwalled (thinwall) | corners + walls | inline or (file) | Arbitrary open, single-cell, or multi-cell thin-walled profile solved via P2 warping FEM (exact J, Cw, wMax, ySC, zSC, betaY/Z, Asy/Asz, Wt, Ww and exact 3D shear/warping stress factors; no scale factor). |
Nuances & Engineering Notes
- Both parenthesized (*sectype, S1, steel, Ibeam, (0.30, 0.01, 0.15, 0.015), 15) and flat (*sectype, S1, steel, Ibeam, 0.30, 0.01, 0.15, 0.015, 15) forms are accepted.
- For custom .dxf sections, scale converts drawing units to model units (e.g., 0.001 for mm-to-m), density controls internal mesh refinement (default 14), and arc_segs controls circle/arc discretization (default 48).
- Multiple closed loops in a .dxf file are automatically classified as outer boundaries vs. inner holes (e.g., hollow box or 2-circle pipe).
- For
thinwalledsections, corners (3 fields:id, x, y; trailing comma allowed) and wall segments (4 fields:id, cornerI, cornerJ, t) accept Basic/Python expressions and can be defined inline or loaded from an external plain-text file. - All
customandthinwalledsections automatically appear in an interactive Tab 3: Custom Cross-Sections inspector inside*plot, 1 / 2showing CG, shear center, principal axes, warping contour, and full engineering properties. - Can be written inline or as a multi-line block under a bare
*sectypeheader.
Examples of Use
*bmtype, 7, Vlas
*sectype
W300, steel, Ibeam, (0.30, 0.010, 0.15, 0.015), 0, 0.0, 0.0
C250, steel, Chan, (0.25, 0.008, 0.10, 0.012)
HSS200, steel, RTube, (0.20, 0.12, 0.010)
DxfBox, steel, custom, (box_mm.dxf, 0.001, 14, 48), 0, 0.0, 0.0
UnvSec, steel, custom, (custom_profile.unv, 1.0)
' Inline thin-walled hollow box (1-cell closed):
*sectype, TW_Box, steel, thinwalled
1, -0.05, -0.10
2, 0.05, -0.10
3, 0.05, 0.10
4, -0.05, 0.10
1, 1, 2, 0.010
2, 2, 3, 0.010
3, 3, 4, 0.010
4, 4, 1, 0.010*setsection
*setsec, <sec_id> [, mat_id]
' or multi-line:
*setsec
<sec_id> [, mat_id]
Purpose
Sets the active default section used by subsequent *elem cards when they omit a section ID, or by *import when importing CAD line geometry. If sec_id exists in *secbase but has not yet been instantiated, *setsec instantiates it automatically.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
sec_id | String | Required | ID of an already-defined section or *secbase catalog entry. |
mat_id | String | Optional | Optional material override when instantiating or switching material on the section. |
Nuances & Engineering Notes
- Prints a warning if sec_id is found neither in active sections nor in the loaded *secbase catalog.
- Also used before *import, dxf or *import, igs to assign the desired section to imported wireframe lines.
Examples of Use
*setsec, BeamSec
*import, dxf, roof_truss.dxf, 420*nonprism
' Inline form:
*nonprismatic, <target_elems>, <sec_id_I>, <sec_id_J>
' Multi-line block form:
*nonprismatic
<target_1>, <sec_id_I>, <sec_id_J>
<target_2>, <sec_id_I>, <sec_id_J>
Purpose
Converts targeted elements into linearly tapered non-prismatic beams whose parametric dimensions vary linearly from cross-section sec_id_I at end I (ξ = 0) to sec_id_J at end J (ξ = 1). Integrates exact flexibility-based stiffness and fixed-end forces via 8-point Gauss-Legendre quadrature (including 14-DOF Vlasov warping torsion and tapered buckling geometric stiffness).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or element group name. |
sec_id_I | String | Required | Parametric *sectype section at start node n1 (end I). |
sec_id_J | String | Required | Parametric *sectype section at end node n2 (end J). Must share the exact same parametric shape topology as sec_id_I. |
Nuances & Engineering Notes
- Supported shapes: Both end sections must be parametric
*sectypedefinitions of the same shape (Ibeam, Chan, T, L, doubleL, RTube, Pipe, Rect, Round);customandthinwalledsections are not supported for linear parameter interpolation. - Exact single-element bending & torsion: Flexibility-based 8-point Gauss-Legendre integration yields textbook-exact deflections and end moments for tapered cantilevers, shafts, and haunches even with a single element (and automatically elevates to 14-DOF Vlasov when
Cw > 0). - Flat-top haunches & Resal shear: Pair with
*offset(asymmetric I/J offsets) to align top or bottom flanges horizontally;*output, vtk3d / cgx3dautomatically includes the Boley & Resal inclined-flange shear correction. - Topology & exports:
*divideautomatically creates interpolated intermediate sections at the cut station;*reorientswapssec_id_I <-> sec_id_J;*plot, 2and 3D CAD/VTK/CGX outputs loft smooth tapered 3D solids;*export, staadand*export, feacodepreserve tapered definitions cleanly.
Examples of Use
*setbmtype, Vlas
*sectype, IRoot, steel, Ibeam, (0.60, 0.012, 0.25, 0.018)
*sectype, ITip, steel, Ibeam, (0.30, 0.012, 0.15, 0.012)
*elem, IRoot
1, 1, 2
*nonprismatic, 1, IRoot, ITip
*offset, 1, i, offy, -0.30, j, offy, -0.15 ' Aligns top flange flat
*restrained, 1, i*cys
*csys, 0 | 1 | 2 | 3 | 4
*csys, elem, <elem_id> [, i | j | mid | 0] ' Align active CSYS to element local axes
*csys, global | off | reset ' Restore global Cartesian CSYS (same as *csys, 0)
Purpose
Sets the active coordinate system for subsequent *node entry, *move / *copy / *scale transforms, skewed boundary conditions (*sup, *springsup, *tie), local-axis nodal forces and prescribed displacements (*load), and local-axis group selection (*nodalgr, *elemgr).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
0 | Cartesian | Default | (x, y, z) — standard right-handed Cartesian coordinates. |
1 | Cylindrical X | r, θ°, x | Radial r in Y-Z plane, angle θ (degrees from +Y toward +Z), axial x. |
2 | Cylindrical Y | r, θ°, y | Radial r in Z-X plane, angle θ (degrees from +Z toward +X), axial y. |
3 | Cylindrical Z | r, θ°, z | Radial r in X-Y plane, angle θ (degrees from +X toward +Y), axial z. |
4 | Spherical | r, θ°, φ° | Radius r, azimuth θ (degrees in X-Y from +X), elevation φ (degrees from X-Y toward +Z). |
elem, <id> [, orig] | Element local | orig = i | Aliases: el, element, beam, local. Aligns Cartesian CSYS axes to element id's local triad (x_loc, y_loc, z_loc) with origin at i (default), j, mid, or 0 (global origin). |
Nuances & Engineering Notes
- All angles in modes 1–4 are in degrees, not radians.
- Calling *csys, 0 resets any shifted/rotated local CSYS previously created by *move, csys back to the global origin and identity rotation.
- When a non-global CSYS (
*move, csys,*csys, elem, or cylindrical/spherical modes 1–4) is active,*sup,*springsup,*tie, and*load(nodal forces & prescribed displacements) record the exact local orthonormal basis at each node and solve skewed restraints/springs/ties across all solvers, with lossless STAAD/CCX round-trip. - Coordinates are converted immediately to global Cartesian (X, Y, Z) at node creation time—changing
*csyslater does not move existing nodes.
Examples of Use
*csys, 3
*node, ring_nodes
For k = 0 To 11
k + 1, 5.0, k * 30.0, 3.0 ' r=5m, theta=0..330 deg, z=3m
Next k
*csys, 0
' Inclined roller support aligned with element 1 local axis:
*csys, elem, 1, i
*sup, 2, y, z ' Free to slide along element 1 x_loc!
*csys, 0*nodes
' Multi-line block (optional group name on header):
*node [, group_name]
id1, c1, c2 [, c3]
id2, c1, c2 [, c3]
' Inline single node:
*node, id, c1, c2 [, c3]
Purpose
Creates or updates structural nodes with integer IDs and 3D coordinates interpreted in the active *csys (Cartesian by default). All coordinates and IDs may be arbitrary LibreOffice Basic expressions, making parametric For..Next loops natural.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
group_name | String | Optional | When given on the *node header, every node defined in the block is automatically added to this named group. |
id | Integer | Required | Positive node ID (evaluated and rounded from Basic expression). |
c1, c2, c3 | Double | c3=0.0 | Coordinates in active *csys (x, y, z in Cartesian mode). Omitting c3 defaults to 0.0 for 2D XY entry. |
Nuances & Engineering Notes
- Inline form (*node, 1, 0, 0, 0) is distinguished from header-with-group (*node, top_nodes) automatically by checking whether the first token is a simple identifier and whether 4+ fields are present.
- Every node is automatically included in the built-in nall group.
- Redefining an existing node ID updates its coordinates in place.
- In
*2dxyplanar mode,c3may be omitted (id, x, y); any non-zero Z coordinate is projected toZ = 0with a warning.
Examples of Use
Dim spanX As Double = 6.0, H As Double = 4.0
*node, portal_nodes
For i = 0 To 3
i + 1, i * spanX, 0.0, 0.0
i + 101, i * spanX, 0.0, H
Next i*element
' Multi-line block with optional section and group:
*elem [, sec_id] [, group_name]
id1, n1, n2
id2, n1, n2
' Inline single element (uses active section):
*elem, id, n1, n2
Purpose
Creates 1D structural bar elements connecting start node n1 (local end i) to end node n2 (local end j). The element's beam formulation (Euler, Truss, or Vlasov) and material properties are inherited from the assigned section.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
sec_id | String | Active *setsec | Optional section ID on the header; activates that section and assigns it to all elements in the block. |
group_name | String | Optional | Optional named group to collect all elements created in this block. |
id | Integer | Required | Unique positive element ID (Basic expressions allowed). |
n1, n2 | Integer | Required | Start node (end i) and end node (end j) IDs. Local +x runs from n1 toward n2. |
Nuances & Engineering Notes
- Every element is automatically registered in the built-in eall group, its section's auto-group, and its material's auto-group.
- For non-vertical elements, default local y_loc lies horizontal in the global XY plane (perpendicular to x_loc) and z_loc points upward; for strictly vertical elements (cxy <= 1e-6), y_loc = (0, 1, 0) and z_loc = (-sgn(vz), 0, 0).
- Specifying a sec_id on *elem also updates the model's active section pointer for subsequent cards.
Examples of Use
*elem, ColSec, columns
1, 1, 101
2, 2, 102
*elem, BeamSec, girders
101, 101, 102*setelement
*setelem, <sec_id>, <target_elems_or_group>
Purpose
Replaces the assigned section property on one or more existing elements without recreating geometry, hinges, loads, or connectivity. Automatically refreshes section/material auto-groups.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
sec_id | String | Required | ID of an existing section (or *secbase catalog section). |
target | Target expr | Required | Element IDs, ranges (e.g., 1-5, (1 to 10)), element group name, or eall. |
Nuances & Engineering Notes
- All comma-separated tokens after sec_id are rejoined into the target expression, so lists like *setelem, W14x38, 1, 2, 3 or *setelem, W14x38, (1 to 3) both work cleanly.
- Useful after *import, dxf or *import, igs to assign different sections to columns, beams, and braces selected via *elemgr.
Examples of Use
*import, dxf, frame_wireframe.dxf, 420
*elemgr, cols
incline, axis, z, 0, 2
*elemgr, beams
incline, plane, xoy, 0, 2
*setelem, W14x90, cols
*setelem, W18x50, beams*import, dxf | igs | staad | frame3dd | ccx | feacode, <filename> [, key1, key2, ...]
Purpose
Imports external geometry or complete structural models into the active FEACode model. Wireframe CAD formats (DXF, IGES) create nodes/elements using the active section and place them in a group named after the file stem; full FEA formats (STAAD.Pro, Frame3DD, CalculiX) import nodes, elements, materials, sections, supports, springs, hinges, ties, loads, and combinations.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
dxf | CAD | LINE entities | Imports 3D DXF LINE entities, welding coincident endpoints. Key 420 shifts bounding-box min corner to (0,0,0). |
igs (iges) | CAD | Entity 110 | Imports IGES Entity 110 line segments. Supports key 420. |
staad (staadpro, std) | FEA | Full model | Lossless STAAD.Pro importer. Keys: zup (force Y-up→Z-up), raw/yup (keep Y-up), geom (geometry+groups only), nold (no loads), 420 (origin shift), si|ips|knm|kipsft (unit override). |
frame3dd (3dd) | FEA | Full model | Imports Frame3DD .3dd input decks. |
ccx (calculix, inp) | FEA | Full model | Imports CalculiX .inp beam/truss decks (including *TIME POINTS). |
feacode (fea) | FEA | Full model | Imports and merges another FEACode script (.txt/.fea, recursive up to depth 8, suppressing solver/output execution). Keys: geom (geometry/groups only), nold/noloads, 420 (origin shift), si|ips|knm|kipsft. |
Nuances & Engineering Notes
- STAAD.Pro auto-axis detection: if the .std file contains SET Z UP, coordinates stay Z-up; otherwise native STAAD Y-up is automatically rotated to FEACode Z-up unless raw/yup is passed.
- The filename argument may be bare (frame.dxf), omit the extension (frame), be quoted ("my frame.std"), or reference a Basic string variable/expression.
- After CAD import, FEACode prints the imported bounding box and reminds you to *scale if drawing units (e.g., mm) differ from model units (e.g., m).
Examples of Use
*setsec, BeamSec
*import, dxf, roof_grid, 420
*scale, roof_grid, 0.001
*model, FromStaad
*import, staad, portal_building.std, zup, nold
*info*nodalgroup
' Multi-line or inline:
*nodalgr, <group_name>
loc, x|y|z, val1 [, val2]
locr, x|y|z, rel1 [, rel2]
adj, elgr, <elem_group>
<id list / range e.g. (1 to 10)>
Purpose
Creates or appends to a named nodal group using geometric rules or explicit node ID lists. Named groups make supports, ties, loads, and transforms immune to node renumbering.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
loc, axis, v1 [, v2] | Abs coord | tol = 0.001*bbox | Selects nodes with coordinate on axis in [v1, v2]. If v2 is omitted, matches v1 ± 0.1% of model bounding box. |
locr, axis, r1 [, r2] | Rel [0..1] | tol = 0.001 | Selects nodes by normalized coordinate (c - c_min)/(c_max - c_min) in [r1, r2]. |
adj, elgr, <grp> | Topology | Endpoints | Selects all nodes attached to elements belonging to element group <grp>. |
id list | Explicit | e.g. (1, 5, 10 to 20) | Directly adds matching node IDs to the group. |
Nuances & Engineering Notes
- Built-in auto-groups nall and eall are protected and cannot be overwritten by *nodalgr.
- Multiple rule lines under a single *nodalgr block act as a union (OR), appending all matching nodes into the group.
locandlocrevaluate nodal coordinates in the currently active*csys(including*csys, elemand rotated local systems).- Use
*grpboolto intersect (AND) or subtract (NOT) multiple*nodalgrselections.
Examples of Use
*nodalgr, base_nodes
loc, z, 0.0
*nodalgr, roof_nodes
locr, z, 0.99, 1.01
*nodalgr, brace_joints
adj, elgr, diagonal_braces*elemgroup
*elemgr, <group_name>
loc | locr, x|y|z, v1 [, v2]
incline, axis, x|y|z, degMin [, degMax]
incline, plane, xoy|xoz|yoz, degMin [, degMax]
len | lenr, minL [, maxL]
<id list / range>
Purpose
Creates or appends to a named element group using geometric filters (both endpoints inside coordinate box, inclination angle to an axis or coordinate plane, absolute or relative element length, or explicit IDs).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
loc / locr | Coordinate | Both ends | Selects elements where BOTH endpoints n1 and n2 satisfy the coordinate interval. |
incline, axis, x|y|z | Angle (deg) | 0..90° | Angle between element axis and specified global axis (e.g., 0..2° to Z selects vertical columns). Single value uses ±0.01° tolerance. |
incline, plane, xoy|xoz|yoz | Angle (deg) | 0..90° | Angle between element axis and specified plane (e.g., 0..2° to xoy selects horizontal beams). |
len / lenr | Length | Abs or [0..1] | Selects elements by physical length L or normalized length (L - Lmin)/(Lmax - Lmin). |
Nuances & Engineering Notes
- For loc and locr, an element is selected only if BOTH of its nodes fall inside the range—ideal for isolating floor framing at a single elevation Z without grabbing columns.
- incline also accepts the shorthand keyword incl.
loc,locr, andinclineevaluate coordinates and axes in the currently active*csys(including*csys, elem).- Like
*nodalgr, multiple lines under one*elemgrblock form a union.
Examples of Use
*elemgr, vertical_cols
incline, axis, z, 0, 2
*elemgr, floor_beams
incline, plane, xoy, 0, 2
*elemgr, long_braces
len, 6.0, 9.5*groupboolean
' Inline 1-line form:
*grpbool, <out_group>, <grp1>, and | or | not, <grp2>
' Multi-line 3-line form (supports comma-lists on lines 1 and 3):
*grpbool, <out_group>
<grp1_a [, grp1_b, ...]>
and | or | not
<grp2_a [, grp2_b, ...]>
Purpose
Constructs composite nodal and/or element groups from Boolean set operations on existing groups. Both node sets and element sets are combined independently using the chosen operator.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
out_group | String | Required | Name of the resulting group (created or overwritten). |
grp1 | Group(s) | Required | Left-hand group (or union of comma-listed groups in 3-line form). |
op | Keyword | and | or | not | Set operator: and (intersection), or (union), not (difference grp1 \ grp2). |
grp2 | Group(s) | Required | Right-hand group (or union of comma-listed groups in 3-line form). |
Nuances & Engineering Notes
- Essential for isolating corner nodes or specific perimeter frames (e.g., roof_nodes AND grid_A_nodes, or col_nodes NOT base_supports).
- In 3-line form, listing multiple groups on line 1 or line 3 automatically unions each side before applying the operator.
- The output group may safely reuse the name of one of the input groups.
Examples of Use
*grpbool, top_right
top_nodes
and
right_half
*grpbool, upper_free, col_nodes, not, base_supports*gren, *rename, *grouprename
*grename, <old_group>, <new_group>
Purpose
Renames a user-defined group while preserving all member node IDs and element IDs.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
old_group | String | Required | Existing group name (case-insensitive). |
new_group | String | Required | New group name. |
Nuances & Engineering Notes
- Does not alter any nodes, elements, loads, or boundary conditions—only the group's registry key and display name.
- Useful after *import (which names the imported group after the source filename) to give the imported assembly a clean domain name.
Examples of Use
*import, dxf, arch_export_rev4.dxf, 420
*grename, arch_export_rev4, canopy_frame' Cascade delete group AND all its member nodes/elements/BCs/loads:
*gdel, <group1> [, <group2>, ...]
' Delete ONLY the group label, keeping all entities intact:
*gdel, <group>, keep
Purpose
Removes a named group from the model. Without keep, *gdel performs a full cascading delete of every node and element inside the group along with all attached supports, springs, ties, hinges, warping restraints, Winkler bases, and loads.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
group | String | Required | Target group name(s). |
keep (or 0) | Keyword | Omitted (cascade) | When present as the 2nd argument, deletes only the group tag and preserves all nodes and elements. |
Nuances & Engineering Notes
- Pay close attention to the default behavior: omitting keep DELETES the actual geometry inside the group! Always add keep if you only want to clean up a temporary selection group.
- When deleting multiple groups in cascade mode (*gdel, grpA, grpB), all listed groups are cascade-deleted in sequence.
- Cascading deletion automatically cleans up dangling references in other groups, supports, ties, hinges, and *load entries.
Examples of Use
*gdel, csys_scratch ' Deletes group AND its scratch nodes/elements
*gdel, temp_selector, keep ' Removes only the group name; keeps all nodes/elements*delete
*del, <target_ids_or_groups>
Purpose
Deletes targeted nodes and/or elements directly by ID, range, or group name, automatically purging any connected elements (when a node is deleted), supports, spring supports, ties, hinges, warping restraints, Winkler bases, and load entries referencing deleted entities.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target | Target expr | Required | IDs, ranges (e.g., 7, 10-15), or group names. Comma-separated targets are joined automatically. |
Nuances & Engineering Notes
- Deleting a node also removes any elements incident on that node to maintain topological validity.
- Deleting an element leaves its endpoint nodes in place (useful when removing a temporary construction bar or brace).
- Auto-groups (nall, eall, section/material groups) are refreshed automatically after deletion.
Examples of Use
*del, 999
*del, 217, 218' Multi-line form (translation + optional Euler rotation line in degrees):
*move, <target | csys>
dx, dy, dz
[rx_deg, ry_deg, rz_deg]
' Inline translation form:
*move, <target | csys>, dx [, dy, dz]
Purpose
Translates and optionally rotates a set of nodes/elements in the active *csys, OR translates and rotates the local *csys frame itself when target is csys.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target | csys | Target/Keyword | Required | Node/element IDs, group name, nall/eall, or literal keyword csys to move the coordinate system itself. |
dx, dy, dz | Double | 0, 0, 0 | Translation vector in current *csys. |
rx, ry, rz | Double | 0, 0, 0 | Optional 2nd data line: rotation angles in degrees about X, Y, Z axes. |
Nuances & Engineering Notes
- When target is an element group, *move automatically collects and moves all endpoint nodes of those elements exactly once (never double-moving shared nodes).
- Using *move, csys lets you build a skewed wing or rotated bay in convenient local coordinates, then call *csys, 0 to return to global coordinates.
- Rotation angles are specified in degrees.
Examples of Use
*import, dxf, roof_beams.dxf, 420
*move, roof_beams
0.0, 0.0, 4.0
*csys, 0
*move, csys
10.0, 20.0, 0.0
0.0, 0.0, 45.0
*node, skewed_wing
101, 0, 0, 0
102, 5, 0, 0
*csys, 0' Multi-line form:
*copy, <target> [, nold]
dx, dy, dz
[rx_deg, ry_deg, rz_deg]
' Inline translation form:
*copy, <target>, dx [, dy, dz]
Purpose
Creates translated and/or rotated copies of targeted geometry with automatically allocated new node and element IDs. Preserves section assignments, roll overrides, *hinges, *restrained warping restraints, *winklerbase definitions, and (by default) attached *load entries.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target | Target expr | Required | Node/element IDs, range, group name, or eall. |
nold | Keyword | Omitted (copy loads) | Optional flag on header: copies geometry and member properties WITHOUT duplicating loads. |
dx, dy, dz | Double | 0, 0, 0 | Translation offset for the new copy. |
rx, ry, rz | Double | 0, 0, 0 | Optional 2nd line: rotation angles in degrees. |
Nuances & Engineering Notes
- Repeatedly calling *copy, eall, nold doubles the model each time—a fast pattern for building multi-bay trusses or repetitive frames (follow with *emerge to weld shared seam nodes).
- Copied elements inherit *hinges, *restrained, and *winklerbase automatically.
- Pass nold whenever you plan to apply separate wind/live loads to the copied frame later so you don't accidentally duplicate loads.
Examples of Use
*copy, frame_y0, nold
0.0, 6.0, 0.0
' Double a 1m beam segment into a 4m beam and weld shared joints:
*copy, eall, nold
1.0, 0.0, 0.0
*copy, eall, nold
2.0, 0.0, 0.0
*emerge, 1e-4*scale, s ' Uniform scale entire model
*scale, <target>, s ' Uniform scale target
*scale, sx, sy, sz ' Non-uniform scale entire model
*scale, <target>, sx, sy, sz ' Non-uniform scale target
Purpose
Scales nodal coordinates uniformly or independently along X, Y, and Z in the active *csys. Commonly used to convert imported CAD drawings (e.g., mm → m via 0.001, or ft → in via 12.0) or to stretch parametric geometries.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target | Target expr | nall | Optional node/element target or group; omit to scale the entire model. |
sx, sy, sz | Double | Required | Scale factors along X, Y, Z. Providing a single value s sets sx = sy = sz = s. |
Nuances & Engineering Notes
- Only nodal coordinates are scaled—section dimensions (A, Iz, Iy) and load intensities are NOT automatically scaled.
- Scaling operates in the active *csys, so combining *move, csys with non-uniform *scale stretches along skewed axes.
- Target disambiguation is automatic based on argument count (2, 3, 4, or 5 fields).
Examples of Use
*import, dxf, truss_mm.dxf, 420
*scale, truss_mm, 0.001
' Stretch only element 81 by 2x along X:
*scale, 81, 2.0, 1.0, 1.0*rotsec, <target_elems>, <angle_deg>
Purpose
Assigns a per-element cross-section roll angle override (in degrees, counterclockwise around local +x_loc from n1 to n2) without having to define a duplicate *section or *sectype card.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or group name (multiple comma-separated targets allowed before the last argument). |
angle_deg | Double | Required | Absolute roll angle in degrees (overrides the section's default angle). |
Nuances & Engineering Notes
- The last comma-separated token is always parsed as angle_deg, allowing lists like *rotsec, 1, 3, 5, 90.0.
- Rotating a beam by 90° swaps its local y_loc and z_loc axes, which also rotates local loads (pyl/pzl), local *winklerbase directions (Cy/Cz), and bending planes.
- The roll override is visible directly in *plot 1 / *plot 2 and exported to STAAD, Frame3DD, CalculiX, and 3D CAD (*export stp3d/igs3d/ifc3d).
Examples of Use
*elemgr, end_cols
loc, x, 0.0
*rotsec, end_cols, 90.0' Inline form:
*reorient, <target_elems>
' Multi-line block form:
*reorient
<target_1>
<target_2>
Purpose
Flips the local axial direction of targeted elements by swapping start node n1 (end i) and end node n2 (end j). Automatically mirrors end-dependent data—*hinges (i ↔ j), *restrained (i ↔ j), trapezoidal/point load relative positions (x_rel → 1 - x_rel), and local load signs—so the physical model remains invariant.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or group name. |
Nuances & Engineering Notes
- Reorienting an element twice restores its original orientation exactly.
- Essential for aligning diagram sign conventions (M, Q, N) along continuous multi-span girders imported from CAD files where lines may have been drawn in alternating directions.
- Local-axis loads, point bimoments (
bmcatx_rel),*nonprismaticend sections, and both element-level (*offset) and section-level (offset1, offset2) eccentricities are automatically mirrored/transformed so the physical structure remains invariant.
Examples of Use
*reorient, 1, 3, 5, 7
' Multi-line form:
*reorient
reverse_rafters
51*div
' Inline form:
*divide, <target_elems>, i | j, <dist>
' Multi-line block form:
*divide
<target_1>, i | j, <dist_1>
<target_2>, i | j, <dist_2>
Purpose
Subdivides each targeted element into two collinear elements by inserting a new interior node at physical distance dist measured from end i (n1) or end j (n2). Seamlessly redistributes uniform, trapezoidal, point, moment, bimoment, and thermal member loads, preserves end *hinges and *restrained at the outer ends, propagates *winklerbase and roll overrides, and adds the new child element to all parent groups.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or group name. |
i | j | Keyword | Required | Reference end from which dist is measured (i = start node n1, j = end node n2). |
dist | Double | Required | Positive physical distance along the element (0 < dist < L). Values <= 0 or >= L are safely ignored with a notice. |
Nuances & Engineering Notes
- Ideal for capturing exact midspan deflections/moments on simply supported girders or refining mesh density on Vlasov beams and Euler buckling columns.
- Trapezoidal loads (qtrz) are linearly interpolated at the cut point and split cleanly across the two child elements.
- Out-of-range distances (dist <= 0 or dist >= L) never corrupt the mesh—FEACode prints a [Notice] and skips that element.
Examples of Use
*divide, 1, i, 3.0
' Divide a 4m column (elem 1) into four 1m segments sequentially:
*divide
1, i, 1.0
2, i, 1.0
3, i, 1.0*emerge [, tol]
Purpose
Performs comprehensive topological healing on the active model: (1) welds coincident nodes closer than tol, (2) deletes collapsed zero-length or duplicate overlapping elements, and (3) detects T-junctions where a node lies on the interior of an element and automatically splits that element—redistributing all attached distributed, trapezoidal, and point loads accurately.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
tol | Double | auto / 0.0 | Distance tolerance for node welding and point-on-segment detection. Omit for exact/default tolerance. |
Nuances & Engineering Notes
- Always run *emerge after *copy or *import, dxf/igs if separate sub-assemblies touch at shared joints or T-intersections.
- When merging two nodes, *emerge remaps all element incidences, group memberships, supports, ties, and nodal loads onto the surviving node ID.
- Prints a summary line reporting the final node and element counts after healing.
Examples of Use
*copy, bay1, nold
6.0, 0.0, 0.0
*emerge, 0.01*compressnumbers
*compnum [, group_name]
Purpose
Eliminates gaps in node and element numbering (e.g., after *del, *gdel, or *emerge) by reassigning IDs contiguously starting from 1 (or the lowest unused IDs when scoped to a single group). All connectivity, groups, supports, springs, ties, hinges, restraints, Winkler bases, and loads are updated automatically.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
group_name | String | All entities | Optional group name to compress only entities inside that group without disturbing IDs outside it. |
Nuances & Engineering Notes
- Preserves the relative numerical ordering of IDs (unlike *renum, which reorders by spatial adjacency).
- Group-scoped *compnum, part1 moves IDs in part1 into the lowest available unused integer slots while leaving other groups untouched.
Examples of Use
*compnum ' Renumbers all nodes 1..N and elements 1..E
*compnum, part1 ' Compresses only entities in group part1*renumber
*renum [, group_name]
Purpose
Reorders node and element IDs based on spatial coordinates and topological adjacency, producing clean sequential numbering for reports and minimizing matrix bandwidth. Updates all references (elements, groups, BCs, ties, hinges, loads) consistently.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
group_name | String | All entities | Optional group name to restrict renumbering to a specific sub-assembly. |
Nuances & Engineering Notes
- Note that large models (>600 DOFs static, >480 DOFs eigen) automatically run internal Reverse Cuthill-McKee / Minimum-Degree reordering inside the Skyline solver regardless of user IDs, so *renum is primarily useful for human-readable report ordering and external *export decks.
- Always apply *renum BEFORE referencing raw numeric node/element IDs in *sup or *load—or better yet, use named groups (*nodalgr / *elemgr), which track renumbered IDs automatically.
Examples of Use
*copy, eall, nold
5.0, 0.0, 0.0
*emerge, 0.01
*renum*support
' Multi-line block form:
*sup
<target_1>, all | pinned | pin | x, y, z, rx, ry, rz
<target_2>, y, z, rx
' Inline form:
*sup, <target>, all | pinned | x, y, z, rx, ry, rz
Purpose
Restrains translational (x, y, z) and/or rotational (rx, ry, rz) degrees of freedom to zero displacement in the active *csys (global by default, or skewed/inclined when *csys, elem, *move, csys, or modes 1–4 are active) on targeted nodes. Restrained DOFs are eliminated prior to stiffness factorization and their reactions are reported in *output.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target | Target expr | Required | Node ID(s), range, nodal group name, or nall. |
all | Shortcut | 6 DOFs | Fully fixed support (x, y, z, rx, ry, rz). |
pin / pinned | Shortcut | 3 DOFs | Pinned support restraining translations (x, y, z) while leaving rotations free. |
x..rz | DOF list | Individual | Any combination of x, y, z, rx, ry, rz (can be combined with pin, e.g., pin, rx). |
Nuances & Engineering Notes
- Multiple *sup entries on the same node accumulate via logical OR (additive restraint).
- For Vlasov 7-DOF warping beams, *sup restrains only the 6 standard nodal DOFs; warping freedom ψ = dφ/dx remains FREE unless explicitly restrained via *restrained.
- In 2D planar models (e.g., X-Z frame), restrain out-of-plane DOFs (e.g., nall, y, rx, rz) to prevent singular stiffness or spurious out-of-plane buckling modes.
- Support reactions are reported in global coordinates for every node carrying either
*supor*springsup. In*2dxymode, out-of-plane DOFs (z, rx, ry) are automatically locked globally and skipped on*suplines.
Examples of Use
*sup
base_nodes, all
4, pinned
11, pin, rx
nall, y, rx, rz*springsupport
' Multi-line or inline:
*springsup
<target>, all | pin | x, y, z, rx, ry, rz, <rigidity | BasicFunc(time[, u])>
Purpose
Adds grounded elastic spring stiffnesses to selected nodal DOFs (translational force/length or rotational moment/radian). Supports both constant linear stiffnesses and arbitrary Basic functions of time (and optionally nodal displacement u) for nonlinear/gap/soil-spring behavior in static, nlgeom.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target | Target expr | Required | Node ID(s), range, or nodal group. |
DOF spec | DOF list | Required | all, pin/pinned, or any subset of x, y, z, rx, ry, rz. |
rigidity | Double / Func | Required (>0) | Positive spring stiffness k, Basic expression, or Basic function referencing mandatory 'time' and optional state displacement 'u' (e.g., GapSpring(time, u)). |
Nuances & Engineering Notes
- Multiple *springsup lines targeting the same node and DOF add their stiffnesses in parallel.
- Negative or zero constant stiffness triggers a warning and is ignored.
- When a Basic function depends on displacement u (e.g., compression-only footing spring where k = k0 if u <= 0 else 0), static, nlgeom computes the consistent numerical tangent stiffness automatically.
- In linear static and modal analyses, time-dependent spring functions are evaluated at time=1.0 (u=0); in static, nlgeom they evolve continuously across time ∈ [0, 1].
- Honors the active
*csys(including*csys, elemand cylindrical/spherical CSYS) by assembling exact rotated 3×3 directional spring blocks across Linear Static, NLGEOM, Modal, Buckling, and Dynamic solvers. - Elastic spring reactions
F = -k * uare automatically included in the*outputSupport Reactions table.
Examples of Use
Function GapSoil(time As Double, u As Double) As Double
If u <= 0.0 Then GapSoil = 2.0e6 Else GapSoil = 0.0
End Function
*springsup
footing_nodes, pin, 1.5e6
1, rz, 5.0e6
2, z, GapSoil*winkler
' 1-argument vertical (local z) Winkler foundation:
*winklerbase [, key=twosided | key=onesided]
<target_elems>, <Cz | f(time[,u])> [, key=twosided]
' 3-argument local (Cx, Cy, Cz) Winkler foundation:
*winklerbase [, key=twosided]
<target_elems>, <Cx>, <Cy>, <Cz> [, key=twosided]
' Clear Winkler foundation:
*winklerbase
<target_elems>, 0, 0, 0
Purpose
Applies a continuous distributed elastic foundation (subgrade modulus × width, units Force/Length²) along targeted elements using consistent cubic Hermite shape functions for bending and linear axial integration. Ideal for grade beams, mat strips, railroad ties, and embedded piles (Hetenyi beams on elastic foundation).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or element group name. |
Cz (1-arg) | Double / Func | Required | Distributed foundation stiffness along element local z_loc (sets Cx = Cy = 0). |
Cx, Cy, Cz (3-arg) | Double / Func | 0, 0, 0 | Distributed stiffnesses along local axial (Cx), local lateral (Cy), and local vertical (Cz) axes. |
key=twosided | Flag | One-sided in nlgeom | Aliases: twosided, bilateral, 2sided. Forces bilateral (tension+compression) soil contact even in static, nlgeom. Default in nlgeom is one-sided compression-only contact (w_loc <= 0) with clean uplift separation. |
Nuances & Engineering Notes
- Stiffness components (Cx, Cy, Cz) act in the element's LOCAL axes—rotating a beam with *rotsec, 90 rotates the foundation direction accordingly.
- In linear static, modal, and Euler buckling analyses,
*winklerbaseis always bilateral (consistent 12×12 Hermite stiffness); instatic, nlgeomand*dynamic, nlgeomit defaults to one-sided tensionless soil via 5-point Gauss-Legendre integration (along localzwhenCz > 0, or along localywhenCz == 0 && Cy > 0in*2dxymode) unlesskey=twosidedis specified. - In
*2dxyplanar mode, 1-argument*winklerbase, tgt, Cymaps to localCy, 2-argumenttgt, Cx, Cymaps to(Cx, Cy), and any out-of-planeCzis zeroed with a warning. - Reapplying *winklerbase to an element overwrites the previous foundation (with a [Notice]); passing (0, 0, 0) clears the foundation cleanly.
- Automatically propagates through *divide and *copy, and exports to CalculiX (*export, ccx) as distributed nodal springs.
Examples of Use
*winklerbase
grade_beams, 2.0e6 ' Cz = 2 MN/m^2, one-sided uplift in nlgeom
embedded_pile, 1.0e8, 5.0e5, 5.0e5 ' Axial skin friction Cx + lateral Cy, Cz
rail_tie, 5.0e6, key=twosided ' Always bilateral*tension-only, *tension_only
' Inline form:
*tensiononly, <target_elems> [, off | both | reset]
' Multi-line block form:
*tensiononly
<target_1>
<target_2>, off
Purpose
Assigns one-way tension-only axial behavior (e.g., X-bracing cables, guy wires, tie rods) to targeted elements in geometrically nonlinear static (static, nlgeom) and transient dynamic (*dynamic) analyses. Elements carry full axial stiffness and force in tension (N ≥ 0) and go completely slack with zero force and zero stiffness in compression (N < 0).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), ranges (e.g., 10-16), or element group name. |
off | both | reset | Keyword | Tension-only | Optional trailing keyword clearing one-way behavior and restoring bilateral axial action on the targeted elements. |
Nuances & Engineering Notes
- Automatic Truss Conversion: Any targeted non-truss beam (Euler or Vlasov) is automatically converted to a dedicated cloned
<secId>_trusssection (zeroingIz, Iy, J, Cwand clearing hinges/warping restraints) without affecting other beams sharing the original section. - Active Solvers: Enforced in
*solution, static, nlgeom(Newton & Arc-Length) and*dynamic(linear & nlgeom). Linear static, linear modal, and*steadystatedyntreat these members as bilateral trusses and emit a[Warning]. - Prestressed Modal Inheritance: Running
*stringeffect, <key>, nlafter annlgeomsolve passes the exact converged slack/active tangent state (Etan = 0 if slack) into subsequent*solution, modalruns. - Combinable with
*nonlinspring: Can be paired on the same elements with*nonlinspringto enforce strict zero-compression slackening on custom nonlinear cable curves.
Examples of Use
*elem, RodSec, x_braces
10, 1, 4
11, 2, 3
*tensiononly, x_braces
*solution, static, nlgeom, bl 1, newton
*stringeffect, bl 1, nl
*solution, modal, bl 1, 4*compression-only, *compression_only, *componly
' Inline form:
*compressiononly, <target_elems> [, off | both | reset]
' Multi-line block form:
*compressiononly
<target_1>
<target_2>, off
Purpose
Assigns one-way compression-only axial behavior (e.g., contact struts, bearing pads, uplift-free props, masonry/gap bumpers) to targeted elements in static, nlgeom and *dynamic analyses. Elements resist compression (N ≤ 0) with full axial stiffness and release completely (N = 0, kax = 0) when pulled into tension (N > 0).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), ranges, or element group name. |
off | both | reset | Keyword | Compression-only | Optional trailing keyword restoring standard bilateral axial truss behavior on the targeted elements. |
Nuances & Engineering Notes
- Automatic Truss Conversion: Non-truss elements targeted by
*compressiononlyare cloned onto a dedicated<secId>_trusssection (zeroing bending/torsion/warping stiffness) while preserving unaffected beams. - Conflict Handling: Applying
*compressiononlyto an element previously tagged*tensiononlyoverwrites the axial behavior and emits a[Warning]. - Solver Scope: Active in
static, nlgeom,*dynamic, and post-NLGEOM prestressed modal (*stringeffect, <key>, nl). Linear static, linear modal, and*steadystatedyntreat the bars as bilateral trusses with a[Warning]. - Static Load Transfer: Gravity, thermal, and member loads on truss elements are transferred statically to their end nodes.
Examples of Use
*elem, PadSec, bearing_struts
20, 1, 101
21, 2, 102
*compressiononly, bearing_struts
*solution, static, nlgeom, comb 1, newton
*output, nlgeom_html, uplift_check.html*nlspring, *nonlinearspring
' Inline form:
*nonlinspring, <target_elems>, <Func(eps) | expr(eps) | off>
' Multi-line block form:
*nonlinspring
<target_1>, <FuncName | expr(eps)>
<target_2>, off
Purpose
Models nonlinear axial link/guy-rope elements (such as 1-element Ernst equivalent-modulus guy cables, bilinear yield links, or stiffening/softening springs) in static, nlgeom and *dynamic. The user provides a tangent Young's modulus function Etan(ε) as a function of effective relative axial elongation εeff = (L − L0)/L0 − εth; FEACode integrates N = A ∫0εeff Etan(ε) dε via adaptive Simpson quadrature and uses exact tangent stiffness kax = Etan(εeff) · A / L0.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or element group name. |
Func(eps) | expr | Basic / Python | Required | Bare 1-argument Basic Function / Python def name (e.g., ErnstGuyE) OR inline expression referencing eps (or epsilon) returning tangent modulus Etan in stress units. |
off | reset | none | Keyword | Clear | Removes nonlinear spring definition and reverts targeted elements to linear material modulus E. |
Nuances & Engineering Notes
- Automatic Truss Conversion & Load Transfer: Non-truss elements are automatically converted to a dedicated
<secId>_trusssection (preserving area A, materialalpha/density, and offsets). Thermal loads adjust εeff = εgeo − αΔT directly; self-weight, uniform, trapezoidal, and point loads transfer statically to end nodes. - Zero-Initial-Stiffness Safety: Even if Etan(0) = 0 (e.g., an initially slack cable), FEACode probes small strains to keep attached translational DOFs active in the equation system.
- Prestressed Modal (
*stringeffect, ..., nl): After solvingstatic, nlgeom, activating*stringeffect, <key>, nlpasses each element's exact converged tangent modulus Etan(εeff) into the modal stiffness matrix alongside geometric stiffness Kg—ideal for guyed mast modal analysis. - Linear Solver Fallback: Linear static, linear modal (without
nlprestress), and*steadystatedynuse the section's base material E and emit a[Warning].
Examples of Use
Function GuyTangentE(eps As Double) As Double
' Slack for eps <= 0; stiffening tangent modulus E_tan(eps) in tension
If eps <= 0.0 Then
GuyTangentE = 0.0
Else
GuyTangentE = 1.6e11 * (1.0 - Exp(-eps / 0.0005)) + 2.0e10
End If
End Function
*nonlinspring, guy_ropes, GuyTangentE
*tensiononly, guy_ropes
*solution, static, nlgeom, comb 1, newton
*stringeffect, comb 1, nl
*solution, modal, bl 1, 6*ties
*tie, all | pin | x, y, z, rx, ry, rz
<master_target>, <slave_target>
Purpose
Enforces equality of selected translational and/or rotational DOFs between master and slave nodes (u_master = u_slave) using high-stiffness penalty constraints (k_pen = 10⁵ × max diag(K)). Used for expansion joints, pinned links between coincident/offset nodes, diaphragm ties, and rigid transfers.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
dofs (header) | DOF list | Required | DOFs to couple: all, pin/pinned, or any combination of x, y, z, rx, ry, rz. |
master_target | Target expr | Required | Master node ID(s) or nodal group. |
slave_target | Target expr | Required | Slave node ID(s) or nodal group (paired 1-to-1 or broadcast when master is a single node). |
Nuances & Engineering Notes
- Tie forces F_tie = k_pen * (u_master - u_slave) are recovered and reported in a dedicated Tie Forces table in *output HTML/TXT.
- In *plot 1 and *plot 2, ties are rendered as distinct thin magenta/colored DOF link lines so coupled joints are immediately visible.
- Honors the active
*csys(e.g.,*csys, elem) to enforce skewed sliding or directional DOF ties between nodes along inclined axes. - When exporting to STAAD.Pro (
*export, staad), chained ties are automatically flattened into valid TR.28.1 MASTER/SLAVE equation constraints; in Frame3DD (*export, frame3dd) they export as stiff tie bars.
Examples of Use
*tie, pin, rz
2, 3
*tie, all
tie_master_top, tie_slave_set' Multi-line block form:
*hinges, <target_elems>
i, ry, rz
j, rx
ij, pin
' Inline form:
*hinges, <target_elems>, ij, ry, rz
Purpose
Applies exact static condensation of released internal DOFs at element end i (n1), end j (n2), or both ends (ij / ji). Used to model shear-tab gravity beams, pinned braces, internal bending hinges, and torsional releases.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or element group name. |
i | j | ij | ji | End selector | Required | i = start node n1; j = end node n2; ij or ji = both ends simultaneously. |
dofs | pin | DOF list | Required | pin/pinned (releases bending/torsion rotations) or explicit local DOFs x, y, z, rx, ry, rz. |
Nuances & Engineering Notes
- IMPORTANT: The legacy two-token syntax 'i, j, ry, rz' was REMOVED and emits a warning! Always write 'ij, ry, rz' (or 'ji, pin') to release both ends, or put 'i, ...' and 'j, ...' on separate lines.
- Multiple *hinges lines on the same element accumulate releases via logical OR.
- On 7-DOF Vlasov beams, an rx release is condensed cleanly inside the full 14x14 stiffness matrix and gives the hinged end an independent warping DOF.
- Geometric stiffness matrices in Euler buckling and *stringeffect are automatically statically condensed (Tc^T * Sg * Tc) for full consistency with end releases.
- Dividing a hinged element with *divide keeps the i-hinge on the first child and the j-hinge on the second child (never creating an unintended interior hinge).
Examples of Use
*hinges, gravity_beams
ij, ry, rz
*hinges, 2
i, ry, rz
j, rx*offsets
' Inline form (supports comma-separated or key=value pairs):
*offset, <target_elems>, i | j | ij, offy | offz, <val> [, ...]
' Scoped multi-line block form:
*offset, <target_elems>
ij, offy, 0.25
ij, offz, 0.40
' Multi-element block form & clearing overrides:
*offset
1, i, offy, -0.30, j, offy, -0.15
2, off | clear | reset
Purpose
Defines per-element rigid centroidal end offsets at end I (n1), end J (n2), or both ends (ij) along element local axes y_loc (offy / off1) and z_loc (offz / off2). Overrides section-level offset1 / offset2 independently per end and per axis, enabling flat-top haunches, eccentric composite slabs/flanges (Steiner parallel-axis coupling), and beam-to-column face offsets.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or element group name. |
i | j | ij | ji | both | End selector | Required | Selects start end i, end j, or both ends ij before the axis/value pairs. |
offy (off1, y, oy) | Double / Expr | Section off1 | Rigid eccentricity from analytical node to physical centroid along nominal local y_loc. |
offz (off2, z, oz) | Double / Expr | Section off2 | Rigid eccentricity along nominal local z_loc (ignored with a warning in *2dxy mode). |
off | clear | reset | none | Keyword | Clear override | Removes per-element *offset overrides, reverting to section-level offsets. |
Nuances & Engineering Notes
- Exact 3D centroidal-axis kinematics: When end I and end J offsets differ (e.g., flat-top tapered haunch), FEACode computes the true physical centroid-to-centroid axis length and rigid-arm transformation
u_cent = u_node + θ × aacross Linear Static, Co-Rotational NLGEOM, Modal, Buckling, and Transient Dynamics. - Truss guard:
*offsetis ignored on truss elements (*bmtype, truss,*tensiononly,*compressiononly,*nonlinspring). - Mesh operations:
*dividelinearly interpolates asymmetric I/J offsets at the cut node;*reorientswaps ends and transforms both element-level and section-level offsets to preserve exact physical eccentricity. - Full interoperability: Lossless round-trip in
*export/*importforstaad(MEMBER OFFSET),ccx, andfeacode, plus accurate skewed 3D rendering in*plot,vtk3d,cgx3d, andstp3d/igs3d/ifc3d.
Examples of Use
' Two identical flange elements offset +/- 0.25 m along local z:
*offset, 3, ij, offz, 0.25
*offset, 4, ij, offz, -0.25
' Asymmetric flat-top tapered haunch:
*nonprismatic, 10, DeepSec, ShallowSec
*offset, 10, i, offy, -0.30, j, offy, -0.15' Multi-line block form:
*restrained
<target_1>, i | j | ij | ji | both
<target_2>, i
' Inline form:
*restrained, <target_elems>, i | j | ij | ji
Purpose
Fixes the Vlasov cross-sectional warping rate ψ = dφ/dx = 0 at specified ends of 7-DOF Vlasov (*bmtype, Vlas) beam elements (e.g., welded end plates, stiffened fixed roots, or continuous rigid connections). By default, Vlasov beam ends have free warping unless *restrained is specified.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
target_elems | Target expr | Required | Element ID(s), range, or element group name. |
end_key | Keyword | Required | i (start end n1), j (end n2), or ij / ji / both (both ends). |
Nuances & Engineering Notes
- Only affects elements whose section uses *bmtype, Vlas with Cw > 0; silently ignored on standard 6-DOF Euler or Truss elements.
- Collinear Vlasov segments meeting at a node automatically share their warping DOF (continuous warping); non-collinear corners (e.g., 90° L-frames) and rx-hinged ends receive independent warping DOFs.
- Significantly increases torsional stiffness, lateral-torsional buckling (LTB) capacity, and torsional natural frequencies—and produces nonzero root bimoments and warping normal stresses in *output.
- Preserved and mapped correctly through *divide, *reorient, and *copy.
Examples of Use
*bmtype, 7, Vlas
*sectype, I300V, steel, Ibeam, (0.30, 0.010, 0.15, 0.015)
*restrained
1, i
21, ij' Multi-line block form:
*blname
1, Dead_Load
2, Live_Office
3, Wind_WX
' Inline form:
*blname, 1, Dead_Load
Purpose
Associates human-readable names with integer Base Load case numbers (bl_num). These labels appear automatically in *solu console output (modal, buckling, nlgeom, *steadystatedyn), *output HTML/TXT tables, and *export decks (STAAD.Pro, CalculiX, Frame3DD).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
bl_num | Integer | Required (>0) | Base load case number matching the first field of *load. |
name | String | Required | Descriptive label (spaces and commas allowed). |
Nuances & Engineering Notes
- Optional; unnamed base loads default to 'Base Load N' / 'BLN'.
- Can be placed before or after the corresponding *load card.
Examples of Use
*blname
1, Gravity_DL
2, Harmonic_Constant_10kN
3, Roof_Chiller_Periodic' Multi-line block form:
*combname
1, ASCE7_1.4D
2, ASCE7_1.2D+1.6L+0.5S
' Inline form:
*combname, 1, ULS_12D_16W
Purpose
Associates human-readable names (such as ASCE 7-22 LRFD/ASD design titles) with integer *comb combination numbers for clear identification in console output, HTML/TXT reports, and exported FEA decks.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
comb_num | Integer | Required (>0) | Load combination number matching the first field of *comb. |
name | String | Required | Descriptive label. |
Nuances & Engineering Notes
- Optional; unnamed combinations default to 'Combination N' / 'CN'.
- Displayed alongside the numeric ID in *solu, modal/buckling/nlgeom, *steadystatedyn, and *output reports.
Examples of Use
*combname
1, ASCE7_1.4D
2, ASCE7_1.2D+1.6L+0.5S
4, ASCE7_1.2D+1.0WX+0.5L+0.5S*load
bl_num, grav, gx, gy, gz ' Global self-weight acceleration
bl_num, <nodes>, fx|fy|fz|mx|my|mz|bm, <val | f(time)> ' Nodal forces, moments, Vlasov bimoment
bl_num, <nodes>, ux|uy|uz|uxx|uyy|uzz, <val | f(time)> ' Prescribed displacements/rotations
bl_num, <elems>, px|py|pz|pxp|pyp|pzp|pxl|pyl|pzl, <q | f(t)> ' Uniform member load (global / projected / local)
bl_num, <elems>, qtrx..qtrz|qtrxp..qtrzp|qtrxl..qtrzl, q1, q2 [, x1, x2] ' Trapezoidal (global / projected / local)
bl_num, <elems>, pcx..pczl, <P | f(time)> [, x_rel=0.5] ' Interior point load
bl_num, <elems>, mcx..mczl, <M | f(time)> [, x_rel=0.5] ' Interior concentrated span moment
bl_num, <elems>, bmc, <B | f(time)> [, x_rel=0.5] ' Interior Vlasov bimoment
bl_num, <elems>, temp, <dT> [, dTy, dTz] ' Thermal axial/gradient load
Purpose
Defines all external loading actions grouped into numbered Base Load cases (bl_num = 1, 2, ...). Every load magnitude accepts constant numbers, Basic expressions, or time/frequency-dependent Basic functions f(time) for static, nlgeom and *steadystatedyn.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
bl_num | Integer | Sticky prev | Base load case ID. Leaving field 1 blank (leading comma) inherits the previous line's bl_num! |
target | Target expr | Sticky prev | Node or element ID(s), range, or group name (omitted for direct 'bl, grav, gx, gy, gz'). |
subtype | Keyword | Required | Global keys: fx..mz, ux..uzz, px..pz, qtrx..qtrz, pcx..pcz, mcx..mcz, bm, bmc, temp, grav. Suffix p (pxp, pyp, pzp, qtrxp, qtryp, qtrzp) applies global force per unit projected length (e.g., snow/wind on pitched rafters). Suffix l (pxl..pzl, qtrxl.., pcxl.., mcxl..) acts in element LOCAL axes. |
values | Double / Func | Required | Load intensity/magnitude, optional relative span positions x_rel ∈ [0, 1] (default 0.5 for point loads, [0, 1] for trapezoidal). |
Nuances & Engineering Notes
- Sticky base load number: writing
, roof_beams, pz, -1500continues adding to the previousbl_numautomatically. - Active CSYS support: Nodal forces/moments (
fx..mz) and prescribed displacements (ux..uzz) respect the active*csys(including*csys, elemand cylindrical/spherical modes) at each target node. - Projected loads (
pxp..pzp,qtrxp..qtrzp): Automatically scale intensity by the projection sine factor perpendicular to the load axis (e.g., horizontal projection for vertical snow loadpzpon sloped roofs) and export natively to STAAD (PX/PY/PZ) and CalculiX. - Trapezoidal loads (qtrx..qtrzl) use exact 4-point Gauss-Legendre integration against cubic Hermite shape functions—exact up to polynomial degree 7.
- Time-dependent Basic functions f(time): pass either a bare Basic function name (e.g., UnbalanceForce where Function UnbalanceForce(time As Double) is declared) or an inline expression referencing 'time' (e.g., 1000*Sin(2*PI*time)). In *steadystatedyn harmonic mode, time = frequency f (Hz); in nonharmonic mode, time = physical time t (s); in static, nlgeom, time = load factor λ ∈ [0, 1]; in linear static, previewed at time = 1.0.
- Vertical loads (including grav and member loads) in a Base Load or Combination are automatically converted into consistent lumped nodal weights W and masses m = |W| / g when referenced by *solu, modal.
- On truss elements (including
*tensiononly,*compressiononly, and*nonlinspring), gravity, uniform, trapezoidal, and point member loads are transferred statically as equivalent nodal forces to the element endpoints (with zero fixed-end bending moments).
Examples of Use
Function PulseLoad(time As Double) As Double
PulseLoad = 5000.0 + 8000.0 * Sin(2.0 * 3.141592653589793 * 2.0 * time)
End Function
*load
1, grav, 0, 0, -9.80665
, roof_beams, pz, -12000.0
1, 2, qtrz, -5000, -15000, 0.2, 0.8
2, 1, pcz, -25000, 0.5
2, 1, mcy, 8000, 0.25
3, eall, temp, 35.0
4, 10, fx, PulseLoad*combinations
' Multi-line block form (rows auto-numbered 1, 2, ... or starting at id=N):
*comb [, id=N]
1.2, 1.6, 0.0 ' Comb 1 = 1.2*BL1 + 1.6*BL2
1.0, 1.0, 1.0 ' Comb 2 = 1.0*BL1 + 1.0*BL2 + 1.0*BL3
' Inline single combination:
*comb [, id=N], mult1, mult2, ...
Purpose
Defines numbered Load Combinations as weighted linear superpositions of Base Loads (multiplier slot k multiplies Base Load #k). In linear static analysis, combinations are superposed directly from solved Base Loads; in static, nlgeom, modal, buckling, and *steadystatedyn, the combined factored loads are assembled directly into the nonlinear/eigen/dynamic solver.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
id=N (start=N) | Header opt | Next unused (1+) | Optional header argument setting the starting Combination ID for subsequent rows (e.g., *comb, id=4). Each row is numbered sequentially (N, N+1, ...). |
mult1, mult2, ... | Double | 0.0 | Factor for Base Load 1, Base Load 2, ..., Base Load k. Blank entries default to 0.0. |
Nuances & Engineering Notes
- Slot mapping matches exact baseLoadNum first (slot 1 → BL 1, slot 2 → BL 2, ...). If you use non-sequential Base Load IDs (e.g., only BL 8) and provide a single multiplier (e.g.,
*comb, id=3followed by1.0), FEACode falls back to sequential slot order; when combining sparse IDs like BL 3 and BL 7 explicitly, pad intermediate slots with 0 (e.g.,0, 0, 1.2, 0, 0, 0, 1.6). - In static, nlgeom, combinations are NOT linearly superposed from linear static results—instead, the factored loads are solved jointly through full geometric nonlinearity!
Examples of Use
*combname
1, 1.4D
2, 1.2D+1.6L
3, 1.2D+1.0W+0.5L+1.2T
*comb
1.4, 0.0, 0.0, 0.0 ' Comb 1 (1.4D)
1.2, 1.6, 0.0, 0.0 ' Comb 2 (1.2D+1.6L)
1.2, 0.5, 1.0, 1.2 ' Comb 3 (1.2D+1.0W+0.5L+1.2T)
' Start numbering explicitly at Combination #10:
*comb, id=10
1.0, 0.75, 0.75, 0.0*nlctrl
' Multi-line or inline (accepts key=val OR key, val):
*nlcontrol
method, newton | arclength ' Default: newton
ndiv, auto | 1..20 ' Default: auto (4/2/1 by model size)
initstep, 0.1 ' [1e-4 .. 1.0]
minstep, 1e-5 ' [1e-8 .. 1.0]
maxstep, auto | (0..1] ' Default: auto
maxiter, 25 ' [5 .. 100]
maxsteps, 2000 ' [1 .. 50000]
maxcutbacks, 20 ' [1 .. 200]
tol, 1e-6 ' [1e-11 .. 1e-2]
maxrot, 0.45 ' SO(3) rad cap [0.02 .. 1.5]
psi, 0.5 ' Crisfield arc-length psi [0 .. 10]
arciter, 4 ' Target iters/step I_d [1 .. 20]
minlambda, -5.0 ' Unloading bound [-1e6 .. -1e-3]
linesearch, on | off ' Default: on
bowing, on | off ' Crisfield P-delta bowing (default: on)
' Utility commands:
*nlcontrol, reset | default | show
Purpose
Overrides factory defaults for the 3D co-rotational *solution, static, nlgeom solver (Battini-Pacoste SO(3) formulation with optional Crisfield cubic-Hermite P-delta bowing, Newton-Raphson backtracking line search, and Crisfield spherical arc-length continuation for snap-through/buckling).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
method (solver) | Keyword | newton | newton (adaptive Newton-Raphson) or arclength (Crisfield spherical Riks continuation). |
ndiv (subdiv) | Int / auto | auto | Internal sub-elements per beam: auto uses 4 (<=250 elems), 2 (<=1000), or 1 (>1000); trusses always use 1. |
initstep / minstep / maxstep | Double | 0.1 / 1e-5 / auto | Adaptive load-factor or arc-length increment bounds. |
maxiter / maxsteps / maxcutbacks | Int | 25 / 2000 / 20 | Iteration cap per step, total step cap, and consecutive cutback abort cap. |
tol / maxrot | Double | 1e-6 / 0.45 | Scaled relative force residual tolerance and max SO(3) rotation increment (rad) per iteration. |
psi / arciter / minlambda | Double/Int | 0.5 / 4 / -5.0 | Arc-length load-scaling factor (0 = cylindrical Crisfield), desired iters/step I_d, and unloading lower bound. |
linesearch / bowing | Bool | on / on | Toggle Newton backtracking line search and internal cubic-Hermite P-delta bowing. |
Nuances & Engineering Notes
- MUST be placed BEFORE the *solution, static, nlgeom card it is intended to control; placing *nlcontrol after the last nlgeom solve emits a warning at *end.
- Explicit inline arguments on *solution, static, nlgeom (e.g., method, nDiv, step, maxIter, tol) override *nlcontrol for that single run only without mutating *nlcontrol defaults.
- Use *nlcontrol, reset to restore all 15 factory defaults between multiple nonlinear runs in the same model, or *nlcontrol, show to print active settings.
Examples of Use
*nlcontrol
method, arclength
ndiv, 6
initstep, 0.05
psi, 0.25
tol, 1e-7
bowing, on
*solu
static, nlgeom, comb 1*stringeff, *streff, *prestress
*stringeffect, <bl/comb key> [, nl | nlgeom]
*stringeffect, off | reset
Purpose
Enables stress-stiffened (prestressed) modal analysis by adding the geometric stiffness matrix Kg (computed from static axial forces—and for Vlasov beams, bending moments and Wagner terms) to the elastic stiffness matrix: (Ke + Kg) φ = ω² M φ. Captures tension stiffening in taut cables/strings (f_n = (n/2L)√(T/μ)), compressive frequency softening in columns (f = f₀√(1 − P/P_cr)), and membrane tension stiffening from nlgeom.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
bl/comb key | Load key | Required | Explicit Base Load or Combination key (e.g., bl 1, BL2, comb 1, load combination 4) whose static forces supply the prestress. |
nl / nlgeom | Keyword | linear | Optional: pulls element forces AND converged NLGEOM tangent states from a preceding *solution, static, nlgeom solve—automatically applying Etan(ε) for *nonlinspring links and zero stiffness for slack *tensiononly/*compressiononly members alongside Kg. |
off (none/reset) | Keyword | Disabled | Turns off geometric stiffness prestress for subsequent *solution, modal runs. |
Nuances & Engineering Notes
- PERSISTENT STATE: Once enabled, *stringeffect stays active for every subsequent *solution, modal call until explicitly turned off with *stringeffect, off (or a new *model).
- The referenced static case (linear or nlgeom) MUST be solved before calling *solution, modal; otherwise FEACode reports an error.
- If compressive prestress exceeds critical buckling capacity, negative eigenvalues (buckled modes) are detected and warned, reporting any remaining positive-frequency modes.
Examples of Use
*solu
static
*stringeffect, bl 1
*solu
modal, bl 2, 4
' Switch to nlgeom prestress forces, then turn off:
*solu
static, nlgeom, bl 1
*stringeffect, bl 1, nl
*solu
modal, bl 2, 4
*stringeffect, off*moddamp, *modaldamp
' Direct modal viscous damping (CalculiX *MODAL DAMPING default):
*modaldamping
mode_low, mode_high, zeta
[mode_low2, mode_high2, zeta2]
' Rayleigh modal damping (CalculiX 4-field ',, alpha, beta' OR 2-field 'alpha, beta'):
*modaldamping, rayleigh
, , alpha, beta
' Revert to composite material eta damping (*mat):
*modaldamping, off
Purpose
Redefines modal viscous critical damping ratios ζ_j used in modal reporting, subsequent *steadystatedyn frequency-domain solves, and *dynamic transient Rayleigh damping, matching CalculiX *MODAL DAMPING semantics. Overrides the default strain-energy-weighted composite material η from *mat.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
mode_low, mode_high, zeta | Int, Int, Double | Direct | Assigns viscous damping ratio ζ (e.g., 0.02 = 2%) to modes [mode_low .. mode_high]. Leaving mode_high blank applies to single mode mode_low; 'all' or '*' covers all modes. |
rayleigh + alpha, beta | Double, Double | 0, 0 | Computes ζ_j = 0.5 * (α / ω_j + β * ω_j). Accepts CalculiX 4-field (,, alpha, beta), concise 2-field (alpha, beta), or named (alpha=..., beta=...). |
off (reset/material) | Keyword | Material eta | Clears override and reverts to composite material η from *mat. |
Nuances & Engineering Notes
- Overlapping direct ranges follow CalculiX precedence: LATER rules override earlier rules (e.g., 1, 4, 0.035 followed by 3, 3, 0.050 sets mode 3 to 5% and modes 1,2,4 to 3.5%).
- Modes not covered by any direct rule default to ζ = 0.0 (not material η) while Direct mode is active.
- Can be placed BEFORE *solution, modal OR AFTER *solution, modal right before *steadystatedyn (CalculiX step workflow); post-modal updates also preview ζ_1 .. ζ_N on the latest modal basis.
- Negative or invalid ζ, α, β values are safely clamped to 0.0 with a warning.
Examples of Use
*modaldamping
1, 2, 0.03
3, 6, 0.05
*steadystatedyn, bl 2, harmonic
0.5, 35.0, 40, 3.0
*modaldamping, rayleigh
, , 0.6, 0.0012
*steadystatedyn, bl 3, harmonic
0.5, 35.0, 40, 3.0
*modaldamping, off*timepoint, *tp, *time points
' Explicit list of time instants (multi-line or inline, auto-sorted & deduplicated):
*timepoints [, name=TP1] [, time=step|total]
t1, t2, t3, ...
' Uniformly generated sequence (CalculiX *TIME POINTS, GENERATE):
*timepoints [, name=TP1], generate [, time=step|total]
t_min, t_max, dt
' Disable active time points:
*timepoints, off | reset | clear
Purpose
Defines exact target time instants (physical time t in *dynamic, or load factor λ ∈ [0, 1] in static, nlgeom) at which the solver forces an exact step hit and records full-model snapshots (nodal displacements, support reactions, element forces/stresses, and energies) for multi-frame *output, cgx2d/cgx3d and ParaView vtk2d/vtk3d animations plus HTML/TXT Time Points tables. Mirrors CalculiX *TIME POINTS semantics.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
name=<id> | String | TP1 | Identifier for the time-point set (shown in HTML/TXT reports and preserved in *export, ccx as *TIME POINTS, NAME=<id>). |
generate (gen) | Flag | Explicit list | Generates uniform instants t_min, t_min + dt, ..., t_max (multiple ranges may be stacked on successive lines). |
time=step | total | Keyword | time=step | CalculiX TIME=STEP vs. TIME=TOTAL marker preserved on export. |
off | reset | clear | Keyword | Active | Disables time-point snapshot capture for subsequent solves (reverting *dynamic/nlgeom to single envelope/final-state output). |
Nuances & Engineering Notes
- Place BEFORE the solve:
*timepointsautomatically triggers on every subsequent*dynamic(implicit or explicit, linear or nlgeom) and*solution, static, nlgeom(Newton or Arc-Length) solve until turnedoffor a new*modelstarts. - Exact step hitting: Both implicit HHT-alpha, explicit CDM, Newton-Raphson, and Crisfield Arc-Length adjust step sizes or perform exact fixed-λ Newton polish so snapshots land on the exact requested instants without interpolation error.
- Multi-frame CGX, ParaView VTK & HTML output: When active,
*output, cgx2d/cgx3dwrites one CalculiX.frdframe per instant,*output, vtk2d/vtk3dwrites a ParaView.pvdtime-series collection with per-step.vtufiles, and*output, htmladds a dedicated Time Points tab. - Round-trip export/import:
*export, ccxemits*TIME POINTS, NAME=...andTIME POINTS=...on output cards;*export, feacodeand*import, ccxpreserve the sequence cleanly.
Examples of Use
' CalculiX spaced keyword form also supported:
*time points, name=TP_SHOCK, generate
0.0, 0.14, 0.035
*dynamic, bl 2, AddMassFrom=bl 1, explicit, nodamp
0.0005, 0.14
*output, cgx2d, shock_anim.frd
*output, html, shock_report.html
' Disable before subsequent single-envelope runs:
*timepoints, off*dyn
*dynamic, <bl/comb key> [, AddMassFrom=<bl/comb key>] [, implicit|explicit] [, direct]
[, alpha=-0.05] [, nlgeom] [, damp=<zeta|pct%> | nodamp]
[, hist=<file.txt>] [, track=<nodeId>] [, maxsteps=<N>]
dt_init, t_total [, dt_min, dt_max]
Purpose
Executes direct time-domain transient structural dynamics (CalculiX *DYNAMIC aligned) supporting both unconditionally stable Implicit Hilber-Hughes-Taylor (HHT-α) integration and Explicit Central Difference (CDM) integration with automatic CFL critical time-step estimation—for both linear and full 3D co-rotational nonlinear (nlgeom, one-sided Winkler lift-off, *tensiononly, *compressiononly, *nonlinspring, and nonlinear *springsup) structures.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
bl/comb key | Load key | Required | Time-varying excitation Base Load or Combination key (e.g., bl 2, comb 1). Basic/Python f(time) loads receive physical time t ≥ 0 (s). |
implicit | explicit | Integrator | implicit | implicit = HHT-α (unconditionally stable); explicit = Central Difference Method with automatic stable CFL time step dt <= 0.8 * dt_crit. |
direct (fixed) | Flag | Adaptive | Locks fixed time increment dt = dt_init (CalculiX DIRECT), except when clamped to hit exact *timepoints. |
alpha=<val> | Double | -0.05 | HHT-α numerical damping parameter clamped to CalculiX range [-1/3, 0] (0 = undamped Newmark trapezoidal; -0.30 = strong high-frequency dissipation). |
nlgeom (nl) | Flag | Linear | Enables 3D co-rotational SO(3) large rotations, one-sided Winkler soil separation/impact rebound, and nonlinear f(time, u) springs. |
damp=<val> | nodamp | Damping | Rayleigh / eta | Sets target viscous critical damping ratio (accepts fraction 0.05 or percent 5%) or zero damping (nodamp). Otherwise honors *modaldamping, rayleigh or material eta. |
AddMassFrom=<bl/comb>(aliases: massfrom=, mass=) | Load key | Density / Modal | Adds lumped nodal masses m = |W|/g (and rotational inertias |M|/g) from a gravity/weight load case. If omitted, uses element *mat density mass or inherits mass from a preceding *solution, modal. |
hist=<file>, track=<nid> | Diagnostics | Disabled | Writes a full step-by-step ASCII time-history table (t, Ux, Uy, Uz, Rx, Ry, Rz, E_kin, E_strain) for tracked node nid. |
dt_init, t_total [, dt_min, dt_max] | Data line | Required | Initial/fixed time increment (s), total simulation duration (s), and optional adaptive step bounds. |
Nuances & Engineering Notes
- Peak envelopes & snapshots: Always populates dynamic peak response envelopes (displacements, reactions, tie forces, element forces/stresses) for
*output, dyn_html / dyn_txt / dyn_cgx2d / dyn_cgx3d / dyn_vtk2d / dyn_vtk3d; if*timepointsis active, also records exact multi-frame snapshots. - Coexistence with static: When linear static and
*dynamicare both solved in the same model,*output, html, out.htmlautomatically creates companionout_dynamic.html(and similarly fortxt,cgx2d,cgx3d,vtk2d,vtk3d). - Large-step explicit protection: Default step caps are
20,000(implicit) and200,000(explicit); raise withmaxsteps=500000for fine-mesh explicit runs.
Examples of Use
*python3, on
import math
def impact_pulse(time):
return -200000.0 * math.sin(math.pi * time / 0.04) if time <= 0.04 else 0.0
*python3, off
*winklerbase, eall, 5.0e6
*load
1, 3, fz, impact_pulse
*timepoints, name=TP_IMP, generate
0.0, 0.08, 0.01
*dynamic, bl 1, implicit, nlgeom, alpha=-0.05, damp=5%, hist=footing_hist.txt, track=3
0.001, 0.08, 1e-5, 0.002
*output, dyn_txt, footing_dyn.txt
*output, dyn_cgx2d, footing_dyn.frd, 4*ssd, *steadystate
' Harmonic frequency sweep (CalculiX HARMONIC=YES, default):
*steadystatedyn, <bl/comb key> [, harmonic]
f_min, f_max [, n_points=20, bias=3.0]
' Periodic non-harmonic Fourier expansion (CalculiX HARMONIC=NO):
*steadystatedyn, <bl/comb key>, nonharmonic
f_min, f_max, n_points, bias, n_fourier, t_start, t_end
Purpose
Computes steady-state dynamic response envelopes (nodal displacements, support/spring reactions, tie forces, element end forces, bimoments, and phase-exact combined fiber stresses) by modal superposition over ALL extracted eigenmodes from the preceding *solution, modal run, using the active *modaldamping (or material η) configuration.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
bl/comb key | Load key | Required | Excitation Base Load or Combination key (e.g., bl 2, BL4, comb 1). |
harmonic | nonharmonic | Mode | harmonic | harmonic (HARMONIC=YES): frequency sweep with amplitude F(f). nonharmonic (HARMONIC=NO / fourier / periodic): DFT Fourier expansion of periodic f(t) over [t_start, t_end]. |
f_min, f_max | Double (Hz) | Required | Lower and upper frequency bounds in Hz. Set f_min = f_max for a single-frequency evaluation. |
n_points, bias | Int, Double | 20, 3.0 | Sample points per eigenfrequency sub-interval and CalculiX endpoint clustering exponent (bias >= 1.0; 1.0 = uniform, 3.0 = dense near resonances). |
n_fourier, t_start, t_end | Int, Double, Double | 20, 0.0, 1.0 | Fourier harmonics (0..n_fourier) and period window [t_start, t_end] in seconds (supplying these auto-enables nonharmonic mode). |
Nuances & Engineering Notes
- ALWAYS uses the FULL extracted modal basis (modalSol.allModes)—even if *solution, modal applied a mass-participation display filter (e.g., 1%)—so local resonances are never dropped!
- Basic f(time) convention: in harmonic mode, the Basic variable 'time' represents excitation frequency f in Hz (ideal for rotating unbalance F(f) = m₀·e·(2πf)²); in nonharmonic mode, 'time' represents physical time t in seconds across [t_start, t_end].
- Computes phase-exact combined corner fiber stresses (Re/Im superposition across all 4 section corners + Vlasov warping) rather than overly conservative SRSS/ABS upper bounds.
- Exact undamped resonance singularities (ω = ω_j with ζ_j = 0) are safely caught with a regularized floor and console warning.
- Multiple frequency range data lines may be stacked under a single *steadystatedyn header.
Examples of Use
Function UnbalanceForce(time As Double) As Double
Dim w As Double = 2.0 * 3.141592653589793 * time
UnbalanceForce = 2.0 * w * w ' time = frequency f (Hz) in harmonic mode
End Function
Function PeriodicPulse(time As Double) As Double
Dim pi2 As Double = 2.0 * 3.141592653589793
PeriodicPulse = 4000.0 + 8000.0 * Sin(pi2 * 2.0 * time) ' time = t (s) in nonharmonic mode
End Function
*solu
modal, bl 1, 6
*modaldamping
1, 6, 0.03
*steadystatedyn, bl 3, harmonic
0.5, 35.0, 40, 3.0
*steadystatedyn, bl 4, nonharmonic
0.0, 20.0, 20, 3.0, 20, 0.0, 0.5*solution
' Multi-line or inline (*solu, static):
*solu
static
static, nlgeom, <bl/comb key> [, newton|arclength, nDiv, initStep, maxIter, tol]
modal, <bl/comb key>, <num_forms> [, min_mass_pct]
buckling, <bl/comb key>, <num_forms> [, min_energy_pct]
Purpose
Central analysis execution card dispatching FEACode's four core solvers: (1) Linear Static across all Base Loads and Combinations, (2) 3D Co-Rotational Geometrically Nonlinear Static (Newton-Raphson or Crisfield Arc-Length), (3) Generalized Eigenvalue Modal Analysis with Guyan condensation and mass participation tables, and (4) Linear Euler / Vlasov LTB-FTB Buckling Analysis with strain-energy localization diagnostics.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
static (stat) | Linear static | All BL & Comb | Dense pivoted Gauss-Jordan for <=600 DOFs; auto-switches to RCM/MMD Skyline LDL^T sparse solver for >600 DOFs. |
static, nlgeom, <key> | Nonlinear | 1 BL or Comb | 3D co-rotational SO(3) large-displacement/rotation solver with internal beam subdivision (nDiv), one-sided Winkler contact, and Basic f(time[,u]) evolution across λ ∈ [0,1]. Inherits *nlcontrol defaults. |
modal (mod), <key>, N [, pct] | Eigenmodal | N modes | Extracts vertical weights from <key> (m = |W|/g). Dense Guyan+Jacobi (<=480 DOFs) or RCM Skyline Subspace Iteration (>480 DOFs). Optional min_mass_pct (e.g. 1 or 1%) filters displayed local modes while preserving true mode numbers and full allModes basis. |
buckling (buck, euler), <key>, N [, pct] | Eigenbuckling | N forms | Auto-runs linear static pre-solve if needed. Includes full 14-DOF Vlasov LTB/FTB geometric stiffness. Optional min_energy_pct (e.g. 1%) filters local single-bar buckling forms while preserving original form numbers. |
Nuances & Engineering Notes
- Modal, buckling, and static, nlgeom all REQUIRE an explicit loading key such as 'bl 3', 'BL3', 'base load 7', 'comb 1', 'Comb-5', 'Comb_5', or 'load combination 4' (bare integers are rejected to prevent BL vs Comb ambiguity).
- A bare *solu card with no subcommand runs linear static automatically when finalized.
- Calling *output BEFORE *solu queues the output filename and flushes automatically as soon as *solu finishes; calling *output AFTER *solu writes immediately.
Examples of Use
*solution
static
static, nlgeom, comb 2, arclength, 4, 0.1
modal, bl 1, 20, 1%
buckling, comb 1, 10, 1%*export, dxf | igs | frame3dd | feacode | staad | ccx | stp3d | igs3d | ifc3d [, filename] [, key]
Purpose
Translates the active FEACode model into 9 interoperable CAD, BIM, and FEA formats for independent cross-verification (CalculiX, STAAD.Pro, Frame3DD), CAD drafting (DXF, IGES), 3D solid modeling/BIM (STEP AP214, IGES 5.3, IFC4), or abstraction-free flat FEACode scripts.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
dxf / igs (iges) | 2D/3D Wireframe | .dxf / .igs | Exports element centerlines as DXF AC1015 LINE entities (layered by secId) or IGES Entity 110 lines. |
feacode (fea) | Flat script | .txt | Exports an abstraction-free, loop-free flat FEACode deck. key=1 converts all sections to numeric Euler. |
frame3dd | FEA deck | .3dd | Exports nodes, elements (including rigid tie bars), supports, and static load cases to Frame3DD. |
staad (staadpro, std) | FEA deck | .std | Exports complete STAAD.Pro model (STAAD SPACE + SET Z UP with exact local Y/Z mapping in 3D, or native STAAD PLANE in *2dxy mode; includes MEMBER OFFSET, equation *tie links, projected loads, tapered sections, supports, springs, hinges, loads, combinations). key=1 forces all-Euler numeric props. |
ccx (calculix, inp) | FEA deck | .inp | Exports CalculiX B32R beams (adaptive target length h = L_avg / N + exact concentrated load node anchoring; key=0 strictly undivided), T3D2 trusses, *offset, *2dxy locks, *CLOAD, *DLOAD GRAV, hinges, skewed ties/supports, Winkler springs, and *TIME POINTS. Default key=10. |
stp3d / igs3d / ifc3d | 3D Solid CAD/BIM | .stp / .igs / .ifc | Extrudes exact 3D B-Rep / IFC4 solids for all 9 *sectype shapes, thinwalled profiles, custom holed .dxf/.unv sections, and tapered *nonprismatic beams, honoring roll angles and per-element *offset. |
Nuances & Engineering Notes
- When filename is omitted, FEACode uses <modelName> plus the format's default extension; if you omit the extension, it is appended automatically.
- The optional integer key can be written as a bare integer (e.g., *export, ccx, out.inp, 4) or key=N (e.g., key=1), and works either before or after filename.
- Vlasov 7-DOF warping features cannot be represented in 6-DOF STAAD/CalculiX beam formats; FEACode prints a clear [Notice] when omitting warping terms during those exports.
Examples of Use
*export, ccx, frame_ccx.inp, 4
*export, staad, frame_staad.std
*export, frame3dd, frame.3dd
*export, feacode, frame_flat.txt
*export, stp3d, frame_3d.stp
*export, ifc3d, frame_bim.ifc*output, html | txt [, filename]
*output, cgx2d | cgx3d [, filename] [, N | key=N]
*output, vtk2d | vtk3d [, filename] [, N | key=N] [, bin | binary | ascii]
*output, nlgeom_html | nlgeom_txt | nlgeom_cgx2d | nlgeom_cgx3d | nlgeom_vtk2d | nlgeom_vtk3d [, file] [, N] [, bin]
*output, dyn_html | dyn_txt | dyn_cgx2d | dyn_cgx3d | dyn_vtk2d | dyn_vtk3d [, file] [, N] [, bin]
Purpose
Exports engineering calculation reports, CalculiX GraphiX (cgx) ASCII .frd (with companion .fbd groups), and ParaView / VTK XML unstructured grid (.vtu / .pvd) 2D/3D post-processing files containing nodal displacements, support & spring reactions, tie forces, element force/stress envelopes (including Vlasov warping stress |Stress+W|), modal shapes, Euler buckling forms, dynamic peak envelopes, and multi-frame *timepoints animations.
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
html | Report | <model>_results.html | Standalone zero-dependency multi-tab HTML5 report (includes interactive Time Points tab when *timepoints was active). |
txt | Report | <model>_results.txt | Fixed-width column-aligned ASCII plain-text report for scripts, diffing, and archival. |
cgx2d (cgx, frd) | 1D .frd | default N=10 | CalculiX CGX OUTPUT=2D 1D subdivided beam-line .frd file containing DISP, ROTA, SFORCE (N, Qy, Qz, T, My, Mz), STRESS (section forces), BSTRESS (axial, bending, combined, warping), FORC, and RMOM. |
cgx3d (frd3d) | 3D Solid .frd | default N=10 | CalculiX CGX extruded 3D solid body .frd mesh (HE8 bricks / PE6 wedges / QU4 shells for all 9 *sectype shapes and custom .dxf/.unv profiles), exporting DISP and full 6-component Cauchy STRESS tensor. |
vtk2d (vtk, vtu, pvd) | 1D .vtu/.pvd | default N=10, ascii | ParaView VTK XML 1D subdivided beam-line output exporting displacements, rotations, section forces (N, Qy, Qz, T, My, Mz), stresses, and reactions (writes .pvd collection for multi-case or *timepoints). |
vtk3d (vtu3d, pvd3d) | 3D Solid .vtu/.pvd | default N=10, ascii | ParaView VTK XML extruded 3D solid body mesh (hexahedra/wedges/quads for all 9 *sectype shapes and custom .dxf/.unv profiles) with exact 3D corner displacements and full Cauchy stress tensor. |
nlgeom_* / dyn_* | Targeted | Optional prefix | Explicitly exports only the NLGEOM (nlgeom_html/txt/cgx2d/cgx3d/vtk2d/vtk3d) or Dynamic (dyn_html/txt/cgx2d/cgx3d/vtk2d/vtk3d) solution set. |
N | key=N | div=N | Integer | 10 (cgx/vtk) | Adaptive axial mesh density (target segment length h = L_avg / N, plus exact concentrated-load anchoring with split ξ−/ξ+ jump capture; 0 = strictly undivided). Example: *output, vtk3d, out.vtu, 8, bin. |
bin | binary | ascii | Encoding | ascii (vtk) | Switches ParaView VTK .vtu array storage between compact base64 bin/binary (bin=1) and human-readable ascii (bin=0). |
Nuances & Engineering Notes
- Coexistence rule: When linear static coexists with
*dynamic/*steadystatedynand/orstatic, nlgeom, calling*output, html|txt|cgx2d|cgx3d|vtk2d|vtk3d, out.extwrites linear+modal+buckling toout.extAND automatically creates companionout_dynamic.extand/orout_nlgeom.extfiles without overwriting! - Multi-frame
*timepointsanimations: When*timepointswas active during*dynamicornlgeom,cgx2d/cgx3dwrite one100CLframe per captured instant (forcgx -v out.frd), andvtk2d/vtk3demit a.pvdtime-series collection for direct playback in ParaView. - 3D Vlasov & Shear-Stress Fidelity (
cgx3d/vtk3d): Reconstructs exact cubic Hermite twist & axial flange warping (−ωψ) for 7-DOF Vlasov beams, exact 2D elasticity Cauchy shear stress tensors across all*sectype,thinwalled, and.dxf/.unvprofiles, and Boley/Resal shear corrections on*nonprismatichaunches. - 2D Planar Mode (
*2dxy): Automatically filters out-of-plane 3D columns in both*output, htmland*output, txt(displacements, reactions, ties, element envelopes, modal/buckling, and time points). - Deferred queueing: If
*outputappears BEFORE*soluor*dynamic, FEACode queues the request and flushes automatically once solving finishes.
Examples of Use
*solu
static
modal, bl 1, 10, 1%
buckling, comb 1, 5, 1%
*output, html, bridge_report.html
*output, txt, bridge_report.txt
*output, cgx2d, bridge_2d.frd, 6
*output, cgx3d, bridge_3d.frd, 6
*output, vtk2d, bridge_2d.vtu, 6, bin
*output, vtk3d, bridge_3d.vtu, 6, bin*plothtml
*plot, 1 [, filename.html] ' Pure zero-dependency HTML5 Canvas 3D orthographic viewer
*plot, 2 [, filename.html] ' Interactive Three.js WebGL 3D extruded shapes viewer
Purpose
Exports a self-contained multi-tab interactive HTML5 geometry & model inspection page (adds an interactive Tab 3: Custom Cross-Sections warping & property inspector whenever custom or thinwalled sections exist). Tab 1 renders the interactive 3D structural model (extruded cross-sections with H1/H2/roll angle/offsets, local blue/green axes, support triangles colored by rotational restraint, *hinges markers, *winklerbase springs, *tie DOF links, and loads); Tab 2 displays clean, searchable input data tables (nodes, elements, sections, materials, BCs, loads).
Parameters & Options
| Parameter | Type | Default / Mode | Description |
|---|---|---|---|
key | Integer | 1 | 1 = pure offline HTML5 2D Canvas 3D projection (zero external scripts); 2 = Three.js WebGL 3D extruded shapes (including custom UNV/DXF cross-sections) with OrbitControls. |
filename | String | <model>_plot<key>.html | Optional output HTML filename. |
Nuances & Engineering Notes
- Can be called at ANY point in the deck—even before *solu—to visually inspect imported CAD geometry, *rotsec roll angles, section offsets, supports, hinges, and *tie connections.
- Key 1 operates 100% offline in any browser with zero CDN dependencies and fits cleanly inside narrow web/blog containers.
- Key 2 extrudes true parametric shapes (
*sectype),thinwalledprofiles, custom holed.dxf/.unvcontours, lofted tapered*nonprismaticsolids, and skewed asymmetric*offsetprisms along each member. - In
*2dxymode, Tab 1 opens directly in top-down XY planar view and Tab 2 hides zero Z coordinates and out-of-plane DOFs.
Examples of Use
*plot, 1, model_canvas.html
*plot, 2, model_3d_webgl.html