How mtopopt/mto works
MTO is a parallel, density-based topology-optimization solver built on OpenFOAM for thermal-fluid, solid-mechanical, and coupled thermal-fluid-structural problems. The principal user workflow is to run an optimization case with the selected solver, which iteratively evaluates physical behavior and updates the design; users then reconstruct parallel results for visualization. The tree shows separate solver variants and domain-specific physics, adjoint, boundary-condition, and optimization modules. Internal execution links are mostly unverified because the main solver sources were not excerpted; those links are therefore dashed.
Main entry points: MTO_ThermalFluid.C Thermal-fluid solver · MTO_TFS.C Coupled solver · MTO_SolidDisplacement.C Solid displacement solver · sensitivity.H Sensitivity evaluation
Components 22
Thermal-fluid physics
- Thermal-fluid solver
new_2022.12.15/MTO_ThermalFluid/src/MTO_ThermalFluid.C - Fluid solver
new_2022.12.15/MTO_fluid/src/MTO_Fluid.C - Primal flow and heat
new_2022.12.15/MTO_ThermalFluid/src/Primal_U.H - Adjoint equations
new_2022.12.15/MTO_ThermalFluid/src/AdjointFlow_Ua.H - Objective function
new_2022.12.15/MTO_ThermalFluid/src/costfunction.H - Fluid and heat properties
new_2022.12.15/MTO_ThermalFluid/src/readTransportProperties.H
Structural physics
- Coupled solver
new_2022.12.15/MTO_ThermalFluidStructural/src/MTO_TFS.C - Flow equations
new_2022.12.15/MTO_ThermalFluidStructural/src/NS.H - Heat transfer
new_2022.12.15/MTO_ThermalFluidStructural/src/HeatTransfer.H - Linear elasticity
new_2022.12.15/MTO_ThermalFluidStructural/src/LinearElasticity.H - Solid displacement solver
new_2022.12.15/MTO_solid/MTO_SolidDisplacement/MTO_SolidDisplacement.C - Solid elasticity
new_2022.12.15/MTO_solid/MTO_SolidDisplacement/LinearElasticity.H
Design optimization
- Density design
new_2022.12.15/MTO_ThermalFluid/src/createFields.H - Sensitivity evaluation
new_2022.12.15/MTO_ThermalFluid/src/sensitivity.H - Design filtering
new_2022.12.15/MTO_ThermalFluid/src/filter_x.H - MMA optimizer
new_2022.12.15/MTO_ThermalFluid/src/MMA/MMA.C - Design update
new_2022.12.15/MTO_ThermalFluid/src/update.H
Physics boundaries
- Adjoint outlet conditions
new_2022.12.15/MTO_ThermalFluid/src/adjointOutletVelocityPower/adjointOutletVelocityPowerFvPatchVectorField.C - Traction displacement condition
new_2022.12.15/MTO_solid/MTO_SolidDisplacement/tractionDisplacement/tractionDisplacementFvPatchVectorField.C
Other components
- Case user
- OpenFOAM
- Reconstructed results
Connections 21
- Case user → Thermal-fluid solver: runs case
- OpenFOAM → Thermal-fluid solver: provides runtime
- Thermal-fluid solver → Primal flow and heat: solves primal
- Thermal-fluid solver → Adjoint equations: solves adjoint
- Thermal-fluid solver → Objective function: evaluates objective
- Thermal-fluid solver → Density design: uses design
- Thermal-fluid solver → Sensitivity evaluation: computes sensitivities
- Sensitivity evaluation → Design filtering: filters sensitivities
- Thermal-fluid solver → MMA optimizer: updates optimization
- MMA optimizer → Design update: returns design
- Thermal-fluid solver → Fluid and heat properties: reads properties
- Thermal-fluid solver → Adjoint outlet conditions: uses boundary condition
- Case user → Fluid solver: selects variant
- Case user → Coupled solver: selects variant
- Coupled solver → Flow equations: solves flow
- Coupled solver → Heat transfer: solves heat
- Coupled solver → Linear elasticity: solves elasticity
- Case user → Solid displacement solver: selects variant
- Solid displacement solver → Solid elasticity: solves elasticity
- Solid displacement solver → Traction displacement condition: uses boundary condition
- Case user → Reconstructed results: reconstructs output