ogs5py.tools.output

Tools for ogs5py output files (independent from VTK package).

get_output_files(task_root, task_id, pcs=None, typ='VTK', element=None)[source]

Get a list of output file paths.

Parameters:
  • task_root (string) – string containing the path to the directory containing the ogs output
  • task_id (string) – string containing the file name of the ogs task without extension
  • pcs (string or None, optional) –

    specify the PCS type that should be collected Possible values are:

    • None/”” (no PCS_TYPE specified in *.out)
    • ”NO_PCS”
    • ”GROUNDWATER_FLOW”
    • ”LIQUID_FLOW”
    • ”RICHARDS_FLOW”
    • ”AIR_FLOW”
    • ”MULTI_PHASE_FLOW”
    • ”PS_GLOBAL”
    • ”HEAT_TRANSPORT”
    • ”DEFORMATION”
    • ”MASS_TRANSPORT”
    • ”OVERLAND_FLOW”
    • ”FLUID_MOMENTUM”
    • ”RANDOM_WALK”

    Default : None

  • typ (string, optional) – Type of the output (“VTK”, “PVD”, “TEC_POINT” or “TEC_POLYLINE”). Default : “VTK”
  • element (string or None, optional) – For tecplot output you can specify the name of the output element. (Point-name of Line-name from GLI file) Default: None
readpvd_single(infile)[source]

Read a paraview pvd file.

Convert all concerned files to a dictionary containing their data.

split_ply_path(infile, task_id=None, line_name=None, PCS_name=None, split_extra=False)[source]

Retrive ogs-infos from filename for tecplot-polyline output.

{id}_ply_{line}_t{n}[_{PCS+extra}].tec

split_pnt_path(infile, task_id=None, pnt_name=None, PCS_name=None, split_extra=False, guess_PCS=False)[source]

Retrive ogs-infos from filename for tecplot-polyline output.

{id}_time_{pnt}[_{PCS+extra}].tec