How to install the Python geological modeling library Gempy in Windows with Debian and WSL

Gempy is an open-source library for modeling geology written in Python. The library is capable of creating complex 3D geological models including structures, fault networks, and unconformities and it can be coupled with uncertainty analysis.

Due to the required packages and specific configuration the installation of Gempy is a challenge on Windows, we have developed an alternative installation process by the use of a Debian kernel under a Windows Subsystem for Linux. This tutorial shows the complete procedure to install Gempy from the Debian kernel setup to the review of the Gempy in Python.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Gypsum and Anhydrite solubility calculation with Phreeqc and Python - Tutorial

Tutorial for the calculation of the solubility and thermodynamic stability of gypsum and anhydrite. The example simulates the dissolution of two minerals in a beaker at equilibrium, and the beaker is heated step-wise from 25ºC to 75ºC. Concentrations and saturation indices for the initial solution and the batch reaction are shown as Pandas dataframes and plotted as bar diagrams on a Jupyter Notebook. Finally a plot of the saturation index for anhydrite and gypsum with temperature is generated from an iteration over the batch reaction steps.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Advances in Modeling Groundwater Flow and Transport with MODFLOW

In 2017, the U.S. Geological Survey released a new core version of the MODFLOW program. This new version, called MODFLOW 6 (the sixth core version), extends the core MODFLOW capabilities to include robust solutions for complex water table problems, support for generalized meshes with focused resolution within areas of interest, and support for multiple models and multiple types of models within the same simulation. In addition to the Groundwater Flow Model, MODFLOW 6 now contains a Groundwater Transport Model, which can run simultaneously with the flow model or as a separate simulation using the results from a previous groundwater flow simulation.

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 speciation modeling with Phreeqc coupled with Python and Pandas - Tutorial

The speciation modeling allows to calculate the distribution of aqueous species in a solution. Phreeqc is capable to simulate this speciation calculation and we are going to demonstrate this capability on a study case of aqueous species in seawater.

We have done a tutorial for the speciation modeling of seawater with Phreeqc that runs under Python in a Jupyter Lab enviroment. The code can run the Phreeqc executable, define the databases and stablish the output files. Results from simulation are available as Pandas dataframes and plots are made for the main components and the distribution of saturation indices.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Should groundwater models from environmental evaluations be done in open source software?

The topic of open source software and environmental assessments has some interesting associations. For example, if an investment project delivers a groundwater model in Xflow software, the environmental evaluator needs an Xflow license in order to open the model, review the simulations, and report on their observations. But what about civil society? or the communities that have an interest in knowing how the model is built or in the results of the predictive simulations, do these people also need an Xflow license? And what happens if another regulator wants to review the model, can they do so or they can only ask for a technical opinion?

Read More
Comment

 

Suscribe to our online newsletter

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

 

Hatarilabs presents its study area for integrated and sustainable groundwater management

Because field work and numerical models are just tools for the sustainable management of our groundwater resources we have searched a study place to develop a long-term project on a high-stressed aquifer that will lead to sustainable and effective groundwater policies. The study area is an alluvial aquifer that was primarily used for agriculture production with an neighboring unplanned urban development that has increased the domestic / industrial water demand. Several pumping schemas were implemented on the area and have affected the groundwater levels and the water availability for agriculture.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Review of the latest functionalities of the new release of MODFLOW 6 (mf6.2.0)

Modflow6 is the latest version of the USGS code for groundwater modeling MODFLOW. This version has been coupled with another USGS open source software as Model Muse and Flopy and can implement diverse spatial discretization structures on a complete rearrangement of packages and keywords. We feel that there is a gap on the capabilities from a common groundwater modeler to adopt all the new development on Modflow and other open source groundwater software therefore we have prepared a video with the summary of this new release.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Basic tutorial of geological modeling with Python and Gempy

Gempy is an open-source library for modeling geology written in Python. The library is capable of creating complex 3D geological models including structures, fault networks, and unconformities and it can be coupled with uncertainty analysis.

We have created a tutorial of geological modeling based on geological contacts and surface orientations. The tutorial was developed in a Gempy container that runs under Docker in Windows 10; the tutorial covers the software installation and the geological modeling scripting.

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 comprehensive list of specific Python packages for hydrogeology and groundwater modeling

Development of open source software brings amazing new tools in all fields. In hydrogeology and groundwater modeling there is an increasing number of specific open source software and programming packages. We wanted to compile the latest libraries for Python related to hydrogeology, we asked for references and researched over the web to provide you the following list.

Read More
1 Comment

 

Suscribe to our online newsletter

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

 

Modeling impermeable walls with MODFLOW 6 and HFB Package - Tutorial

Modeling the performance and effectiveness of flow barriers or impermeable walls on the groundwater flow regime is a challenge due to the wall geometry / orientation and discretization requirements. The package Horizontal Flow Barrier was designed to simulate barriers of defined thickness and conductances that are located in between flow cells, in this way the flow barrier is independent for the model discretization. This package is not new, it dates back to 1993, and it was implemented on many MODFLOW versions.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Strategies for a hydrogeologist to develop advanced open source groundwater modeling software

There are some shining moments in live where a normal hydrogeologist decide to develop open source software for groundwater modeling and for every great task everyone needs an strategy.

You might need a plan to develop your hydrogeological career but you will certainly need an strategy to develop groundwater modeling software. We have to see a strategy as the optimization of steps towards a goal, from great strategists as Hannibal Barca against the Roman empire, we need to see the whole picture and then decide the best steps to take with the resource available.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Tutorial to create a geospatial Voronoi-sh mesh with Python, Scipy and Geopandas

Divide a continuous media as a hydrological / hydrogeological basin into discrete parts is an art. Cell size have to related to hydrological features, cell number have to be optimized to cover areas of interest with an adequate refinement while minimizing the total cell number. The computational process has be fast to allow user run multiple times to achieve a desired mesh.

We have done a tutorial that creates a Voronoi-sh mesh over shapefiles with several options for refinement and polygon relaxation, resulting polygons are clipped to the mesh boundary and exported as shapefile or geojson. The script was done with Python, Scipy, and Geopandas.

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.

 

Are hydrogeologist - numerical modelers limited without programming?

A great question came when we deal with numerical modeling in modern times or in the last 5 years, and that question is how much programming skills should a hydrogeologist - numerical modeler have? This question is above this one: Should a hydrogeologist - numerical modeler need to program in any language?

As a part of an socratic method attempt to answer this, we will split the question into some subquestions.

Read More
Comment

 

Suscribe to our online newsletter

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

 

8 Tutorials of Contaminant Transport Modeling in Modflow and MT3DMS / MT3D

Groundwater remediation is a challenge for stakeholders, scientists and population due to the limited baselines, high uncertainty, limited budgets and timeframes, and not so strong modeling capabilities of related professionals on a general scope (don’t take it personal). We might think about the success of groundwater remediation when we achieve a big group - more than a hundred per country - of geoscientists whit high skills on groundwater modeling distributed on the private sector, the regulatory sector and academia.

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 tutorial in MODFLOW 6 with regional flow, lakes, rives and piezometers

We have developed an applied groundwater modeling case on the mesoscale that covers the most relevant physical process that affect the underground flow regime. Numerical simulation was constructed on Modflow 6 and Model Muse 4 on steady state conditions with variable hydraulic conductivity with depth to represent interbedded low conductivity layers. The tutorial cover all the steps of model and boundary condition setup, working with spatial data, analysis of water balance and review of water levels on piezometers.

Note: This is a base case for a coming webinar in sensibility analysis with MODFLOW 6, Python and the Flopy and Salib libraries. More information of this event will be posted on our social networks.

Read More
1 Comment

 

Suscribe to our online newsletter

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

 

How to insert Piezometers (HOB) into a Regional Modflow 6 Model and plot Observed - Calculated Heads

This tutorial has the complete process to insert piezometers as a HOB package into a regional groundwater flow in Modflow6. Original location, surface elevation and screen elevation are in csv format that was converted to shapefile in order to be imported by Model Muse 4. The tutorial also covers a Python script to represent the plot of calculated-observed heads with the NRMSE value as a header.

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.

 

Web 3D Representation of a MODFLOW Model with Hataripy, Paraview and Steno3D

Groundwater can’t be seen (because its on the ground, obviously) and groundwater flow is extremely hard to understand unless we have a bigger scope of the theory and main features of the hydrogeological flow regime. One of the limitations for the understanding is the lack of interactive tools that provides user friendly environments for the representation of recharge zones, discharge zones, wells, wetlands, and other hydrogeological features.

We have developed a tutorial for the web representation of a MODFLOW model main features and head results in a combined process with the use of the Hataripy library, Paraview, Python and Steno3D.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Geochemical Speciation Modeling and Analysis with Phreeqc and Julia - Tutorial

The speciation modeling allows to calculate the distribution of aqueous species in a solution. Phreeqc is capable to simulate this speciation calculation and we are going to demonstrate this capability on a study case of aqueous species in seawater. Modeling was done with a Phreeqc executable and results were analysed on a interactive Julia script. Both parts were done on a Jupyter Lab session.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Websites where you can download complete groundwater flow models in MODFLOW

Learning groundwater modeling is a challenge for the complexities of the codes, the lack or scarce piezometric and water quality data, the heterogeneity of the porous media and the few resources to explore complete and applied groundwater models with different boundary conditions and predictive scenarios.

Just few websites had uploaded complete groundwater flow models in MODFLOW and are accessible to the general public. We have to admit that most of the websites come from public institutions in the US. We hope that in a near future we can have more resources to get model reports and the complete MODFLOW model.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Unofficial MODFLOW flow and transport executables for Linux (Ubuntu tested)

It might be that you are a talented groundwater modeler and very proficient with Python and Flopy that you start to realize that you don´t need to work in Windows anymore and want to migrate your favorite groundwater modeling code to other nice, soft, and warm Linux-based operating systems. Or, it might be the case that you want to configure and run MODFLOW models as a part of a webapp or in a web server. For the reasons mentioned before and other reasons that modern world could bring to us, a compiled version of MODFLOW in Linux is needed.

Read More
4 Comments

 

Suscribe to our online newsletter

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