hydromodpy.solver.boussinesq.jacobian.common#

Common helpers shared by semianalytic Boussinesq Jacobian builders.

Functions

as_cell_vector(values, *, n_cells)

Return a scalar or vector payload as one cell-aligned float array.

concatenate_triplets(*triplet_sets)

Concatenate sparse COO triplet sets while ignoring empty pieces.

drainage_diagonal_derivative(mesh, head_m, ...)

Return the diagonal derivative of the top-drainage operator.

harmonic_conductivity(conductivity_a_m_s, ...)

Return the harmonic mean conductivity used in Jacobian edge operators.

saturated_thickness_derivative_from_head(...)

Return the piecewise derivative of saturated thickness with respect to head.

saturated_thickness_value(mesh, head_m, ...)

Return the saturated thickness in one cell as a scalar float.

storage_thickness_derivative_from_head(mesh, ...)

Return d max(h - z_bottom, 0) / dh for the transient storage term.