WRApplication
External kratos "application" for multiscale time integration.
python_scripts.utilities.GenerateXDMF Namespace Reference

Classes

class  GenerateXDMF
 Generate XDMF output for an existing set of HDF5 output files. More...
 
class  _Dataset
 An HDF5Path with an associated mesh, also represented by an HDF5Path. More...
 
class  _Batch
 A set of HDF5 files and related data to process. More...
 

Functions

Generator[_Batch, None, None] MakeBatches (pathlib.Path journal_path, str output_path, int batch_size=-1, bool verbose=False)
 
None AddResultsToGrid ("list[Attribute]" results, HDF5Path mesh_path, SpatialGrid spatial_grid)
 
XDMF.Grid CreateXdmfTemporalGridFromMultifile (_Batch batch, bool verbose=False)
 
None BatchGenerate ("tuple[_Batch,bool]" arguments)
 Generate an XDMF file from a batch of input files. More...
 
None Generate (pathlib.Path journal_path, str output_pattern="batch_<batch>.xdmf", int batch_size=-1, bool verbose=False)
 Generate XDMF output for an existing set of HDF5 output files. More...
 

Detailed Description

Author
Máté Kelemen

Function Documentation

◆ AddResultsToGrid()

None python_scripts.utilities.GenerateXDMF.AddResultsToGrid ( "list[Attribute]"  results,
HDF5Path  mesh_path,
SpatialGrid  spatial_grid 
)

◆ BatchGenerate()

None python_scripts.utilities.GenerateXDMF.BatchGenerate ( "tuple[_Batch,bool]"  arguments)

Generate an XDMF file from a batch of input files.

The arguments are packaged into a single tuple:

  • batch: Batch (batch to process)
  • mesh_prefix: str (prefix of the mesh in HDF5 files that contain mesh data)
  • results_prefix: str (prefix of the mesh in HDF5 files that contain results data)
  • verbose: bool (print status messages while processing)

◆ CreateXdmfTemporalGridFromMultifile()

XDMF.Grid python_scripts.utilities.GenerateXDMF.CreateXdmfTemporalGridFromMultifile ( _Batch  batch,
bool   verbose = False 
)

◆ Generate()

None python_scripts.utilities.GenerateXDMF.Generate ( pathlib.Path  journal_path,
str   output_pattern = "batch_<batch>.xdmf",
int   batch_size = -1,
bool   verbose = False 
)

Generate XDMF output for an existing set of HDF5 output files.

◆ MakeBatches()

Generator[_Batch,None,None] python_scripts.utilities.GenerateXDMF.MakeBatches ( pathlib.Path  journal_path,
str  output_path,
int   batch_size = -1,
bool   verbose = False 
)