How jiesun-pku/detonationfoam works
detonationFoam is an OpenFOAM gaseous-detonation CFD solver. A case selects a solver formulation, then the solver advances time, updates the mesh and time step, computes convective fluxes, solves conservation and chemistry equations, corrects transport/turbulence where applicable, and writes results. The README documents Euler and two Navier–Stokes transport options plus optional adaptive mesh refinement, dynamic chemistry load balancing, and low-dissipation reconstruction. The supplied excerpts show selected time-loop, flux, species, and mesh behavior; unsampled subsystem connections are left unasserted or marked optional.
Main entry points: solverTypeNS_mixtureAverage.H Mixture-average solver · detonationFoam_V2.0.C Solver entry · fluxScheme.H Flux update · solverTypeEuler.H Euler solver
Components 20
Solver and equations
- Solver entry
applications/solvers/detonationFoam_V2.0/detonationFoam_V2.0.C - Field setup
applications/solvers/detonationFoam_V2.0/createFields.H - Euler solver
applications/solvers/detonationFoam_V2.0/solverTypeEuler/solverTypeEuler.H - Sutherland solver
applications/solvers/detonationFoam_V2.0/solverTypeNS_Sutherland/solverTypeNS_Sutherland.H - Mixture-average solver
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Time-step control
applications/solvers/detonationFoam_V2.0/calculateDt.H - Cellular diagnostics
applications/solvers/detonationFoam_V2.0/detoCellular.H - Flow equations
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage
Flux and transport physics
- Flux update
applications/solvers/detonationFoam_V2.0/fluxSchemes_improved/fluxScheme/fluxScheme.H - Riemann convection
applications/solvers/detonationFoam_V2.0/fluxSchemes_improved/RiemannConvectionScheme/RiemannConvectionScheme.H - Flux schemes
applications/solvers/detonationFoam_V2.0/fluxSchemes_improved - Mixture transport
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/transport - Reaction chemistry
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/rhoYEqn_NS_mixtureAverage.H
Mesh and reconstruction
- 2D mesh refinement
applications/solvers/detonationFoam_V2.0/dynamicMesh2D/dynamicFvMesh/dynamicRefineFvMesh2D/dynamicRefineFvMesh2D.C - Axisymmetric refinement
applications/solvers/detonationFoam_V2.0/dynamicMesh2D/dynamicFvMesh/dynamicRefineFvMeshAxi/dynamicRefineFvMeshAxi.C - ROUND reconstruction
applications/solvers/detonationFoam_V2.0/ROUNDSchemes/src
Chemistry load balancing
- Chemistry problem
applications/solvers/detonationFoam_V2.0/DLBFoam-1.0-1.0_OF8/src/thermophysicalModels/chemistryModel/loadBalancing/ChemistryProblem.H - Load balancing
applications/solvers/detonationFoam_V2.0/DLBFoam-1.0-1.0_OF8/src/thermophysicalModels/chemistryModel/loadBalancing/LoadBalancer.C
Other components
- Simulation case
- Written fields
Connections 26
- Simulation case → Solver entry: starts
- Solver entry → Field setup: sets up
- Solver entry → Euler solver: selects solver
- Solver entry → Sutherland solver: selects solver
- Solver entry → Mixture-average solver: selects solver
- Euler solver → Time-step control: includes
applications/solvers/detonationFoam_V2.0/solverTypeEuler/solverTypeEuler.H - Euler solver → Cellular diagnostics: includes
applications/solvers/detonationFoam_V2.0/solverTypeEuler/solverTypeEuler.H - Euler solver → Flux update: updates fluxes
applications/solvers/detonationFoam_V2.0/solverTypeEuler/solverTypeEuler.H - Sutherland solver → Time-step control: includes
applications/solvers/detonationFoam_V2.0/solverTypeNS_Sutherland/solverTypeNS_Sutherland.H - Sutherland solver → Cellular diagnostics: includes
applications/solvers/detonationFoam_V2.0/solverTypeNS_Sutherland/solverTypeNS_Sutherland.H - Sutherland solver → Flux update: updates fluxes
applications/solvers/detonationFoam_V2.0/solverTypeNS_Sutherland/solverTypeNS_Sutherland.H - Mixture-average solver → Time-step control: includes
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Mixture-average solver → Cellular diagnostics: includes
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Mixture-average solver → Flux update: updates fluxes
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Mixture-average solver → Flow equations: includes equations
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Mixture-average solver → Mixture transport: updates properties
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Mixture-average solver → Written fields: writes fields
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Flow equations → Reaction chemistry: solves species
applications/solvers/detonationFoam_V2.0/solverTypeNS_mixtureAverage/solverTypeNS_mixtureAverage.H - Reaction chemistry → Mixture transport: uses diffusivity
- Flux update → Riemann convection: provides flux scheme
applications/solvers/detonationFoam_V2.0/fluxSchemes_improved/RiemannConvectionScheme/RiemannConvectionScheme.H - Riemann convection → Flux schemes: uses selected scheme
applications/solvers/detonationFoam_V2.0/fluxSchemes_improved/RiemannConvectionScheme/RiemannConvectionScheme.H - Mixture-average solver → 2D mesh refinement: updates mesh
- Mixture-average solver → Axisymmetric refinement: updates mesh
- Flux update → ROUND reconstruction: may use
- Reaction chemistry → Load balancing: may balance work
- Load balancing → Chemistry problem: manages problems