#include <tetmesh.h>
Public Types | |
enum | { nodePer = 4 } |
Public Member Functions | |
TetMesh () | |
Create a new empty mesh. | |
TetMesh (int nt, int np) | |
Create a new mesh with this many tets and points. | |
virtual | ~TetMesh () |
virtual void | allocate (int nt, int np) |
Set the size of this mesh to be nt tets and np points. | |
int | getTets (void) const |
Return the number of tets in the mesh. | |
int * | getTet (int t) |
Return the t'th tetrahedra's 0-based node indices. | |
const int * | getTet (int t) const |
int * | getTetConn (void) |
const int * | getTetConn (void) const |
double | getTetVolume (int t) const |
void | flipTet (int t) |
double | getTetOrientation (int t) |
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 | addTet (const conn_t &c) |
Simple mesh modification. | |
int | addPoint (const CkVector3d &pt) |
void | translateMesh (const CkVector3d &pt) |
void | write_real_tecplot (char *fname) |
Data Fields | |
int | nonGhostTet |
int | nonGhostPt |
Private Member Functions | |
void | ct (int t) const |
Check these indices for in-range. | |
void | cp (int p) const |
void | ct (int t) const |
void | cp (int p) const |
Private Attributes | |
std::vector< conn_t > | tet |
std::vector< CkVector3d > | pts |
Data Structures | |
class | conn_t |
Contains the connectivity only--no data.
Definition at line 18 of file tetmesh.h.
Create a new mesh with this many tets and points.
Definition at line 29 of file tetmesh.C.
References allocate().
Set the size of this mesh to be nt tets and np points.
Throws away the previous mesh.
Throws away the previous mesh.
Definition at line 37 of file tetmesh.C.
Referenced by readFEM(), readGhostFEM(), readNoboite(), and TetMesh().
int TetMesh::getTets | ( | void | ) | const [inline] |
Return the number of tets in the mesh.
Definition at line 42 of file tetmesh.h.
References tet.
Referenced by averageEdgeLength(), main(), parallelTransfer_c::parallelTransfer_c(), print(), printSize(), readNoboite(), parallelTransfer_c::transfer(), transferCells(), writeFEM(), and writeNoboite().
Return the t'th tetrahedra's 0-based node indices.
Definition at line 44 of file tetmesh.h.
Referenced by averageEdgeLength(), getBox(), getTetConn(), getTetVolume(), print(), printTet(), readGhostFEM(), TetMeshElement::TetMeshElement(), parallelTransfer_c::transferNodeValues(), and writeNoboite().
int* TetMesh::getTetConn | ( | void | ) | [inline] |
Definition at line 46 of file tetmesh.h.
References getTet().
Referenced by readFEM(), readGhostFEM(), readNoboite(), and writeFEM().
const int* TetMesh::getTetConn | ( | void | ) | const [inline] |
double TetMesh::getTetVolume | ( | int | t | ) | const |
Definition at line 61 of file tetmesh.C.
References getPoint(), getTet(), and tetVolume().
Referenced by main(), parallelTransfer_c::transfer(), and transferCells().
double TetMesh::getTetOrientation | ( | int | t | ) | [inline] |
int TetMesh::getPoints | ( | void | ) | const [inline] |
Return the number of points (vertices, nodes) in the mesh.
Definition at line 70 of file tetmesh.h.
References pts.
Referenced by print(), printSize(), readNoboite(), writeFEM(), and writeNoboite().
CkVector3d& TetMesh::getPoint | ( | int | p | ) | [inline] |
Return the p'th vertex (0..getPoints()-1).
Definition at line 72 of file tetmesh.h.
Referenced by averageEdgeLength(), getBox(), TetMeshElement::getNodeLocation(), getTetVolume(), print(), printSize(), printTet(), readGhostFEM(), parallelTransfer_c::transferNodeValues(), and writeNoboite().
const CkVector3d& TetMesh::getPoint | ( | int | p | ) | const [inline] |
CkVector3d * TetMesh::getPointArray | ( | void | ) |
Definition at line 43 of file tetmesh.C.
References pts.
Referenced by readFEM(), readGhostFEM(), readNoboite(), and writeFEM().
const CkVector3d * TetMesh::getPointArray | ( | void | ) | const |
void TetMesh::cleanup | ( | ) | [inline] |
Definition at line 77 of file tetmesh.h.
References pts, stats::swap(), and tet.
int TetMesh::addPoint | ( | const CkVector3d & | pt | ) | [inline] |
void TetMesh::translateMesh | ( | const CkVector3d & | pt | ) | [inline] |
void TetMesh::write_real_tecplot | ( | char * | fname | ) | [inline] |
void TetMesh::ct | ( | int | t | ) | const [private] |
Check these indices for in-range.
A very basic tetrahedral mesh.
Orion Sky Lawlor, olawlor@acm.org, 3/11/2003
Definition at line 13 of file tetmesh.C.
References tet.
Referenced by getTet().
void TetMesh::cp | ( | int | p | ) | const [private] |
Definition at line 17 of file tetmesh.C.
References pts.
Referenced by getPoint().
std::vector<conn_t> TetMesh::tet [private] |
Definition at line 124 of file tetmesh.h.
Referenced by addTet(), allocate(), cleanup(), ct(), flipTet(), getTet(), getTetOrientation(), getTets(), and write_real_tecplot().
std::vector<CkVector3d> TetMesh::pts [private] |
Definition at line 125 of file tetmesh.h.
Referenced by addPoint(), allocate(), cleanup(), cp(), getPoint(), getPointArray(), getPoints(), getTetOrientation(), translateMesh(), and write_real_tecplot().