How geos-dev/geos works
GEOS is a subsurface simulation framework for coupled flow, transport, and geomechanics, with applications including carbon sequestration and geothermal energy. The main workflow is to launch a simulation, initialize its problem state and mesh, apply initial conditions, run the simulation, and produce results. The graph preserves the major physics and numerical subsystems named by the README and source tree. Some subsystem links are dashed because the available excerpts do not show their runtime wiring.
Main entry points: ProblemManager.cpp Problem manager · PhysicsSolverManager.cpp Physics solver manager · main.cpp CLI entry point · ConstitutiveManager.hpp Constitutive models
Components 18
Runtime orchestration
- CLI entry point
src/main/main.cpp - Runtime initialization
src/coreComponents/mainInterface/initialization.hpp - Simulation state
src/coreComponents/mainInterface/GeosxState.hpp - Problem manager
src/coreComponents/mainInterface/ProblemManager.cpp - Simulation tasks
src/coreComponents/events/tasks/TasksManager.cpp
Problem and mesh
- Problem input
src/coreComponents/mainInterface/ProblemManager.cpp - Mesh generation
src/coreComponents/mesh/generators/CellBlockManager.cpp - Domain partition
src/coreComponents/mesh/DomainPartition.hpp - Element regions
src/coreComponents/mesh/ElementRegionManager.hpp
Physics models
- Physics solver manager
src/coreComponents/physicsSolvers/PhysicsSolverManager.cpp - Flow and transport
src/coreComponents/physicsSolvers - Well controls
src/coreComponents/physicsSolvers/fluidFlow/wells/WellManager.cpp - Geomechanics
src/coreComponents/physicsSolvers - Constitutive models
src/coreComponents/constitutive/ConstitutiveManager.hpp
Numerics and results
- Discretization
src/coreComponents/discretizationMethods/NumericalMethodsManager.hpp - DOF management
src/coreComponents/linearAlgebra/DofManager.cpp - Result output
src/coreComponents/fileIO/Outputs/OutputManager.hpp
Other components
- Simulation user
Connections 18
- Simulation user → CLI entry point: launches
src/main/main.cpp - CLI entry point → Runtime initialization: initializes
src/main/main.cpp - CLI entry point → Simulation state: creates state
src/main/main.cpp - Simulation state → Problem manager: runs problem
src/coreComponents/mainInterface/ProblemManager.cpp - Problem manager → Problem input: parses
src/coreComponents/mainInterface/ProblemManager.cpp - Problem manager → Mesh generation: generates mesh
src/coreComponents/mainInterface/ProblemManager.cpp - Problem manager → Domain partition: configures domain
src/coreComponents/mainInterface/ProblemManager.cpp - Domain partition → Element regions: organizes regions
- Problem manager → Physics solver manager: configures solvers
src/coreComponents/mainInterface/ProblemManager.cpp - Physics solver manager → Flow and transport: dispatches physics
- Physics solver manager → Geomechanics: dispatches physics
- Physics solver manager → Discretization: uses methods
- Physics solver manager → Simulation tasks: configures tasks
- Well controls → DOF management: registers fields
src/coreComponents/physicsSolvers/fluidFlow/wells/WellManager.cpp - Problem manager → Constitutive models: configures models
src/coreComponents/mainInterface/ProblemManager.cpp - Problem manager → Result output: writes results
src/coreComponents/mainInterface/ProblemManager.cpp - Flow and transport → Constitutive models: uses models
- Geomechanics → Constitutive models: uses models