#include <prismMesh.h>
Public Types | |
enum | { nodePer = 6 } |
Public Member Functions | |
PrismMesh () | |
Create a new empty mesh. | |
PrismMesh (int nt, int np) | |
Create a new mesh with this many prisms and points. | |
virtual | ~PrismMesh () |
virtual void | allocate (int nt, int np) |
Set size of mesh to be nt prisms and np points. Throws away previous mesh. | |
int | getPrisms (void) const |
Return the number of prisms in the mesh. | |
int * | getPrism (int t) |
Return the t'th prism's 0-based node indices. | |
const int * | getPrism (int t) const |
int * | getPrismConn (void) |
const int * | getPrismConn (void) const |
int | getPoints (void) const |
Return the number of points (vertices, nodes) in the mesh. | |
CkVector3d & | getPoint (int p) |
Return the p'th vertex (0..getPoints()-1). | |
const CkVector3d & | getPoint (int p) const |
CkVector3d * | getPointArray (void) |
const CkVector3d * | getPointArray (void) const |
void | cleanup () |
int | addPrism (const conn_t &c) |
Simple mesh modification. The new number of the added object is returned. | |
int | addPoint (const CkVector3d &pt) |
void | writeToTecplot (char *fname) |
Data Fields | |
int | nonGhostPrism |
int | nonGhostPt |
Private Attributes | |
std::vector< conn_t > | prism |
Connectivity. | |
std::vector< CkVector3d > | pts |
nPts 3d node locations. | |
Data Structures | |
class | conn_t |
Connectivity: 0-based node indices around our prism. More... |
Definition at line 14 of file prismMesh.h.
anonymous enum |
PrismMesh::PrismMesh | ( | ) | [inline] |
Create a new mesh with this many prisms and points.
Definition at line 30 of file prismMesh.h.
References allocate().
virtual PrismMesh::~PrismMesh | ( | ) | [inline, virtual] |
Definition at line 31 of file prismMesh.h.
Set size of mesh to be nt prisms and np points. Throws away previous mesh.
Definition at line 34 of file prismMesh.h.
Referenced by PrismMesh().
int PrismMesh::getPrisms | ( | void | ) | const [inline] |
Return the number of prisms in the mesh.
Definition at line 40 of file prismMesh.h.
References prism.
Referenced by faceSender::countFace(), and parallelSurfaceTransfer_c::transfer().
Return the t'th prism's 0-based node indices.
Definition at line 42 of file prismMesh.h.
References prism.
Referenced by faceSender::countFace(), getPrismBox(), getPrismConn(), faceSender::putFace(), and ConcreteLocalElement::set().
int* PrismMesh::getPrismConn | ( | void | ) | [inline] |
Definition at line 44 of file prismMesh.h.
References getPrism().
const int* PrismMesh::getPrismConn | ( | void | ) | const [inline] |
Definition at line 45 of file prismMesh.h.
References getPrism().
int PrismMesh::getPoints | ( | void | ) | const [inline] |
Return the number of points (vertices, nodes) in the mesh.
Definition at line 48 of file prismMesh.h.
References pts.
Referenced by faceSender::countFace(), and tetSender::countTet().
CkVector3d& PrismMesh::getPoint | ( | int | p | ) | [inline] |
Return the p'th vertex (0..getPoints()-1).
Definition at line 50 of file prismMesh.h.
References pts.
Referenced by ConcreteLocalElement::getNodeLocation(), getPrismBox(), faceSender::putFace(), and tetSender::putTet().
const CkVector3d& PrismMesh::getPoint | ( | int | p | ) | const [inline] |
CkVector3d * PrismMesh::getPointArray | ( | void | ) |
const CkVector3d * PrismMesh::getPointArray | ( | void | ) | const |
void PrismMesh::cleanup | ( | ) | [inline] |
Definition at line 55 of file prismMesh.h.
References prism, pts, and stats::swap().
Simple mesh modification. The new number of the added object is returned.
Definition at line 63 of file prismMesh.h.
References nonGhostPrism, and prism.
int PrismMesh::addPoint | ( | const CkVector3d & | pt | ) | [inline] |
void PrismMesh::writeToTecplot | ( | char * | fname | ) | [inline] |
std::vector<conn_t> PrismMesh::prism [private] |
Connectivity.
Definition at line 92 of file prismMesh.h.
Referenced by addPrism(), allocate(), cleanup(), getPrism(), getPrisms(), and writeToTecplot().
std::vector<CkVector3d> PrismMesh::pts [private] |
nPts 3d node locations.
Definition at line 93 of file prismMesh.h.
Referenced by addPoint(), allocate(), cleanup(), getPoint(), getPointArray(), getPoints(), and writeToTecplot().