[solver]#

The flow solver of a run, its settings, and the switches every backend may read.

  • solver [table] · optional · 14 user keys, 89 dev or expert
  • Start a file: hmp config template --modules solver (download it), then hmp check file.toml. Minimal file
[solver]
# backend = "modflow6"Flow solver of the run, by its registered name: MODFLOW 6, MODFLOW-NWT, Boussinesq or a plugin.
Path
solver.backend
More

A name this installation does not serve is refused with the names it serves.

Accepted
string
Example
"boussinesq", "linear_reservoir", "modflow6"
# sink_fill = falseDimensionless.
Path
solver.sink_fill
More

Remove the drain from every cell sitting in a closed depression of the model top, by setting its DRN conductance to zero. A closed depression has no outlet, so water reaching it ponds instead of seeping into a stream, and a drain there invents a discharge point. The depressions are measured on the solver mesh, by a priority flood seeded on every cell water can leave the domain through; both MODFLOW backends read the same mask. This does NOT move the topography: no elevation is raised, no DEM is rewritten, and every other package sees the surface it would have seen. Refused when the mask cannot be built. The depressions are counted on the four shared faces MODFLOW connects, not on the eight neighbours a raster fill uses: the share of the mesh flagged is about twice as large on four faces as on eight neighbours, a factor that is the neighbourhood and nothing else. NOT SANCTIONED BY ANY SOURCE: no manual, no USGS document and no guideline removes a discharge boundary where a pit is detected, and measured here it degrades both scores. The remedy the USGS does document for the same question is solver.drain_band_depth_m, which gives every cell a discharge band instead of taking the drain away. Default false, which drains every cell as before.

Accepted
true | false
Example
false, true
# drain_band_depth_m = 0.0Metres. m
Path
solver.drain_band_depth_m
More

Depth D of the sub-cell discharge band every drain cell gets instead of a single elevation: the drain sits at top - D/2 and its conductance is multiplied by top_layer_thickness / D. The multiplier is the thickness and not the cell area because the conductance it scales is already Kv*A/b, so scaling by b/D gives Kv*A/D, which is CDRN exactly; scaling by A/D would give an m3/s where a conductance is m2/s, too high by A/b. The cell therefore starts discharging before the head reaches its mean elevation, and discharges harder the higher the head climbs into the band. This answers the one question the USGS documents about a model top, that the land inside a cell is not flat: UZF1 exposes the same depth as SURFDEP, 'the average undulation depth within a finite-difference cell', and MODFLOW 6 carries it into DRN as DDRN, with HDRN = land surface - DDRN/2 and CDRN = Kv*A/DDRN. MODFLOW 6 solves its DDRN band with a smooth (linear then cubic) curve; the option here is the piecewise equivalent of the same idea, applied identically by both MODFLOW backends, so a later switch to the native smooth form is a documented refinement and not a surprise. It does NOT move the topography: no elevation is raised, no DEM is rewritten, and every other package sees the surface it would have seen. The seepage criterion is the one reader that cannot: a banded cell discharges at top - D/2 and never climbs back to top, so the mask follows the band and the run persists D in its store for every figure drawn afterwards. It classifies no cell: every drain cell gets the same band, so nothing has to be sorted into artefact and real. Pick D the way Feinstein et al. 2020 (Groundwater 58:524-534, doi:10.1111/gwat.12931) do, from the standard deviation of the fine land-surface elevations inside a cell; they obtain 0.61 m. Mutually exclusive with solver.sink_fill, which answers the same question by removing drains instead. Default 0.0: one elevation per drain, unchanged from every earlier run.

Accepted
number
Unit
m
Example
0.0, 0.5
# drain_bed_thickness_m = 1.0Metres. m > 0 expert
Path
solver.drain_bed_thickness_m
More

Thickness of the drain BED in the fallback conductance C = K * cell_area / bed_thickness, used when no drainage conductance is declared. A drain bed is the clogging layer at the bottom of a watercourse, decimetres to a metre; it is NOT the aquifer, and the layer thickness this used to borrow (tens of metres) has no physical relation to it. The value matters because it sets how much head the drain itself imposes to pass the recharge: dh = R * bed_thickness / K, independent of the cell size. For R = 439 mm/yr, 30 m gives 4.17 m of head at K = 1e-7 m/s and makes the drain the limiting resistance over two decades of a [1e-7, 1e-3] search; 1 m gives 13.9 cm and 0.1 m gives 1.4 cm. In this method the drain is a seepage face, so it must never limit: K and the recharge decide where water surfaces, not the boundary condition. Proportionality to K is preserved either way, so the K/R invariance the network criterion rests on is untouched. The value 1.0 is a convention with no measured source: no measurement and no document gives it, and it is kept as it is so that no earlier result moves. It stays in [solver], whatever the layer of the other drain keys. Write your own value when you have a measure.

Accepted
number
Valid range
> 0 (refused outside)
Unit
m
Example
1.0, 0.5, 0.1
# drain_conductance_floor_m2_s = 1e-12m2/s. s > 0 expert
Path
solver.drain_conductance_floor_m2_s
More

Floor applied to every DRN conductance, whether declared or derived from hk. It exists for degenerate cells only, a zero-thickness or zero-conductivity cell whose formula would divide by zero or emit a zero-conductance drain MODFLOW reads as absent. It is not a physical choice and moving it does not tune anything: a real conductance on a real cell is many orders of magnitude above it. Raise it only to make a degenerate mesh audible.

Accepted
number
Valid range
> 0 (refused outside)
Unit
s

solver.backend backend “modflow6” “boussinesq” “linear_reservoir” “modflow6” “modflow_nwt” Flow solver of the run, by its registered name: MODFLOW 6, MODFLOW-NWT, Boussinesq or a plugin. A name this installation does not serve is refused with the names it serves. solver.sink_fill sink_fill false false true Dimensionless. Remove the drain from every cell sitting in a closed depression of the model top, by setting its DRN conductance to zero. A closed depression has no outlet, so water reaching it ponds instead of seeping into a stream, and a drain there invents a discharge point. The depressions are measured on the solver mesh, by a priority flood seeded on every cell water can leave the domain through; both MODFLOW backends read the same mask. This does NOT move the topography: no elevation is raised, no DEM is rewritten, and every other package sees the surface it would have seen. Refused when the mask cannot be built. The depressions are counted on the four shared faces MODFLOW connects, not on the eight neighbours a raster fill uses: the share of the mesh flagged is about twice as large on four faces as on eight neighbours, a factor that is the neighbourhood and nothing else. NOT SANCTIONED BY ANY SOURCE: no manual, no USGS document and no guideline removes a discharge boundary where a pit is detected, and measured here it degrades both scores. The remedy the USGS does document for the same question is solver.drain_band_depth_m, which gives every cell a discharge band instead of taking the drain away. Default false, which drains every cell as before. solver.drain_bed_thickness_m drain_bed_thickness_m 1.0 1.0 0.5 0.1 m Metres. Thickness of the drain BED in the fallback conductance C = K * cell_area / bed_thickness, used when no drainage conductance is declared. A drain bed is the clogging layer at the bottom of a watercourse, decimetres to a metre; it is NOT the aquifer, and the layer thickness this used to borrow (tens of metres) has no physical relation to it. The value matters because it sets how much head the drain itself imposes to pass the recharge: dh = R * bed_thickness / K, independent of the cell size. For R = 439 mm/yr, 30 m gives 4.17 m of head at K = 1e-7 m/s and makes the drain the limiting resistance over two decades of a [1e-7, 1e-3] search; 1 m gives 13.9 cm and 0.1 m gives 1.4 cm. In this method the drain is a seepage face, so it must never limit: K and the recharge decide where water surfaces, not the boundary condition. Proportionality to K is preserved either way, so the K/R invariance the network criterion rests on is untouched. The value 1.0 is a convention with no measured source: no measurement and no document gives it, and it is kept as it is so that no earlier result moves. It stays in [solver], whatever the layer of the other drain keys. Write your own value when you have a measure. solver.drain_conductance_floor_m2_s drain_conductance_floor_m2_s 1e-12 s m2/s. Floor applied to every DRN conductance, whether declared or derived from hk. It exists for degenerate cells only, a zero-thickness or zero-conductivity cell whose formula would divide by zero or emit a zero-conductance drain MODFLOW reads as absent. It is not a physical choice and moving it does not tune anything: a real conductance on a real cell is many orders of magnitude above it. Raise it only to make a degenerate mesh audible. solver.drain_band_depth_m drain_band_depth_m 0.0 0.0 0.5 m Metres. Depth D of the sub-cell discharge band every drain cell gets instead of a single elevation: the drain sits at top - D/2 and its conductance is multiplied by top_layer_thickness / D. The multiplier is the thickness and not the cell area because the conductance it scales is already Kv*A/b, so scaling by b/D gives Kv*A/D, which is CDRN exactly; scaling by A/D would give an m3/s where a conductance is m2/s, too high by A/b. The cell therefore starts discharging before the head reaches its mean elevation, and discharges harder the higher the head climbs into the band. This answers the one question the USGS documents about a model top, that the land inside a cell is not flat: UZF1 exposes the same depth as SURFDEP, ‘the average undulation depth within a finite-difference cell’, and MODFLOW 6 carries it into DRN as DDRN, with HDRN = land surface - DDRN/2 and CDRN = Kv*A/DDRN. MODFLOW 6 solves its DDRN band with a smooth (linear then cubic) curve; the option here is the piecewise equivalent of the same idea, applied identically by both MODFLOW backends, so a later switch to the native smooth form is a documented refinement and not a surprise. It does NOT move the topography: no elevation is raised, no DEM is rewritten, and every other package sees the surface it would have seen. The seepage criterion is the one reader that cannot: a banded cell discharges at top - D/2 and never climbs back to top, so the mask follows the band and the run persists D in its store for every figure drawn afterwards. It classifies no cell: every drain cell gets the same band, so nothing has to be sorted into artefact and real. Pick D the way Feinstein et al. 2020 (Groundwater 58:524-534, doi:10.1111/gwat.12931) do, from the standard deviation of the fine land-surface elevations inside a cell; they obtain 0.61 m. Mutually exclusive with solver.sink_fill, which answers the same question by removing drains instead. Default 0.0: one elevation per drain, unchanged from every earlier run.

[solver.linear_reservoir]#

What [solver.linear_reservoir] holds.

time_constant = ‹number or "<n> day"›Time constant of the reservoir, in days: how much of the water the state holds falls back in one time constant. required day > 0 calibrable · log
Path
solver.linear_reservoir.time_constant
More

A bare number reads in days; "30 days" also reads. Refused when omitted.

Accepted
number or "<n> day" (a bare number is read in the canonical unit)
Valid range
> 0 (refused outside)
Unit
day
Calibration
yes, search space log, sampling log_uniform, bounds belong to the site: write them in calibration.parameters.<name>.bounds

solver.linear_reservoir.time_constant time_constant day Time constant of the reservoir, in days: how much of the water the state holds falls back in one time constant. A bare number reads in days; “30 days” also reads. Refused when omitted.

[solver.boussinesq]#

How the Boussinesq solver runs its nonlinear solve.

[solver.boussinesq]
# backend = "auto"Engine the Boussinesq solver uses for its nonlinear solve. experimental
Path
solver.boussinesq.backend
More

'local' and 'scipy' build a dense matrix and run on at most 400 cells; 'scipy_sparse' and 'petsc' (it needs petsc4py) have no such limit. 'auto' runs 'local' up to 400 cells and 'scipy_sparse' above, and logs the choice. The MODFLOW solvers do not read it.

Values
  • "auto"
  • "local"
  • "scipy"
  • "scipy_sparse"
  • "petsc"
Accepted
"auto" | "local" | "scipy" | "scipy_sparse" | "petsc"
Example
"auto", "scipy_sparse"
Was
flow.runtime_backend
# partition_release_depth_m = 0.05Depth scale, in metres, of the regularized partition, the surface closure the Boussinesq solver uses by default on every engine but petsc. m > 0 experimental
Path
solver.boussinesq.partition_release_depth_m
More

A cell whose water table lies d metres below the land surface releases at the surface the share exp(-d / depth) of the water it receives, its lateral inflow plus its recharge and wells: all of it with the water table at the surface, 37 % at one depth scale, 2e-9 at 1 m with the default 0.05 m. It stands for the microtopography over which seepage starts, and smooths the onset of seepage for the Newton solve. A smaller value comes closer to the exact threshold of the complementarity closure and makes the solve stiffer. The other closures and the MODFLOW solvers do not read it.

Accepted
number
Valid range
> 0 (refused outside)
Unit
m
Example
0.05, 0.02
Was
flow.partition_release_depth_m
# surface_interaction_model = "auto"Optional Boussinesq surface-interaction closure selector. dev experimental if "complementarity" | "vi_obstacle" | "ts_vi_obstacle"
Path
solver.boussinesq.surface_interaction_model
More

'regularized_partition' uses the Marcais-style q_ex = G_r(theta) R(balance) law; 'complementarity' uses the mixed PETSc q_ex-perp-(z_top-h) formulation; 'vi_obstacle' uses the PETSc head-only VI obstacle formulation, and 'ts_vi_obstacle' the same one integrated by PETSc TS; 'auto' keeps the historical backend-dependent default.

Values
  • "auto"
  • "regularized_partition"
  • "complementarity"
  • "vi_obstacle"
  • "ts_vi_obstacle"
Accepted
"auto" | "regularized_partition" | "complementarity" | "vi_obstacle" | "ts_vi_obstacle"
Example
"auto", "regularized_partition"
Was
flow.surface_interaction_model
# max_iterations = ‹integer›Optional override for the nonlinear iteration budget used by the Boussinesq runtime backend. - dev experimental
Path
solver.boussinesq.max_iterations
Accepted
integer
Unit
-
Was
flow.runtime_max_iterations
# tol_residual_inf = ‹number›Optional override for the infinity-norm residual tolerance used by the Boussinesq runtime backend. dev experimental
Path
solver.boussinesq.tol_residual_inf
Accepted
number
Was
flow.runtime_tol_residual_inf
# tol_state_update_inf = ‹number›Optional override for the infinity-norm state-update tolerance used by Boussinesq backends that track it. dev experimental
Path
solver.boussinesq.tol_state_update_inf
Accepted
number
Was
flow.runtime_tol_state_update_inf
# vi_substeps_per_period = 1Fixed number of Backward-Euler substeps per time step for the PETSc VI obstacle runtime. - dev experimental
Path
solver.boussinesq.vi_substeps_per_period
More

A stress period holds simulation.time.substeps_per_period time steps. Rate-based forcing values are kept unchanged on each substep.

Accepted
integer
Unit
-
Was
flow.vi_substeps_per_period
# vi_substep_on_failure = falseWhen true, retry a failed PETSc VI obstacle time step with increasing substep counts. dev experimental
Path
solver.boussinesq.vi_substep_on_failure
Accepted
true | false
Was
flow.vi_substep_on_failure
# vi_max_adaptive_substeps = ‹integer›Maximum number of PETSc VI obstacle substeps allowed for adaptive failure retries. - dev experimental
Path
solver.boussinesq.vi_max_adaptive_substeps
Accepted
integer
Unit
-
Was
flow.vi_max_adaptive_substeps
# ts_vi_steps_per_period = 4Fixed PETSc TS Backward-Euler steps per time step for the TS VI obstacle runtime. - dev experimental
Path
solver.boussinesq.ts_vi_steps_per_period
More

A stress period holds simulation.time.substeps_per_period time steps.

Accepted
integer
Unit
-
Was
flow.ts_vi_steps_per_period
# ts_vi_adapt = falseEnable PETSc TS adaptivity for the TS VI obstacle runtime. dev experimental
Path
solver.boussinesq.ts_vi_adapt
Accepted
true | false
Was
flow.ts_vi_adapt
# ts_vi_dt_min_fraction = 0.015625Minimum TS VI step as a fraction of the time-step length. - dev experimental
Path
solver.boussinesq.ts_vi_dt_min_fraction
Accepted
number
Unit
-
Was
flow.ts_vi_dt_min_fraction
# ts_vi_dt_max_fraction = 0.25Maximum TS VI step as a fraction of the time-step length. - dev experimental
Path
solver.boussinesq.ts_vi_dt_max_fraction
Accepted
number
Unit
-
Was
flow.ts_vi_dt_max_fraction
# ts_vi_type = "beuler"PETSc TS type for the TS VI obstacle runtime. dev experimental
Path
solver.boussinesq.ts_vi_type
Accepted
string
Was
flow.ts_vi_type
# ts_vi_snes_type = "vinewtonrsls"PETSc SNES type for the TS VI obstacle runtime. dev experimental
Path
solver.boussinesq.ts_vi_snes_type
Accepted
string
Was
flow.ts_vi_snes_type
# exchange_mesh = ‹path›Folder of a catchment mesh bundle the Boussinesq solver reads its cells from. dev experimental
Path
solver.boussinesq.exchange_mesh
More

The bundle holds the geometry, the hydraulic conductivity and the storage coefficient of each cell, so it stands in for the cell mesh and the K and Sy profiles of the model, and a run that sets one of those next to it is refused. A relative path is read from the folder of the TOML file. It is a developer entry for the validation cases. A normal run leaves it unset and reads the cell mesh of its model.

Accepted
path
# wall_clock_limit_s = ‹number›Wall-clock budget (seconds) of one trial of a parallel calibration under this backend. s > 0 expert experimental
Path
solver.boussinesq.wall_clock_limit_s
More

Its worker is killed past it, so one stuck trial cannot wedge the session. None keeps the built-in default (14400 s).

Accepted
number
Valid range
> 0 (refused outside)
Unit
s

solver.boussinesq.backend backend “auto” auto local scipy scipy_sparse petsc “auto” “scipy_sparse” Engine the Boussinesq solver uses for its nonlinear solve. ‘local’ and ‘scipy’ build a dense matrix and run on at most 400 cells; ‘scipy_sparse’ and ‘petsc’ (it needs petsc4py) have no such limit. ‘auto’ runs ‘local’ up to 400 cells and ‘scipy_sparse’ above, and logs the choice. The MODFLOW solvers do not read it. solver.boussinesq.surface_interaction_model surface_interaction_model “auto” auto regularized_partition complementarity vi_obstacle ts_vi_obstacle “auto” “regularized_partition” Optional Boussinesq surface-interaction closure selector. ‘regularized_partition’ uses the Marcais-style q_ex = G_r(theta) R(balance) law; ‘complementarity’ uses the mixed PETSc q_ex-perp-(z_top-h) formulation; ‘vi_obstacle’ uses the PETSc head-only VI obstacle formulation, and ‘ts_vi_obstacle’ the same one integrated by PETSc TS; ‘auto’ keeps the historical backend-dependent default. solver.boussinesq.partition_release_depth_m partition_release_depth_m 0.05 0.05 0.02 m Depth scale, in metres, of the regularized partition, the surface closure the Boussinesq solver uses by default on every engine but petsc. A cell whose water table lies d metres below the land surface releases at the surface the share exp(-d / depth) of the water it receives, its lateral inflow plus its recharge and wells: all of it with the water table at the surface, 37 % at one depth scale, 2e-9 at 1 m with the default 0.05 m. It stands for the microtopography over which seepage starts, and smooths the onset of seepage for the Newton solve. A smaller value comes closer to the exact threshold of the complementarity closure and makes the solve stiffer. The other closures and the MODFLOW solvers do not read it. solver.boussinesq.max_iterations max_iterations not set - Optional override for the nonlinear iteration budget used by the Boussinesq runtime backend. solver.boussinesq.tol_residual_inf tol_residual_inf not set Optional override for the infinity-norm residual tolerance used by the Boussinesq runtime backend. solver.boussinesq.tol_state_update_inf tol_state_update_inf not set Optional override for the infinity-norm state-update tolerance used by Boussinesq backends that track it. solver.boussinesq.vi_substeps_per_period vi_substeps_per_period 1 - Fixed number of Backward-Euler substeps per time step for the PETSc VI obstacle runtime. A stress period holds simulation.time.substeps_per_period time steps. Rate-based forcing values are kept unchanged on each substep. solver.boussinesq.vi_substep_on_failure vi_substep_on_failure false When true, retry a failed PETSc VI obstacle time step with increasing substep counts. solver.boussinesq.vi_max_adaptive_substeps vi_max_adaptive_substeps not set - Maximum number of PETSc VI obstacle substeps allowed for adaptive failure retries. solver.boussinesq.ts_vi_steps_per_period ts_vi_steps_per_period 4 - Fixed PETSc TS Backward-Euler steps per time step for the TS VI obstacle runtime. A stress period holds simulation.time.substeps_per_period time steps. solver.boussinesq.ts_vi_adapt ts_vi_adapt false Enable PETSc TS adaptivity for the TS VI obstacle runtime. solver.boussinesq.ts_vi_dt_min_fraction ts_vi_dt_min_fraction 0.015625 - Minimum TS VI step as a fraction of the time-step length. solver.boussinesq.ts_vi_dt_max_fraction ts_vi_dt_max_fraction 0.25 - Maximum TS VI step as a fraction of the time-step length. solver.boussinesq.ts_vi_type ts_vi_type “beuler” PETSc TS type for the TS VI obstacle runtime. solver.boussinesq.ts_vi_snes_type ts_vi_snes_type “vinewtonrsls” PETSc SNES type for the TS VI obstacle runtime. solver.boussinesq.exchange_mesh exchange_mesh not set Folder of a catchment mesh bundle the Boussinesq solver reads its cells from. The bundle holds the geometry, the hydraulic conductivity and the storage coefficient of each cell, so it stands in for the cell mesh and the K and Sy profiles of the model, and a run that sets one of those next to it is refused. A relative path is read from the folder of the TOML file. It is a developer entry for the validation cases. A normal run leaves it unset and reads the cell mesh of its model. solver.boussinesq.wall_clock_limit_s wall_clock_limit_s not set s Wall-clock budget (seconds) of one trial of a parallel calibration under this backend. Its worker is killed past it, so one stuck trial cannot wedge the session. None keeps the built-in default (14400 s).

[solver.modflow6]#

Expert-level MODFLOW 6 configuration organized by concern.

[solver.modflow6.sgrid]#

Solver-facing grid configuration: how the top of the grid is sampled.

[solver.modflow6.sgrid.top_sampling]#

How the top of the solver grid is sampled from the DEM.

[solver.modflow6.sgrid.top_sampling]
# mode = "centroid"Top-sampling strategy.
Path
solver.modflow6.sgrid.top_sampling.mode
More

'centroid' samples the DEM at each cell generator, or resamples it to a structured grid (fast, the default). On a mesh that publishes a lateral offset for a river cell (the river runs through the cell but beside its centre, as where a contact line crosses it or two thalwegs share it), that cell takes the lowest DEM pixel it covers. 'zonal' reduces every DEM pixel inside a cell with per-class stats.

Values
  • "centroid"
  • "zonal"
Accepted
"centroid" | "zonal"
# hillslope_stat = "median"Zonal statistic over non-channel (hillslope) pixels inside a cell.
Path
solver.modflow6.sgrid.top_sampling.hillslope_stat
Values
  • "mean" : Averages every hillslope pixel in the cell to set its top elevation.
  • "median" : Uses the median hillslope pixel elevation, robust to outlier pixels.
  • "min" : Uses the lowest hillslope pixel elevation found inside the cell.
  • "max" : Uses the highest hillslope pixel elevation found inside the cell.
  • "p10" : Uses the 10th percentile of hillslope pixel elevations inside the cell.
  • "p25" : Uses the 25th percentile of hillslope pixel elevations inside the cell.
Accepted
"mean" | "median" | "min" | "max" | "p10" | "p25"
# channel_stat = "min"Zonal statistic over channel pixels inside a cell (thalweg-preserving; 'min' keeps the incised low).
Path
solver.modflow6.sgrid.top_sampling.channel_stat
Values
  • "min" : Uses the lowest channel pixel elevation, keeping the incised thalweg low.
  • "p10" : Uses the 10th percentile of channel pixel elevations, near the thalweg low.
  • "p25" : Uses the 25th percentile of channel pixel elevations, above the thalweg low.
  • "median" : Uses the median channel pixel elevation, less aggressive than the thalweg low.
  • "mean" : Averages channel pixel elevations, smoothing over the incised thalweg.
Accepted
"min" | "p10" | "p25" | "median" | "mean"
# channel_source = "streams_raster"Where channel pixels come from when mode='zonal'.
Path
solver.modflow6.sgrid.top_sampling.channel_source
More

'streams_raster' uses the delineated river-network raster reprojected onto the DEM grid; 'none' disables the channel class (every pixel is hillslope).

Values
  • "none"
  • "streams_raster"
Accepted
"none" | "streams_raster"
# channel_buffer_px = 0Dilate the channel pixel mask by this many pixels before reducing, to capture a channel that grazes a cell without a pixel centre on it. pixel >= 0 dev
Path
solver.modflow6.sgrid.top_sampling.channel_buffer_px
Accepted
integer
Valid range
>= 0 (refused outside)
Unit
pixel
# spike_guard_tol_m = 2.0Revert a hillslope cell's zonal value to the centroid sample when it deviates more than this many metres (guards nodata/edge spikes); channel cells are exempt since they are lowered on purpose. m >= 0 dev
Path
solver.modflow6.sgrid.top_sampling.spike_guard_tol_m
More

0 disables the guard.

Accepted
number
Valid range
>= 0 (refused outside)
Unit
m
# min_pixels = 3Minimum DEM pixels inside a cell to trust a hillslope zonal statistic; below this the cell falls back to the centroid sample. - > 0 dev
Path
solver.modflow6.sgrid.top_sampling.min_pixels
More

A channel cell uses its channel stat from a single thalweg pixel.

Accepted
integer
Valid range
> 0 (refused outside)
Unit
-
# min_thickness_m = 0.1Minimum column thickness (m) kept under a zonal top lowered by a channel or a crossing. m >= 0 dev
Path
solver.modflow6.sgrid.top_sampling.min_thickness_m
More

On a mesh of polygons the bottom of a cell whose lowered top leaves less than this, or less than a tenth of the column its centre sample gave, moves down with it and keeps the thickness of the cell-centre sample; on a regular grid the top is raised back instead.

Accepted
number
Valid range
>= 0 (refused outside)
Unit
m

solver.modflow6.sgrid.top_sampling.mode mode “centroid” centroid zonal Top-sampling strategy. ‘centroid’ samples the DEM at each cell generator, or resamples it to a structured grid (fast, the default). On a mesh that publishes a lateral offset for a river cell (the river runs through the cell but beside its centre, as where a contact line crosses it or two thalwegs share it), that cell takes the lowest DEM pixel it covers. ‘zonal’ reduces every DEM pixel inside a cell with per-class stats. solver.modflow6.sgrid.top_sampling.hillslope_stat hillslope_stat “median” mean median min max p10 p25 mean Averages every hillslope pixel in the cell to set its top elevation. median Uses the median hillslope pixel elevation, robust to outlier pixels. min Uses the lowest hillslope pixel elevation found inside the cell. max Uses the highest hillslope pixel elevation found inside the cell. p10 Uses the 10th percentile of hillslope pixel elevations inside the cell. p25 Uses the 25th percentile of hillslope pixel elevations inside the cell. Zonal statistic over non-channel (hillslope) pixels inside a cell. solver.modflow6.sgrid.top_sampling.channel_stat channel_stat “min” min p10 p25 median mean min Uses the lowest channel pixel elevation, keeping the incised thalweg low. p10 Uses the 10th percentile of channel pixel elevations, near the thalweg low. p25 Uses the 25th percentile of channel pixel elevations, above the thalweg low. median Uses the median channel pixel elevation, less aggressive than the thalweg low. mean Averages channel pixel elevations, smoothing over the incised thalweg. Zonal statistic over channel pixels inside a cell (thalweg-preserving; ‘min’ keeps the incised low). solver.modflow6.sgrid.top_sampling.channel_source channel_source “streams_raster” none streams_raster Where channel pixels come from when mode=’zonal’. ‘streams_raster’ uses the delineated river-network raster reprojected onto the DEM grid; ‘none’ disables the channel class (every pixel is hillslope). solver.modflow6.sgrid.top_sampling.channel_buffer_px channel_buffer_px 0 pixel Dilate the channel pixel mask by this many pixels before reducing, to capture a channel that grazes a cell without a pixel centre on it. solver.modflow6.sgrid.top_sampling.spike_guard_tol_m spike_guard_tol_m 2.0 m Revert a hillslope cell’s zonal value to the centroid sample when it deviates more than this many metres (guards nodata/edge spikes); channel cells are exempt since they are lowered on purpose. 0 disables the guard. solver.modflow6.sgrid.top_sampling.min_pixels min_pixels 3 - Minimum DEM pixels inside a cell to trust a hillslope zonal statistic; below this the cell falls back to the centroid sample. A channel cell uses its channel stat from a single thalweg pixel. solver.modflow6.sgrid.top_sampling.min_thickness_m min_thickness_m 0.1 m Minimum column thickness (m) kept under a zonal top lowered by a channel or a crossing. On a mesh of polygons the bottom of a cell whose lowered top leaves less than this, or less than a tenth of the column its centre sample gave, moves down with it and keeps the thickness of the cell-centre sample; on a regular grid the top is raised back instead.

[solver.modflow6.runtime] expert#

Expert runtime settings used to build and solve MODFLOW 6 packages.

[solver.modflow6.runtime]
# mf6_executable_name = "mf6"MODFLOW 6 executable name or absolute path. expert
Path
solver.modflow6.runtime.mf6_executable_name
Accepted
string
# ims_print_option = "NONE"IMS PRINT_OPTION. expert
Path
solver.modflow6.runtime.ims_print_option
More

'SUMMARY' adds one line per time step to the listing with the outer and inner iteration counts, which is the only way to tell an expensive iteration from too many of them. Deliberately NOT tied to mf_verbose: that switch also sets print_input and print_flows on the whole model, and on a run with one drain per cell those print every boundary flux at every step. 'NONE' by default; 'SUMMARY' costs a line per step.

Values
  • "NONE"
  • "SUMMARY"
  • "ALL" no explanation
Accepted
"NONE" | "SUMMARY" | "ALL"
# print_head = falseRe-print the whole head field, formatted as text, into the model listing at every output step. expert
Path
solver.modflow6.runtime.print_head
More

Nothing in the package reads it, and the binary head file already carries the same numbers. It costs DISK, not time: on a 25 m mesh of about 240 000 cells, 1826 daily steps wrote a listing of about 3 GB, but a one-variable-at-a-time probe put its effect on the solve at -0.4 per cent, inside the noise. Default false to stop producing the file, not to go faster. The listing keeps its budget summaries and its convergence reports either way, and Mf6ListBudget reads those.

Accepted
true | false
# save_specific_discharge = trueCompute and write the cell-by-cell Darcy velocity (DATA-SPDIS). expert
Path
solver.modflow6.runtime.save_specific_discharge
More

Required by particle tracking and by any velocity figure. The cost is the COMPUTATION, not the write: MODFLOW interpolates a velocity vector per cell at every step. Measured by changing this switch alone on a 25 m mesh of about 240 000 cells, it is about a fifth of the solve. A calibration that only scores a discharge series should turn it off.

Accepted
true | false
# save_saturation = trueCompute and write the cell saturation (DATA-SAT). expert
Path
solver.modflow6.runtime.save_saturation
More

Measured by changing this switch alone on a 25 m mesh of about 240 000 cells, it is about a tenth of the solve. Same reasoning as save_specific_discharge: the cost is the per-cell computation, and the two together are worth about a third.

Accepted
true | false
# mf6_runner = "subprocess"MODFLOW 6 solve dispatch: 'subprocess' runs the mf6 executable, 'api' drives libmf6 via the optional modflowapi package. expert
Path
solver.modflow6.runtime.mf6_runner
More

Both write the same simulation, so output extraction is identical.

Values
  • "subprocess"
  • "api"
Accepted
"subprocess" | "api"
# mf6_api_timeout_s = ‹number›Wall-clock budget (seconds) of one trial of a parallel calibration, whichever runner solves it; its worker is killed past it so one stuck trial cannot wedge the session. s > 0 expert
Path
solver.modflow6.runtime.mf6_api_timeout_s
More

None keeps the built-in default (14400 s).

Accepted
number
Valid range
> 0 (refused outside)
Unit
s
# mf6_ims_complexity = "COMPLEX"IMS complexity preset for MODFLOW 6: SIMPLE, MODERATE, or COMPLEX. expert
Path
solver.modflow6.runtime.mf6_ims_complexity
Values
  • "SIMPLE" no explanation
  • "MODERATE" no explanation
  • "COMPLEX" no explanation
Accepted
"SIMPLE" | "MODERATE" | "COMPLEX"
# mf_verbose = falseEnable verbose FloPy logging for MODFLOW 6 setup and execution. expert
Path
solver.modflow6.runtime.mf_verbose
Accepted
true | false
# mf6_outer_dvclose = 0.0001IMS outer-iteration head-change convergence criterion. > 0 expert
Path
solver.modflow6.runtime.mf6_outer_dvclose
Accepted
number
Valid range
> 0 (refused outside)
# mf6_inner_dvclose = 0.0001IMS inner-iteration head-change convergence criterion. > 0 expert
Path
solver.modflow6.runtime.mf6_inner_dvclose
Accepted
number
Valid range
> 0 (refused outside)
# mf6_outer_maximum = 500Maximum number of IMS outer iterations. - > 0 expert
Path
solver.modflow6.runtime.mf6_outer_maximum
Accepted
integer
Valid range
> 0 (refused outside)
Unit
-
# mf6_inner_maximum = 500Maximum number of IMS inner iterations. - > 0 expert
Path
solver.modflow6.runtime.mf6_inner_maximum
Accepted
integer
Valid range
> 0 (refused outside)
Unit
-
# mf6_inner_rclose = ‹number›IMS inner-iteration flow-residual closure (L^3/T in run units). > 0 expert
Path
solver.modflow6.runtime.mf6_inner_rclose
More

None keeps the complexity-preset default.

Accepted
number
Valid range
> 0 (refused outside)
# mf6_backtracking_number = ‹integer›IMS residual-reduction backtracking: maximum number of backtracking steps tried per outer iteration (BACKTRACKING_NUMBER). - >= 0 expert
Path
solver.modflow6.runtime.mf6_backtracking_number
More

Zero turns backtracking off. None keeps the complexity-preset default (20 for COMPLEX). Backtracking can stall the outer loop when a boundary package feeds flow back to another (DRN to MVR to SFR); setting 0 then often converges faster.

Accepted
integer
Valid range
>= 0 (refused outside)
Unit
-
# mf6_linear_acceleration = ‹"CG" | "BICGSTAB"›IMS linear acceleration: CG for symmetric matrices, BICGSTAB for the non-symmetric Newton formulation. expert
Path
solver.modflow6.runtime.mf6_linear_acceleration
More

None keeps the preset default.

Values
  • "CG" no explanation
  • "BICGSTAB" no explanation
Accepted
"CG" | "BICGSTAB"
# mf6_preconditioner_levels = ‹integer›IMS ILUT fill: entries kept per row of each incomplete factor. - > 0 expert
Path
solver.modflow6.runtime.mf6_preconditioner_levels
More

A fill as wide as the matrix band, with a zero drop tolerance, gives a complete factorization. None keeps the preset default (5 for COMPLEX).

Accepted
integer
Valid range
> 0 (refused outside)
Unit
-
# mf6_preconditioner_drop_tolerance = ‹number›IMS ILUT drop tolerance: factor entries below it are dropped. >= 0 expert
Path
solver.modflow6.runtime.mf6_preconditioner_drop_tolerance
More

Zero keeps every entry the fill allows. None keeps the preset default (1e-4 for COMPLEX).

Accepted
number
Valid range
>= 0 (refused outside)
# mf6_reordering_method = "none"IMS REORDERING_METHOD: order of the matrix rows before the incomplete factorization. expert
Path
solver.modflow6.runtime.mf6_reordering_method
More

'rcm' is reverse Cuthill-McKee, which narrows the band; 'md' is minimum degree, which limits the fill. 'none' keeps the cell numbering of the mesh and writes nothing to the IMS file. The ordering changes the preconditioner, so the iteration count and the time, not the converged heads beyond the closure criteria. Measured on Voronoi DISV meshes of 14 400 to 144 000 cells, with a shuffled or a row-sorted numbering, and on a steady Flume solve of 73 400 cells, 'rcm' and 'md' never cut the inner iterations (3 to 73 per cent more), and the time did not drop beyond the noise of a loaded machine.

Values
  • "none"
  • "rcm"
  • "md"
Accepted
"none" | "rcm" | "md"
# mf6_under_relaxation = ‹"NONE" | "SIMPLE" | "COOLEY" | "DBD"›IMS non-linear under-relaxation scheme. expert
Path
solver.modflow6.runtime.mf6_under_relaxation
More

DBD is recommended with Newton. None keeps the preset default.

Values
  • "NONE" no explanation
  • "SIMPLE" no explanation
  • "COOLEY" no explanation
  • "DBD" no explanation
Accepted
"NONE" | "SIMPLE" | "COOLEY" | "DBD"
# mf6_enable_rewet = ‹true | false›Enable NPF cell rewetting. expert
Path
solver.modflow6.runtime.mf6_enable_rewet
More

When left to None, HydroModPy keeps rewetting disabled unless explicitly enabled.

Accepted
true | false
# mf6_newton = trueEnable the MODFLOW 6 Newton-Raphson formulation. expert
Path
solver.modflow6.runtime.mf6_newton
More

Catchment cells are always convertible (unconfined), so Newton with under-relaxation is the robust default. Unlike MODFLOW-NWT, it builds the horizontal conductance from the full cell thickness times the upstream saturation. The grid MODFLOW 6 reads therefore has a computational top that gives every cell of the top layer the same thickness, so that this conductance is the one of NWT; the ground stays in every package and in the run store.

Accepted
true | false
# mf6_newton_under_relaxation = trueEnable MODFLOW 6 Newton under-relaxation when mf6_newton is true. expert
Path
solver.modflow6.runtime.mf6_newton_under_relaxation
Accepted
true | false
# mf6_ats = falseEnable MODFLOW 6 adaptive time stepping (ATS) on transient periods. expert
Path
solver.modflow6.runtime.mf6_ats
More

Each period starts at the step simulation.time.substeps_per_period asked for and MF6 subdivides below it only where the solver cannot converge (e.g. littoral wet/dry under Newton); it never grows past that step, so turning ATS on cannot coarsen a run. When on, OC saves per period end so the extraction still sees one record per period. Default off (baseline).

Accepted
true | false
# mf6_ats_dtmin_s = 60.0Minimum ATS time step in seconds (only used when mf6_ats is true). s > 0 expert
Path
solver.modflow6.runtime.mf6_ats_dtmin_s
Accepted
number
Valid range
> 0 (refused outside)
Unit
s
# mf6_enable_xt3d = ‹true | false›Enable MF6 NPF XT3D terms. expert
Path
solver.modflow6.runtime.mf6_enable_xt3d
More

When left to None, XT3D turns on where a consistent result needs it, with a RuntimeWarning: a tilted K tensor (a non-zero flow parameter angle2 or angle3, which MF6 reads only under XT3D), and a K22 different from K on a cell whose angle1 is not a multiple of 90 degrees, or anywhere on an unstructured mesh. Without XT3D the two-point flux drops the cross terms of such a tensor, and the head error does not shrink with refinement. XT3D also turns on, with an INFO log, on triangle cells and on a significantly non-orthogonal mesh. A structured grid with K along its axes, or an orthogonal mesh with K22 equal to K, keeps it off. XT3D costs from about 1.5 times the MF6 run time on one layer to about 10 times on ten layers. true turns it on without a warning; false turns it off, with a RuntimeWarning when a consistent result needs it.

Accepted
true | false
# mf6_rewet_wetfct = 0.1MF6 NPF rewet WETFCT factor. - > 0 expert
Path
solver.modflow6.runtime.mf6_rewet_wetfct
Accepted
number
Valid range
> 0 (refused outside)
Unit
-
# mf6_rewet_iwetit = 1MF6 NPF rewet IWETIT interval. - > 0 expert
Path
solver.modflow6.runtime.mf6_rewet_iwetit
Accepted
integer
Valid range
> 0 (refused outside)
Unit
-
# mf6_rewet_ihdwet = 0MF6 NPF rewet IHDWET flag. - expert
Path
solver.modflow6.runtime.mf6_rewet_ihdwet
Accepted
integer
Unit
-
# mf6_rewet_wetdry = 0.1MF6 NPF WETDRY threshold used when rewetting is active. > 0 expert
Path
solver.modflow6.runtime.mf6_rewet_wetdry
Accepted
number
Valid range
> 0 (refused outside)

solver.modflow6.runtime.mf6_executable_name mf6_executable_name “mf6” MODFLOW 6 executable name or absolute path. solver.modflow6.runtime.ims_print_option ims_print_option “NONE” NONE SUMMARY ALL IMS PRINT_OPTION. ‘SUMMARY’ adds one line per time step to the listing with the outer and inner iteration counts, which is the only way to tell an expensive iteration from too many of them. Deliberately NOT tied to mf_verbose: that switch also sets print_input and print_flows on the whole model, and on a run with one drain per cell those print every boundary flux at every step. ‘NONE’ by default; ‘SUMMARY’ costs a line per step. solver.modflow6.runtime.print_head print_head false Re-print the whole head field, formatted as text, into the model listing at every output step. Nothing in the package reads it, and the binary head file already carries the same numbers. It costs DISK, not time: on a 25 m mesh of about 240 000 cells, 1826 daily steps wrote a listing of about 3 GB, but a one-variable-at-a-time probe put its effect on the solve at -0.4 per cent, inside the noise. Default false to stop producing the file, not to go faster. The listing keeps its budget summaries and its convergence reports either way, and Mf6ListBudget reads those. solver.modflow6.runtime.save_specific_discharge save_specific_discharge true Compute and write the cell-by-cell Darcy velocity (DATA-SPDIS). Required by particle tracking and by any velocity figure. The cost is the COMPUTATION, not the write: MODFLOW interpolates a velocity vector per cell at every step. Measured by changing this switch alone on a 25 m mesh of about 240 000 cells, it is about a fifth of the solve. A calibration that only scores a discharge series should turn it off. solver.modflow6.runtime.save_saturation save_saturation true Compute and write the cell saturation (DATA-SAT). Measured by changing this switch alone on a 25 m mesh of about 240 000 cells, it is about a tenth of the solve. Same reasoning as save_specific_discharge: the cost is the per-cell computation, and the two together are worth about a third. solver.modflow6.runtime.mf6_runner mf6_runner “subprocess” subprocess api MODFLOW 6 solve dispatch: ‘subprocess’ runs the mf6 executable, ‘api’ drives libmf6 via the optional modflowapi package. Both write the same simulation, so output extraction is identical. solver.modflow6.runtime.mf6_api_timeout_s mf6_api_timeout_s not set s Wall-clock budget (seconds) of one trial of a parallel calibration, whichever runner solves it; its worker is killed past it so one stuck trial cannot wedge the session. None keeps the built-in default (14400 s). solver.modflow6.runtime.mf6_ims_complexity mf6_ims_complexity “COMPLEX” SIMPLE MODERATE COMPLEX IMS complexity preset for MODFLOW 6: SIMPLE, MODERATE, or COMPLEX. solver.modflow6.runtime.mf_verbose mf_verbose false Enable verbose FloPy logging for MODFLOW 6 setup and execution. solver.modflow6.runtime.mf6_outer_dvclose mf6_outer_dvclose 0.0001 IMS outer-iteration head-change convergence criterion. solver.modflow6.runtime.mf6_inner_dvclose mf6_inner_dvclose 0.0001 IMS inner-iteration head-change convergence criterion. solver.modflow6.runtime.mf6_outer_maximum mf6_outer_maximum 500 - Maximum number of IMS outer iterations. solver.modflow6.runtime.mf6_inner_maximum mf6_inner_maximum 500 - Maximum number of IMS inner iterations. solver.modflow6.runtime.mf6_inner_rclose mf6_inner_rclose not set IMS inner-iteration flow-residual closure (L^3/T in run units). None keeps the complexity-preset default. solver.modflow6.runtime.mf6_backtracking_number mf6_backtracking_number not set - IMS residual-reduction backtracking: maximum number of backtracking steps tried per outer iteration (BACKTRACKING_NUMBER). Zero turns backtracking off. None keeps the complexity-preset default (20 for COMPLEX). Backtracking can stall the outer loop when a boundary package feeds flow back to another (DRN to MVR to SFR); setting 0 then often converges faster. solver.modflow6.runtime.mf6_linear_acceleration mf6_linear_acceleration not set CG BICGSTAB IMS linear acceleration: CG for symmetric matrices, BICGSTAB for the non-symmetric Newton formulation. None keeps the preset default. solver.modflow6.runtime.mf6_preconditioner_levels mf6_preconditioner_levels not set - IMS ILUT fill: entries kept per row of each incomplete factor. A fill as wide as the matrix band, with a zero drop tolerance, gives a complete factorization. None keeps the preset default (5 for COMPLEX). solver.modflow6.runtime.mf6_preconditioner_drop_tolerance mf6_preconditioner_drop_tolerance not set IMS ILUT drop tolerance: factor entries below it are dropped. Zero keeps every entry the fill allows. None keeps the preset default (1e-4 for COMPLEX). solver.modflow6.runtime.mf6_reordering_method mf6_reordering_method “none” none rcm md IMS REORDERING_METHOD: order of the matrix rows before the incomplete factorization. ‘rcm’ is reverse Cuthill-McKee, which narrows the band; ‘md’ is minimum degree, which limits the fill. ‘none’ keeps the cell numbering of the mesh and writes nothing to the IMS file. The ordering changes the preconditioner, so the iteration count and the time, not the converged heads beyond the closure criteria. Measured on Voronoi DISV meshes of 14 400 to 144 000 cells, with a shuffled or a row-sorted numbering, and on a steady Flume solve of 73 400 cells, ‘rcm’ and ‘md’ never cut the inner iterations (3 to 73 per cent more), and the time did not drop beyond the noise of a loaded machine. solver.modflow6.runtime.mf6_under_relaxation mf6_under_relaxation not set NONE SIMPLE COOLEY DBD IMS non-linear under-relaxation scheme. DBD is recommended with Newton. None keeps the preset default. solver.modflow6.runtime.mf6_enable_rewet mf6_enable_rewet not set Enable NPF cell rewetting. When left to None, HydroModPy keeps rewetting disabled unless explicitly enabled. solver.modflow6.runtime.mf6_newton mf6_newton true Enable the MODFLOW 6 Newton-Raphson formulation. Catchment cells are always convertible (unconfined), so Newton with under-relaxation is the robust default. Unlike MODFLOW-NWT, it builds the horizontal conductance from the full cell thickness times the upstream saturation. The grid MODFLOW 6 reads therefore has a computational top that gives every cell of the top layer the same thickness, so that this conductance is the one of NWT; the ground stays in every package and in the run store. solver.modflow6.runtime.mf6_newton_under_relaxation mf6_newton_under_relaxation true Enable MODFLOW 6 Newton under-relaxation when mf6_newton is true. solver.modflow6.runtime.mf6_ats mf6_ats false Enable MODFLOW 6 adaptive time stepping (ATS) on transient periods. Each period starts at the step simulation.time.substeps_per_period asked for and MF6 subdivides below it only where the solver cannot converge (e.g. littoral wet/dry under Newton); it never grows past that step, so turning ATS on cannot coarsen a run. When on, OC saves per period end so the extraction still sees one record per period. Default off (baseline). solver.modflow6.runtime.mf6_ats_dtmin_s mf6_ats_dtmin_s 60.0 s Minimum ATS time step in seconds (only used when mf6_ats is true). solver.modflow6.runtime.mf6_enable_xt3d mf6_enable_xt3d not set Enable MF6 NPF XT3D terms. When left to None, XT3D turns on where a consistent result needs it, with a RuntimeWarning: a tilted K tensor (a non-zero flow parameter angle2 or angle3, which MF6 reads only under XT3D), and a K22 different from K on a cell whose angle1 is not a multiple of 90 degrees, or anywhere on an unstructured mesh. Without XT3D the two-point flux drops the cross terms of such a tensor, and the head error does not shrink with refinement. XT3D also turns on, with an INFO log, on triangle cells and on a significantly non-orthogonal mesh. A structured grid with K along its axes, or an orthogonal mesh with K22 equal to K, keeps it off. XT3D costs from about 1.5 times the MF6 run time on one layer to about 10 times on ten layers. true turns it on without a warning; false turns it off, with a RuntimeWarning when a consistent result needs it. solver.modflow6.runtime.mf6_rewet_wetfct mf6_rewet_wetfct 0.1 - MF6 NPF rewet WETFCT factor. solver.modflow6.runtime.mf6_rewet_iwetit mf6_rewet_iwetit 1 - MF6 NPF rewet IWETIT interval. solver.modflow6.runtime.mf6_rewet_ihdwet mf6_rewet_ihdwet 0 - MF6 NPF rewet IHDWET flag. solver.modflow6.runtime.mf6_rewet_wetdry mf6_rewet_wetdry 0.1 MF6 NPF WETDRY threshold used when rewetting is active.

[solver.modflow6.process_specific] expert#

Process-specific parameters used by selected MODFLOW 6 packages.

[solver.modflow6.process_specific]
# vka = 1.0Uniform vertical anisotropy ratio kh/kv (dimensionless, > 0); k33 = k / vka. - > 0 calibrable · log expert
Path
solver.modflow6.process_specific.vka
More

Default 1.0 is vertically isotropic. For spatial control declare a per-cell 'Kv' flow parameter instead, which is mutually exclusive with a non-unit vka and is a direct conductivity, never a mode-switched value. Vertical anisotropy is grid-aligned and needs no XT3D. The rest of the tensor is set by the flow parameters 'K22', 'angle1', 'angle2' and 'angle3'; a tilt, or a K22 off the grid axes, turns XT3D on.

Accepted
number
Valid range
> 0 (refused outside)
Unit
-
Calibration
yes, search space log, sampling log_uniform, bounds belong to the site: write them in calibration.parameters.<name>.bounds
# evt_extinction_depth = 1.0Meters; extinction depth for the EVT sink used when recharge negatives are routed to EVT. m > 0 expert
Path
solver.modflow6.process_specific.evt_extinction_depth
More

The routed deficit tapers linearly from the cell top to this depth and stops below it, so a sustained climatic deficit can saturate near this value.

Accepted
number
Valid range
> 0 (refused outside)
Unit
m
# lak_forcing_mode = "auto"How time-varying LAK forcings are written. expert
Path
solver.modflow6.process_specific.lak_forcing_mode
More

'inline' expands values into the LAK PERIOD block, emitting one row per stress period whenever the value changes. 'ts6' always routes non-constant forcings to external MF6 TS6 files. 'auto' keeps constant/short forcings inline and routes only genuinely long series (nper > ts6_min_periods) to TS6.

Values
  • "auto"
  • "inline"
  • "ts6"
Accepted
"auto" | "inline" | "ts6"
# ts6_min_periods = 120Period count above which 'auto' mode offloads a non-constant LAK forcing to a TS6 file. - > 0 expert
Path
solver.modflow6.process_specific.ts6_min_periods
Accepted
integer
Valid range
> 0 (refused outside)
Unit
-

solver.modflow6.process_specific.vka vka 1.0 - Uniform vertical anisotropy ratio kh/kv (dimensionless, > 0); k33 = k / vka. Default 1.0 is vertically isotropic. For spatial control declare a per-cell ‘Kv’ flow parameter instead, which is mutually exclusive with a non-unit vka and is a direct conductivity, never a mode-switched value. Vertical anisotropy is grid-aligned and needs no XT3D. The rest of the tensor is set by the flow parameters ‘K22’, ‘angle1’, ‘angle2’ and ‘angle3’; a tilt, or a K22 off the grid axes, turns XT3D on. solver.modflow6.process_specific.evt_extinction_depth evt_extinction_depth 1.0 m Meters; extinction depth for the EVT sink used when recharge negatives are routed to EVT. The routed deficit tapers linearly from the cell top to this depth and stops below it, so a sustained climatic deficit can saturate near this value. solver.modflow6.process_specific.lak_forcing_mode lak_forcing_mode “auto” auto inline ts6 How time-varying LAK forcings are written. ‘inline’ expands values into the LAK PERIOD block, emitting one row per stress period whenever the value changes. ‘ts6’ always routes non-constant forcings to external MF6 TS6 files. ‘auto’ keeps constant/short forcings inline and routes only genuinely long series (nper > ts6_min_periods) to TS6. solver.modflow6.process_specific.ts6_min_periods ts6_min_periods 120 - Period count above which ‘auto’ mode offloads a non-constant LAK forcing to a TS6 file.

[solver.modflow_nwt]#

Expert-level MODFLOW configuration organized by concern.

[solver.modflow_nwt]
# wall_clock_limit_s = ‹number›Wall-clock budget (seconds) of one trial of a parallel calibration under this backend. s > 0 expert
Path
solver.modflow_nwt.wall_clock_limit_s
More

Its worker is killed past it, so one stuck trial cannot wedge the session. None keeps the built-in default (14400 s).

Accepted
number
Valid range
> 0 (refused outside)
Unit
s

solver.modflow_nwt.wall_clock_limit_s wall_clock_limit_s not set s Wall-clock budget (seconds) of one trial of a parallel calibration under this backend. Its worker is killed past it, so one stuck trial cannot wedge the session. None keeps the built-in default (14400 s).

[solver.modflow_nwt.sgrid]#

Solver-facing grid configuration: how the top of the grid is sampled.

[solver.modflow_nwt.sgrid.top_sampling]#

How the top of the solver grid is sampled from the DEM.

[solver.modflow_nwt.sgrid.top_sampling]
# mode = "centroid"Top-sampling strategy.
Path
solver.modflow_nwt.sgrid.top_sampling.mode
More

'centroid' samples the DEM at each cell generator, or resamples it to a structured grid (fast, the default). On a mesh that publishes a lateral offset for a river cell (the river runs through the cell but beside its centre, as where a contact line crosses it or two thalwegs share it), that cell takes the lowest DEM pixel it covers. 'zonal' reduces every DEM pixel inside a cell with per-class stats.

Values
  • "centroid"
  • "zonal"
Accepted
"centroid" | "zonal"
# hillslope_stat = "median"Zonal statistic over non-channel (hillslope) pixels inside a cell.
Path
solver.modflow_nwt.sgrid.top_sampling.hillslope_stat
Values
  • "mean" : Averages every hillslope pixel in the cell to set its top elevation.
  • "median" : Uses the median hillslope pixel elevation, robust to outlier pixels.
  • "min" : Uses the lowest hillslope pixel elevation found inside the cell.
  • "max" : Uses the highest hillslope pixel elevation found inside the cell.
  • "p10" : Uses the 10th percentile of hillslope pixel elevations inside the cell.
  • "p25" : Uses the 25th percentile of hillslope pixel elevations inside the cell.
Accepted
"mean" | "median" | "min" | "max" | "p10" | "p25"
# channel_stat = "min"Zonal statistic over channel pixels inside a cell (thalweg-preserving; 'min' keeps the incised low).
Path
solver.modflow_nwt.sgrid.top_sampling.channel_stat
Values
  • "min" : Uses the lowest channel pixel elevation, keeping the incised thalweg low.
  • "p10" : Uses the 10th percentile of channel pixel elevations, near the thalweg low.
  • "p25" : Uses the 25th percentile of channel pixel elevations, above the thalweg low.
  • "median" : Uses the median channel pixel elevation, less aggressive than the thalweg low.
  • "mean" : Averages channel pixel elevations, smoothing over the incised thalweg.
Accepted
"min" | "p10" | "p25" | "median" | "mean"
# channel_source = "streams_raster"Where channel pixels come from when mode='zonal'.
Path
solver.modflow_nwt.sgrid.top_sampling.channel_source
More

'streams_raster' uses the delineated river-network raster reprojected onto the DEM grid; 'none' disables the channel class (every pixel is hillslope).

Values
  • "none"
  • "streams_raster"
Accepted
"none" | "streams_raster"
# channel_buffer_px = 0Dilate the channel pixel mask by this many pixels before reducing, to capture a channel that grazes a cell without a pixel centre on it. pixel >= 0 dev
Path
solver.modflow_nwt.sgrid.top_sampling.channel_buffer_px
Accepted
integer
Valid range
>= 0 (refused outside)
Unit
pixel
# spike_guard_tol_m = 2.0Revert a hillslope cell's zonal value to the centroid sample when it deviates more than this many metres (guards nodata/edge spikes); channel cells are exempt since they are lowered on purpose. m >= 0 dev
Path
solver.modflow_nwt.sgrid.top_sampling.spike_guard_tol_m
More

0 disables the guard.

Accepted
number
Valid range
>= 0 (refused outside)
Unit
m
# min_pixels = 3Minimum DEM pixels inside a cell to trust a hillslope zonal statistic; below this the cell falls back to the centroid sample. - > 0 dev
Path
solver.modflow_nwt.sgrid.top_sampling.min_pixels
More

A channel cell uses its channel stat from a single thalweg pixel.

Accepted
integer
Valid range
> 0 (refused outside)
Unit
-
# min_thickness_m = 0.1Minimum column thickness (m) kept under a zonal top lowered by a channel or a crossing. m >= 0 dev
Path
solver.modflow_nwt.sgrid.top_sampling.min_thickness_m
More

On a mesh of polygons the bottom of a cell whose lowered top leaves less than this, or less than a tenth of the column its centre sample gave, moves down with it and keeps the thickness of the cell-centre sample; on a regular grid the top is raised back instead.

Accepted
number
Valid range
>= 0 (refused outside)
Unit
m

solver.modflow_nwt.sgrid.top_sampling.mode mode “centroid” centroid zonal Top-sampling strategy. ‘centroid’ samples the DEM at each cell generator, or resamples it to a structured grid (fast, the default). On a mesh that publishes a lateral offset for a river cell (the river runs through the cell but beside its centre, as where a contact line crosses it or two thalwegs share it), that cell takes the lowest DEM pixel it covers. ‘zonal’ reduces every DEM pixel inside a cell with per-class stats. solver.modflow_nwt.sgrid.top_sampling.hillslope_stat hillslope_stat “median” mean median min max p10 p25 mean Averages every hillslope pixel in the cell to set its top elevation. median Uses the median hillslope pixel elevation, robust to outlier pixels. min Uses the lowest hillslope pixel elevation found inside the cell. max Uses the highest hillslope pixel elevation found inside the cell. p10 Uses the 10th percentile of hillslope pixel elevations inside the cell. p25 Uses the 25th percentile of hillslope pixel elevations inside the cell. Zonal statistic over non-channel (hillslope) pixels inside a cell. solver.modflow_nwt.sgrid.top_sampling.channel_stat channel_stat “min” min p10 p25 median mean min Uses the lowest channel pixel elevation, keeping the incised thalweg low. p10 Uses the 10th percentile of channel pixel elevations, near the thalweg low. p25 Uses the 25th percentile of channel pixel elevations, above the thalweg low. median Uses the median channel pixel elevation, less aggressive than the thalweg low. mean Averages channel pixel elevations, smoothing over the incised thalweg. Zonal statistic over channel pixels inside a cell (thalweg-preserving; ‘min’ keeps the incised low). solver.modflow_nwt.sgrid.top_sampling.channel_source channel_source “streams_raster” none streams_raster Where channel pixels come from when mode=’zonal’. ‘streams_raster’ uses the delineated river-network raster reprojected onto the DEM grid; ‘none’ disables the channel class (every pixel is hillslope). solver.modflow_nwt.sgrid.top_sampling.channel_buffer_px channel_buffer_px 0 pixel Dilate the channel pixel mask by this many pixels before reducing, to capture a channel that grazes a cell without a pixel centre on it. solver.modflow_nwt.sgrid.top_sampling.spike_guard_tol_m spike_guard_tol_m 2.0 m Revert a hillslope cell’s zonal value to the centroid sample when it deviates more than this many metres (guards nodata/edge spikes); channel cells are exempt since they are lowered on purpose. 0 disables the guard. solver.modflow_nwt.sgrid.top_sampling.min_pixels min_pixels 3 - Minimum DEM pixels inside a cell to trust a hillslope zonal statistic; below this the cell falls back to the centroid sample. A channel cell uses its channel stat from a single thalweg pixel. solver.modflow_nwt.sgrid.top_sampling.min_thickness_m min_thickness_m 0.1 m Minimum column thickness (m) kept under a zonal top lowered by a channel or a crossing. On a mesh of polygons the bottom of a cell whose lowered top leaves less than this, or less than a tenth of the column its centre sample gave, moves down with it and keeps the thickness of the cell-centre sample; on a regular grid the top is raised back instead.

[solver.modflow_nwt.runtime] expert#

Expert runtime settings grouped by MODFLOW-NWT package.

[solver.modflow_nwt.runtime.nwt] expert#

MODFLOW-NWT solver package settings.

[solver.modflow_nwt.runtime.nwt]
# version = "mfnwt"MODFLOW executable/version identifier passed to FloPy. expert
Path
solver.modflow_nwt.runtime.nwt.version
Accepted
string
# listunit = 2Fortran unit number used for the MODFLOW list file. - expert
Path
solver.modflow_nwt.runtime.nwt.listunit
Accepted
integer
Unit
-
# verbose = falseEnable verbose FloPy logging for model setup. expert
Path
solver.modflow_nwt.runtime.nwt.verbose
Accepted
true | false
# headtol = 0.0001Head closure criterion for the NWT nonlinear solver. expert
Path
solver.modflow_nwt.runtime.nwt.headtol
Accepted
number
# fluxtol = 0.005787037037037037Flux closure criterion of the NWT nonlinear solver, in m3/s: HydroModPy writes MODFLOW-NWT in seconds. m3/s expert
Path
solver.modflow_nwt.runtime.nwt.fluxtol
More

The default is the 500 m3/day of the NWT manual. A value of 500 here would be 500 m3/s, a bound no model reaches.

Accepted
number
Unit
m3/s
# maxiterout = 5000Maximum outer nonlinear iterations in the NWT solver. - expert
Path
solver.modflow_nwt.runtime.nwt.maxiterout
Accepted
integer
Unit
-
# thickfact = 1e-05Fraction of the cell thickness over which MODFLOW-NWT smooths the saturated thickness, and so the conductance and the storage, to zero near the bottom and the top of a cell (THICKFACT of the NWT package). - [0, 0.5[ expert
Path
solver.modflow_nwt.runtime.nwt.thickfact
More

Dimensionless.

Accepted
number
Valid range
[0, 0.5[ (refused outside)
Unit
-
# linmeth = 2Linear solver of MODFLOW-NWT: 1 for GMRES, 2 for chi-MD. chi-MD is the default: on a stiff recession GMRES stops reducing the residual and NWT then accepts a frozen head as converged, with a budget off by 200 per cent. - expert
Path
solver.modflow_nwt.runtime.nwt.linmeth
Accepted
integer
Unit
-
# iprnwt = 1NWT print flag controlling iteration diagnostics in listing outputs. - expert
Path
solver.modflow_nwt.runtime.nwt.iprnwt
Accepted
integer
Unit
-
# ibotav = 1NWT option for averaging saturated thickness at the cell bottom. - expert
Path
solver.modflow_nwt.runtime.nwt.ibotav
Accepted
integer
Unit
-
# options = "MODERATE"Preset of the NWT nonlinear solver and of its linear solver: SIMPLE, MODERATE or COMPLEX. expert
Path
solver.modflow_nwt.runtime.nwt.options
More

MODERATE is the default: under chi-MD, COMPLEX runs BiCGSTAB on a level-15 incomplete factorization, which diverged at the first solve of a ten-layer catchment model.

Accepted
string
# continue_run = falseIf true, continue NWT iterations on partially converged stress periods. expert
Path
solver.modflow_nwt.runtime.nwt.continue_run
Accepted
true | false
# backflag = 0NWT backtracking activation flag. - expert
Path
solver.modflow_nwt.runtime.nwt.backflag
Accepted
integer
Unit
-
# stoptol = 1e-10NWT backtracking stopping tolerance. expert
Path
solver.modflow_nwt.runtime.nwt.stoptol
Accepted
number

solver.modflow_nwt.runtime.nwt.version version “mfnwt” MODFLOW executable/version identifier passed to FloPy. solver.modflow_nwt.runtime.nwt.listunit listunit 2 - Fortran unit number used for the MODFLOW list file. solver.modflow_nwt.runtime.nwt.verbose verbose false Enable verbose FloPy logging for model setup. solver.modflow_nwt.runtime.nwt.headtol headtol 0.0001 Head closure criterion for the NWT nonlinear solver. solver.modflow_nwt.runtime.nwt.fluxtol fluxtol 0.005787037037037037 m3/s Flux closure criterion of the NWT nonlinear solver, in m3/s: HydroModPy writes MODFLOW-NWT in seconds. The default is the 500 m3/day of the NWT manual. A value of 500 here would be 500 m3/s, a bound no model reaches. solver.modflow_nwt.runtime.nwt.maxiterout maxiterout 5000 - Maximum outer nonlinear iterations in the NWT solver. solver.modflow_nwt.runtime.nwt.thickfact thickfact 1e-05 - Fraction of the cell thickness over which MODFLOW-NWT smooths the saturated thickness, and so the conductance and the storage, to zero near the bottom and the top of a cell (THICKFACT of the NWT package). Dimensionless. solver.modflow_nwt.runtime.nwt.linmeth linmeth 2 - Linear solver of MODFLOW-NWT: 1 for GMRES, 2 for chi-MD. chi-MD is the default: on a stiff recession GMRES stops reducing the residual and NWT then accepts a frozen head as converged, with a budget off by 200 per cent. solver.modflow_nwt.runtime.nwt.iprnwt iprnwt 1 - NWT print flag controlling iteration diagnostics in listing outputs. solver.modflow_nwt.runtime.nwt.ibotav ibotav 1 - NWT option for averaging saturated thickness at the cell bottom. solver.modflow_nwt.runtime.nwt.options options “MODERATE” Preset of the NWT nonlinear solver and of its linear solver: SIMPLE, MODERATE or COMPLEX. MODERATE is the default: under chi-MD, COMPLEX runs BiCGSTAB on a level-15 incomplete factorization, which diverged at the first solve of a ten-layer catchment model. solver.modflow_nwt.runtime.nwt.continue_run continue_run false If true, continue NWT iterations on partially converged stress periods. solver.modflow_nwt.runtime.nwt.backflag backflag 0 - NWT backtracking activation flag. solver.modflow_nwt.runtime.nwt.stoptol stoptol 1e-10 NWT backtracking stopping tolerance.

[solver.modflow_nwt.runtime.dis] expert#

DIS package settings.

[solver.modflow_nwt.runtime.dis]
# itmuni = 0DIS time unit code (ITMUNI). - dev
Path
solver.modflow_nwt.runtime.dis.itmuni
More

Recorded, not obeyed: the launcher writes seconds because [simulation.time] already materializes every period length in seconds, so the run is in seconds whatever this says.

Accepted
integer
Unit
-

solver.modflow_nwt.runtime.dis.itmuni itmuni 0 - DIS time unit code (ITMUNI). Recorded, not obeyed: the launcher writes seconds because [simulation.time] already materializes every period length in seconds, so the run is in seconds whatever this says.

[solver.modflow_nwt.runtime.bas] expert#

BAS package settings.

[solver.modflow_nwt.runtime.bas]
# hnoflo = -9999.0BAS no-flow head sentinel value (HNOFLO). expert
Path
solver.modflow_nwt.runtime.bas.hnoflo
Accepted
number

solver.modflow_nwt.runtime.bas.hnoflo hnoflo -9999.0 BAS no-flow head sentinel value (HNOFLO).

[solver.modflow_nwt.runtime.upw] expert#

UPW package settings.

[solver.modflow_nwt.runtime.upw]
# iphdry = 1UPW dry-cell head output flag (IPHDRY). - expert
Path
solver.modflow_nwt.runtime.upw.iphdry
Accepted
integer
Unit
-
# hdry = -100.0UPW dry-cell head value (HDRY). expert
Path
solver.modflow_nwt.runtime.upw.hdry
Accepted
number
# layvka = 1UPW flag controlling VKA interpretation per layer (LAYVKA). - expert
Path
solver.modflow_nwt.runtime.upw.layvka
Accepted
integer
Unit
-

solver.modflow_nwt.runtime.upw.iphdry iphdry 1 - UPW dry-cell head output flag (IPHDRY). solver.modflow_nwt.runtime.upw.hdry hdry -100.0 UPW dry-cell head value (HDRY). solver.modflow_nwt.runtime.upw.layvka layvka 1 - UPW flag controlling VKA interpretation per layer (LAYVKA).

[solver.modflow_nwt.runtime.evt] expert#

EVT package settings.

[solver.modflow_nwt.runtime.evt]
# nevtop = 3EVT option code that defines how ET extinction depth is applied (NEVTOP). - expert
Path
solver.modflow_nwt.runtime.evt.nevtop
Accepted
integer
Unit
-
# ievt = 1EVT integer array selector used when NEVTOP requires layer indices (IEVT). - expert
Path
solver.modflow_nwt.runtime.evt.ievt
Accepted
integer
Unit
-
# ipakcb = 1EVT cell-by-cell budget output flag (IPAKCB). - expert
Path
solver.modflow_nwt.runtime.evt.ipakcb
Accepted
integer
Unit
-

solver.modflow_nwt.runtime.evt.nevtop nevtop 3 - EVT option code that defines how ET extinction depth is applied (NEVTOP). solver.modflow_nwt.runtime.evt.ievt ievt 1 - EVT integer array selector used when NEVTOP requires layer indices (IEVT). solver.modflow_nwt.runtime.evt.ipakcb ipakcb 1 - EVT cell-by-cell budget output flag (IPAKCB).

[solver.modflow_nwt.runtime.oc] expert#

OC package settings.

[solver.modflow_nwt.runtime.oc]
# compact = trueEnable compact budget format in OC outputs. expert
Path
solver.modflow_nwt.runtime.oc.compact
Accepted
true | false

solver.modflow_nwt.runtime.oc.compact compact true Enable compact budget format in OC outputs.

[solver.modflow_nwt.runtime.wel] expert#

WEL package settings.

[solver.modflow_nwt.runtime.wel]
# ipakcb = 1WEL cell-by-cell budget output flag (IPAKCB). - expert
Path
solver.modflow_nwt.runtime.wel.ipakcb
Accepted
integer
Unit
-

solver.modflow_nwt.runtime.wel.ipakcb ipakcb 1 - WEL cell-by-cell budget output flag (IPAKCB).

[solver.modflow_nwt.runtime.lmt] expert#

LMT package settings.

[solver.modflow_nwt.runtime.lmt]
# output_file_name = "mt3d_link.ftl"LMT output filename used to couple MODFLOW to MT3DMS. expert
Path
solver.modflow_nwt.runtime.lmt.output_file_name
Accepted
string
# extension = "lmt8"LMT package filename extension. expert
Path
solver.modflow_nwt.runtime.lmt.extension
Accepted
string
# output_format = "unformatted"LMT file format (typically 'formatted' or 'unformatted'). expert
Path
solver.modflow_nwt.runtime.lmt.output_format
Accepted
string

solver.modflow_nwt.runtime.lmt.output_file_name output_file_name “mt3d_link.ftl” LMT output filename used to couple MODFLOW to MT3DMS. solver.modflow_nwt.runtime.lmt.extension extension “lmt8” LMT package filename extension. solver.modflow_nwt.runtime.lmt.output_format output_format “unformatted” LMT file format (typically ‘formatted’ or ‘unformatted’).

[solver.modflow_nwt.process_specific] expert#

Process-specific parameters used by selected MODFLOW packages.

[solver.modflow_nwt.process_specific]
# vka = 1.0Vertical hydraulic conductivity control passed to the UPW package (VKA). - expert
Path
solver.modflow_nwt.process_specific.vka
Accepted
number
Unit
-
# exdp = 1.0Extinction depth (metres) used by the EVT package (EXDP). m > 0 expert
Path
solver.modflow_nwt.process_specific.exdp
More

Accepts inline units, e.g. '1 m', '50 cm'.

Accepted
number or "<n> m" (a bare number is read in the canonical unit)
Valid range
> 0 (refused outside)
Unit
m

solver.modflow_nwt.process_specific.vka vka 1.0 - Vertical hydraulic conductivity control passed to the UPW package (VKA). solver.modflow_nwt.process_specific.exdp exdp 1.0 m Extinction depth (metres) used by the EVT package (EXDP). Accepts inline units, e.g. ‘1 m’, ‘50 cm’.