Lakes and reservoirs#

A lake is a boundary package laid on the aquifer grid. Its cells are made inactive in their top layers, and the LAK package of MODFLOW 6 holds the storage and the exchange through connections it builds itself. The stage is a result. The keys of a lake are in [flow.sinks_sources.lakes].

Notation of this page

Symbol

Meaning

Unit

Set by

\(h\)

hydraulic head, measured from a fixed datum

m

solved, not set

\(A\)

catchment area

m²

geographic.catchment

\(n, m\)

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

the grid, The mesh

\(s_L\)

stage of a lake

m

solved, not set

\(V_L, A_L\)

volume and surface area of a lake, functions of its stage

m³, m²

the stage-volume-area table of the lake

\(\lambda_b\)

leakance of a lake bed

1/s

bedleak

\(C^\mathrm{lak}_c\)

conductance of connection \(c\) between a lake and an aquifer cell

m²/s

derived

The balance#

The LAK package of MODFLOW 6 solves a water balance of the lake: the stage \(s_L\) is the unknown, and the volume \(V_L\) and the surface area \(A_L\) are looked up in the stage-volume-area table of the lake. The lake gains rain, runoff and managed inflow, loses evaporation, withdrawal and outlet discharge, and exchanges with the aquifer through its connections (input guide, [Langevin et al., 2017], chapter 7). The outlets go to the outside, to another lake or to the mover (Streams and the water mover).

HydroModPy checks the table before MODFLOW 6 sees it. The table has at least two rows. The stage increases strictly, the volume increases strictly with it, the surface area does not decrease, and no volume or area is negative.

In the code: build_lake_table.

The connections#

MODFLOW 6 gives each connection the conductance of the bed and the aquifer in series, \(C^\mathrm{lak}_c\), from the leakance \(\lambda_b\) and the contact area. A leakance of zero seals the bed. HydroModPy builds two kinds of connection for each lake column:

  • one vertical connection to the first active cell under the occupied layers: the leakage towards the aquifer, through the vertical conductivity;

  • one horizontal connection across every edge shared with a neighbor column that is not a lake column, for each active cell of that column that faces the lake water, whatever its layer: the bank seepage, through the horizontal conductivity. Its width is the length of the shared edge, its length the distance from the neighbor center to the edge, and its elevations those of the neighbor cell clipped to the water of the lake column, between its bed and its top. A band thinner than 1 mm is dropped.

The number of occupied layers counts the pass-through cells of a pinched stack (Layers by surfaces). A pass-through cell has no thickness, so a lake whose occupied layer is pinched out holds no water inside the stack in that column. It leaks through its bed into the first active cell below, and the build logs these columns. A column with no active cell under the lake is refused. The message names the lake and three ways out: fewer occupied layers, a smaller min_thickness of the layers under the lake, or pinch_out = "keep_min_thickness".

So a neighbor whose layer is pinched, or a sloping stack, gets bank connections on every cell that faces the water. On a lake of 20 columns with layers that follow the terrain, the bank rows go from 14 to 27 and the exchange with the aquifer rises by 1.6 %. On a flat stack the rule gives one row per occupied layer and per shared edge.

A cutoff wall lies on the lake shore: the part of its trace facing the lake moves onto the shore within snap_tolerance, so no cell sits between the reservoir and the wall. It seals the horizontal connections across the faces it bars, the faces that carry its HFB rows below the bed. On the triangle and voronoi engines these are the faces the mesh lays on the wall, wings included (mesh.families.barriers); on the regular grid, the staircase of faces around the lake cells and across the wall line.

In the code: build_lake_connectiondata.

Two ways to hold the footprint#

In the fixed-area mode, the footprint cells are inactive and the table alone gives the storage. In the active-shore mode, dynamic_area, the bed cells stay active with the carved bathymetry as their top. A cell exchanges with the lake while it is under water, and recharges as land when the shore falls below its bed. The drain rows of those cells are removed: a drain there would send the leakage of the lake straight back to the streams, through the aquifer, the drain and the mover, and the exchange would recirculate.

When the bed is carved on a stack with pass-through cells, the cap above the bed keeps its pass-through cells, and the lake mask closes them. Below the bed a pass-through cell stays flat, so the first active cell has its top on the carved bed. A column with no cell left under its top layer that is not a pass-through cell is refused. In the active-shore mode the vertical connection goes to the top active cell of the column.

What falls on the lake#

The rain and the evaporation of a lake are the catchment means of the loaded precipitation and ETP, unless the lake declares its own. The runoff is the catchment runoff rate times the catchment area \(A\). It reaches the lake directly only when no stream network routes the runoff; otherwise it arrives through the reaches and the mover (Rain and evaporation: the forcing). A declared forcing wins over these defaults.

The managed inflow and the withdrawal are set to zero in the steady periods. A steady period has no storage term, and a managed flux that does not balance the natural budget has no equilibrium stage: the solve would diverge.

By default the stage is free from the first period. With steady_stage_hold, and a run that starts with a steady period, the build holds it at the starting stage (LAK status constant) through the steady warm-up, and frees it on the first transient period. A managed reservoir whose observed level is far from the natural equilibrium then keeps that level, and the aquifer settles around it.

The package takes one smoothing depth for the wet and dry transition of the lake edge, surfdep: the largest declared among the lakes.

The mask on the other packages#

The lake cells carry no recharge and no aquifer evapotranspiration, except a bed cell of an active-shore lake once the shore has fallen below it: the lake takes its own rain and evaporates through LAK. Without the mask, MODFLOW 6 would hand the recharge of an inactive lake cell to the first active cell below it, and the rain would be counted twice (Drains and evapotranspiration at the top of the model).

Limits#

  • A lake has one stage. The volume and the surface area follow the table, and the lake exchanges with the cells under and beside its footprint, and with no other.

  • A lake needs MODFLOW 6. The check stops a file that declares one with another solver.

  • A lake in soil mode needs a stream network. The check refuses a lake without "sfr" when the soil reservoir is declared, because the water that seeps out of the ground reaches the lake only through the streams.

  • The active-shore mode is harder for the solver. Many cells change between wet and dry at once. A larger surfdep helps, and blurs the shoreline.

Parameters of this page#

[flow.sinks_sources.lakes.<name>]
bedleak = 1e-06Lake-bed leakance [1/T] = K_bed / thickness_bed. required >= 0 calibrable · log example value
Path
flow.sinks_sources.lakes.<name>.bedleak
More

Resistance of the lake-aquifer interface over the whole lake bed, the handle of the lake-aquifer exchange. The flow through or under the dam is set by the cutoff_wall and the aquifer, not by this value. 0 means a perfectly sealed lakebed (no leakage).

Accepted
number
Valid range
>= 0 (refused outside)
Unit
1/s
Example
1e-06
Calibration
yes, search space log, sampling log_uniform, bounds belong to the site: write them in calibration.parameters.<name>.bounds
# steady_stage_hold = falseHold the lake stage at initial_stage during the steady warm-up period(s) (LAK status CONSTANT) and re-activate it on the first transient period.
Path
flow.sinks_sources.lakes.<name>.steady_stage_hold
More

Use for a managed reservoir whose observed initial level is far from the natural steady equilibrium: the aquifer equilibrates around the observed stage instead of overriding it.

Accepted
true | false
# surfdep = ‹number›LAK surface depression depth [L] that smooths the dry/wet (marnage) transition for Newton. m >= 0 expert
Path
flow.sinks_sources.lakes.<name>.surfdep
More

Default (None) uses 0.1 m. Raise it (e.g. 0.5 to 1.0 m) to stabilise and speed up the active-littoral steady solve when many lakebed cells toggle at once; it slightly fuzzes the shoreline.

Accepted
number
Valid range
>= 0 (refused outside)
Unit
m
# dynamic_area = falseActive-littoral (marnage) representation.
Path
flow.sinks_sources.lakes.<name>.bed_reconstruction.dynamic_area
More

When True the lake-bed cells stay ACTIVE with the carved bathymetric bed as their cell top and one VERTICAL LAK connection each; MODFLOW 6 then toggles recharge/ET per cell (IWETLAKE) so a cell exchanges with the lake when submerged and recharges as land when the shoreline recedes below its bed. When False the footprint is deactivated (fixed-area reservoir, the classic inactive-footprint carve).

Accepted
true | false
# mvrtype = "FACTOR"How much of the outlet flow the mover passes to the receiver, given value.
Path
flow.sinks_sources.lakes.<name>.outlets.mover.mvrtype
Values
  • "FACTOR" : Moves the share value (from 0 to 1) of the flow.
  • "UPTO" : Moves the flow, capped at value.
  • "EXCESS" : Moves only the part of the flow above value.
  • "THRESHOLD" : Moves value once the flow exceeds it, and nothing below it.
Accepted
"FACTOR" | "UPTO" | "EXCESS" | "THRESHOLD"

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

Table, connections, period data

hydromodpy/solver/modflow6/builders/lake.py

Outlets

hydromodpy/solver/modflow6/builders/_lake_outlets.py