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² |
|
\(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 |
|
\(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
surfdephelps, and blurs the shoreline.
Parameters of this page#
Checked by#
The tests that import the code of this page. The box is generated: a new test appears here on the next build.
17 test files import hydromodpy.solver.modflow6.builders.lake. Their names say what they check.
integration: 4
- A lake over a pinched layer solves in modflow6. solver
- Modflow6 lake piecewise forcing.
- Modflow6 two lake sill.
- Two lake voronoi stack e2e.
unit: 13
- Flow lake config. config
- Lake unit conversions. core/units
- Lake forcing. model/boundaries
- Lake abacus persistence. results
- Cutoff wall shore. solver/modflow6
- Lake bed carve. solver/modflow6
- Lake pass through cells. solver/modflow6
- Modflow6 lake. solver/modflow6
- Modflow6 lake band runoff. solver/modflow6
- Modflow6 lake outflow. solver/modflow6
- Modflow6 lake restart stage. solver/modflow6
- Modflow6 lake voronoi grid. solver/modflow6
- Time series. solver/modflow6
In the code#
What |
Where |
|---|---|
Table, connections, period data |
|
Outlets |
|