#include "modules/PanNDE/include/Mesh.hpp"
Public Member Functions | |
virtual PanNDE::Mesh::Node | makeNode (double coord[3], int64_t global_id, int32_t owner=0)=0 |
virtual PanNDE::Mesh::Cell | makeCell (int32_t *nodes, int32_t Nnodes, int64_t global_id, int32_t owner=0)=0 |
virtual std::shared_ptr< PanNDE::Mesh > | makeManagedMesh (PanNDE::Mesh::Node *nodes, int64_t Nnodes, PanNDE::Mesh::Cell *cells, int64_t Ncells, int32_t partition=0)=0 |
virtual std::shared_ptr< PanNDE::Mesh > | makeManagedMesh (std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Node >> nodes, std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Cell >> cells, int32_t partition=0)=0 |
virtual PanNDE::Mesh * | newMesh (PanNDE::Mesh::Node *nodes, int64_t Nnodes, PanNDE::Mesh::Cell *cells, int64_t Ncells, int32_t partition=0)=0 |
virtual PanNDE::Mesh * | newMesh (std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Node >> nodes, std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Cell >> cells, int32_t partition=0)=0 |
virtual void | deleteMesh (PanNDE::Mesh *mesh)=0 |
virtual std::shared_ptr< PanNDE::Array< std::shared_ptr< PanNDE::Mesh > > > | makeManagedMeshArray ()=0 |
Defines a factory class to create a Mesh object
|
pure virtual |
delete meshes created using newMesh()
mesh | mesh to be deleted |
Implemented in HostData::HexMeshFactory.
|
pure virtual |
make a cell
nodes | nodal indicies which form the corners of the cell |
Nnodes | number of nodes which define the cell (e.g. 8 for hexes, 4 for tets) |
global_id | the global identifier of the cell |
owner | which mesh partition the cell belongs to |
Implemented in HostData::HexMeshFactory.
|
pure virtual |
create a shared mesh
nodes | a C-style array (not preferred) of Node structs |
Nnodes | the length of the nodes array |
cells | a C-style array (not preferred) of cell structs |
Ncells | the length of the cells array |
partition | the partition identifier of the mesh to be created |
Implemented in HostData::HexMeshFactory.
|
pure virtual |
|
pure virtual |
create a mesh array
Implemented in HostData::HexMeshFactory.
|
pure virtual |
make a node
coord[3] | nodal cartesian coordinates |
global_id | the global identifier of the node |
owner | which mesh partition the node belongs to |
Implemented in HostData::HexMeshFactory.
|
pure virtual |
create a mesh on a raw pointer. not recommended, call deleteMesh() if used.
nodes | a C-style array (not preferred) of Node structs |
Nnodes | the length of the nodes array |
cells | a C-style array (not preferred) of cell structs |
Ncells | the length of the cells array |
partition | the partition identifier of the mesh to be created |
Implemented in HostData::HexMeshFactory.
|
pure virtual |
create a mesh on a raw pointer. not recommended, call deleteMesh() if used.