Examples#
On this page you will find practical examples of using various features of how ogstools can be used. Different stages of the simulation workflow are covered.
Quick start#
In this section you will find examples helping you use the most commonly used features of ogstools: reading data, plotting and simple post-processing
Read mesh from file (vtu or xdmf) into pyvista mesh
Pre-processing: preparing the simulation#
This section shows how to create bulk meshes for the OGS simulation. To complete the model, boundary meshes and a prj file must be created in addition to the bulk mesh. Examples on those subjects will be added in the future.
Creating a BHE mesh (Borehole Heat Exchanger)
Creating meshes from pyvista surfaces
Creating meshes from vtu surface files
Remeshing with triangle elements
Create and manipulate prj-files#
The following jupyter notebooks provide some examples of how to use ogstools to create and manipulate prj-files to configure OGS models.
How to Create Simple Mechanics Problem
Running the simulation#
This section covers tools, that can be used to monitor OGS simulations at runtime. Examples about running simulations from Python will be added in the future.
Logparser: Predefined Analyses
Post-processing: reading and analyzing the data#
Aggregation of Meshseries Data
Calculate differences between meshes
Spatial & temporal refinement - nuclear decay
Spatial refinement - steady state diffusion
Analyzing integration point data
Plotting nuclear waste heat over time
Extract a 1D profile from 2D and plot it
Variable presets and data transformation
Plotting the data#
The following jupyter notebooks provide some examples of how to use ogstools to create all different kinds of plots.
How to plot data at observation points
Plotting different process variables on already existing Matplotlib figures / axes
Conversion tools#
This section covers tools designed to help with converting already existing simulations setup with alternative software to open formats compatible with OGS.
Feflowlib: How to work with FEFLOW data in pyvista.
Feflowlib: Component-transport model - conversion and simulation
Feflowlib: Hydraulic model - conversion and simulation
Feflowlib: Hydro-thermal model - conversion and simulation