Skip to content

ogsdatacompare

Purpose

This MR contains a small package that semi-automatically compares data obtained from multiple experiments run with OGS.

Features

  • Compare results of multiple experiments observed at different points in one figure
  • Compare results of multiple experiments at specific point (one figure per observation point)
  • Compare results of multiple experiments at specific point and time
  • Compare impact of two parameters on the results as a 3D plot
  • Plot an overview of how maximum and minimum values of a parameter change with time

For more details see 'ogs-data-compare/Documentation/ogs_compare.md'

Application background

Not linked to any specific application. As long as data is available as vtu/pvd files and folders are structured correctly it will work.

Categories

  • preprocessing
  • postprocessing
  • visualization
  • HPC
  • application specific scripts

Example

from ogsdatacompare.ogs_data_compare import OGSDataCompare
import os

data_compare = ogsdatacompare.OGSDataCompare()
data_compare.read_data(path='path/to/experiment/folder',  # os.path.join is recommended
                       parameter='parameter_to_observe',
                       points_path='path/to/observation/points/definition/file.csv'  # os.path.join is recommended
                      )

data_compare.ogs_compare()
data_compare.ogs_compare_separate()
data_compare.ogs_compare_time_point(time_step=[1.0, 2.0, 3.0, 4.0, 5.0])
data_compare.ogs_compare_3d_view(time_step=[1.0, 2.0, 3.0, 4.0, 5.0])

data_compare.read_data_full()
data_compare.plot_min_max()

For more detailed example please see 'main_compare.py' in 'Visualization/ogs-data-compare' and Jupyter notebook in 'Documentation' folder.

Merge request reports

Loading