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.
|
A set of classes for constructing XDMF hierarchies. More...
Classes | |
class | XdmfItem |
The base class for all XDMF XML elements. More... | |
class | DataItem |
An abc for an XDMF DataItem (HDF5 data set). More... | |
class | Attribute |
An abc for an XDMF Attribute (e.g., nodal or gauss point results). More... | |
class | Topology |
An abc for an XDMF Topology. More... | |
class | Grid |
An abc for an XDMF Grid (a mesh with results data). More... | |
class | Time |
An XDMF Time (a single time step value). More... | |
class | Geometry |
An XDMF Geometry (nodal coordinates). More... | |
class | TopologyCellType |
A helper class for identifying the cell/element topology type. More... | |
class | UniformMeshTopology |
An XDMF Topology for a single element or condition type. More... | |
class | HDF5UniformDataItem |
An XDMF DataItem for an HDF5 data set. More... | |
class | NodalData |
An XDMF Attribute for nodal solution step or data value container data. More... | |
class | GeometrycalObjectData |
An XDMF Attribute for element data value container data. More... | |
class | ElementData |
An XDMF Attribute for element data value container data. More... | |
class | ConditionData |
class | SpatialGrid |
A collection of uniform XDMF Grid objects with results data. More... | |
class | TemporalGrid |
A collection of XDMF Grid objects associated with time steps. More... | |
class | UniformGrid |
An XDMF Grid for a single element or condition. More... | |
class | Domain |
An XDMF Domain (computational domain). More... | |
class | Xdmf |
The XML root element of the XDMF model. More... | |
A set of classes for constructing XDMF hierarchies.
These classes are used to create an XDMF file which describes the Kratos model stored in HDF5 such that third party tools such as Paraview or VisIt can visualize the data.
For example, consider the following HDF5 file structure:
./mesh.h5 /NodalCoordinates /Element2D3N/Connectivities ./results.h5 /Nodal/PRESSURE
The XDMF file for viewing the results can be constructed with the following steps:
geom = Geometry(HDF5UniformDataItem(mesh_file["/NodalCoordinates"])) topology = UniformMeshTopology( TopologyCellType(2, 3), # for Element2D3N HDF5UniformDataItem(mesh_file["/Element2D3N/Connectivities"])) grid = UniformGrid("Element2D3N", geom, topology) nodal_pressure = NodalData("PRESSURE", HDF5UniformDataItem(results_file["/Nodal/PRESSURE"])) grid.add_attribute(nodal_pressure) root = Xdmf(Domain(grid)).create_xml_element() ElementTree(root).write('kratos.xdmf')
See also http://www.xdmf.org/index.php/XDMF_Model_and_Format.
BSD license: HDF5Application/license.txt