A Python class to export Modflow 2005 model 3D geometry and parameters to Vtk - Tutorial

Generating 3D visualizations of groundwater models is essential to analyze the flow regime, perform quality checks and see the interaction of the groundwater body with external factors / boundary conditions. The Flopy library has tools to export the parameters, boundary conditions and results that we have modified and compiled within a Python class. The use of this class allows the generation of Vtk files on a friendly way and in few steps. The tutorial also includes a representation of the parameters generated in ParaView.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Automatic calibration of transient pumping test with MODFLOW 6, Python, FloPy and Scikit Learn - Tutorial

Python has awesome packages for machine learning that can be coupled to groundwater models and perform automatic calibration of hydraulic parameters. This tutorial covers the procedure to implement a neural network based on a set of parameters set with corresponding head values; the study case is on a transient pumping test model with an observation point located around 10 meters away from the pump well. The analysis predicts the calibration parameters from the spatially interpolated observed head values. 

Read More
2 Comments

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to export a MODFLOW 6 model grid to shapefile with Python and Flopy - Tutorial

We did this tutorial since the documentation or examples on the topic were not available. Flopy can export the model grid and model attributes to shapefile with a coordinate system of reference for the three types of discretizations of MODFLOW 6. We have done an applied example to export the grid of a discretized by vertices model (DISV) to the ESRI Shapefile model. The tutorial also show options for the final grid representation in geopandas.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Sensibility analysis of transient pumping test with MODFLOW-6, Flopy and SALib - Tutorial

This tutorial covers the whole procedure to perform a sensitivity analysis over a 72 hour pumping test plus recovery on the hydraulic response in an observation piezometer located at 11 meters from the well. the Since the study case it’s a transient model the sensitivities will vary over time and stage of pumping/recovery.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to import a Leapfrog geological model to Model Muse with Python - Tutorial

Having a geological model can enhance numerical models since it allows to represent higher accuracy the potential distribution of hydraulic parameters in the horizontal and vertical direction. The process to implement/insert a geological model into a Modflow model is a challenge due to restrictions on proprietary software and spatial tools; we have done the whole procedure to insert a geological model into a MODFLOW-NWT groundwater model with scripts in Python, Pyvista and others.

The code extracts the cell centroids of the modflow model and then compares its position with the different geological units exported from Leapfrog to Vtk. Once the corresponding lithology of the cell is identified a hydraulic parameter is assigned. The tutorial works from Vtks of a geological model done in Leapfrog, but it can work with any Vtk.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Convert geological units from Leapfrog (*.msh) to VTK using Python and GemGIS - Tutorial

This tutorial shows the complete procedure to convert a geological unit as a Leapfrog mesh (*.msh) to the VTK (Visualization Toolkit) format using Python and GemGIS. Follow these steps to seamlessly transfer your geological data for advanced visualization, analysis and comparison with other model results.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Geological modeling of sedimentary layers from geospatial rasters with Python and Gempy - Tutorial

Based on a coupled workflow on QGIS and Python it is possible to extract the required information for a Gempy model and run it for defined voxel sizes. This tutorial covers the whole procedure of spatial data preparation, data preprocessing in defined formats and geological modeling with Python and Gempy.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Groundwater modeling of a pumping test over a confined aquifer with MODFLOW-6 and FloPy - Tutorial

We have done an applied groundwater model for a pumping test on a confined aquifer. The wellsite is located on the Clairborne aquifer (Georgia, USA) and has two observations on different layers besides the well itself. The aquifer test has two periods of pumping and recovery that last 3 days each one and the numerical model was constructed with MODFLOW-6 based on a Python script with the FloPy package. Comparison among observed and simulated wells were done with plots in Matplotlib.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

A Python class to export Modflow 6 model 3D geometry and data to Vtk - Tutorial

Generating 3D visualizations of groundwater models is essential to analyze the flow regime, perform quality checks and see the interaction of the groundwater body with external factors / boundary conditions. The Flopy library has tools to export the parameters, boundary conditions and results that we have modified and compiled within a Python class. The use of this class allows the generation of Vtk files on a friendly way and in few steps. The tutorial also includes a representation of the parameters generated in ParaView.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Docker image containing the parallel version of MODFLOW 6 with application examples

Modflow on parallel processing seemed to lie in the far-off future, but now it’s possible to take advantage of most of your cores to run parallelized versions of MODFLOW 6. Since most MODFLOW modelers work on Windows we wanted to bring something more than a “packed” solution; our goal was to bring an enriched “packed” experience.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Lithium speciation calculation on salt lake brines with Phreeqc and Python - Tutorial

Lithium interaction with the aqueous phase on brines phase is not well understood or at least not well covered by the scientific publications. To evaluate brine composition, brine dynamics and the interaction of the different components is really a challenge with the available tools for geochemical modeling as Phreeqc since it doesn’t appear in all the databases and in most it is only associated with sulfates.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Online tools for groundwater modeling preprocessing with Model Muse - Tutorial

If you want to speed up some steps in groundwater modeling you might be interested in the tools presented on this tutorial. We have developed some online tools that replace intense and time consuming tasks on desktop software and web servers and provide vector and raster data on the formats required by Model Muse. The tutorial covers the steps of DEM generation as Surfer Grid File (*.grd) with the definition of watersheds and river network based on two online services provided by Hatarilabs.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to split Modflow 6 groundwater model with Flopy and MF6Splitter - Tutorial

Modflow 6 has changed in many ways the traditional concepts of groundwater modeling; now a group of models can run under a "simulation" and these models can interchange flow and transport. Under this structure Flopy has implemented a tool to split a groundwater model into several models where their results can be reconstructed and compared to the original entire models. Capabilities and features like this make Flopy and Modflow 6 a great tool for developing advanced groundwater models that simulate complicated tasks or requirements to the groundwater flow regime.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to direct download / clip elevations and import them to Model Muse with Python - Tutorial

If you work often with numerical models this process will save you much time. The traditional method of downloading elevation models (Aster DEM) from websites, and reprojecting / clipping them with GIS software can be time consuming and pulls you out of other critical tasks on model conceptualization and calibrations. We have done a complete process in Python under WSL that runs Ubuntu in Windows, this platform was chosen due to the complexities of installing GDAL in Windows.

There are two scripts, one to download the images and the second to translate and clip the image. Finally the elevation are imported as a Surfer Grid File (*.grd) into a model in Model Muse.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

3d visualization of Modflow 6 models with Model Viewer - Tutorial

Model Viewer is an excellent option for the visualization and even the animation of MODFLOW models. There is a version of Model Viewer for Modflow 6 models and another for the rest of MODFLOW versions. This tutorial deals with the whole procedure of 3d model visualization that covers the model import, setting up the vertical exaggeration, making isosurfaces, show flow direction arrows, plotting boundary conditions among other features of Model Viewer.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Spatial data processing for groundwater modeling in Model Muse - Tutorial

Groundwater model creation requires a complete set of spatial data for the different hydraulic parameters, boundary conditions and other model items. Vector and raster data need to be preprocessed, converted, reprojected to fit the requirements of Model Muse.

This tutorial covers an applied case of raster and vector data processing for a groundwater model over the Oahu island (Hawaii, USA). The tutorial covers the steps to download the data, extract the river network and import the spatial data into Model Muse.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Seawater intrusion modeling with Flopy and Modflow Buy over a Tupac Cloud project - Tutorial

Finally, a complete alternative for the simulation of seawater intrusion on fully geospatial groundwater flow models of coastal aquifers based on open source software. The groundwater flow model was constructed on the Tupac Cloud platform with two stress periods and a total simulation time of 40 years.

The Tupac project is downloaded and run locally on Anaconda where the Buy package for variable density flow together with the transport model are implemented on a Flopy script. A graphical representation of the grid, boundary conditions and results from the flow and transport models are developed as well on the Jupyter notebook.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Tupac Cloud T.8: Coastal aquifer simulation with wells and rivers on steady and transient states

Applied case of regional groundwater modeling for a coastal aquifer with Modflow 6 using Voronoi meshes on Tupac Cloud. The aquifer has two stress periods (steady state and transient state) of 20 years each that simulate two phases of low/high aquifer exploitation. The model is constructed entirely from zipped shapefiles and rasters on the online platform. Results from the simulation are discussed on the water balances, water table distribution and cross section for all stress periods.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Tupac Cloud T.7: How to download your Tupac Cloud project and run it locally with Python and Flopy

Tupac Cloud is based on Python and Flopy and every project can be downloaded to your machine for special analysis, furter Modflow 6 feature implementation, machine learning based calibration, or just because a local backup copy is required. This tutorial shows the complete procedure to download a Tupac Cloud project, the executable implementation, the scripts to run the flopy code and well as a description of the different files and folders from a model project.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Tupac Cloud T.6: Transient simulation of tunnel interaction with the groundwater flow regime

This is an applied example of the impact trough time of a tunnel over the regional groundwater flow regime. The model has 5 stress periods with two variants of the drain (DRN) package implemented in Tupac Cloud. The tutorial covers all steps from model construction, boundary condition setup, model run and output data analysis.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.