Lake Tutorial v1.6
Lake Tutorial v1.6
FREEWAT - Free and Open Source Software Tools for Water Resource Management
This project has received funding from the European Union‟s Horizon 2020 research and innovation programme under grant agreement
No 642224 2
DATA LICENSES
FREEWAT - Free and Open Source Software Tools for Water Resource Management
This project has received funding from the European Union‟s Horizon 2020 research and innovation programme under grant agreement
No 642224 4
Introduction/1
The general aim of this tutorial is to introduce some capabilities of the GIS-
integrated FREEWAT platform related to the MODFLOW Lake package.
To achieve this scope, free and open source codes, such as MODFLOW-
2005 (Harbaugh, 2005), were integrated as a plugin within the QGIS
desktop GIS.
Harbaugh AW (2005). MODFLOW-2005, The U.S. Geological Survey Modular Ground-Water Model - the
Ground-Water Flow Process. U.S. Geological Survey Techniques and Methods 6-A16, 253 p. 5
Introduction/2
* Please, notice that screenshots were made within QGIS 2.14 and that some tools/functions names
may be a bit different within other QGIS versions
6
Objectives
This tutorial has two specific objectives.
To guide through the activation and use of the Lake Package in an
example exercise.
7
Input data files
The folder input_data contains the following subfolders with data files
necessary to implement the model:
Input_data
basemap.tif is a raster map of the area
LakesL1 is a shapefile containing the lakes used in Layer 1
(additionally .dbf, .prj, .qix files)
LakesL2 is a shapefile containing the lakes used in Layer 2
(additionally .dbf, .prj, .qix files)
8
Programs executables (For modeling exercises)
It can be downloaded from the following web site, along with MODFLOW
User Manual and a set of exercises:
https://water.usgs.gov/ogw/modflow/MODFLOW.html#downloads
9
Overview
10
The Lake Package
11
Further details about previous methods
The constant head is one of the most basic ways to simulate a large body of water.
The constant head can be simulated either by changing the IBOUND to -1, in which case the heads in the
specified cells remain at STRT throughout the simulation. Another method is so use the CHD package,
which allows the user to specify stage in cells at the beginning and end of every stress period. The head in
these cells then changes linearly during the stress period but is the same as the IBOUND= -1 approach in all
other aspects.
The river package calculates the effect of a specified stage in a water body, through a specified
conductance term to the aquifer. The river always has vertical sides and the volume of water in the river is
not calculated.
The reservoir package has a specified stage, but includes bathymetry to a certain extent. The surface area
of the water body changes with the stage, but the stage is still specified by the user for each stress period.
The “high K” method lets the stage in a “lake” cell change in relation to the heads in surrounding cells. The K
values of the lake cells is set to a very large value, storage coefficient is set to 1 for the lake cells and to the
compressibility of water for underlying cells. This way the stage in the “lake” cells cannot be specified, but
will change according to the surrounding cells‟ heads.
See: Merritt, M. L., & Konikow, L. F. (2000). Documentation of a computer program to simulate lake-aquifer interation using the
MODFLOW Ground-Water Flow Model and the MOC3D Solute-Transport Model. U.S. Geological Survey Water-Resources Investigations
Report 00-4167, 146.
12
The Lake Package/2
14
The Lake Package/4
15
Lake Cells
16
Lake Cells
L1 Lake
Bottom
L2 X
Z
L3
Note: This is useful when geology is well known and the lake is known to
intersect more than one hydro-stratigraphic unit with differing properties.
Because the layers that contain lake cells have to be convertible, this may not
be desired.
17
Lake Cells
Method 2:
keep the lake in a single layer, but change the vertical extent of the
cells that contain the lake cells.
Lake
Bottom
X
Z
18
Overview
19
Lake package Inputs
Input Description
Theta, Number of iterations, Convergence Lake solver specific inputs for all lakes.
criteria (THETA, NSSITR, SSCNCR)
Theta determines whether the solution for the lake package is solved implicitly (Theta =
1) or semi-implicitly (0.5 ≤ Theta < 1).
A negative theta value is used as flag for additional options in the lak package for
transient calculations. We set it as a negative value by default because MODFLOW will
automatically convert it to a positive value for calculations of lake stage
http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/index.html?lak.htm
20
Lake package Inputs
Input Description
Theta, Number of iterations, Convergence Lake solver specific inputs for all lakes.
criteria (THETA, NSSITR, SSCNCR)
Lake bottom elevation undulations Important for calculations regarding the
(SURFDEPTH) rewetting of the lake bottom [0.01….0.5]
Starting stage (STAGES) Initial Stage of each lake at the start of the run
Minimum and Maximum stages (SSMN, SSMX) Required for steady state simulations
Precipitation, Evaporation, Runoff, and Sources and Sinks specific to each lake and
Withdrawal (PRCPLK, EVAPLK, RNF, WTHDRW) stress period (rate per unit area)
Lakebed Leakance (BDLKNC) Leakance term representing the lakebed
sediments (K/Δl)
Lake ID Lake identifier for determining location, sub-
lakes and stream flow routing
http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/index.html?lak.htm
21
Overview
22
Geographical setting
This tutorial presents a hypothetical case study, with a
simplified topography and geology. The base map is used only
to assign the location and general lateral extent of the lakes.
23
Methods
We will use a simplified semi-synthetic example to demonstrate
how lakes are to implemented into a FREEWAT model and
simulated using the MODFLOW LAKE package.
24
Hydrostratigraphic setup and
hydrodynamic conditions
25
Hydrostratigraphic setup
One single hydrostratigraphic unit having a flat basal surface
(140 m a.m.s.l.) is identified:
- a sandy unit, with variable thickness between ca 53 m and
160 m, hosting a porous aquifer.
26
Geometry
Horizontal discretization
The investigated domain is 27.5 km x 22 km.
The domain will be divided in 500 m x 500 m cells.
The horizontal grid will consist of 44 rows and 55 columns.
Vertical discretization
The sandy aquifer will be represented by three model layers.
The first layer will have varying thickness, depending on topography, with a horizontal
bottom at 180 m.
The lower layers will each be 20 m thick
Model layer 1 and layer 2 will be defined as convertible (i.e., unconfined) and
the wetting option will be activated.
Model model layer 3 is confined within the domain
(meaning that it is always saturated).
Initial conditions
We will assign a high value (210 m) for the initial hydraulic head, in
order to avoid difficulties when using the module for rewetting of dry
cells
27
Time discretisation
Stress Period From (s) To (s) Length (s) State Time steps Stresses involved
28
Boundary conditions and
source/sink terms
NO-FLOW Mountain
from
recharge
(wells)
Constant head Lake 1
Lake 2
Lake 3 NO-FLOW
NO-FLOW
29
Overview
30
Preview: Using the Lake package in FREEWAT
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
31
Importing the sqlite
• Create a new folder ...\Lak and place the input_data folder inside.
• Copy the tlake.sqlite from the input_data folder to the Lak folder. (Always keep a
backup!)
• Open QGIS
• Connect the database (DB):
- Press Add SpatiaLite Layer in the Side Toolbar near the Layers Panel (LP)
- Click New -> select the tlake.sqlite in Lak folder
- Click Connect
34
Preliminary steps/1
36
Preliminary steps/4
37
Groundwater Model Output
FREEWATPost-processing
View Model
Volumetric Budget
38
Groundwater Model Output
In the list file you can check that only the only terms invloved
at the end of the Stress Period are those related to the
constant head and the wells.
Listing file
39
Preview: Using the Lake package in FREEWAT
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
40
Import lake shapefiles
Drag the LakesL1.shp and LakesL2.shp into the canvas from the browser,
or by adding a vector layer . They are located in the \input_data folder
LakesL1 LakesL2
41
Preview: Using the Lake package in FREEWAT
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
42
Deactivate Lake Cells
-Click “Apply”
44
Edit L1 attribute table
45
Deactivate Lake Cells
-Click “Apply”
46
Edit L1 attribute table
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
48
Change layer geometry
We will change the thickness of l2 under Lake 2 to represent a lake that is not as
deep as the other lake in this layer.
Click Apply
18 cells should be selected:
49
Edit L1 attribute table
51
Preview: Using the Lake package in FREEWAT
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
52
Creating the Lakes/1
Setting up the lake package
53
Creating the Lakes/2
Setting up the lake package
54
Creating the Lakes/3
Creating lak layers
Set: [1]
Theta* -1
NSSITR* 99
SSCNCR* 0.01
55
Creating the Lakes/4
Creating lak layers
56
Creating the Lakes/5
Creating new lakes
57
Creating the Lakes/6
Creating new lakes
58
Creating the Lakes/7
Creating new lakes
After the lakes have been created, the dialog can be closed
The three tables that contain the lake information are created in the
database, but are not loaded into the LP.
All changes to the lake layers can be made through the “Create LAK layer”
interface. If needed the tables can also be edited through the model
database.
These are examples of lake data tables:
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
61
Set LakeID
Copy the LakeID field from the LakesL1 shapefile to the l1_lak layer‟s
LAKE field
62
Set LakeID
Copy the LakeID field from the LakesL2 shapefile to the l2_lak layer‟s
LAKE field
63
Preview: Using the Lake package in FREEWAT
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
64
Set LPF properties
Layers that contain lakes need to be unconfined. In the LPF this means
that the layer type is changed to “convertible”.
Layer cells also need to be rewettable, in case they run dry as the model
solves the GW equation
65
Preview: Using the Lake package in FREEWAT
A. Conceptual Model
B. Load the database of the base model, run a test
simulation
66
Check results
Run the model with the WEL, CHD and LAK packages activated.
67
Check results
68
Check results
69
Check results
70
Summary: Using the Lake package in FREEWAT
1. Hydrological part has been developed starting from a former project, named SID&GRID, funded by Regione Toscana through EU POR-
FSE 2007-2013 (sidgrid.isti.cnr.it).
2. Porting of SID&GRID under QGis has been performed through funds provided by Regione Toscana to Scuola Superiore S.Anna - Project
Evoluzione del sistema open source SID&GRID di elaborazione dei dati geografici vettoriali e raster per il porting negli ambienti QGis e
Spatialite in uso presso la Regione Toscana (CIG: ZA50E4058A)
3. Latest Version of FREEWAT is under development within EU H2020 project FREEWAT - Free and Open Source Software Tools for
Water Resource Management. FREEWAT project has received funding from the European Union’s Horizon 2020 research and innovation
programme under grant agreement n. 642224 (www.freewat.eu)