diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/01_load-tifs.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/01_load-tifs.png new file mode 100644 index 0000000000000000000000000000000000000000..e4e002c4fc4d228ec40c589e1039a9b9005a680e --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/01_load-tifs.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70a90c1e43b522104cb0cffb8d9ac0cd4a023123f245b8c4429ef7f08d0bf9bc +size 262565 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/02_merge-DEMs.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/02_merge-DEMs.png new file mode 100644 index 0000000000000000000000000000000000000000..23dec52b5ce753dd008ab30e65466bd76987a21d --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/02_merge-DEMs.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3df1ab6cf961ac1906eca7aed00536384ddee88def268f5c9115fe0b6cbec27 +size 244942 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/03_create-shp-for-clipping.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/03_create-shp-for-clipping.png new file mode 100644 index 0000000000000000000000000000000000000000..b45ff5a43dfa2ed94e36143e68414fee4443b011 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/03_create-shp-for-clipping.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2aa77716301769a86ea5c407eb98b43e2f5d0ce930d121b94fb80f3796aca431 +size 49136 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/04_edit-save-new-polygon.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/04_edit-save-new-polygon.png new file mode 100644 index 0000000000000000000000000000000000000000..e567a0e4d807ae1f17f1625ae0d09f782316e6ed --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/04_edit-save-new-polygon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8b8ca1542cbb4c7cbf1ecf421083b8bf8ed859763ce07cadbbbd137aab6d220 +size 470401 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/05_clip.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/05_clip.png new file mode 100644 index 0000000000000000000000000000000000000000..424c31e70ac202729daf31fa9f247fbcf98d9969 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/05_clip.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1aa867114bdfc2a860ac1d4ffada7553364dc15c004cc05d8464b05bce750d3d +size 346729 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/06_reproject-raster.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/06_reproject-raster.png new file mode 100644 index 0000000000000000000000000000000000000000..529b6672dc5a2ab7abd3c57ba5ee72c54adbb31e --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/06_reproject-raster.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a8edcbc3df8da758db1b94ee293321a2f3c5230b3eae51503a09cdecb079902 +size 279201 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/07_reproject-vector-layers.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/07_reproject-vector-layers.png new file mode 100644 index 0000000000000000000000000000000000000000..ffdd3d0a7432a634f14e4f275efdee74475e922c --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/07_reproject-vector-layers.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:370894c10617d5734874d5d52f3101070c66d5e5f56d4b2ce35ca5c979bd86c1 +size 587882 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/08_vector-to-raster.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/08_vector-to-raster.png new file mode 100644 index 0000000000000000000000000000000000000000..b966effaf1db28e33d85bf0b8a7958f9650b705a --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/08_vector-to-raster.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e118240007a8feb3bc75622921243398a2029465a8e71a2729aea1349428b2b +size 362028 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/09_bathymetry-depth-to-elev.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/09_bathymetry-depth-to-elev.png new file mode 100644 index 0000000000000000000000000000000000000000..fc72d22bffac7ade2e9ade441d0072388aabdccc --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/09_bathymetry-depth-to-elev.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d3189fd4a06c78a26a4865a280de0509b1b9ed2b6a4c3bd1f1cb334675fcab2 +size 293433 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/10_save-asc.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/10_save-asc.png new file mode 100644 index 0000000000000000000000000000000000000000..8efe6c06345b4256dee7719c610e4bf2b317a01b --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/10_save-asc.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5900c98da5d9fc6e7a0b2e48d43d80add9d5299f6f0fe77007b82f2d9b527e93 +size 298557 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/11_contour-for-coastline.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/11_contour-for-coastline.png new file mode 100644 index 0000000000000000000000000000000000000000..1a6e093ff0a8857930e2385cb5850a7a92fe57f3 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/11_contour-for-coastline.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7fe4f0f5d3f376cf20d6c1bf82e07c9039dcde2e88fcd051cf5f994a84f6f86 +size 327776 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/12_select-non-coast.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/12_select-non-coast.png new file mode 100644 index 0000000000000000000000000000000000000000..1e530f650ba25974c6620bfb604d9a76988debce --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/12_select-non-coast.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d2fd3059448ce09cf0847751f3c28b0d367fb69828d6c3d0c5d378909d49b42 +size 291547 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/13_remove-non-coast.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/13_remove-non-coast.png new file mode 100644 index 0000000000000000000000000000000000000000..c89f9649fd41d82fde978e359e05019b42f313f5 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/13_remove-non-coast.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24e68f66fd930af32834deb36e84bbde15fbe01f6f3da4f8757439f523da9f93 +size 300104 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/14_simplify-coast.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/14_simplify-coast.png new file mode 100644 index 0000000000000000000000000000000000000000..48e2ebecc68879837dd5f4195c9b5c0999a63fb7 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/14_simplify-coast.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcff6d567e915affad1a6a8dd7acf6cefd91fdbf15952185664cca3dfb31bb38 +size 312495 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/15_delete-unnecessary-vertices.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/15_delete-unnecessary-vertices.png new file mode 100644 index 0000000000000000000000000000000000000000..7ac955625f332ec6789fe2136cf9a8d5ae946826 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/15_delete-unnecessary-vertices.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f69162201d4b7c0fe56d8f117defd8377845f3a748bed02dace0d0e418e7b966 +size 230173 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/16_polygone-to-line.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/16_polygone-to-line.png new file mode 100644 index 0000000000000000000000000000000000000000..b9e89571ee0d76654c610acd984c089f7a59b225 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/16_polygone-to-line.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84c1a05bf8222d970d800bbd7696e88abba2c257e1c56924d6b38f53d5422617 +size 252391 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/17_remove-all-fields.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/17_remove-all-fields.png new file mode 100644 index 0000000000000000000000000000000000000000..610705a678407e6fb04288e398ddcd5d3bb45e72 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/17_remove-all-fields.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:173d360d05fe83c08f9079ff9b767b22dfa9a595358f978ebface58a80a6b5bc +size 233996 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/18_merge-vector-layers.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/18_merge-vector-layers.png new file mode 100644 index 0000000000000000000000000000000000000000..4b002336ebd2bbc00204891e7eb49b47c164046f --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/18_merge-vector-layers.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4aefc2d04db54f878c1cd795a092e8b2393a6c6f725b9f826bfd8198470d7bd +size 314792 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19a_save-gmsh.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19a_save-gmsh.png new file mode 100644 index 0000000000000000000000000000000000000000..5029d8e69cf6b77ae3b49b089b9cca5e48827369 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19a_save-gmsh.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51e0fb818724f1312335c8a32ae2019eb13345994d7f0e3e3e65872a34e4ad3b +size 109106 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19b_create-2d-mesh.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19b_create-2d-mesh.png new file mode 100644 index 0000000000000000000000000000000000000000..80b8fa7184e3121384e661a82a4c3e4eae736266 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19b_create-2d-mesh.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8057b4be53b2d6067536b42e7fb4b6c8008c0e0a6bbbc006c60995bfba67877e +size 92957 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19c_create-2d-mesh.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19c_create-2d-mesh.png new file mode 100644 index 0000000000000000000000000000000000000000..b5f3812c90708f069484b37b40a3af91ec10772e --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19c_create-2d-mesh.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:184f80bc15e5bd7150b8cd507ceec1bd755fb6f3a97c164c470afd94f112b319 +size 95410 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19d_create-2d-mesh.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19d_create-2d-mesh.png new file mode 100644 index 0000000000000000000000000000000000000000..ed54b9da077300e9806a7325a13293c3ccbdfb07 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/19d_create-2d-mesh.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f1b70b638250100193efb4e7c78aba237a9ec42adfe6dad62ae8f803edbb8ca +size 111987 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/20_create-3d-mesh.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/20_create-3d-mesh.png new file mode 100644 index 0000000000000000000000000000000000000000..6a9f8587dff45fbfdb795dcea352a45d55dab763 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/20_create-3d-mesh.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:688ed153e09392d45921e5ba4d02d86b2e89910e55589bdd8d4cdae67a9a2d89 +size 177477 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/21_create-3d-mesh.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/21_create-3d-mesh.png new file mode 100644 index 0000000000000000000000000000000000000000..d41caa8e49e2de01ee46927464e4b78ba0575c4f --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/21_create-3d-mesh.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90921e9f927a6a15cfe9cbe389fc99ea674cd5f72866a5f1c73f13b2ca33c720 +size 197130 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/22_save-3d-mesh.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/22_save-3d-mesh.png new file mode 100644 index 0000000000000000000000000000000000000000..d60d5c0c98c7b685611e235d643fe5d0a9db8d59 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/22_save-3d-mesh.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22748253b59ffeb3cf52adeaeece13a81945edfbd248b9a6729c2d3841e50038 +size 195591 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/24_define-bc-values.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/24_define-bc-values.png new file mode 100644 index 0000000000000000000000000000000000000000..88830e903a915753a7864bb6c616d57778700396 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/24_define-bc-values.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9d6bac15f2b60550623f262ebafbbe6f9be17a6d38beb78339b9858a8e39b84 +size 475930 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/25_simulation-result.png b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/25_simulation-result.png new file mode 100644 index 0000000000000000000000000000000000000000..9c57bb1f2459853940af59e61bc88307e8f33e26 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/25_simulation-result.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc2cfc1b10125a93be35cfc6c2385e80c5bf289f3c4bbc7eb42b0522bd33d7a4 +size 458252 diff --git a/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/index.pandoc b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/index.pandoc new file mode 100644 index 0000000000000000000000000000000000000000..5c4769470868a0511cf2f9ca0fbe00b5a32903d4 --- /dev/null +++ b/web/content/docs/tools/workflows/Example-of-a-DGM-to-model-workflow/index.pandoc @@ -0,0 +1,156 @@ ++++ +date = "2019-03-21T16:56:27+01:00" +title = "Example of a DGM-to-model-workflow" +author = "Marc Walther" + +[menu] + [menu.tools] + parent = "workflows" ++++ + +## Workflow description + +This documentation describes an exemplified workflow to create a groundwater flow model based on available data of a digital elevation model (here [SRTM data](https://earthexplorer.usgs.gov/)) and bathymetry data (here [GPDN](https://www.gpdn.de/?pgId=219)). As tools, it uses a GIS (here [QGIS](https://www.qgis.org)), the OGS DataExplorer and several [OGS tools](https://www.opengeosys.org/docs/tools/), as well as the meshing tool [GMSH](http://gmsh.info) and visualization tool [ParaView](http://www.paraview.org). The first part of this documentation deals with the GIS work, the second with the OGS model setup. + + +## GIS data preparation and extraction + +This part will prepare the DGM and bathymetry data as input for the model setup. For all the QGIS editing steps, you may additionally define an output file (but this is no requirement); if this is not defined, QGIS will load the results into the active project. + + +### Prepare elevation data + +1. It is likely that you will need to download more than one remote sensing image when the study area is large or overlapping the borders of one section. Download the required DGM data (here `.tif` files) of the study area and load them into QGIS. + +  + +2. Merge the images with `Raster` -> `Miscellaneous` -> `Merge...`; select the `Input Layer`s. + +  + +3. Extract a subregion of the (merged) DGMs and define the study area through a shape file. One may also use a predefined shape file and continue with step 5. Choose `New Shapefile Layer...` from the toolbar and enter a `File name` and a projection. + +  + +4. Edit the shape (`Toggle Editing` in toolbar), add points, and save the layer edits. + +  + +5. Clip the DGM with the shape file with `Raster` -> `Extraction` -> `Clip Raster by Mask Layer...`; define `Input Layer` and `Mask layer`, and assign the `Nodata value`. + +  + +6. If the raster does not have the correct projection, you will have to reproject it with the appropriate target system with `Raster` -> `Projections` -> `Warp (Reproject)`; select the `Input Layer` and the `Target CRS`. + +  + +7. This example also includes bathymetry data, which was available as vector data (isoline in a shape file). This file must be reprojected to the same coordinate system as the raster before with `Vector` -> `Data Management Tools` -> `Reproject Layer`; select `Input Layer` and the `Target CRS`. + +  + +8. Before merging DGM and bathymetry, the shape data needs to be converted to raster data with `Raster` -> `Conversion` -> `Rasterize (Vector to Raster)`; define `Input Layer`, the z-value (`burn-in value`), the resolutions, and the `nodata value`. + +  + +9. As bathymetry was given as "depth", this parameter needs to be converted to an "elevation"; use `Raster` -> `Raster Calculator` and define the `Output layer`, the `Output format` and the `Raster Calculator Expression` (shown formula only inverts the sign). + +  + +10. Merge the DGM and bathymetry rasters (as done in step 2), and save the merged file as a `.asc` file with `Raster` -> `Conversion` -> `Translate (Convert Format)`; define the `Input Layer` and the `Converted` output file. + +  + + +### Prepare study area features + +11. To make the coastline part of the mesh, the merged DGM-bathymetry will be used to create a contour isoline at an elevation of `0.01 m` with `Extraction` -> `Contour...`; select the `Input Layer`, set the `Interval between contour lines` to a high value and set the `Offset from zero`. + +  + +12. If more than the `0.01 m` contour is present in the new shape file, remove the not required contours by right-clicking the new shape file and `Open Attribute Table`; click `Select features using an expression` and define the contours based on your liking that you want to exclude (here, anything with an elevation larger than 1 is removed). + +  + +13. Finish the selection (close attribute table) and remove the selected features by editing the shape (`Toggle Editing`) and clicking `Delete Selected`; save the changes. + +  + +14. The remaining features may be too highly resoluted (see red line in below figure); choose `Vector` -> `Geometry Tools` -> `Simplify...`, and select an `Input Layer` as well as the `Simplification method` with an appropriate `Tolerance`. + +  + +15. Further, it might be useful to manually remove even more vertices from the polygon; `Toggle Editing` of the simplified shape and select and remove vertices. + +  + +16. The shape file used to clip the study area in step 5 will be used as the boundary of the model setup and be combined with the coastline. Firstly, convert the polygon of the study area to a polyline with `Vector` -> `Geometry Tools` -> `Polygons to Lines`; select the `Input Layer`. + +  + +17. Before merging the boundary and the coastline shapes, remove all fields from the boundary polyline through the `Attribute Table`; select everything and click `Delete field`. + +  + +18. Merge the boundary polyline and the coastline with `Vector` -> `Data Management Tools` -> `Merge Vector Layers`; select `Input Layers`. + +  + + +## OGS model setup + +The next steps will use the OGS DataExplorer, GMSH, and ParaView to prepare the model input files. A 2D mesh will be generated from the merged shape file containing the study area boundary and the coastline; the elevation data will be used to define the surface of the model and subsurface layer information will be used to define the aquifer structure. + + +### 3D Mesh creation + +19. Load the merged boundary-coastline shape into the DataExplorer (`File` -> `Import` -> `Shape Files`). Creation of the 2D mesh can be done in two ways: + + a) Either use GMSH: Save the geometry as a `.geo` file for usage in GMSH by choosing the tab `Geometry` and clicking the save icon. Afterwards, use GMSH to generate a 2D mesh to your liking and import it with `File` -> `Import Files` -> `GMSH files...`. + +  + + b) Or use the DataExplorer interface for GMSH: Use `Tools` -> `Create Mesh From Input Data...`. + +  + + From the dialogue, select the geometry which should be used and let it show up on the right side (`Employed information`). + +  + + Select the `Advanced` tab, choose `Adaptive meshing`, and remove the tick at `Delete GMSH geo-file after generating mesh` (in case you still want to manipulate the `.geo` file); click `OK`. + +  + +20. To create a 3D mesh, the previously defined elevation data and subsurface layer data will be used to define multiple layers of the model. In the left-side tab `Meshes`, right-click the newly created (or imported) mesh, and choose `Edit mesh...` + +  + +21. In the new dialogue, `Specify the number of layers to add` (here 10), click `Add layers based on raster files`, and load all `.asc` files that define the different layers into the interface. Also, define a `Minimum thickness of layers` (here 5 height units). + +  + + +### Boundary condition definition + +For the creation of the boundary conditions, use the following workflow. + +22. Save the created 3D mesh as a `.vtu` file by selecting the 3D mesh in the `Meshes` tab and clicking the save icon. In the new dialogue, choose a output directory, filename, and the `Data mode`. + +  + +23. To define water level and groundwater recharge, the top surface of the mesh will be used. Extract the surface with the tool [`ExtractSurface`]({{< ref "extract-surface" >}}). The following command is an example: + `ExtractSurface -i SubsurfaceMesh.vtu -o exSurf.vtu -x 0 -y 0 -z -1 -a 30` + +24. ParaView will be used to define boundary and initial condition values. +For boundary conditions, a separation of the water level (Dirichlet) and recharge (Neumann) boundary condition is required. Load the extracted top surface into ParaView and apply the following filter pipeline: + a) Apply a `Calculator` with the operation `coordsZ` to get a new parameter field with elevation data. + b) Apply a `Threshold` and define the value range from the lowest to the water level (here -35 to 0.01 height units); this will be the input file for the Dirichlet boundary condition. + c) Apply a `Calculator` with the operation `-9810*coordsZ` (i.e. fluid density multiplied by gravity by elevation) to get a pressure gradient. + d) repeat b) and c) on the `Calculator` from a) but with the value range water level to highest value (in the `Threshold`), and define the recharge value for the land area (in the `Calculator`). + e) Save the "land" and "water" meshes as `.vtu` files. + +  + +25. Define the `.prj` file of your setup, including the 3D mesh and boundary condition meshes and run the simulation. + +  \ No newline at end of file