[simulation]#
Minimal orchestration block declared under [simulation].
simulation[table] · optional · 25 user keys, 4 dev or expert- Start a file:
hmp config template --modules simulation(download it), thenhmp check file.toml. Minimal file
# name = ""Human-readable simulation name and the run's identity.
- Path
simulation.name- More
When empty, derived from the TOML filename at load time (run_steady_nwt.toml -> steady_nwt); a programmatic run without a name gets a deterministic memorable slug. It never carries a _vN suffix: the version is given by the disk when the run is reserved.
- Accepted
- string
- Example
"cheze_baseline"
# tags = []Free-text tags attached at registration; editable later via 'hmp catalog tag'.
- Path
simulation.tags- Accepted
- list of string
# if_exists = "version"What a run does when its name is already taken in this project.
- Path
simulation.if_exists- More
version(default) writes the run under the next freestem_vNand keeps every run addressable;failstops before the run starts. A name is never reused, so a run is never replaced: delete the old one with hmp catalog delete.- Values
"fail": Refuse to start when the name is taken."version": Write the run under the next free <name>_vN.
- Accepted
- "fail" | "version"
# description = ""Short free-text description of the simulation intent.
- Path
simulation.description- Accepted
- string
# scientific_objective = ‹string›Scientific objective used for catalog and ML stratification.
- Path
simulation.scientific_objective- Accepted
- string
# contact_email = ‹string›Contact email for the simulation metadata.
- Path
simulation.contact_email- Accepted
- string
# doi = ‹string›DOI or reference identifier for the simulation metadata.
- Path
simulation.doi- Accepted
- string
# rng_seed = ‹integer›Master RNG seed for the simulation. - >= 0
- Path
simulation.rng_seed- More
When set, every stochastic consumer (mesh point sampling, synthetic forcing, ...) derives its own deterministic sub-seed via
hydromodpy.core.state.rng.RngManager. Persisted inruns_environment.rng_seedso the run can be re-executed from the catalog snapshot.- Accepted
- integer
- Valid range
- >= 0 (refused outside)
- Unit
- -
[simulation] # name = "" # tags = [] # if_exists = "version" # description = "" # scientific_objective = <string> # contact_email = <string> # doi = <string> # rng_seed = <integer>
simulation.name name “” “cheze_baseline” Human-readable simulation name and the run’s identity. When empty, derived from the TOML filename at load time (run_steady_nwt.toml -> steady_nwt); a programmatic run without a name gets a deterministic memorable slug. It never carries a _vN suffix: the version is given by the disk when the run is reserved. simulation.tags tags [] Free-text tags attached at registration; editable later via ‘hmp catalog tag’. simulation.if_exists if_exists “version” fail version version Write the run under the next free <name>_vN. fail Refuse to start when the name is taken. What a run does when its name is already taken in this project. ``version`` (default) writes the run under the next free ``stem_vN`` and keeps every run addressable; ``fail`` stops before the run starts. A name is never reused, so a run is never replaced: delete the old one with hmp catalog delete. simulation.description description “” Short free-text description of the simulation intent. simulation.scientific_objective scientific_objective not set Scientific objective used for catalog and ML stratification. simulation.contact_email contact_email not set Contact email for the simulation metadata. simulation.doi doi not set DOI or reference identifier for the simulation metadata. simulation.rng_seed rng_seed not set - Master RNG seed for the simulation. When set, every stochastic consumer (mesh point sampling, synthetic forcing, …) derives its own deterministic sub-seed via ``hydromodpy.core.state.rng.RngManager``. Persisted in ``runs_environment.rng_seed`` so the run can be re-executed from the catalog snapshot.
[simulation.time]#
Canonical simulation time window and forcing-coverage policy.
Connections found in the code (3)
- The code says
data.recharge:[data.recharge] formula = "..." has no yearly value over ... to ...: .... Widen [simulation.time] to whole years.
- The code says
calibration.protocol:a steady phase averages the record over one steady period and reads its span from [simulation.time], which declares no start_datetime/end_datetime here. Write them, or name the span in the phase's steady_window ([calibration.protocol].steady_window when a protocol writes the phase).
- The code says
flow.sinks_sources.recharge.soil:[flow.sinks_sources.recharge.soil] runs day by day over [simulation.time], which this file does not declare: add start_datetime, end_datetime and step_value.
# start_datetime = "2019-01-01"Simulation window lower datetime bound used by launcher-level time alignment and forcing checks. example value
- Path
simulation.time.start_datetime- Accepted
- date "YYYY-MM-DD"
- Example
"2019-01-01"
# end_datetime = "2025-12-31"Simulation window upper datetime bound, interpreted as inclusive. example value
- Path
simulation.time.end_datetime- More
Must be greater than or equal to start_datetime.
- Accepted
- date "YYYY-MM-DD"
- Example
"2025-12-31"
# step_value = "1 month"Forcing/stress-period time-step scalar or inline token '<value> <unit>' (for example '30 day').
- Path
simulation.time.step_value- More
This controls the temporal aggregation step for forcing series (for example recharge/runoff) and the resulting stress periods. Not read by a steady run (flow.flow_regime = 'steady'), which is one stress period over the whole window, its forcings averaged over it.
- Accepted
- integer or number or string
- Example
"1 month","10 day"
# step_unit = ‹"hour" | "day" | "month" | "year"›Unit of a bare-number step_value: the length of the stress periods and of the forcing steps.
- Path
simulation.time.step_unit- Values
"hour": Treats step_value as whole hours, for sub-daily forcing and stress periods."day": Treats step_value as whole days, the common granularity for daily forcing series."month": Treats step_value as calendar months, so the step length varies by month."year": Treats step_value as calendar years, so the step length varies with leap years.
- Accepted
- "hour" | "day" | "month" | "year"
# coverage_policy = "error"What happens to a stress period that a forcing record does not cover.
- Path
simulation.time.coverage_policy- More
A sample is the rate of the interval up to the next sample, and the last sample stands for one step of the record (the median spacing of its dates). A period that no sample reaches, before the first date or after the end of the last step, is not covered. 'error' stops the run, 'warn' warns once per record, 'ignore' says nothing; under 'warn' and 'ignore' the period takes the nearest sample in time. The rule is the same for a series, a station and a grid: rain, ETP, recharge, runoff and the declared CSV forcings read as rates (aggregate = 'mean').
- Values
"error""warn""ignore"
- Accepted
- "error" | "warn" | "ignore"
- Example
"error","warn"
# window_length = "1 year"Calendar length of the windows a long transient run is cut into, written '<n> <unit>' with unit hour, day, month or year. example value
- Path
simulation.time.window_length- More
The windows start at start_datetime and follow one another; the last one ends with the simulation and may be shorter. Every window edge must fall on a stress period end. Each window is a sealed run of its own, named after the run with _w1, _w2 and so on, that starts from the final state of the window before it. The forcings and the soil reservoir are computed over the whole simulation, so the chain gives the heads of the run in one piece. Absent, the run is one window.
- Accepted
- string
- Example
"1 year","6 months"
# window = "all"Which windows of window_length this launch plays.
- Path
simulation.time.window- More
'all' plays them one after the other and skips those already sealed with the same request. A number k, from 1, plays window k alone, which needs window k - 1 sealed first.
- Values
"all"
- Accepted
- integer or "all"
- Example
"all",2
# substeps_per_period = 1Number of solver time steps within each stress period, the one knob that buys transient accuracy. - >= 1 dev
- Path
simulation.time.substeps_per_period- More
The default of 1 integrates a whole period in a single backward-Euler step, which is not a neutral choice: on a seasonally recharged hillslope drained by DRN cells it moves the monthly discharge by 4 to 28 % against a refined run, across the whole plausible bedrock range, and a calibration scored on discharge absorbs that into the fitted parameters. The right count compares the aquifer response time
tau = L^2 S / (K b)with the period length, and the solver cost is linear in it; 30 gives daily steps inside monthly periods. Consumed by the MODFLOW backends as DIS NSTP / TDIS nstp, and by the Boussinesq backend, which solves each period in as many backward-Euler steps of equal length. Every solver stores one result per period: the head at the end of the period and each flux as the mean of its steps, weighted by their length.- Accepted
- integer
- Valid range
- >= 1 (refused outside)
- Unit
- -
[simulation.time] # start_datetime = "2019-01-01" # end_datetime = "2025-12-31" # step_value = "1 month" # step_unit = <"hour" | "day" | "month" | "year"> # coverage_policy = "error" # window_length = "1 year" # window = "all"
simulation.time.start_datetime start_datetime not set “2019-01-01” Simulation window lower datetime bound used by launcher-level time alignment and forcing checks. simulation.time.end_datetime end_datetime not set “2025-12-31” Simulation window upper datetime bound, interpreted as inclusive. Must be greater than or equal to start_datetime. simulation.time.step_value step_value “1 month” “1 month” “10 day” Forcing/stress-period time-step scalar or inline token ‘<value> <unit>’ (for example ‘30 day’). This controls the temporal aggregation step for forcing series (for example recharge/runoff) and the resulting stress periods. Not read by a steady run (flow.flow_regime = ‘steady’), which is one stress period over the whole window, its forcings averaged over it. simulation.time.step_unit step_unit not set hour day month year hour Treats step_value as whole hours, for sub-daily forcing and stress periods. day Treats step_value as whole days, the common granularity for daily forcing series. month Treats step_value as calendar months, so the step length varies by month. year Treats step_value as calendar years, so the step length varies with leap years. Unit of a bare-number step_value: the length of the stress periods and of the forcing steps. simulation.time.substeps_per_period substeps_per_period 1 - Number of solver time steps within each stress period, the one knob that buys transient accuracy. The default of 1 integrates a whole period in a single backward-Euler step, which is not a neutral choice: on a seasonally recharged hillslope drained by DRN cells it moves the monthly discharge by 4 to 28 % against a refined run, across the whole plausible bedrock range, and a calibration scored on discharge absorbs that into the fitted parameters. The right count compares the aquifer response time `tau = L^2 S / (K b)` with the period length, and the solver cost is linear in it; 30 gives daily steps inside monthly periods. Consumed by the MODFLOW backends as DIS NSTP / TDIS nstp, and by the Boussinesq backend, which solves each period in as many backward-Euler steps of equal length. Every solver stores one result per period: the head at the end of the period and each flux as the mean of its steps, weighted by their length. simulation.time.coverage_policy coverage_policy “error” error warn ignore “error” “warn” What happens to a stress period that a forcing record does not cover. A sample is the rate of the interval up to the next sample, and the last sample stands for one step of the record (the median spacing of its dates). A period that no sample reaches, before the first date or after the end of the last step, is not covered. ‘error’ stops the run, ‘warn’ warns once per record, ‘ignore’ says nothing; under ‘warn’ and ‘ignore’ the period takes the nearest sample in time. The rule is the same for a series, a station and a grid: rain, ETP, recharge, runoff and the declared CSV forcings read as rates (aggregate = ‘mean’). simulation.time.window_length window_length not set “1 year” “6 months” Calendar length of the windows a long transient run is cut into, written ‘<n> <unit>’ with unit hour, day, month or year. The windows start at start_datetime and follow one another; the last one ends with the simulation and may be shorter. Every window edge must fall on a stress period end. Each window is a sealed run of its own, named after the run with _w1, _w2 and so on, that starts from the final state of the window before it. The forcings and the soil reservoir are computed over the whole simulation, so the chain gives the heads of the run in one piece. Absent, the run is one window. simulation.time.window window “all” all “all” 2 Which windows of window_length this launch plays. ‘all’ plays them one after the other and skips those already sealed with the same request. A number k, from 1, plays window k alone, which needs window k - 1 sealed first.
[[simulation.process]]#
Ordered list of requested processes loaded from [[simulation.process]].
Repeat the table: one [[simulation.process]] block per item.
Connections found in the code (1)
- The code says
solver.backend:solver.backend names ... and the flow process ... of [[simulation.process]] names ... in solvers. The run builds the solver of the process and the checks read solver.backend, so both must name the same solver. Write the same name in both, or remove solver.backend: it then follows the flow process.
kind selects the shape of this table. One tab per shape, the default first.
kind = "flow"[[simulation.process]] entry for a flow process. chosen shape
- Path
simulation.process.kind- See
- simulation.process
- Values
"flow":[[simulation.process]]entry for a flow process."transport":[[simulation.process]]entry for a transport process."mesh":[[simulation.process]]entry for a mesh orchestration process.
- Accepted
- "flow" | "transport" | "mesh"
id = "flow_main"User-facing identifier for the process. required example value
- Path
simulation.process.id- More
This id is required and must be unique within the simulation.
- Accepted
- string
- Example
"flow_main"
solvers = ‹list of string›Ordered list of active flow solver names. required at least 1 item experimental if "modpath" | "modflow6_prt"
- Path
simulation.process.solvers- More
At least one solver is required for flow processes.
- Accepted
- list of string
- Valid range
- at least 1 item (refused outside)
[[simulation.process]] kind = "flow" id = "flow_main" solvers = <list of string>
simulation.process.id id “flow_main” User-facing identifier for the process. This id is required and must be unique within the simulation. simulation.process.kind kind “flow” flow transport mesh flow ``[[simulation.process]]`` entry for a flow process. transport ``[[simulation.process]]`` entry for a transport process. mesh ``[[simulation.process]]`` entry for a mesh orchestration process. Discriminator selecting the ‘flow’ process family. simulation.process.solvers solvers Ordered list of active flow solver names. At least one solver is required for flow processes.
kind = "transport"[[simulation.process]] entry for a transport process. chosen shape
- Path
simulation.process.kind- See
- simulation.process
- Values
"flow":[[simulation.process]]entry for a flow process."transport":[[simulation.process]]entry for a transport process."mesh":[[simulation.process]]entry for a mesh orchestration process.
- Accepted
- "flow" | "transport" | "mesh"
id = "flow_main"User-facing identifier for the process. required example value
- Path
simulation.process.id- More
This id is required and must be unique within the simulation.
- Accepted
- string
- Example
"flow_main"
solvers = ‹list of string›Ordered list of active flow solver names. required at least 1 item experimental if "modpath" | "modflow6_prt"
- Path
simulation.process.solvers- More
At least one solver is required for flow processes.
- Accepted
- list of string
- Valid range
- at least 1 item (refused outside)
[[simulation.process]] kind = "transport" id = "flow_main" solvers = <list of string>
simulation.process.id id “flow_main” User-facing identifier for the process. This id is required and must be unique within the simulation. simulation.process.kind kind “flow” flow transport mesh flow ``[[simulation.process]]`` entry for a flow process. transport ``[[simulation.process]]`` entry for a transport process. mesh ``[[simulation.process]]`` entry for a mesh orchestration process. Discriminator selecting the ‘flow’ process family. simulation.process.solvers solvers Ordered list of active flow solver names. At least one solver is required for flow processes.
kind = "mesh"[[simulation.process]] entry for a mesh orchestration process. chosen shape
- Path
simulation.process.kind- See
- simulation.process
- Values
"flow":[[simulation.process]]entry for a flow process."transport":[[simulation.process]]entry for a transport process."mesh":[[simulation.process]]entry for a mesh orchestration process.
- Accepted
- "flow" | "transport" | "mesh"
id = "flow_main"User-facing identifier for the process. required example value
- Path
simulation.process.id- More
This id is required and must be unique within the simulation.
- Accepted
- string
- Example
"flow_main"
solvers = ‹list of string›Ordered list of active flow solver names. required at least 1 item experimental if "modpath" | "modflow6_prt"
- Path
simulation.process.solvers- More
At least one solver is required for flow processes.
- Accepted
- list of string
- Valid range
- at least 1 item (refused outside)
# backend = "catchment"How the mesh process builds its mesh.
- Path
simulation.process.backend- More
'catchment' is the one value: it builds the mesh that [mesh] describes.
- Values
"catchment"
- Accepted
- "catchment"
- Only if
- kind = "mesh"
[[simulation.process]] kind = "mesh" id = "flow_main" solvers = <list of string> # backend = "catchment"
simulation.process.id id “flow_main” User-facing identifier for the process. This id is required and must be unique within the simulation. simulation.process.kind kind “flow” flow transport mesh flow ``[[simulation.process]]`` entry for a flow process. transport ``[[simulation.process]]`` entry for a transport process. mesh ``[[simulation.process]]`` entry for a mesh orchestration process. Discriminator selecting the ‘flow’ process family. simulation.process.solvers solvers Ordered list of active flow solver names. At least one solver is required for flow processes. simulation.process.backend backend “catchment” catchment How the mesh process builds its mesh. ‘catchment’ is the one value: it builds the mesh that [mesh] describes.
[simulation.results]#
Configuration for [simulation.results].
# keep_solver_files = falseKeep the raw solver files (.hds, .cbc, .lst) of a sealed run under runs/<run>/solver/, outside the manifest inventory.
- Path
simulation.results.keep_solver_files- More
Off, they are deleted once their results are stored.
- Accepted
- true | false
# keep_face_flows = falseKeep the flow between each pair of connected cells, at every saved time, in fields.zarr.
- Path
simulation.results.keep_face_flows- More
The flow solver of the run must write it: MODFLOW 6 and MODFLOW-NWT do. It is the heaviest group a run can keep: about 350 MB in float32 for six daily years on about 21 000 cells, beside 312 MB for the whole per-cell budget. A kept calibration trial never keeps it.
- Accepted
- true | false
# keep_per_cell_budget = trueKeep every per-cell budget term the solver produces, storage terms included, so every flux can be mapped, exported and read after the run is sealed (hmp export, hmp show --figure, the Python API), and every derived field is rebuilt on read. dev
- Path
simulation.results.keep_per_cell_budget- More
False keeps only the terms the run's own consumers read: the figures of [display].figures, the [[export]] blocks, the calibration criterion and the seepage mask of a surface-excess solver. A kept calibration trial keeps only the terms its criterion reads. A later read of anything else then needs a new run. On a daily run, true is the heaviest group of the store: about 300 MB for six daily years on about 21 000 cells, 3.7 times the head.
- Accepted
- true | false
[simulation.results] # keep_solver_files = false # keep_face_flows = false
simulation.results.keep_solver_files keep_solver_files false Keep the raw solver files (.hds, .cbc, .lst) of a sealed run under runs/<run>/solver/, outside the manifest inventory. Off, they are deleted once their results are stored. simulation.results.keep_face_flows keep_face_flows false Keep the flow between each pair of connected cells, at every saved time, in fields.zarr. The flow solver of the run must write it: MODFLOW 6 and MODFLOW-NWT do. It is the heaviest group a run can keep: about 350 MB in float32 for six daily years on about 21 000 cells, beside 312 MB for the whole per-cell budget. A kept calibration trial never keeps it. simulation.results.keep_per_cell_budget keep_per_cell_budget true Keep every per-cell budget term the solver produces, storage terms included, so every flux can be mapped, exported and read after the run is sealed (hmp export, hmp show –figure, the Python API), and every derived field is rebuilt on read. False keeps only the terms the run’s own consumers read: the figures of [display].figures, the [[export]] blocks, the calibration criterion and the seepage mask of a surface-excess solver. A kept calibration trial keeps only the terms its criterion reads. A later read of anything else then needs a new run. On a daily run, true is the heaviest group of the store: about 300 MB for six daily years on about 21 000 cells, 3.7 times the head.
[simulation.results.persistence]#
Orthogonal switch governing every persistence sink.
# save_catalog = truePersist DuckDB rows (simulations, parameters, metrics, calibration_iterations).
- Path
simulation.results.persistence.save_catalog- More
When False, catalog writes are skipped.
- Accepted
- true | false
# save_zarr = truePersist per-simulation field arrays (head, concentration, derived) into the Zarr store.
- Path
simulation.results.persistence.save_zarr- Accepted
- true | false
# field_precision = "compact"Precision of the time-varying field arrays of fields.zarr: heads, per-cell budget terms, derived fields, concentrations.
- Path
simulation.results.persistence.field_precision- More
'compact' stores float32 with the mantissa rounded to nearest at 16 bits: each value moves by at most 2**-17 of itself (7.6e-6 relative, so at most 1 mm on a 130 m head and 7.6e-9 m3/s on a 1e-3 m3/s cell flux), and a daily run takes about a third of the disk. 'exact' keeps every value as computed, float64. Mesh geometry, topography, layer thickness, indices, coordinates and timestamps are never rounded.
- Values
"compact""exact"
- Accepted
- "compact" | "exact"
# save_parquet = truePersist per-simulation tabular outputs (timeseries, budgets, mass_balance) as Parquet files.
- Path
simulation.results.persistence.save_parquet- Accepted
- true | false
# compression = "zstd"Codec DECLARED for Zarr field arrays and Parquet tables. dev
- Path
simulation.results.persistence.compression- More
The writers carry their own codec (zstd) and do not read this field, so changing it changes nothing today; it records the intent and is the field a writer would read once the choice is threaded through.
- Values
"none"no explanation"zstd"no explanation"lz4"no explanation"gzip"no explanation"snappy"no explanation
- Accepted
- "none" | "zstd" | "lz4" | "gzip" | "snappy"
# compression_level = 5Compression level DECLARED for those writers. - [0, 22] dev
- Path
simulation.results.persistence.compression_level- More
Same as the codec: core/io/parquet.py and core/io/geoparquet.py hold level 5 and do not read this field. The default says 5 rather than 3 so the declaration at least matches the bytes actually written.
- Accepted
- integer
- Valid range
- [0, 22] (refused outside)
- Unit
- -
[simulation.results.persistence] # save_catalog = true # save_zarr = true # field_precision = "compact" # save_parquet = true
simulation.results.persistence.save_catalog save_catalog true Persist DuckDB rows (simulations, parameters, metrics, calibration_iterations). When False, catalog writes are skipped. simulation.results.persistence.save_zarr save_zarr true Persist per-simulation field arrays (head, concentration, derived) into the Zarr store. simulation.results.persistence.field_precision field_precision “compact” compact exact Precision of the time-varying field arrays of fields.zarr: heads, per-cell budget terms, derived fields, concentrations. ‘compact’ stores float32 with the mantissa rounded to nearest at 16 bits: each value moves by at most 2**-17 of itself (7.6e-6 relative, so at most 1 mm on a 130 m head and 7.6e-9 m3/s on a 1e-3 m3/s cell flux), and a daily run takes about a third of the disk. ‘exact’ keeps every value as computed, float64. Mesh geometry, topography, layer thickness, indices, coordinates and timestamps are never rounded. simulation.results.persistence.save_parquet save_parquet true Persist per-simulation tabular outputs (timeseries, budgets, mass_balance) as Parquet files. simulation.results.persistence.compression compression “zstd” none zstd lz4 gzip snappy Codec DECLARED for Zarr field arrays and Parquet tables. The writers carry their own codec (zstd) and do not read this field, so changing it changes nothing today; it records the intent and is the field a writer would read once the choice is threaded through. simulation.results.persistence.compression_level compression_level 5 - Compression level DECLARED for those writers. Same as the codec: core/io/parquet.py and core/io/geoparquet.py hold level 5 and do not read this field. The default says 5 rather than 3 so the declaration at least matches the bytes actually written.