KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Classes | Namespaces | Functions | Variables
xdmf_utils.py File Reference

Classes

class  xdmf_utils.NonExistingModule
 

Namespaces

 xdmf_utils
 Utilities for creating XDMF metadata from results stored in HDF5.
 

Functions

def xdmf_utils.TryOpenH5File (name, mode=None, driver=None, **kwds)
 A context manager wrapper for the opened file. More...
 
def xdmf_utils.RenumberConnectivitiesForXdmf (filename_or_list_of_filenames, h5path_to_mesh)
 Renumber mesh connectivities for XDMF. More...
 
def xdmf_utils.GetListOfSpatialGrids (spatial_grids_list, h5_model_part, current_path)
 
def xdmf_utils.CreateXdmfSpatialGrid (h5_model_part)
 Return an XDMF Grid object corresponding to a mesh in an HDF5 file. More...
 
def xdmf_utils.Has_dtype (item)
 
def xdmf_utils.XdmfNodalResults (h5_results)
 Return a list of XDMF Attribute objects for nodal results in an HDF5 file. More...
 
def xdmf_utils.XdmfNodalFlags (h5_results)
 Return a list of XDMF Attribute objects for nodal flags in an HDF5 file. More...
 
def xdmf_utils.XdmfElementResults (h5_results)
 Return a list of XDMF Attribute objects for element results in an HDF5 file. More...
 
def xdmf_utils.XdmfElementFlags (h5_results)
 Return a list of XDMF Attribute objects for element flags in an HDF5 file. More...
 
def xdmf_utils.XdmfElementGaussPointValues (h5_results)
 Return a list of XDMF Attribute objects for element integration point values in an HDF5 file. More...
 
def xdmf_utils.XdmfConditionResults (h5_results)
 Return a list of XDMF Attribute objects for element results in an HDF5 file. More...
 
def xdmf_utils.XdmfConditionFlags (h5_results)
 Return a list of XDMF Attribute objects for element flags in an HDF5 file. More...
 
def xdmf_utils.XdmfConditionGaussPointValues (h5_results)
 Return a list of XDMF Attribute objects for element integration point values in an HDF5 file. More...
 
def xdmf_utils.XdmfResults (h5_results)
 Return a list of XDMF Attribute objects for results in an HDF5 file. More...
 
def xdmf_utils.TimeLabel (file_path)
 Return the time string from the file name. More...
 
def xdmf_utils.TimeFromFileName (file_path)
 Return the time value for the file name. More...
 
def xdmf_utils.FindMatchingFiles (pattern)
 Return a list of HDF5 files matching the given file name pattern. More...
 
def xdmf_utils.GetSortedListOfFiles (pattern)
 Return sorted file list based on the time stamp. More...
 
def xdmf_utils.GetStep (value, patterns)
 
def xdmf_utils.GetMatchingGroupNames (output_dict, value, patterns, pattern_with_wildcards)
 
def xdmf_utils.CreateXdmfTemporalGridFromMultifile (list_of_h5_files, h5path_to_mesh, h5path_to_results)
 Return an XDMF Grid object for a list of temporal results in HDF5 files. More...
 
def xdmf_utils.WriteMultifileTemporalAnalysisToXdmf (ospath, h5path_to_mesh, h5path_to_results)
 Write XDMF metadata for a temporal analysis from multiple HDF5 files. More...
 
def xdmf_utils.CreateXdmfTemporalGridFromSinglefile (h5_file_name, h5path_pattern_to_mesh, h5path_pattern_to_results, bool require_results=False)
 Return an XDMF Grid object for a list of temporal results in a single HDF5 file. More...
 
def xdmf_utils.WriteSinglefileTemporalAnalysisToXdmf (h5_file_name, h5path_pattern_to_mesh, h5path_pattern_to_results, bool require_results=False)
 Write XDMF metadata for a temporal analysis from single HDF5 file. More...
 

Variables

 xdmf_utils.category
 
string xdmf_utils.warn_msg = "h5py module was not found!"
 
 xdmf_utils.h5py