hydromodpy.solver.boussinesq.assembly.inputs#

Input-normalization helpers for Boussinesq assembly and Jacobians.

Functions

apply_prescribed_head_to_cells(head_m, *, ...)

Overwrite prescribed cells with their Dirichlet value.

as_cell_vector(values, *, n_cells, label)

Return one cell-aligned vector from a scalar, array or missing payload.

as_edge_vector(values, *, n_edges, label)

Return one edge-aligned vector from an optional array payload.

as_prescribed_head_cell_vector(values, *, ...)

Return one cell-aligned prescribed-head vector with NaN on free cells.

finalize_boundary_constrained_residual(*, ...)

Return solver, flux and head-constraint residual blocks.

resolve_boundary_head_inputs(mesh, *, head_m)

Normalize the two supported Dirichlet representations to one internal view.