Object / fluid interaction modelling with OpenFOAM - Submarine Case - Tutorial

This tutorial will apply OpenFOAM to simulate the flow effect on submerged object using the simpleFoam solver and the k-epsilon turbulence schema. The tutorial develops the case of a submarine model against a flow current; the velocity and pressure applied on the submarine will be analyzed on the model results and flow paths will be plotted to see the main patterns around the submarine. Model output visualization is performed on Paraview that allows the representation of velocity and pressure vectors over the submarine.

Read More

 

Suscribe to our online newsletter

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

 

Energy Dissipator Modelling in Open Channels with OpenFOAM - Tutorial

This tutorial will demonstrate the modelling configuration to simulate a power dissipator in an open channel. The dissipator design is proposed on the Stormwater Drainage Manual from the Drainage Services Department of Hong Kong and  OpenFOAM will be used for the simulation with the interFoam solver since two immiscible and isothermal fluids are involved (water and air). The main variable of interest on the dissipator simulation is flow velocity to assess the efficiency of the dissipator.

Read More

 

Suscribe to our online newsletter

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

 

Download Climate Change Data (2006-2096) on Daily Scale from NASA NCCS Server with Python - Tutorial

There are many Global Circulation Models (GCMs) with historic and future data of Precipitation, Maximum Temperature and Minimum Temperature for different emission scenarios. Data is available on daily timescale from particular servers, in this tutorial we will show the main characteristics of the NASA NCCS THREDDS Data Server that provide the NASA Earth Exchange Global Daily Downscaled Projections (NEX-GDDP) dataset that has two of the four greenhouse gas emissions scenarios. Data from this dataset is available from 1950 to 2100 separated on historic and future with a spatial resolution of 0.25 degrees (~25km x 25 km). The tutorial show the main parts of the web server and scripts in Python to locate the closest model cell and to recursively download group of records.

Read More

 

Suscribe to our online newsletter

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

 

How to download Climate Change data from the World Bank Data API with Python

World Bank has a Climate Change Knowledge Portal with information, data and reports about climate change around the world. The portal has an Climate Data API as REST framework that can provide Precipitation and Temperature data on historic and modeled dataset from 15 global circulation models (CGMs) and 2 emissions scenarios at country and basin spatial scale. There is a Python package called wbpy that makes really easy the access to the Climate Data API by few lines of code. There are options to download data on monthly, annual and decade timescale as Python dictionary data type. This tutorial show the main parts of the API, the involved codes and a example of usage for historic and future data.

Read More

 

Suscribe to our online newsletter

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

 

Fill Missing Precipitation Data with Artificial Intelligence (Python Keras) - Tutorial

Evaluation of hydrological processes as evapotranspiration, runoff, routing and infiltration require data as precipitation, flow, temperature and radiation on a daily basis. Required data for the hydrological modeling need to be accurate and must be completed over the period of study. Many times historical data from hydrological stations are incomplete and present many gaps that can be filled by the use of Artificial Intelligence tools as the Keras library in Python.

This tutorial show the procedure to run a complete script for the filling of missing precipitation in one station by the use of data from 2 nearby stations. The Python script is done on a Jupyter Notebook.

Read More

 

Suscribe to our online newsletter

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

 

Sedimentation Tank Design with OpenFOAM - Tutorial

Drinking and residual water treatment, water intake into hydroelectric power stations or water treatment for industrial processes require the removal of suspended particles by sedimentation tanks. These hydraulic structures have a slow speed water inlet and a geometry that allows the decantation or precipitation of sediments along the settler path.

OpenFOAM is a open source software for Computational Fluid Dynamics (CFD) modeling with a series of solvers for different flow conditions. In this case we have used the driftFluxFoam solver to represent sediment precipitation in a sedimentator in a transient simulation of 6400 seconds. The tutorial contains 2 videos with the model description and its simulation.

Read More

 

Suscribe to our online newsletter

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

 

Crop Yield Assessment from Photos with Python and Scikit-Learn

Evaluation of crop yield can be tedious because sampling methods requires the actual counting of fruits for a whole tree or canopy area. If we want to optimize this time demanding task we can use new and open source machine learning algorithms available. We have selected Scikit-Learn for this tutorial, a machine learning library in Python for it ease to use, the available documentation and the sort of available tools. 

The tutorial covers the whole procedure of image representation, point of interest selection, template matching, cluster analysis and fruit counting. Python scripting was done in Jupyter Notebook, it is interactive and allows the user to add more points of interest or remove inaccurate points.

Read More

 

Suscribe to our online newsletter

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

 

How to convert GTIFF to STL for Topography Representation in OpenFOAM Models

For OpenFOAM modelers the representation of topography can be painful due to the unstabilities and complexities of the Bezier Surfaces in Salome Platform. It is more stable to create the mesh by importing a full textured surface on a format file compatible with Salome. This tutorial show the process to create a STL file from a GeoTiff(.tif) file by scripts in Python. We have used the OSGeo4W Shell that comes with the normal QGIS instalation because it comes with the gdal library already installed.

Read More

 

Suscribe to our online newsletter

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

 

How To Create Line From Points in QGIS with PyQGIS and Pandas - Tutorial

Python scripting allows us to enhance the data management and spatial analysis in QGIS. Most times, spatial data comes from a variety of data providers in a sort of formats and data types that we have to be adapted to the GIS standard. Big data and continuos monitoring create large datasets that have to indexed, sorted and manipulated in a effective way.

QGIS has a Python console and the capability to install external Python packages that run on QGIS session. This time we have installed Pandas in QGIS to handle the data from a sensing device made on a Raspberry Pi 3 and then we have defined the path as a succession of points with PyQGIS scripting.

Read More

 

Suscribe to our online newsletter

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

 

Spatio-Temporal Hurricane Tracking in the Gulf of Mexico with QGIS and PyQGIS - Tutorial

This tutorial show a mixed procedure with native QGIS tools and PyQGIS commands for the data representation, styling and plotting with spatio-temporal criteria with the TimeManager plugin. Data for this tutorial was downloaded from the National Hurricane Center's Tropical Cyclone Reports that contains information as six-hourly positions and intensities. You can access the whole hurricane database o

Read More

 

Suscribe to our online newsletter

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

 

How to add multiple Vector Layers and group them in QGIS with PyQGIS - Tutorial

QGIS is a great software for the processing/analysis of spatial data, Python is a clear, powerful programming lenguaje; together they can enhance the spatial analysis to solve more complex or more dedicated problems in less time. PyQGIS is the Python environment inside QGIS with a set of QGIS libraries plus the Python tools with the potential of running other powerful libraries as Pandas, Numpy or Scikit-learn. 

This tutorial shows the whole procedure to upload multiple files from a certain pattern and group them on the Layer Panel using PyQGIS commands.

Read More

 

Suscribe to our online newsletter

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

 

How to Upload a Shapefile in QGIS with PyQGIS - Tutorial

QGIS is a great software for the processing/analysis of spatial data, Python is a clear, powerful programming lenguaje; together they can enhance the spatial analysis to solve more complex or more dedicated problems in less time. PyQGIS is the Python environment inside QGIS with a set of QGIS libraries plus the Python tools with the potential of running other powerful libraries as Pandas, Numpy or Scikit-learn. This tutorial show the basic procedure to upload a shapefile in QGIS with PyQGIS.

Read More

 

Suscribe to our online newsletter

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

 

Tree / Crop Counting and Classification with Python and Scikit-Image - Tutorial

Lately there has been a wide source of spatial photogrametry available for agriculture. Available submetric images can be found in Google Earth, and drone images can increase the ortophoto resolution to the order of centimeters. Most of this data gives us a new perspective of the spatial distribution and stage of the crops, however a real spatial analysis of crop metrics have not been widely performed due to limitations on the images and software involved. 

We tried to make this tutorial with the popular library OpenCV, however the installation process was tedious in Windows. Then we shifted to Scikit-Image, a image processing library in Python that comes already installed on the Anaconda software. The process for image analysis required intermediate Python and GIS skills, but most important a strong criteria of the algorithm inputs, options and results.

Read More

 

Suscribe to our online newsletter

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

 

How to join tables in QGIS - Tutorial

QGIS is a powerful open source software for spatial analysis and management of spatial data. User experience with QGIS is great and most users find QGIS easier to use than other free and commercial GIS software. This time we will show how simple is the process to join tables in QGIS. Spatial data of sanitary quality of beaches in Lima was used to show the join table process.

Read More

 

Suscribe to our online newsletter

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

 

Example of Zone Budget Package in MODFLOW with Model Muse

MODFLOW is the code developed by the USGS for the simulation of groundwater flow in steady and transient flow conditions. MODFLOW can represent a wide variety of physical process related to the groundwater flow regime as recharge, evapotranspiration, wells, among others. Latest development in MODFLOW allow the simulation of flow and transport in the unsaturated flow zone with the UZF and MT3D packages. From the beginning of the MODFLOW development the water balance on the groundwater models was a strong part of the modeling process with high accuracy in between the balance of water going in and out of the system. On any groundwater flow model build on MODFLOW there absolutely control over the water coming from the specified boundary conditions and the discrepancies are minimal.

Read More

 

Suscribe to our online newsletter

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

 

Tutorial: Wave Barrier Design with OpenFOAM and Salome

Coastal structures are subject to tidal and wave related boundary conditions. The design of a wave barrier have to assess the water levels on the inner bay from the impact of a wave and the maximum wave height on the outside part of the structure. This evaluation can be done by the use of dynamic simulations that take into account sea floor geometry, wave barrier height, position and interaction from the water channel and so on. OpenFOAM is an open source software for the simulation of flow in steady and transient states; the software allows us the simulation of the wave interaction with the coastal structure. The tutorial deals with the main parts of mesh construction in Salome and model set up and simulation in OpenFOAM.

Read More

 

Suscribe to our online newsletter

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

 

Tutorial: Determination of Glaciers and Lakes from Sentinel 2 Images with QGIS and SCP Plugin

Any object on the earth has a "signature" on a different bands or ranges on the visible and invisible spectrum. Base on the values and trends on this "spectral signature" one can classify different types of land cover as lakes, soils, wetlands, exposed rock and glaciers from many free and available multispectral satellite images as Sentinel 2, Aster, MODIS, and Landsat. QGIS is a very powerful open geographical information system software and its plugin Semiautomatic Classification Plugin gives QGIS many capabilities for the download, preprocess, classification and analysis of satellite imagery without using another desktop software. This tutorial deals with the whole procedure for the supervised classification of lakes and glaciers on a clipped Sentinel 2 image and its vectorization as polygons.

Read More

 

Suscribe to our online newsletter

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

 

Tutorial: Direct Landsat Imagery Dowload in QGIS with SCP Plugin

Based on the review from our followers, we have noticed that the download procedure to download images from the NASA and USGS web servers had changed. It is not clear the current method to download the selected files, even if you have your username and password set up correctly. Luckly there is an alternative way to download those files with QGIS and the Semiautomatic Classification Plugin (SCP). This tutorial covers the whole procedure to sign up, select, previsualize and download a Landsat 8 in QGIS with the SCP Plugin.

Read More

 

Suscribe to our online newsletter

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

 

Tutorial: Intake Channel Design with OpenFOAM and Salome

The design of hydraulic structures need the comprehension of water and structure interaction in terms of level, speed, sediment transport, among others. It is important for the hydraulic structure design to take into account the extreme events of flow, pressure and speed, therefore the computational fluid dynamics (CFD) modeling becomes essential in the design stage. OpenFOAM is an open source software for the simulation of flow in steady and transient states; this software allows us the simulation of the hydraulic response from an specific requirement in laminar and turbulent flow conditions, flow velocity calculation, and determination of static and dynamic pressures.

Read More

 

Suscribe to our online newsletter

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

 

Tutorial: Water Surplus Evaluation at Basin Scale with QGIS and Remote Sensing Data

The current availability of strong open source GIS software together with remote sensing data and specific data products as high resolution precipitation and evapotranspiration makes possible the assessment at global scale on short processing time of certain parts of the water cycle. Water surplus is the difference in between precipitation and actual evapotranspiration, that can be translated to the difference in between IMERG imagery (precipitation) and MOD16 imagery (actual evapotranspiration). This raster algebra calculation could be implemented in open source software as QGIS with a set of specific procedures as reprojections, temporary files and raster calculators. This tutorial deal with the water surplus calculation for a andean basin for year 2015.

Read More

 

Suscribe to our online newsletter

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