PPL Logo

PrismMesh Class Reference

#include <prismMesh.h>

Collaboration diagram for PrismMesh:

Collaboration graph
[legend]

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.
intgetPrism (int t)
 Return the t'th prism's 0-based node indices.
const intgetPrism (int t) const
intgetPrismConn (void)
const intgetPrismConn (void) const
int getPoints (void) const
 Return the number of points (vertices, nodes) in the mesh.
CkVector3dgetPoint (int p)
 Return the p'th vertex (0..getPoints()-1).
const CkVector3dgetPoint (int p) const
CkVector3dgetPointArray (void)
const CkVector3dgetPointArray (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_tprism
 Connectivity.
std::vector< CkVector3dpts
 nPts 3d node locations.

Data Structures

class  conn_t
 Connectivity: 0-based node indices around our prism. More...

Detailed Description

Definition at line 14 of file prismMesh.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
nodePer 

Definition at line 16 of file prismMesh.h.


Constructor & Destructor Documentation

PrismMesh::PrismMesh (  )  [inline]

Create a new empty mesh.

Definition at line 28 of file prismMesh.h.

PrismMesh::PrismMesh ( int  nt,
int  np 
) [inline]

Create a new mesh with this many prisms and points.

Definition at line 30 of file prismMesh.h.

References allocate().

Here is the call graph for this function:

virtual PrismMesh::~PrismMesh (  )  [inline, virtual]

Definition at line 31 of file prismMesh.h.


Member Function Documentation

virtual void PrismMesh::allocate ( int  nt,
int  np 
) [inline, virtual]

Set size of mesh to be nt prisms and np points. Throws away previous mesh.

Definition at line 34 of file prismMesh.h.

References prism, and pts.

Referenced by PrismMesh().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

int* PrismMesh::getPrism ( int  t  )  [inline]

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().

Here is the caller graph for this function:

const int* PrismMesh::getPrism ( int  t  )  const [inline]

Definition at line 43 of file prismMesh.h.

References prism.

int* PrismMesh::getPrismConn ( void   )  [inline]

Definition at line 44 of file prismMesh.h.

References getPrism().

Here is the call graph for this function:

const int* PrismMesh::getPrismConn ( void   )  const [inline]

Definition at line 45 of file prismMesh.h.

References getPrism().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

const CkVector3d& PrismMesh::getPoint ( int  p  )  const [inline]

Definition at line 51 of file prismMesh.h.

References pts.

CkVector3d * PrismMesh::getPointArray ( void   ) 

Definition at line 6 of file prismMesh.C.

References pts.

const CkVector3d * PrismMesh::getPointArray ( void   )  const

Definition at line 9 of file prismMesh.C.

References pts.

void PrismMesh::cleanup (  )  [inline]

Definition at line 55 of file prismMesh.h.

References prism, pts, and stats::swap().

Here is the call graph for this function:

int PrismMesh::addPrism ( const conn_t c  )  [inline]

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]

Definition at line 64 of file prismMesh.h.

References nonGhostPt, and pts.

void PrismMesh::writeToTecplot ( char *  fname  )  [inline]

Definition at line 67 of file prismMesh.h.

References file, n, prism, and pts.


Field Documentation

Definition at line 66 of file prismMesh.h.

Referenced by addPrism().

Definition at line 66 of file prismMesh.h.

Referenced by addPoint().

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().


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

Generated on Mon Sep 21 08:28:42 2020 for Charm++ by  doxygen 1.5.5