#include <Xdmf.h>
Classes | |
| struct | MeshData |
| struct | VarData |
Public Types | |
| enum class | Center { Null = 0 , Node , Edge , Face , Cell , Grid , Other } |
| enum class | DataType { Null = 0 , Char , Int32 , Int64 , Uint32 , Uint64 , Float , Double } |
| enum class | RankType { Null = 0 , Scalar , Vector , Tensor , Tensor6 , Matrix , GlobalID } |
| enum class | TopologyType { Null = 0 , Polyvertex , Polyline , Polygon , Triangle , Quadrilateral , Tetrahedron , Pyramid , Wedge , Hexahedron , Edge_3 , Triangle_6 , Quadrilateral_8 , Tetrahedron_10 , Pyramid_13 , Wedge_15 , Hexahedron_20 , Mixed , CurvilinearMesh2D , CurvilinearMesh3D , RectangularMesh2D , RectangularMesh3D , UniformMesh2D , UniformMesh3D } |
Public Member Functions | |
| void | addMesh (const std::string &meshName, const MeshData &domain) |
| Add a mesh domain. | |
| void | addMultiMesh (const std::string &meshName, const std::vector< MeshData > &submeshes) |
| Add a multi-mesh. | |
| void | addMultiMesh (const std::string &meshName, const std::vector< std::string > &submeshes) |
| Add a multi-mesh. | |
| void | clear () |
| Clear the internal data. | |
| bool | empty () const |
| Check if the class is empty. | |
| void | gather (const AMP::AMP_MPI &comm) |
| Gather all data to rank 0. | |
| void | write (const std::string &filename) const |
| Write the xml file. | |
Static Public Member Functions | |
| static MeshData | createCurvilinearMesh (const std::string &name, const ArraySize &size, const std::string &x, const std::string &y="", const std::string &z="") |
| Add a Curvilinear mesh. | |
| static MeshData | createPointMesh (const std::string &name, uint8_t NDIM, size_t N, const std::string &x, const std::string &y="", const std::string &z="") |
| Add a Point mesh. | |
| static MeshData | createUniformMesh (const std::string &name, const std::vector< double > &range, const ArraySize &size) |
| Add a uniform mesh. | |
| static MeshData | createUnstructuredMesh (const std::string &name, uint8_t NDIM, TopologyType type, size_t NumElements, const std::string &dofMap, size_t NumNodes, const std::string &x, const std::string &y="", const std::string &z="") |
| Add an unstructured mesh. | |
Private Attributes | |
| std::map< std::string, std::vector< MeshData > > | d_meshData |
|
strong |
|
strong |
|
strong |
|
strong |
| void AMP::Xdmf::addMesh | ( | const std::string & | meshName, |
| const MeshData & | domain | ||
| ) |
Add a mesh domain.
| void AMP::Xdmf::addMultiMesh | ( | const std::string & | meshName, |
| const std::vector< MeshData > & | submeshes | ||
| ) |
Add a multi-mesh.
| void AMP::Xdmf::addMultiMesh | ( | const std::string & | meshName, |
| const std::vector< std::string > & | submeshes | ||
| ) |
Add a multi-mesh.
| void AMP::Xdmf::clear | ( | ) |
Clear the internal data.
|
static |
Add a Curvilinear mesh.
This function adds a curvilinear mesh
| [in] | name | The name of the mesh |
| [in] | size | The number of cells in the mesh |
| [in] | x | The x coordinates or the xy/xyz coordinates |
| [in] | y | The y coordinates (may be null) |
| [in] | z | The z coordinates (may be null) |
|
static |
Add a Point mesh.
|
static |
Add a uniform mesh.
This function adds a uniform rectangular mesh
| [in] | name | The name of the mesh |
| [in] | range | The range of the mesh [ x_min, x_max, y_min, y_max, z_min, z_max ] |
| [in] | size | The number of cells in the mesh |
|
static |
Add an unstructured mesh.
This function adds an unstructured mesh to the class to write. The mesh may be one of several unsupported unstructured mesh types. This function does not support mixed elements.
| [in] | name | The name of the mesh |
| [in] | NDIM | The number of physical dimensions |
| [in] | type | The element type |
| [in] | NumElements | The number of elements |
| [in] | dofMap | The connectivity information (type x NumElements) |
| [in] | NumNodes | The number of nodes |
| [in] | x | The x coordinates or the xy/xyz coordinates |
| [in] | y | The y coordinates (may be null) |
| [in] | z | The z coordinates (may be null) |
|
inline |
| void AMP::Xdmf::gather | ( | const AMP::AMP_MPI & | comm | ) |
Gather all data to rank 0.
| void AMP::Xdmf::write | ( | const std::string & | filename | ) | const |
Write the xml file.
|
private |
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:42. Comments on this page |