How filippo-masi/tann-multiscale works
This repository implements a two-scale inelastic-material workflow: lattice finite-element simulations generate homogenized and microstructural response data, while a trained thermodynamics-based neural-network material is applied in a Numerical Geolab finite-element torsion analysis. The scripts also provide prescribed-path data generation and direct lattice torsion simulation. The sampled sources support the lattice build/solve and the AI material invocation; the documented training process and parts of the Geolab solver internals are not present in the excerpts, so those links are limited to explicit entry-point usage.
Main entry points: TANN_application.py Torsion FE application · lattice_material.py Lattice FE core · lattice_data_gen.py Data generation · lattice_torsional.py Lattice torsion
Components 14
Lattice mechanics
- Prescribed path
lattice/lattice_prescribed_path.py - Data generation
lattice/lattice_data_gen.py - Lattice torsion
lattice/lattice_torsional.py - Lattice FE core
lattice/lattice_class/lattice_material.py - Lattice response
TANN material
- TANN training
TANN - Numerical Geolab/numerical_geolab/Numerical_Geolab - Saved network
TANN - Numerical Geolab/numerical_geolab_materials/UMATERIALS/TANN_material/saved_model.pb - AI material adapter
TANN - Numerical Geolab/numerical_geolab/Numerical_Geolab/ngeoAI/AI_material.py
Geolab simulation
- Torsion FE application
TANN - Numerical Geolab/numerical_geolab/Numerical_Geolab/AI_example/TANN_application.py - Geolab FE engine
TANN - Numerical Geolab/numerical_geolab/Numerical_Geolab
Results
- FE response
- Exported results
TANN - Numerical Geolab/numerical_geolab/Numerical_Geolab/AI_example/results - Deformation plots
Other components
- Analyst
Connections 19
- Analyst → Prescribed path: runs path
- Analyst → Data generation: generates data
- Analyst → Lattice torsion: runs torsion
- Prescribed path → Lattice FE core: calls solver
- Data generation → Lattice FE core: calls solver
- Lattice torsion → Lattice FE core: calls solver
- Lattice FE core → Lattice response: returns response
- Data generation → Lattice response: extracts response
- Analyst → TANN training: trains model
- TANN training → Saved network: exports model
- Analyst → Torsion FE application: runs analysis
- Torsion FE application → Geolab FE engine: solves FE problem
- Torsion FE application → AI material adapter: instantiates material
- AI material adapter → Saved network: loads network
- Geolab FE engine → AI material adapter: requests material response
- Geolab FE engine → FE response: produces fields
- Torsion FE application → Exported results: exports arrays
- Torsion FE application → Deformation plots: plots deformation
- Lattice torsion → Deformation plots: plots deformation