Public Member Functions | |
pntMesh () | |
pntMesh (const std::string &ifname) | |
pntMesh (const meshBase *imb, int dim, int nBlk, const BlockMap &elmBlkMap) | |
~pntMesh ()=default | |
bool | isCompatible () const |
int | getNumberOfPoints () const |
int | getNumberOfCells () const |
int | getNumberOfBlocks () const |
std::vector< double > | getPointCrd (int id) const |
std::vector< int > | getElmConn (int id) const |
std::vector< int > | getElmConn (int id, VTKCellType vct) const |
std::vector< int > | getPntConn (std::vector< int > &ci, elementType et, int eo) const |
std::string | getBlockName (int id) const |
elementType | getBlockElmType (int id) const |
elementType | getElmType (int id) const |
int | getElmOrder (int id) const |
VTKCellType | getVtkCellTag (elementType et, int order) const |
void | write (const std::string &fname) const |
Private Member Functions | |
void | pntPopulate (const meshBase *imb) |
void | updElmBlk (int blkId) |
Private Attributes | |
std::string | ifname |
int | numVertices |
int | numElements |
int | numDimensions |
int | numBlocks |
int | numSurfaces |
int | numSurfInternal |
int | numSurfBoundary |
std::vector< std::vector< double > > | pntCrds |
std::vector< std::vector< int > > | elmConn |
std::vector< elementType > | elmTyp |
std::vector< int > | elmOrd |
std::vector< int > | elmBlkId |
std::vector< int > | elmLocalId |
std::vector< std::vector< int > > | elmSrfId |
std::vector< blockType > | elmBlks |
bool | isSupported |
std::set< std::set< int > > | connSet |
std::map< std::set< int >, int > | surfConnToId |
std::map< int, std::set< int > > | surfIdToConn |
std::vector< bool > | surfOnBndr |
std::map< int, std::vector< std::pair< int, int > > > | surfAdjRefNum |
std::map< int, std::vector< int > > | surfAdjElmNum |
|
explicit |
Definition at line 177 of file pntMesh.C.
References PNTMesh::blockType::adjBlkId, PNTMesh::blockType::adjElmId, PNTMesh::blockType::adjRefId, PNTMesh::bcTagNum(), PNTMesh::blockType::eConn, elmBlks, elmConn, elmOrd, elmTyp, PNTMesh::elmTypeNum(), PNTMesh::elmTypeStr(), PNTMesh::blockType::eTpe, PNTMesh::blockType::glbSrfId, isSupported, PNTMesh::blockType::nodesPerElement, numBlocks, PNTMesh::blockType::numBoundarySurfacesInBlock, numDimensions, numElements, PNTMesh::blockType::numElementsInBlock, numSurfaces, numSurfBoundary, numSurfInternal, PNTMesh::blockType::numSurfPerEleInBlock, numVertices, PNTMesh::blockType::ordEquat, PNTMesh::blockType::ordIntrp, pntCrds, PNTMesh::blockType::regionName, PNTMesh::blockType::srfBCEleRef, PNTMesh::blockType::srfBCTag, PNTMesh::TETRAHEDRON, and PNTMesh::TRIANGLE.
Definition at line 351 of file pntMesh.C.
References elmBlkId, elmBlks, elmConn, elmLocalId, PNTMesh::elmNumNde(), PNTMesh::elmNumSrf(), elmOrd, elmTyp, meshBase::getDataSet(), meshBase::getNumberOfCells(), meshBase::getNumberOfPoints(), numBlocks, numElements, numVertices, pntCrds, pntPopulate(), and PNTMesh::v2pEMap().
|
default |
PNTMesh::elementType PNTMesh::pntMesh::getBlockElmType | ( | int | id | ) | const |
std::string PNTMesh::pntMesh::getBlockName | ( | int | id | ) | const |
|
inline |
Definition at line 114 of file pntMesh.H.
References id.
Referenced by meshBase::exportPntToVtk(), and getElmConn().
std::vector< int > PNTMesh::pntMesh::getElmConn | ( | int | id, |
VTKCellType | vct | ||
) | const |
int PNTMesh::pntMesh::getElmOrder | ( | int | id | ) | const |
Definition at line 547 of file pntMesh.C.
References elmOrd, id, and numElements.
Referenced by meshBase::exportPntToVtk().
PNTMesh::elementType PNTMesh::pntMesh::getElmType | ( | int | id | ) | const |
Definition at line 537 of file pntMesh.C.
References elmTyp, id, and numElements.
Referenced by meshBase::exportPntToVtk().
|
inline |
|
inline |
std::vector< int > PNTMesh::pntMesh::getPntConn | ( | std::vector< int > & | ci, |
elementType | et, | ||
int | eo | ||
) | const |
Definition at line 469 of file pntMesh.C.
References PNTMesh::BRICK, PNTMesh::HEXAGON, PNTMesh::LAGRANGE_BRICK, and PNTMesh::TRIANGLE.
Referenced by write().
|
inline |
VTKCellType PNTMesh::pntMesh::getVtkCellTag | ( | elementType | et, |
int | order | ||
) | const |
Definition at line 558 of file pntMesh.C.
References PNTMesh::BRICK, PNTMesh::HEXAGON, PNTMesh::LAGRANGE_BRICK, PNTMesh::PRISMATIC, PNTMesh::QUADRILATERAL, PNTMesh::TETRAHEDRON, and PNTMesh::TRIANGLE.
Referenced by meshBase::exportPntToVtk().
|
private |
Definition at line 793 of file pntMesh.C.
References connSet, elmSrfId, meshBase::getDataSet(), NEM::MSH::New(), numBlocks, numSurfaces, numSurfBoundary, numSurfInternal, surfAdjElmNum, surfAdjRefNum, surfConnToId, surfIdToConn, surfOnBndr, and updElmBlk().
Referenced by pntMesh().
|
private |
Definition at line 1011 of file pntMesh.C.
References elmBlkId, elmBlks, elmConn, elmLocalId, elmSrfId, surfAdjRefNum, and surfOnBndr.
Referenced by pntPopulate().
void PNTMesh::pntMesh::write | ( | const std::string & | fname | ) | const |
Definition at line 609 of file pntMesh.C.
References PNTMesh::bcTagStr(), elmBlks, PNTMesh::elmTypeStr(), getPntConn(), id, numBlocks, numDimensions, numElements, numSurfaces, numSurfBoundary, numSurfInternal, numVertices, and pntCrds.
Referenced by NEM::DRV::VtkToPntConversionDriver::execute().
|
private |
Definition at line 155 of file pntMesh.H.
Referenced by pntPopulate().
|
private |
Definition at line 147 of file pntMesh.H.
Referenced by pntMesh(), and updElmBlk().
|
private |
Definition at line 150 of file pntMesh.H.
Referenced by getBlockElmType(), getBlockName(), pntMesh(), updElmBlk(), and write().
|
private |
Definition at line 144 of file pntMesh.H.
Referenced by pntMesh(), and updElmBlk().
|
private |
Definition at line 148 of file pntMesh.H.
Referenced by pntMesh(), and updElmBlk().
|
private |
Definition at line 146 of file pntMesh.H.
Referenced by getElmOrder(), and pntMesh().
|
private |
Definition at line 149 of file pntMesh.H.
Referenced by pntPopulate(), and updElmBlk().
|
private |
Definition at line 145 of file pntMesh.H.
Referenced by getElmType(), and pntMesh().
|
private |
|
private |
Definition at line 139 of file pntMesh.H.
Referenced by getBlockElmType(), getBlockName(), pntMesh(), pntPopulate(), and write().
|
private |
|
private |
Definition at line 137 of file pntMesh.H.
Referenced by getElmOrder(), getElmType(), pntMesh(), and write().
|
private |
Definition at line 140 of file pntMesh.H.
Referenced by pntMesh(), pntPopulate(), and write().
|
private |
Definition at line 142 of file pntMesh.H.
Referenced by pntMesh(), pntPopulate(), and write().
|
private |
Definition at line 141 of file pntMesh.H.
Referenced by pntMesh(), pntPopulate(), and write().
|
private |
|
private |
|
private |
Definition at line 160 of file pntMesh.H.
Referenced by pntPopulate().
|
private |
Definition at line 159 of file pntMesh.H.
Referenced by pntPopulate(), and updElmBlk().
|
private |
Definition at line 156 of file pntMesh.H.
Referenced by pntPopulate().
|
private |
Definition at line 157 of file pntMesh.H.
Referenced by pntPopulate().
|
private |
Definition at line 158 of file pntMesh.H.
Referenced by pntPopulate(), and updElmBlk().