hydromodpy.solver.initial_conditions#

Shared helpers for solver head initial-condition resolution.

Functions

build_head_initial_condition_array(...[, ...])

Resolve the canonical flow head IC into an array shaped for one backend.

head_initial_condition_type(initial_condition)

Return the normalized head IC type token.

head_initial_condition_value_m(...)

Return the scalar head IC value in meters or raise a contract error.

initial_condition_field(initial_condition, ...)

Read one field from either a mapping payload or a typed IC object.

resolve_head_initial_condition(model_or_flow)

Return the head initial-condition payload from a model or flow object.

summarize_head_initial_condition_bounds(*, ...)

Summarize whether an initial head field lies inside bottom/top bounds.