How smdogroup/tacs works
TACS is a parallel finite-element analysis and gradient-based structural-design toolkit. A typical Python workflow defines or loads a mesh and element properties, initializes the FE assembler, creates analysis problems, solves them, and evaluates functions and sensitivities. The repository also provides CAPS and MPhys integration, structural constraints, multiple analysis types, and FH5 output/conversion. Edges are limited to relationships shown by README statements or SOURCE INDEX references; several runtime connections are therefore omitted rather than inferred from the directory layout.
Main entry points: TACSAssembler.cpp FE assembler · pytacs.py Python setup · base.py Problem base · static.py Static analysis
Components 24
Model and mesh setup
- Python setup
tacs/pytacs.py - Mesh loading
tacs/pymeshloader.py
FE physics
- FE assembler
src/TACSAssembler.cpp - FE elements
src/elements/TACSElement.h - Shell models
src/elements/shell/TACSShellElementModel.h - Materials
src/constitutive/TACSMaterialProperties.h - Panel analysis
src/constitutive/TACSPanelAnalysis.cpp
Analysis and optimization
- Linear algebra
src/bpmat/BCSRMatImpl.h - Time integration
src/TACSIntegrator.cpp - Problem base
tacs/problems/base.py - Static analysis
tacs/problems/static.py - Transient analysis
tacs/problems/transient.py - Buckling analysis
tacs/problems/buckling.py - Analysis functions
src/functions/TACSFunction.h - Design constraints
tacs/constraints/base.py - Continuation solver
tacs/solvers/continuation.py
Workflow integrations
- CAPS model
tacs/caps2tacs/tacs_model.py - TACS AIM
tacs/caps2tacs/tacs_aim.py - MPhys coupling
tacs/mphys/builder.py
Results and I/O
- FH5 output
src/io/TACSToFH5.cpp - FH5 loading
src/io/TACSFH5Loader.h - Tecplot converter
extern/f5totec/f5totec.cpp - VTK converter
extern/f5tovtk/f5tovtk.cpp
Other components
- Analyst
Connections 24
- Analyst → Python setup: sets up
- Analyst → CAPS model: defines model
- CAPS model → TACS AIM: registers with
tacs/caps2tacs/tacs_model.py - CAPS model → Python setup: uses
tacs/caps2tacs/tacs_model.py - Python setup → Mesh loading: uses loader
tacs/pytacs.py - Mesh loading → FE assembler: provides mesh
- FE assembler → FE elements: assembles
- Shell models → Materials: uses
src/elements/shell/TACSShellElementModel.h - Python setup → Problem base: creates problems
- Static analysis → Problem base: extends
tacs/problems/static.py - Transient analysis → Problem base: extends
tacs/problems/transient.py - Problem base → FE assembler: uses
- Time integration → FE assembler: integrates
- Time integration → Linear algebra: uses
- Static analysis → Analysis functions: evaluates
- Problem base → Design constraints: supports
- Static analysis → Continuation solver: can solve with
- Buckling analysis → FE assembler: analyzes
- MPhys coupling → Python setup: initializes
tacs/mphys/builder.py - MPhys coupling → Mesh loading: builds mesh group
tacs/mphys/builder.py - MPhys coupling → FE assembler: couples analysis
- FE assembler → FH5 output: writes results
- Tecplot converter → FH5 loading: loads FH5
extern/f5totec/f5totec.cpp - VTK converter → FH5 loading: loads FH5
extern/f5tovtk/f5tovtk.cpp