How kouroshie/containment works
Containment is a Class VI geologic carbon-storage permitting toolkit, available as a Python library, CLI, and Streamlit app. The principal workflow takes project inputs or imported simulation output through fluid and threshold-pressure evaluation, flow modelling, and AoR delineation; it then supports corrective-action and PISC analyses and produces maps, reports, and exports. The graph preserves documented capabilities even where implementation excerpts were not supplied. Some subsystem links rely on the SOURCE INDEX or README rather than inspected call sites.
Main entry points: workflow.py Run orchestration · report.py Permit report · streamlit_app.py Browser app · gis.py Interactive GIS map
Components 22
User entry and inputs
- Command line
src/containment/cli.py - Browser app
app/streamlit_app.py - Project configuration
src/containment/config.py - Simulation imports
src/containment/io/importers.py - Excel workbook I/O
src/containment/io/workbook.py
Reservoir and pressure models
- Fluid properties
src/containment/fluids.py - Threshold pressure
src/containment/threshold.py - Analytical flow
src/containment/analytical/pressure.py - Relative permeability
src/containment/analytical/relperm.py - Numerical VE solver
src/containment/numerical/ve_solver.py - Fault and seismic layers
src/containment/fault_layers.py - TexNet seismicity
src/containment/texnet.py
Permit analyses
- Run orchestration
src/containment/workflow.py - AoR delineation
src/containment/delineate.py - Corrective action
src/containment/corrective.py - PISC analysis
src/containment/pisc.py - AoR uncertainty
src/containment/uncertainty.py
Maps and deliverables
- Interactive GIS map
src/containment/gis.py - Static and interactive charts
src/containment/viz.py - Permit report
src/containment/report.py - GIS and field exports
src/containment/io/exporters.py
Other components
- Project operator
Connections 30
- Project operator → Command line: runs
README.md - Project operator → Browser app: uses
README.md - Command line → Project configuration: loads project
src/containment/cli.py - Command line → Run orchestration: runs analysis
src/containment/cli.py - Browser app → Run orchestration: runs analysis
app/streamlit_app.py - Project configuration → Run orchestration: provides inputs
src/containment/workflow.py - Simulation imports → Run orchestration: supplies fields
- Excel workbook I/O → Project configuration: reads and writes
src/containment/io/workbook.py - Run orchestration → Fluid properties: evaluates
src/containment/workflow.py - Run orchestration → Threshold pressure: computes
src/containment/workflow.py - Run orchestration → Analytical flow: uses pressure model
src/containment/workflow.py - Run orchestration → Numerical VE solver: uses VE solver
src/containment/workflow.py - Analytical flow → Relative permeability: uses
src/containment/analytical/pressure.py - Numerical VE solver → Relative permeability: uses
src/containment/numerical/ve_solver.py - Run orchestration → AoR delineation: delineates AoR
src/containment/workflow.py - Run orchestration → Corrective action: sizes actions
src/containment/workflow.py - Run orchestration → PISC analysis: evaluates PISC
src/containment/workflow.py - Run orchestration → AoR uncertainty: runs sensitivity
src/containment/workflow.py - Run orchestration → Permit report: creates report
- Permit report → AoR delineation: renders results
src/containment/report.py - Permit report → PISC analysis: includes metrics
src/containment/report.py - Permit report → Static and interactive charts: renders figures
src/containment/report.py - Permit report → Interactive GIS map: renders map
src/containment/report.py - Run orchestration → GIS and field exports: writes outputs
src/containment/workflow.py - Interactive GIS map → GIS and field exports: uses georeferencing
src/containment/gis.py - Interactive GIS map → Fault and seismic layers: loads map layers
src/containment/gis.py - TexNet seismicity → Fault and seismic layers: uses layer data
src/containment/texnet.py - Browser app → Permit report: offers reporting
app/streamlit_app.py - Browser app → Interactive GIS map: offers mapping
app/streamlit_app.py - Browser app → Excel workbook I/O: supports workbook I/O
app/streamlit_app.py