PanNDE
All Classes Namespaces Functions Pages
Public Member Functions | List of all members
HostData::HexMesh Class Reference

#include "modules/HostData/include/HexMesh.hpp"

Inheritance diagram for HostData::HexMesh:
PanNDE::Mesh

Public Member Functions

int32_t nodeCount () override
 
int32_t cellCount () override
 
int32_t partitionId () override
 
void nodeCoordinate (int32_t node_id, double coord[3]) override
 
std::shared_ptr< PanNDE::Array< double > > nodeCoordinate (int32_t node_id) override
 
void cell (int32_t cell_id, int32_t *nodes) override
 
std::shared_ptr< PanNDE::Array< int32_t > > cell (int32_t cell_id) override
 
void connectedCells (int32_t node_id, int32_t *cells) override
 
std::shared_ptr< PanNDE::Array< int32_t > > connectedCells (int32_t node_id) override
 
int64_t globalNodeId (int32_t node_id) override
 
int32_t nodeHomePartition (int32_t node_id) override
 
int64_t globalCellId (int32_t cell_id) override
 
int32_t cellHomePartition (int32_t cell_id) override
 
void copy (PanNDE::Mesh *other) override
 
void copy (std::shared_ptr< PanNDE::Mesh > other) override
 
 HexMesh ()
 
 HexMesh (std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Node >> nodes, std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Cell >> cells, int32_t partition=0)
 
- Public Member Functions inherited from PanNDE::Mesh
virtual void copy (std::shared_ptr< PanNDE::Mesh > other)=0
 

Detailed Description

Implements PanNDE::Mesh

Constructor & Destructor Documentation

◆ HexMesh() [1/2]

HostData::HexMesh::HexMesh ( )
inline

blank constructor

◆ HexMesh() [2/2]

HostData::HexMesh::HexMesh ( std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Node >>  nodes,
std::shared_ptr< PanNDE::Array< PanNDE::Mesh::Cell >>  cells,
int32_t  partition = 0 
)
inline

mesh constructor from arrays of nodes, cells and partion identifier

Member Function Documentation

◆ cell() [1/2]

std::shared_ptr<PanNDE::Array<int32_t> > HostData::HexMesh::cell ( int32_t  cell_id)
inlineoverridevirtual

get the nodes which define the corners of the cell. Returns the node indices in a CGNS compliant winding scheme

Implements PanNDE::Mesh.

◆ cell() [2/2]

void HostData::HexMesh::cell ( int32_t  cell_id,
int32_t *  nodes 
)
inlineoverridevirtual

get the nodes which define the corners of the cell. A well constructed mesh implementation should return the nodes in a CGNS compliant winding scheme

Implements PanNDE::Mesh.

◆ cellCount()

int32_t HostData::HexMesh::cellCount ( )
inlineoverridevirtual

get the number of cells in the mesh

Implements PanNDE::Mesh.

◆ cellHomePartition()

int32_t HostData::HexMesh::cellHomePartition ( int32_t  cell_id)
inlineoverridevirtual

get the partition which owns the cell (i.e., updates values at this cell)

Implements PanNDE::Mesh.

◆ connectedCells() [1/2]

std::shared_ptr<PanNDE::Array<int32_t> > HostData::HexMesh::connectedCells ( int32_t  node_id)
inlineoverridevirtual

get the cells to which the node serves as corners. Returns the cell indices in a CGNS compliant winding scheme

Implements PanNDE::Mesh.

◆ connectedCells() [2/2]

void HostData::HexMesh::connectedCells ( int32_t  node_id,
int32_t *  cells 
)
inlineoverridevirtual

get the cells to which the node serves as corners. Returns the cell indices in a CGNS compliant winding scheme

Implements PanNDE::Mesh.

◆ copy() [1/2]

void HostData::HexMesh::copy ( PanNDE::Mesh other)
inlineoverridevirtual

create a copy of another mesh

Parameters
otherthe source mesh for the copy

Implements PanNDE::Mesh.

◆ copy() [2/2]

void HostData::HexMesh::copy ( std::shared_ptr< PanNDE::Mesh other)
inlineoverride

create a copy of another mesh

Parameters
otherthe source mesh for the copy

◆ globalCellId()

int64_t HostData::HexMesh::globalCellId ( int32_t  cell_id)
inlineoverridevirtual

get the global cell index for a given local index (for a partitioned mesh)

Implements PanNDE::Mesh.

◆ globalNodeId()

int64_t HostData::HexMesh::globalNodeId ( int32_t  node_id)
inlineoverridevirtual

get the global node index for a given local index (for a partitioned mesh)

Implements PanNDE::Mesh.

◆ nodeCoordinate() [1/2]

std::shared_ptr<PanNDE::Array<double> > HostData::HexMesh::nodeCoordinate ( int32_t  node_id)
inlineoverridevirtual

get the nodal coordinates

Implements PanNDE::Mesh.

◆ nodeCoordinate() [2/2]

void HostData::HexMesh::nodeCoordinate ( int32_t  node_id,
double  coord[3] 
)
inlineoverridevirtual

get the nodal coordinates

Implements PanNDE::Mesh.

◆ nodeCount()

int32_t HostData::HexMesh::nodeCount ( )
inlineoverridevirtual

get the number of nodes in the mesh

Implements PanNDE::Mesh.

◆ nodeHomePartition()

int32_t HostData::HexMesh::nodeHomePartition ( int32_t  node_id)
inlineoverridevirtual

get the partition which owns the node (i.e., updates values at this node)

Implements PanNDE::Mesh.

◆ partitionId()

int32_t HostData::HexMesh::partitionId ( )
inlineoverridevirtual

get the partition identifier for this mesh

Implements PanNDE::Mesh.


The documentation for this class was generated from the following file: