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.

Setting initial properties and variables in bulk meshes
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.
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.
Post-processing: reading and analyzing the data#
Plotting the data#
The following jupyter notebooks provide some examples of how to use ogstools to create all different kinds of plots.

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 get started with the FEFLOW converter.

Feflowlib: How to modify boundary conditions after conversion of a FEFLOW model.

Feflowlib: How to modify the project-file after converting a FEFLOW model.

Workflow: Component-transport model - conversion, simulation, postprocessing

Workflow: Hydraulic model - conversion, simulation and post-processing

Workflow: Hydro-thermal model - conversion, simulation and post-processing