Fixed heads: the sea, the rivers and the sides#

A fixed head takes the head of a cell out of the solution. The flux across the cell becomes a result. HydroModPy uses it for the sea, for a river given as a head, and for the sides of the model.

Notation of this page

Symbol

Meaning

Unit

Set by

\(h\)

hydraulic head, measured from a fixed datum

m

solved, not set

\(n, m\)

cell indices; \(\mathcal{N}(n)\) is the set of cells that share a face with \(n\)

the grid, The mesh

\(h^\mathrm{bc}\)

head a fixed-head cell holds in a period

m

flow.bc.<name>.value

\(h_\mathrm{sea}\)

sea level of a period

m

flow.bc.<name>.value of ocean

\(\mathcal{C}_\mathrm{sea}\)

the sea cells: the domain cells whose DEM is not above the highest sea level

derived

The law#

A fixed head takes the cell out of the solution in every layer and every period: \(h_n = h^\mathrm{bc}\), the value that the boundary, or its forcing, gives for the period. This is the CHD package of MODFLOW 6 (input guide, [Langevin et al., 2017]) and of MODFLOW-2005 [Harbaugh, 2005].

The flux across the cell is stored in the budget as constant_head, and the share of it that crosses a river cell as constant_head_stream (Where the water table reaches the surface reads that share). HydroModPy builds neither the GHB nor the RIV package, so a fixed head is never a conductance-limited exchange. A river that must exchange through a streambed is a stream network (Streams and the water mover).

The sea#

The sea cells are the cells of the model domain whose DEM is not above the highest sea level of the run:

(40)#\[\mathcal{C}_\mathrm{sea} = \{\, n \in \text{domain} : z^\mathrm{dem}_n \leq \max_t h_\mathrm{sea}(t) \,\} .\]

A cell below that level far inland is in the set: the code does not test the connection to the sea. The drains stay on the other cells. The level is set in [flow.bc].

MODFLOW-NWT selects its cells by the same DEM, with one difference: its constant-head rows take \(z^\mathrm{dem}_n < h_\mathrm{sea}\), and its ibound takes \(z^\mathrm{dem}_n \leq h_\mathrm{sea}\).

In the code: ocean_chd_support_mask.

The rivers and the sides#

The river cells are the river cells of the mesh support, or the cells with the support_label given to the boundary. A side boundary is the cells along one side of the model. A cell that falls in two sets keeps the last head written, in the order sea, river, side.

One CHD package carries the three. The build therefore writes which cells are sea and which are river in a file beside the solver files, and the extraction reads it to tell a river head from a sea head. That is how the river share of the constant-head flux reaches the stored budget.

In the code: assemble_constant_head_stress_period_data.

Limits#

  • The sea is not a density model. There is no interface between fresh and salt water, and no tide inside a period. The sea is a fixed head with the level of its period.

  • The sea cells are selected by their DEM, with the one difference between the two MODFLOW solvers given above.

  • A river head is a fixed head. A river that exchanges through a bed is a stream network. Stream heads need MODFLOW 6 or Boussinesq: MODFLOW-NWT has the sea and the sides.

Parameters of this page#

enabled = ‹true | false›Whether the run builds this boundary: true builds it, false keeps the table and builds nothing from it. required
Path
flow.bc.<name>.enabled
More

Required, so a table never switches itself on.

Accepted
true | false
# value = ‹number or list of number›Boundary-condition value, scalar or one value per stress period.
Path
flow.bc.<name>.value
More

On a head boundary it is the head in metres; left out with no forcing, the boundary is kept and no constant head is built. On a drainage boundary it is a conductance in m2/s, and it may be left out: the run then derives it from the conductivity, C = K * cell_area / solver.drain_bed_thickness_m, which keeps the drain proportional to K and makes K/R the quantity a network calibration searches. A zero or negative number selects that same derivation, so it does NOT mean a closed boundary; write a positive conductance to impose one.

Accepted
number or list of number
# support_label = ‹string›Name of a labelled group of cells or edges of a Gmsh mesh.
Path
flow.bc.<name>.support_label
More

The boundary then applies there instead of on the group its id selects. MODFLOW 6 and Boussinesq read it.

Accepted
string

Lines generated from the models, as in the reference. Open one for its card.

Checked by#

The tests that import the code of this page. The box is generated: a new test appears here on the next build.

In the code#

What

Where

Sea, river and side heads under MODFLOW 6

hydromodpy/solver/modflow6/builders/boundary_conditions.py

The roles of the CHD cells

hydromodpy/solver/modflow_common/boundary_roles.py

Fixed heads under MODFLOW-NWT

hydromodpy/solver/modflow_nwt/nwt/payloads/chd.py