hydromodpy.solver.modflow6.build#

MODFLOW 6 pre_processing: flopy package wiring and grid template helpers.

Functions

apply_preprocess_options(model[, options])

Apply preprocess options on the model (mutating).

ensure_solver_routing_context(model)

Build hydrologic routing rasters aligned with the solver grid.

guard_newton_linear_acceleration(runtime)

Reject CG linear acceleration under Newton: the Newton formulation builds a non-symmetric Jacobian, which the conjugate-gradient solver (symmetric matrices only) cannot solve.

guard_newton_rewet(runtime, rewet_record)

Reject NEWTON + REWET: MF6 forbids rewetting under the Newton formulation, which uses continuous upstream weighting.

log_xt3d_resolution(model[, solver_mesh])

Log the resolved XT3D mode.

mf6_output_name(model[, extension])

Return an output file stem that keeps MF6 paths usable on Windows.

mf6_safe_name(name[, max_len])

Return a safe MODFLOW 6 model name, hashed when longer than max_len.

newton_options(runtime)

Return MF6 GWF newtonoptions.

optional_ims_kwargs(runtime)

Return the optional IMS knobs that are set; None values keep flopy presets.

resolve_flow_regime(model)

Resolve the flow regime label from the bound flow config.

resolve_ims_complexity_for(model[, solver_mesh])

Return the resolved IMS complexity.

resolve_xt3d_options(model[, solver_mesh])

Return FloPy NPF XT3D options.

run_pre_processing(model, flow, domain[, ...])

Run MODFLOW 6 pre_processing: assemble flopy packages and discretizations.

select_active_dem(model, box)

Select the DEM raster to use according to the box option.

validate_pre_processing_inputs(model)

Validate that flow, domain and time grid are configured for pre_processing.

write_solver_grid_template(model)

Write a solver-grid template raster for structured grids.

xt3d_mode(model[, solver_mesh])

Return the XT3D activation mode.

xt3d_requested(model)

Return the configured XT3D override.