Building Pit Rijsenhout

Requirements

  • Be sure QGIS version 3.28.00 or higher is installed.
  • Be sure the gistim Python package is installed (see installation for instructions).
  • Download the tutorial material. Follow this link.
  • Internet connections is optional during this Tutorial. It is only required for installation of additional plugins and the use of an online topographic background map.

Description

In this tutorial, you will learn how to:

  • install and use the QGIS-Tim plugin;
  • use the basic of QGIS for pre- and postprocessing of TIM;
  • create several steady state models (TimML) and a transient model (TTim);
  • analyse the results;
  • export your model to a Python script.

Objective

Calculation of a pumping well extraction.

Introduction case Rijsenhout

In one of the fields west of Rijsenhout industrial activities are planned, the construction of green houses. From historical sources it is known that some bombs from World War 2 are still in the surface. Before building starts, these bombs are removed for safety reasons. The question is: what dewatering is necessary to be able to remove the bombs in dry conditions? The contractor plans to drill sheet piles to prevent the excavation from collapsing. The groundwater level inside the building pit is lowered with a set of wells just in the top of the aquifer within the building pit. All pumped water is infiltrated over a stretch of wells near the existing buildings.
At the project location, the top layer is 12 m thick and consists of a low permeable combination of clay and peat. Below this top layer we find an aquifer of 50 m. The Westeinderplassen, a lake system with a depth of 3 m., is located East of the project area.

Figure 1: Geological cross section near Rijssenhout [source: BRO GeoTOP v1.4.1]

Getting Started

  1. Launch QGIS from your START menu, from your desktop or click on …\QGIS3.28.0\bin\qgis-bin.exe.

Intermezzo: QGIS language settings

Perhaps your QGIS was installed in another language than English. Because the Tutorial refers to the English version, let’s change to English.

  1. From the main menu click on Settings and select Options (e.g. in Dutch Extra and Opties).
  2. In the new window go to the General section (Dutch: Algemeen) on the left.
  3. Check the box to allow Override System Locale (Dutch: Landinstellingen negeren) and expand this sub menu.
  4. From the drop-down menu “User interface translation” (Dutch: Vertaling gebruikers-interface) select American English and click OK.
  5. Close QGIS and open it again to activate your language change.

We start with the creation of a new QGIS project.

  1. From the main menu click on Project and select New.

The case in this tutorial is located in The Netherlands, so next we select the appropriate projection.

  1. From the main menu click on Project and select Properties.
  2. In the Properties window select the category CRS, search for “EPSG:28992” and you find “Amersfoort / RD New”. Select this option and click the Apply button, followed by the OK button to close the window.

In case your work is mostly in The Netherlands and in the “Amersfoort / RD New” projection, consider making this your default projection.

  1. From the main menu click on Settings and select Options….
  2. In the section CRS and Transforms select CRS (handling), pick the radio button Use a default CRS and select “EPSG:28992 -Amersfoort / RD New”.
  3. Click OK.
  4. Close this window.

Install plugins

This is the moment to import four plugins needed for this tutorial:

  • the QGIS-Tim plugin (developed by Deltares).
  • the iMOD plugin (developed by Deltares).
  • the Value Tool. A plugin to display in table or plot values from raster layers (or mesh layers) at the current mouse position.
  • the PDOK plugin. This plugin gives access to a large database from which we will load the topographic maps and use the navigation option.

To install the plugins from QGIS you need an internet connection!

No internet connection? Follow the next steps to import the two Deltares’ plugins from a ZIP file provided in the Tutorial Dataset.

  1. Go to Plugins from the main menu and select Manage and Install Plugins… to open the plugin window.
  2. On the left section select Install from ZIP.
  3. Click the Browse button () and select the ZIP file “QGIS-Tim_Tutorial\QGIS-iMOD-plugin.zip”.
  4. Click Install Plugin.
  5. In the same way, install the QGIS-Tim plugin using the ZIP file “QGIS-Tim_Tutorial\QGIS-Tim-plugin.zip”.

If you have an internet connection, all four plugins can be downloaded within QGIS.

  1. At the top, find the Plugins menu (~sixth object in the menubar).
  2. Find "Manage and Install plugins" (~first object in drop-down).
  3. Find "All" (~first in left section).
  4. Search for "Qgis-Tim".
  5. Click "Install Plugin".
  6. Search for “iMOD” and install it.
  7. Search for “Value Tool” and install it.
  8. Search for “PDOK services plugin” and install it.
  9. Make sure that under Plugins > Manage and Install Plugins > Installed now the 4 added plugins are checked.
  10. Close the Plugins window.

See in the toolbar section of QGIS that the plugins are installed:

  • iMOD Toolbar
  • QGIS-Tim
  • Value Tool
  • PDOK Services Plugin

Further in this Tutorial we will use some default toolbars that might be hidden at the moment. Let’s check that and unhide if necessary.

  1. Select View from the main menu and choose Panels and be sure these two toolbars are checked:
    - Layers;
    - Browser.
  2. Select View from the main menu and choose Toolbars and be sure these three toolbars are checked:
    - Advanced Digitizing Toolbar;
    - Snapping Toolbar;
    - Attributes Toolbar.

Prepare your project

For navigation purposes, let’s load a topographic map for The Netherlands from the online PDOK database.

No internet connection? Follow the next steps to import a simple PNG file as a background.

  1. Go to Layer in the main menu, go to Add layer and select Add Raster layer.
  2. Use the browse button () and from the tutorial material select “…\QGIS-Tim_Tutorial\dbase\TopographicMapRijssenhout.png”.
  3. Click on Add and Close the window.
  4. If you do not see the map, select the layer “TopographicMapRijssenhout”, click your right mouse button and select “Zoom to Layer(s)”.
  5. Continue after step 23.
  1. If you do have an internet connection click on the PDOK plugin button () to open the “PDOK Services Plugin” window.
  2. From the tab PDOK Services search for “pastel” and you will find a WMTS type layer called “BTRM Achtergrondkaart WMTS”.
  3. Select the layer.
  4. In the section “laag toevoegen” click the button Onder.
  5. Close the PDOK window.

Our project area is near the town of Rijsenhout so let’s navigate to that town using the PDOK plugin.

  1. Type “Rijsenhout” in the PDOK search field, near the PDOK button ()
  2. PDOK will find “Rijsenhout, Haarlemmermeer, Noord-Holland”. Click on it and QGIS will fly you to the project location.

Let’s now open a shape file containing the locations and depths of the bombs.

  1. Go to Layer in the main menu, go to Add layer and select Add Vector layer.
  2. Use the browse button () and from the tutorial material select “…\QGIS-Tim_Tutorial\dbase\bombs.shp”.
  3. Click on Add and Close the window.

Tip: a fast alternative for adding layers: from the menu View > Toolbar add the Manage Layers Toolbar and use the button .

  1. In the Layers panel on the left, select the layer “bombs”.
  2. Click your right mouse button and from the menu select Show Labels.
  3. You can zoom in and out with the scroll button on your mouse or navigate with the buttons in the main menu:
  4. Use to pan the map with your left mouse button and use to zoom to the extend of the layers/groups selected in the Layers panel.

Let’s save this project to be able to return to it later or in case of a crash of QGIS.

  1. Go to Project in the main menu, select Save As and select a folder and a file name for your project, e.g. “…\QGIS-Tim_Tutorial\Rijsenhout.qgz”

Start your Tim model

Now we are ready to activate the QGIS-Tim plugin.

  1. Click on the QGIS-Tim plugin button () and the QGIS-Tim panel appears.
  2. Go to the tab Model Manager.
    Here we will create an empty database (GeoPackage) to store all elements and parameters for the model.
  3. Click the New button to create the GeoPackage and save it for instance in the folder with your tutorial data, e.g. “..\QGIS-Tim_Tutorial\dbase\case-Rijsenhout.gpkg”.

Your window looks like in Figure 2.

Figure 2: QGIS-Tim panel
  1. Check in the Layers panel on the left that your new geopackage is added as a group.
    A sub group timml for the steady state model input and the sub group ttim for the transient model input.

If you had no introduction to the Tim plugin, read the Intermezzo below for a general explanation of the components.

Intermezzo: introduction Tabs on the Tim panel

  • Model Manager: an overview of the elements in your geopackage. In case you switch to transient modelling, an extra column with ttim elements is added.
  • Elements: a list of at least 16 Tim elements from which you can build your model.
  • Results: here you can define your domain and cell size, decide if your model is transient or not and manage the output files.

Now we are ready to define our first steady state model by parameterizing our Aquifer.

Model 1: single aquifer

We start with a very simple ‘model’, only the parameters of a single aquifer.
Important message: all editing of model parameters and model elements you do in the Layers panel on the left!

  1. So select the layer “timml Aquifer:Aquifer” on the left.
  2. Click your right mouse button and from the menu select Attribute Table to open the table in a new window.
    NB Alternative is to press F6 or use the button Open Attribute Table ().
  3. Start the editing mode with a click on the Toggle Editing Mode button ().
  4. Hover with your mouse over the buttons and find the Add Feature button (). Perhaps button 5 from left.
  5. Add a new feature with this Add Feature button. In this case a feature is a hydrological layer.
  6. Fill the feature with the values from the table below:

parameter value unit comment
fid Autogenerate [-] ID is autogenerated by QGIS
Layer 0 [-] (see remark below)
aquifer_top +2 [m MSL]
aquifer_bottom -10 [m MSL]
aquifer_c NULL [d]
aquifer_k 5 [m/d]
semiconfined_top NULL [m MSL]
semiconfined_head NULL [m MSL]

NB! About Layer = 0. In the real world counting starts with 1. However, Tim is programmed in Python and in Python counting starts with 0. You will get used to it.

  1. Save all changes with the Save Edits button ().
  2. Stop the Editing Mode with a click on the button ().
  3. Close the Attribute Table window with a click on the X in the upper right corner.

Also be aware that the Aquifer element you just edited is just a table. This is indicated with the icon () just before the layer name in the left panel. For Tim this means that the properties in this table apply for the full model domain. We will introduce some inhomogeneities later as polygons within that domain.

  1. Go to the tab Results in QGIS-Tim.
  2. Click the button Set to current extent.
  3. On the tab sear for the section Output. Here you see that the output folder is by default the same as the folder of your geopackage.
  4. See that from the output type ‘Raster’ is not selected so only Meshes are created.
  5. Start the calculation with a click on Compute.

A black Python.exe window pops up indicating that the TIM calculation started on the background. You can ignore this window but keep it open. Of course you van minimize it. If the calculation was completed successful, you will see this echo in QGIS. .

After the calculation you see that the result is automatically added to a new geopackage, probably called “case-Rijsenhout output”. Results are saved as vector and/or mesh and raster. For each output format a separate sub group is created. The sub group Raster is empty while the output option Raster was not checked.
Although these layers / groups are checked, the data is not visible. That is because the geopackage was added last, and QGIS adds layers at the end of the list. Let’s move the layer “pastel” to the background.

  1. Select the layer “pastel” and drag it with your left mouse button to the bottom of the list of layers.

The calculation result is now visible and we see a mesh with just the value 0, not a very exciting result because no other elements are present yet. Let’s now add a well element.

Intermezzo: Mesh and Raster format explained

  • Mesh: an unstructured grid usually with temporal and other components. Preferred format in QGIS-Tim to animate temporal data, to create cross sections or evaluate values at your mouse position.
  • Raster: is made up of pixels (also referred to as grid cells). They are regularly spaced and square. Preferred format in QGIS-Tim to perform calculations with the Raster Calculator tool.

Model 2: single well

  1. First hide the output layers by deselecting the sub group mesh or even the main group case-Rijsenhout output.
  2. Go to the tab Elements in QGIS-Tim.
  3. Click on the element “Well” and a window opens to create a new (vector) layer in QGIS.
  4. Give the layer a name, e.g. “DewateringWell” and click OK.

See that layer “timml Well:DewateringWell” is added to the timml sub group in your geopackage with ‘point’ as geometry. Also in the ttim sub group an element with the same name is added. This is a table that can store transient well data while referring to the x/y locations in the timml layer. Next step is to add the actual well, both the location and its parameters.

  1. Select the layer “timml Well:DewateringWell”.
  2. Click your right mouse button and select the Toggle Editing Mode ().
  3. To add a new well (feature) to the layer click the Add Point Feature button ().
  4. With your mouse, click on a location in the centre of the group of bombs.
  5. Fill the feature with the values from the example below.

  1. Click OK.
  2. Click the Toggle Editing button () and if you are asked to save changes and select Save.
    An alternative way to save your edits is to click the Save Layer Edits button () and then stop editing with the Toggle Editing button ().

Next step is to rerun the model including the new well.

  1. In QGIS-Tim go to the tab Model Manager and see that the Well is added.
  2. Go to the tab Results and select also the output format Raster.
  3. Click on Compute to rerun your model.

The output in your ouput group “case-Rijsenhout output” is directly overwritten with the new results. In the sub group mesh you see the created raster “case-Rijsenhout-head_layer_0”.

Do you like to see the values of the calculated Head under you mouse?

  1. Make the results visible again. So see if the group case-Rijsenhout output and mesh are checked.
  2. Select the output sub group mesh and deselect the group raster.
  3. Select the Value Tool button ().
  4. Hover over the area and in the “Value Tool” panel you see the value within the mesh file at your mouse location.
Figure 3: Example panel Value Tool

Do you like to see the values in a cross section? Deltares developed the Cross Section Tool, available in the iMOD Plugin.

  1. On the iMOD Toolbar select the Cross section button () to start the iMOD Cross Section tool. In the empty cross-section we can add a selection of (geological) layers. For now, we only select the calculated heads.

  2. On the iMOD Cross Section Plot click on the button Select location and draw your cross-section line from north to south (right mouse button to close the line).

  3. From the dropdown menu on the left of this toolbar, select the raster () named “case-Rijsenhout-head_layer_0”.

  4. Click the button Add to add this layer to the cross-section manager below.

  5. Click the button Plot to draw this layer in the cross section.

Your screen might look like Figure 4.

TIP: If you do not see any line, perhaps the axes are not defined well. To view all data, click you right mouse button in the figure and select the option “View All”. The alternative is to click on the small A symbol () in the lower left of the chart.

Figure 4: Cross section with calculated Head

Model 3: multiple layers

A single aquifer is of course not enough to describe the geology of our project area. A simplification of the geology is given in the cross section in Figure 5. In this low lying polder, there is a Holocene top layer of 12 m thickness on top of an aquifer. The surface level of the top layer is 5 m below see level, it has a resistance of 1500 days and the water level within this polder is 1 meter below surface level. The aquifer has a horizontal permeability of 30 m/d and a thickness of 50 m. The anisotropy factor is 3 resulting in a vertical resistance of 0.1 day per meter. Tim can handle multiple layers so the next step is to bring these parameters into the model.

Figure 5: Project area cross section (left) lifting the World War II bomb (right)
  1. In your geopackage select the layer “timml Aquifer:Aquifer” and click your right mouse button.
  2. From the menu select Open Attribute Table and the table opens in a new window. Once again, press F6 for a quick open of the Attribute Table.
  3. Start the editing mode with a click on the Toggle Editing Mode button ().
  4. Add three extra aquifers / features; click three times on the Add Feature button ().
  5. See that for the new elemenst the fid is set to Autogenerate. Be aware that your QGIS probably resorts the layers and brings the existing layer (layer=0) to the botom of your table.

The Holocene top layer is not a distinguished layer but a resistance on top of layer 0.

  1. Fill the features with the values from the table below.
    NB Never change the fid=1 of the first layer, even if it is not on top of your table.
fid layer aquifer_top aquifer_bottom aquitard_c aquifer_k semiconf_top semiconf_head
1 0 -17 -22 1500 30 -5 -6
2 1 -22 -27 0.5 30 NULL NULL
3 2 -27 -47 1.25 30 NULL NULL
4 3 -47 -67 2 30 NULL NULL
  1. Save your changes and close the window.
  2. Go to the tab Results and run the new model with a click on the button Compute.

Let’s now check the calculated heads for the 4 layers, first with the Value Tool and then with the Cross section tool.

  1. From the layers select the layer “case-Rijsenhout-output:raster” and deselect the “case-Rijsenhout-output:mesh”.
  2. Activate the Value Tool ().
  3. In the Value Tool panel go to the tab Options.
  4. For Show Layers choose “Visible layers” and for Show bands choose “Active bands”.
  5. Return to the tab Table and hoover over the calculated values, especially near your well.
  6. Activate the iMOD Cross section widget () to create your cross section with the four layers (Need instructions? Go back to step 69 for support).
    NB You don’t need to ‘add’ all four layers separately. Just use the raster file () “case-Rijsenhout-head_layer_0” and from the dropdown menu Variable: select the four bands/layers.

Model 4: add a set of sheet piles

Now we introduce a new but frequently used element: the sheet pile.

  1. Return to the QGIS-Tim panel and go to the tab Elements.
  2. Click on the element “Leaky Line Doublet”.
  3. Give the layer a name, e.g. “sheetpile”.
  4. In your geopackage select the layer “timml Leaky Line Doublet:sheetpile” and start editing using the Toggle Editing Mode button ().
  5. In the editing mode, the Add Line Feature button () is available. Click the button and draw a box around the 5 bombs (click left to start, click right to close).
  6. In the Feature Attributes window make resistance = 1500 and layer = 0.
  7. Click OK.

You probably tried to close the building pit but either your lines cross or do not close actually when zooming in. To close the pit, let’s snap both start and end point together.

  1. First enable the snapping mode with a click on the button (), available on the Snapping Toolbar.
  2. Make sure the Tolerance is set to 0.00 () in the Snapping Toolbar.
  3. Then activate the Vertex Tool with a click on the button .
  4. Move your mouse to the start point location and when it shows a small circle, click your left mouse button.
  5. Next, move your mouse towards the end point and you see the snapping active: the end point gets a small fuchsia box.
  6. Click your left mouse and you see that both vertices now connect.

Perhaps you are not satisfied with your created building pit.

  1. You can play around with other nice options in QGIS to move (), rotate () or scale () your pit.
  2. End the Toggle Editing Mode with and save your changes.
  3. In the QGIS-Tim panel go to the tab Results.
  4. Rerun your model and check the calculated heads.

Disappointed in the effect of the sheet piles on the calculated head? You are right if you expected no major effect because of the shallow penetration in this high permeable thick aquifer. If we would increase the aquitard_c between layers 0 and 1, perhaps we would see more effect of the sheet piles.

  1. If you dare… try to rerun the model yourself with aquitard_c = 800 (layer 1) and see that the drawdown is limited to the building pit (Figure 6.)
  2. Don’t forget to undo this side path and make aquitard_c = 0.5 again for layer 1.
Figure 6: Drawdown within the building pit

How to reopen Tim after closing QGIS

Before we introduce you another new Tim element we must explain you how to reopen your Tim project after a closure of QGIS. A crash might close QGIS or just a long day of work is a reason to shut down your laptop Always remember two things:

  • your geopackage is saved as a *.gpkg file and contains the complete set of model features and parameter values. Every time you change a model element, you will remember, you had to save the changes. So the GPKG file is always up to date.
  • your QGIS project is saved in the *.qgz file and contains all the added layers and their format (legend, line color, labels etc.).

Now let’s experience what it is to close and open QGIS including your QGIS-Tim project.

  1. Save your QGIS session (Ctrl+S).
  2. Select Project from the main menu and choose New.
  3. Again select Project but now choose Open Recent and find your own project in the list.

The Tim panel is empty but why?
It is not possible for the plugin to automaticcaly read your geopackage as it is loaded in the Layers panel. But there is good news. QGIS-Tim added a hidden line to your QGIS project file *.qgz. This line contains the full path to your last active geopackage file *.gpkg. Based on this information QGIS-Tim can restore your last active Tim project.

  1. In the tab Model Manager click the button Restore.
  2. A window pops up asking you if you agree to restore the last active project.
  3. Click Yes and you see the Model Manager is filled with all project information.

In the backgorund the plugin first removes all layers and than opens the geopackage again. You did not see it, did you? It happend in a blink of an eye.

Model 5: add infiltration of drainwater

To prevent damage on the private properties caused by the dewatering, the authorities demand 50% of the drained flux to be infiltrated. For the infiltration a horizontal well of 400 m is used. In Tim this element is called “Line Sink Ditch”. Let’s add this element just along the road (Aalsmeerderweg) southeast of the project area.

  1. On the tab Elements in QGIS-Tim click on the element “Line Sink Ditch”.
  2. Give the layer a name, e.g. “InfiltrationWell”.

See that layer “timml Line Sink Ditch:InfiltrationWell” is added to the timml sub group in your geopackage with ‘line’ as geometry. For the transient version of the model a table with the same name is added to the ttim sub group. Next step is to add the location of the horizontal well and its capacity.

  1. Click the *Measure Line” button () from the “Attributes Toolbar”.
  2. With your left mouse button try to get an idea what a distance of 400 m along the road looks like. Close the window.
  3. Select the layer “timml Line Sink Ditch:InfiltrationWell”.
  4. Start editing with the Toggle Editing Mode.
  5. Use the Add Line Feature button () to draw a 400 m line (click left to start, click right to close).
  6. Fill these feature within the table: discharge = -1000 (negative abstraction is flux into the model), resistance = 1, width = 1, layer = 0! not NULL ;-). By default order = 4.
  7. Click OK.
  8. Stop editing the layer, save your changes.
  9. Rerun the model.
  10. Analyse the results with the iMOD Cross Section widget. Your graph may look like Figure 7.
Figure 7: Calculated head from the abstraction (left) to the infiltration (right)

Model 6: add observation points

We have the Value Tool and the Cross section tool to check for calculated values in the rasters. Besides that, Tim has the opportunity to add observation points automatically providing you with the calculated heads.

  1. On the tab Elements in QGIS-Tim click on the element “Head Observation”.
  2. Give the layer a name, e.g. “Piezometers”.
  3. Select the new layer “timml Head Observation:Piezometers”.
  4. Start editing with the Toggle Editing Mode and use Add Point Feature button ().
  5. Click with your left mouse button to place a point near point A.
  6. In the poped up window fill in Label = A and click OK.
  7. Go to the layer “timml Head Observation:Piezometers”, click your right mouse button and activate “ show labels”
  8. Add point B close to the dwatering well (Figure 8).
Figure 8: Observation locations (A-E) together with other Tim elements

Are you tired of the pop-up window every time you add a point? There is an option to add points C to E in one serie and fill in the labels afterwards.

  1. On the tab Model Manager, in the lowest section, check the option “Suppress attribute form pop-up after feature creation”.
  2. Place points C to E.
  3. Open the Attribute Table from layer “timml Head Observation:Piezometers” and fill in the Labels C to E.
  4. Save your changes and stop the editing mode.
  5. Compute the model again.

The observed values are saved in a new layer under the existing group “case-Rijsenhout output” and sub group “vector”.

  1. In this sub group select the layer “case-Rijsenhout-timml Head Observation:Piezometers” and check the calculated values within this layer by opening the Attribute Table (F6).
  2. Close the Attribute Table.

Draw Contour Lines

One way of displaying the calculated results is still missing: contour lines.

  1. In QGIS-Tim go to the tab Results.
  2. In the section Contour select layer “case-Rijsenhout-head_layer_0”.
  3. Define the contours from -9 to -5 with an increment of 0.10 and click Redraw contours.

A layer with your contours is saved in the group “case-Rijsenhout-output:vector”. Your map hopefully looks like Figure 9. If not, try to change the contour settings and create a better contour map or check the layer so it will be displayed.

Figure 9: Calculated heads, displayed as contour lines

Model 7: determine the influence of the nearby lake

East of the project area there is a large lake. What will be the influence of this lake? Let’s find out.
In Tim a lake is added as an inhomogeneity within the total model domain. This domain is described in table “timml Aquifer:Aquifer” we filled in with the first model.

  1. On the tab Elements in QGIS-Tim click on the element “Polygon Semi-Confined Top”.
  2. Give the layer a name, e.g. “Lake” and find out that layer “timml Polygon Semi-Confined Top:Lake” is added to the geopackage.
  3. Start editing with the Toggle Editing Mode and use Add Polygon Feature button () to add the Lake contour.
    NB Try to minimize the number of segments because each segment slows down the calculations. With QGIS it is tempting to use detail but the influence of detail on the outcome is small.
  4. Fill the Lake feature with the following parameters: aquitard_c = 500, semiconf_top = -7 (bottom of the Lake) and semiconf_head = -2 (water level).
  5. Save your changes and rerun the model.
  6. Analyse the results and perhaps create contour lines from the tab “Results”.
Figure 10: Contour lines after adding the Lake element in the east

You can not miss the effect of the Lake in this calculation. In many cases you like to analyse or even save this difference. Let’s see how we can use Tim and QGIS to isolate the effect. Therefor we rerun the model without the Lake and rename the output.

  1. In QGIS-Tim go to the tab Model Manager.
  2. In the list of Steady State elements switch off “timml Polygon Semi-Confined Top:Lake”.
  3. Go to the tab Results.
  4. Click the button Set path as … and change the name of the output, e.g. “case-Rijsenhout-NoLake”.
  5. Click Compute to run the model without the Lake.

The new results are added as new layer to the project. Check for instance sub group “raster” under the group “case-Rijsenhout output”. Now we use QGIS to calculate the head difference for layer 0. For raster calculations we prefer Raster Calculator over the Mesh Calculator in QGIS.

  1. From the QGIS main menu Raster select the tool Raster Calculator and the tool window opens.
  2. In the section Raster Calculator Expression you can create an expression using the elements from Raster Bands and Operators. Create this expression: “case-Rijsenhout-head_layer_001 - case-Rijsenhout-NoLake-head_layer_001”.
  3. In Output layer give a new name for this new GeoTIFF file, e.g. “head-effect-lake”.
  4. Click OK to start the calculation and see that the GeoTIFF file is added as a layer.
  5. In the properties of layer “head-effect-lake” go to the section Symbology and set the Render type to “Singelband pseudocolor”.
  6. See that the difference in head is maximum 3 meter.
  7. In Model Manager check again the Lake element.
  8. In Results reset the path to the old name.

Model 8: abstraction effect over time

Now you are ready for the last step: make your model transient. We keep it simple: we run the model for 30 days and see the increasing effect of the well.

  1. In the QGIS-Tim panel go to the tab Model Manager.
  2. In the section Model Setup turn on the option “Transient”.
  3. See below that only 5 elements have a transient component.

By selecting the “transient” option, columns containing extra parameters necessary for a transient model have been unhidden now. First of all we see it in the layer “timml Aquifer:Aquifer” where columns “storage” and “porosity are visible now.

  1. In your geopackage select the layer “timml Aquifer:Aquifer”.
  2. Open its table, start the editing mode and for every layer set both acquifer_s and acquitard_s to 0.001. Acquitard_s (layer 0) = 0.25. You can use copy and paste to do it quickly.

NB! In transient mode, Tim can not handle aquitard with zero thickness so let’s set the aquitard thickness to 0.1 m

  1. Change the values in the column “aquifer_top” to -17.0, -22.1, -27.1 and -47.1 m.
  2. In your geopackage select the layer “ttim Temporal Settings:Aquifer” to define the temporal properties of the model.
  3. Open its table, start the editing mode and add a new feature.
  4. Make sure that tmin=0.01, tmax=30, tstart=0, reference_date=2023-03-23 00:00:00.
  5. In your geopackage select the layer “ttim Computation Times:Domain” in order to define the moments in time for which raster output is saved.
  6. Open its table, start the editing mode and add 7 features / periods (click 7 times “Add feature”).
  7. In the column “time” add the moments 1,2,5,10, 15, 20 and 30.
  8. Save and Close the table.

For the observations we can define a different set of output moments.

  1. In your geopackage select the layer “ttim Head Observation:Piezometers”.
  2. Open its table, start the editing mode and add 10 features / periods (click 10 times “Add feature”).
  3. In the column “time” add the moments 1,2,3,4,5,10,15,20,25 and 30.
  4. Save and Close the table.

Special attention for the Well package while it has 2 options to make it transient:

  • Simple: a well can be switched on and off only once. Parameters are set in the stationary part of the model, so in “timml Well:DewateringWell”.
  • Detailed: a well can be switched on and off multiple times within the modelled period. Parameters are set in the transient part of the model, so in “ttim Well:DewateringWell”.

In this tutorial we show you the simple version.

  1. In your geopackage select the layer “timml Well:DewateringWell”.
  2. Open its table, start the editing mode and see that columns with time dependent parameters are visible now.
  3. Switch off the Steady State abstraction, make discharge = 0.
  4. Switch on the Transient abstraction: time_start = 2, time_end = 30, discharge_transient = 2000, caisson_radius = 1.
  5. Save your changes.
  6. Compute your transient model in the tab Results.

In case of a successful calculation a new layer is added to your Vector output: case-Rijsenhout-ttim Head Observation:Piezometers. This layer contains transient data which is indicated with the clock icon right from the layer name. There are 2 ways to visualize these calculated heads in the observations point a) animation over time and b) timeseries at location.

  1. For the animation over time, activate the Temporal Control Panel with the button on the Map Navigation Toolbar.
  2. For timeseries at location activate the Timeseries panel with the Timeseries button () on the iMOD Toolbar.
  3. Be sure that “case-Rijsenhout-ttim Head Observation:Piezometers” is checked and “case-Rijsenhout-timml Head Observation:Piezometers” is unchecked.
  4. In the Temporal Controller panel click the green play button (). Navigation buttons appear.
  5. Increase the Step to 16 hours and start the animation with a click on the Play button ().

Only the first few days you see most prominent drawdown. Let’s now display the timeseries at the point of your mouse with data from the mesh.

  1. Go to the iMOD Time Series panel.
  2. Be sure the layer “case-Rijsenhout-head_layer_0” is selected.
  3. For “variable:” select head and for “layers:” select 0.
  4. Click the button Select Points, your mouse changes into a . Be sure Update on Selection is checked and hover over the mesh. The graph shows the timeseries at the location of your mouse.
  5. Deselect the checkbox Update on Selection.
  6. Click the button Select Points (your mouse becomes a and with the left mouse button select 3 points ad random.
  7. Finally click the Plot button and the 3 timeseries are added to the chart.

In the same way you can display the time series from the Observations.

  1. In the iMOD time series panel select the layer “case-Rijsenhout-ttim Head Observation:Piezometers”.
  2. For “ID column:” select label and for “Variable:” select head_layer0. Don’t forget to deselect fid.
  3. Click the button Select Points and draw a box with your mouse to select one or more observation points.
  4. Click the Plot button and the selected timeseries are added to the chart.
Figure 11: Calculated time series at observations locations

Before closing the display we change the line properties and save the graph as a PNG file.

  1. Select the single time series for the observation point closest to your dewatering well. The color of the line is now visible in the field next to the button Line Color.
  2. Change the color to red.
  3. Select the timeseries with the most shallow timeseries and change the color to green.
  4. Check the box Draw markers.
  5. Move your mouse to the display and click your right mouse button. Explore the different options.
  6. From this menu (or from the display) select the function Export….
  7. Set the export format to PNG and export the file and don’t forget to close the Export window.

Export your Tim model to Python

For scenario calculation or sensitivity analysis you probably want to switch from QGIS to Python for efficiency reasons. In this tutorial we only show you the first step: export your model to a Python file (*.py). Your Tim model is just a set of elements (points, lines, polygons) and its parameters so the Python file is not very large.

  1. In QGIS-Tim go to the tab Model Manager.
  2. Click the button Convert GeoPackage to Python script and you can save the *.py file wherever you like.
  3. Check the content of the file with you text editor (e.g. Notepad).

The tutorial ends here. You can save your QGIS project if you like. Thank you!