A brief description of meshBase. More...
Definition at line 64 of file meshBase.H.
Public Member Functions | |
meshBase () | |
virtual | ~meshBase () |
virtual void | read (const std::string &fname)=0 |
abstract read method reserved for derived classes More... | |
virtual std::vector< double > | getPoint (nemId_t id) const =0 |
get point with id More... | |
virtual std::vector< std::vector< double > > | getVertCrds () const =0 |
get 3 vecs with x,y and z coords More... | |
virtual std::map< nemId_t, std::vector< double > > | getCell (nemId_t id) const =0 |
get cell with id More... | |
virtual std::vector< std::vector< double > > | getCellVec (nemId_t id) const =0 |
get vector of coords of cell with id More... | |
virtual void | inspectEdges (const std::string &ofname) const =0 |
get edge lengths of dataSet More... | |
vtkSmartPointer< vtkDataSet > | getDataSet () const |
get this meshes' dataSet More... | |
virtual vtkSmartPointer< vtkDataSet > | extractSurface ()=0 |
extract the surface mesh More... | |
virtual void | setPointDataArray (const std::string &name, const std::vector< std::vector< double >> &data) |
register data to dataSet's point data More... | |
virtual void | setPointDataArray (const std::string &name, const std::vector< double > &data) |
register data to dataSet's point data More... | |
virtual void | setCellDataArray (const std::string &name, const std::vector< std::vector< double >> &data) |
register data to dataSet's cell data More... | |
virtual void | setCellDataArray (const std::string &name, const std::vector< double > &data) |
register data to dataSet's cell data More... | |
virtual void | getPointDataArray (const std::string &name, std::vector< double > &data) |
get scalar point or cell data array. More... | |
virtual void | getPointDataArray (int arrayId, std::vector< double > &data) |
get scalar point or cell data array. More... | |
virtual int | getCellDataIdx (const std::string &name) |
<> More... | |
virtual void | getCellDataArray (const std::string &name, std::vector< double > &data) |
<> More... | |
virtual void | getCellDataArray (int arrayId, std::vector< double > &data) |
<> More... | |
virtual void | unsetPointDataArray (int arrayID) |
delete array with id from dataSet's point data More... | |
virtual void | unsetPointDataArray (const std::string &name) |
<> More... | |
virtual void | unsetCellDataArray (int arrayID) |
delete array with id from dataSet's cell data More... | |
virtual void | unsetCellDataArray (const std::string &name) |
<> More... | |
virtual void | unsetFieldDataArray (const std::string &name) |
delete array with id from dataSet's field data More... | |
virtual std::vector< double > | getCellLengths () const =0 |
get diameter of circumsphere of each cell More... | |
virtual std::vector< double > | getCellCenter (nemId_t cellID) const =0 |
get center of a cell More... | |
vtkSmartPointer< vtkStaticCellLocator > | buildStaticCellLocator () |
build locators for efficient search operations More... | |
vtkSmartPointer< vtkStaticPointLocator > | buildStaticPointLocator () |
build thread-safe point locator for efficient search operations More... | |
virtual int | getCellType () const =0 |
get cell type as an integer assumes all elements are the same type More... | |
virtual std::vector< nemId_t > | getConnectivities () const =0 |
get connectivities. More... | |
void | setMetadata (vtkSmartPointer< vtkModelMetadata > _metadata) |
vtkSmartPointer< vtkModelMetadata > | getMetadata () |
std::vector< std::vector< double > > | integrateOverMesh (const std::vector< int > &arrayIDs) |
integrate arrays in arrayIDs over the mesh. More... | |
void | generateSizeField (const std::string &method, int arrayID, double dev_mlt, bool maxIsmin, double sizeFactor=1.0, int order=1) |
generate size field based on method and given a point data array. More... | |
int | IsArrayName (const std::string &name, bool pointOrCell=false) const |
check for named array in vtk and return its integer id. More... | |
void | refineMesh (const std::string &method, int arrayID, double dev_mult, bool maxIsmin, double edge_scale, const std::string &ofname, bool transferData, double sizeFactor=1., bool constrainBoundary=false) |
perform sizefield-based h-refinement. More... | |
void | refineMesh (const std::string &method, const std::string &arrayName, double dev_mult, bool maxIsmin, double edge_scale, const std::string &ofname, bool transferData, double sizeFactor=1.) |
perform sizefield-based h-refinement. More... | |
void | refineMesh (const std::string &method, double edge_scale, const std::string &ofname, bool transferData, bool constrainBoundary=false) |
added for uniform refinement by driver More... | |
void | refineMesh (const std::string &method, int arrayID, int order, const std::string &ofname, bool transferData) |
<> More... | |
void | refineMesh (const std::string &method, const std::string &arrayName, int order, const std::string &ofname, bool transferData) |
<> More... | |
virtual void | report () const |
generate a report of the mesh More... | |
nemId_t | getNumberOfPoints () const |
return the number of points More... | |
nemId_t | getNumberOfCells () const |
return the number of cells More... | |
void | checkMesh (const std::string &ofname) const |
<> More... | |
std::map< nemId_t, nemId_t > | getGlobToPartNodeMap () |
global to local mapping of nodes More... | |
std::map< nemId_t, nemId_t > | getGlobToPartCellMap () |
global to local mapping of cells More... | |
std::map< nemId_t, nemId_t > | getPartToGlobNodeMap () |
local to global mapping of nodes More... | |
std::map< nemId_t, nemId_t > | getPartToGlobCellMap () |
local to global mapping of cells More... | |
virtual void | write () const |
write the mesh to file named after the private var 'filename'. More... | |
virtual void | write (const std::string &fname) const =0 |
write the mesh to file named fname More... | |
void | writeMSH (std::ofstream &outputStream) |
convert to gmsh format without data More... | |
void | writeMSH (const std::string &fname) |
convert to gmsh format without data More... | |
void | writeMSH (std::ofstream &outputStream, const std::string &pointOrCell, int arrayID) |
convert to gmsh format with specified point or cell data More... | |
void | writeMSH (const std::string &fname, const std::string &pointOrCell, int arrayID) |
convert to gmsh format without data More... | |
void | writeMSH (std::ofstream &outputStream, const std::string &pointOrCell, int arrayID, bool onlyVol) |
convert to gmsh format with specified point or cell data for only volume elements (USE ONLY FOR MADLIB STUFF) More... | |
void | writeMSH (const std::string &fname, const std::string &pointOrCell, int arrayID, bool onlyVol) |
convert to gmsh format with specified point or cell data for only volume elements (USE ONLY FOR MADLIB STUFF) More... | |
void | writeCobalt (meshBase *surfWithPatch, const std::string &mapFile, std::ofstream &outputStream) |
surfWithPatch must have patchNo array More... | |
void | writeCobalt (meshBase *surfWithPatch, const std::string &mapFile, const std::string &ofname) |
surfWithPatch must have patchNo array More... | |
void | setFileName (const std::string &fname) |
set the file name. More... | |
const std::string & | getFileName () const |
get the current file name More... | |
void | setCheckQuality (bool x) |
set whether to check quality of transfer by back-transfer and rmse More... | |
void | setContBool (bool x) |
set weighted averaging/smoothing for cell data transfer (default is off) More... | |
meshBase * | convertQuads () |
std::vector< std::string > | getNewArrayNames () |
get new array names for use in transfer More... | |
std::vector< int > | getArrayIDs (std::vector< std::string > arrayNames, bool fromPointArrays=false) |
given array names, return corresponding ids More... | |
void | convertHexToTetVTK (vtkSmartPointer< vtkDataSet > meshdataSet) |
Converts given hexahedral VTK dataset into tetrahedral mesh and stores it into dataSet variable. More... | |
Static Public Member Functions | |
static meshBase * | Create (const std::string &fname) |
Construct vtkMesh from filename. More... | |
static meshBase * | Create (vtkSmartPointer< vtkDataSet > other, const std::string &newname) |
Construct from existing vtkDataSet and assign newname as filename. More... | |
static meshBase * | Create (const std::vector< double > &xCrds, const std::vector< double > &yCrds, const std::vector< double > &zCrds, const std::vector< nemId_t > &elmConn, const int cellType, const std::string &newname) |
create from coordinates and connectivities. More... | |
static std::shared_ptr< meshBase > | CreateShared (const std::string &fname) |
Create shared ptr from fname. More... | |
static std::shared_ptr< meshBase > | CreateShared (meshBase *mesh) |
Create shared ptr from existing meshbase. More... | |
static std::shared_ptr< meshBase > | CreateShared (vtkSmartPointer< vtkDataSet > other, const std::string &newname) |
Create shared ptr from existing vtkDataset and assign newname as filename. More... | |
static std::shared_ptr< meshBase > | CreateShared (const std::vector< double > &xCrds, const std::vector< double > &yCrds, const std::vector< double > &zCrds, const std::vector< nemId_t > &elmConn, int cellType, const std::string &newname) |
Version of raw data mesh creation for memory managed shared_ptr instance. More... | |
static std::unique_ptr< meshBase > | CreateUnique (const std::string &fname) |
create unique ptr from fname More... | |
static std::unique_ptr< meshBase > | CreateUnique (const std::vector< double > &xCrds, const std::vector< double > &yCrds, const std::vector< double > &zCrds, const std::vector< nemId_t > &elmConn, int cellType, const std::string &newname) |
version of raw data mesh creation for memory managed unique ptr instance More... | |
static std::unique_ptr< meshBase > | CreateUnique (vtkSmartPointer< vtkDataSet > other, const std::string &newname) |
construct from existing vtkDataSet and assign newname as filename More... | |
static std::unique_ptr< meshBase > | CreateUnique (meshBase *mesh) |
construct from existing meshbase object More... | |
static meshBase * | exportGmshToVtk (const std::string &fname) |
construct vtkMesh from gmsh msh file (called in Create methods) More... | |
static meshBase * | exportVolToVtk (const std::string &fname) |
construct vtkMesh from netgen vol file (called in Create methods) More... | |
static meshBase * | exportPntToVtk (const std::string &fname) |
construct vtkMesh from netgen vol file (called in Create methods) More... | |
static meshBase * | exportExoToVtk (const std::string &fname) |
construct vtkMesh from exodusII files More... | |
static meshBase * | stitchMB (const std::vector< meshBase *> &mbObjs) |
stitch together several meshBases More... | |
static std::shared_ptr< meshBase > | stitchMB (const std::vector< std::shared_ptr< meshBase >> &_mbObjs) |
stitch together several meshBase More... | |
static std::vector< std::shared_ptr< meshBase > > | partition (const meshBase *mbObj, int numPartitions) |
mesh partitioning (with METIS) More... | |
static meshBase * | extractSelectedCells (meshBase *mesh, const std::vector< nemId_t > &cellIds) |
extract subset of mesh given list of cell ids and return meshBase obj More... | |
static meshBase * | extractSelectedCells (vtkSmartPointer< vtkDataSet > mesh, vtkSmartPointer< vtkIdTypeArray > cellIds) |
helper wrapped by function above More... | |
Protected Attributes | |
nemId_t | numPoints |
number of points in mesh More... | |
nemId_t | numCells |
number of cells in mesh More... | |
vtkSmartPointer< vtkDataSet > | dataSet |
mesh points, topology and data More... | |
std::string | filename |
name of mesh file More... | |
bool | checkQuality |
check transfer quality when on More... | |
bool | continuous |
switch on / off weighted averaging for cell data transfer (default is off) More... | |
std::vector< std::string > | newArrayNames |
new names to set for transferred data More... | |
std::map< nemId_t, nemId_t > | globToPartNodeMap |
map between global and local node idx in partition for distributed data sets More... | |
std::map< nemId_t, nemId_t > | globToPartCellMap |
map between global and local cell idx in partition More... | |
std::map< nemId_t, nemId_t > | partToGlobNodeMap |
map between local and global node idx in partition More... | |
std::map< nemId_t, nemId_t > | partToGlobCellMap |
map between local and global cell idx in partition More... | |
vtkSmartPointer< vtkModelMetadata > | metadata |
Inherited by FOAM::foamMesh, gmshMesh, meshSrch, and vtkMesh.
|
inline |
Definition at line 67 of file meshBase.H.
|
inlinevirtual |
Definition at line 95 of file meshBase.H.
vtkSmartPointer< vtkStaticCellLocator > meshBase::buildStaticCellLocator | ( | ) |
Definition at line 1640 of file meshBase.C.
References NEM::MSH::New().
Referenced by writeCobalt().
vtkSmartPointer< vtkStaticPointLocator > meshBase::buildStaticPointLocator | ( | ) |
Definition at line 1648 of file meshBase.C.
References NEM::MSH::New().
void meshBase::checkMesh | ( | const std::string & | ofname | ) | const |
ofname | <> |
Definition at line 1657 of file meshBase.C.
References MeshQuality::checkMesh().
void meshBase::convertHexToTetVTK | ( | vtkSmartPointer< vtkDataSet > | meshdataSet | ) |
meshdataSet | Input hexahedral mesh dataset |
Definition at line 1826 of file meshBase.C.
References NEM::MSH::New().
meshBase * meshBase::convertQuads | ( | ) |
Definition at line 1769 of file meshBase.C.
References NEM::MSH::New(), and points.
Referenced by proteusHdf5::proteusHdf5().
|
static |
This method calls the other factory methods based on extension.
fname | name of mesh file |
Caller must delete object after use.
Definition at line 78 of file meshBase.C.
Referenced by OrderOfAccuracy::computeMeshWithResolution(), NEM::GEO::rocPack::createCohesiveElements(), CreateShared(), CreateUnique(), NEM::DRV::BlockMeshMeshGenDriver::execute(), NEM::DRV::SnappyMeshMeshGenDriver::execute(), NEM::DRV::VtkToPntConversionDriver::execute(), NEM::DRV::TransferDriver::execute(), NEM::DRV::CheckMeshQualDriver::execute(), NEM::DRV::GmshToExoConversionDriver::execute(), hdf5Reader::exportToMeshBase(), extractSelectedCells(), NEM::DRV::MeshGenDriver::MeshGenDriver(), NEM::DRV::ConversionDriver::procExo(), proteusHdf5::proteusHdf5(), and stitchMB().
|
static |
Caller must delete object after use.
other | The vtkDataSet used to construct the mesh |
fname | name of mesh file |
Definition at line 112 of file meshBase.C.
|
static |
Use of this is only valid when mesh has one cell type.
xCrds | <> |
yCrds | <> |
zCrds | <> |
elmConn | <> |
cellType | one of the vtkCellType enums. Currently, only VTK_TETRA and VTK_TRIANGLE are supported. |
newname | name of mesh file |
Caller must delete object after use.
Definition at line 120 of file meshBase.C.
|
static |
Memory is managed by shared pointer, so do not call delete after use.
fname | name of mesh file |
Definition at line 171 of file meshBase.C.
References Create(), and mesh.
Referenced by COBALT::cobalt::cobalt(), NEM::DRV::VtkHexToTetConversionDriver::execute(), NEM::DRV::BlockMeshMeshGenDriver::execute(), NEM::DRV::SnappyMeshMeshGenDriver::execute(), NEM::DRV::GmshMeshGenDriver::execute(), NEM::DRV::NetgenMeshGenDriver::execute(), NEM::DRV::VtkToFoamConversionDriver::execute(), NEM::DRV::UniformRefineDriver::execute(), NEM::DRV::VtkToCobaltConversionDriver::execute(), NEM::DRV::Z2RefineDriver::execute(), NEM::DRV::SizeFieldRefineDriver::execute(), NEM::DRV::FoamRefineDriver::execute(), NEM::DRV::AutoVerificationDriver::execute(), NEM::DRV::VtkToPatranConversionDriver::execute(), meshStitcher::initSurfCgObj(), meshStitcher::initVolCgObj(), NEM::DRV::MeshGenDriver::MeshGenDriver(), partition(), PATRAN::patran::patran(), and stitchMB().
Memory is managed by shared pointer, so do not call delete after use.
mesh | the existing meshbase |
(be careful with this one!)
Definition at line 154 of file meshBase.C.
|
static |
Memory is managed by shared pointer, so do not call delete after use.
other | The vtkDataSet used to construct the mesh |
fname | name of mesh file |
Definition at line 162 of file meshBase.C.
References Create(), and mesh.
|
static |
Memory is managed by shared pointer, so do not call delete after use.
xCrds | <> |
yCrds | <> |
zCrds | <> |
elmConn | <> |
cellType | one of the vtkCellType enums. Currently, only VTK_TETRA and VTK_TRIANGLE are supported. |
fname | name of mesh file |
Definition at line 179 of file meshBase.C.
References Create(), and mesh.
|
static |
Memory is managed by shared pointer, so do not call delete after use.
fname | name of mesh file |
Definition at line 190 of file meshBase.C.
References Create().
|
static |
Memory is managed by shared pointer, so do not call delete after use.
xCrds | <> |
yCrds | <> |
zCrds | <> |
elmConn | <> |
cellType | one of the vtkCellType enums. Currently, only VTK_TETRA and VTK_TRIANGLE are supported. |
fname | name of mesh file |
Definition at line 130 of file meshBase.C.
References Create().
|
static |
Memory is managed by shared pointer, so do not call delete after use.
other | The vtkDataSet used to construct the mesh |
fname | name of mesh file |
Definition at line 140 of file meshBase.C.
References Create().
Memory is managed by shared pointer, so do not call delete after use.
mesh | the existing meshbase |
Definition at line 147 of file meshBase.C.
References mesh.
|
static |
exports exodusII to vtk format
fname | name of mesh file |
Definition at line 918 of file meshBase.C.
References dataSet, NEM::MSH::EXOMesh::e2vEMap(), NEM::MSH::EXOMesh::elmTypeNum(), NEM::MSH::New(), numCells, numPoints, points, setFileName(), vtkMesh::write(), and NEM::MSH::EXOMesh::wrnErrMsg().
|
static |
fname | name of mesh file |
Definition at line 409 of file meshBase.C.
References data, dataSet, id, NEM::MSH::New(), numCells, numPoints, points, vtkMesh::setCellDataArray(), and vtkMesh::setPointDataArray().
Referenced by NEM::DRV::GmshToVtkConversionDriver::execute(), NEM::DRV::GmshMeshGenDriver::execute(), NEM::GEO::rocPack::geomToVTK(), NEM::DRV::MeshGenDriver::MeshGenDriver(), and NEM::ADP::Refine::run().
|
static |
exports pntMesh to vtk format
fname | name of mesh file |
Definition at line 848 of file meshBase.C.
References dataSet, PNTMesh::pntMesh::getElmConn(), PNTMesh::pntMesh::getElmOrder(), PNTMesh::pntMesh::getElmType(), PNTMesh::pntMesh::getNumberOfCells(), PNTMesh::pntMesh::getNumberOfPoints(), PNTMesh::pntMesh::getPointCrd(), PNTMesh::pntMesh::getVtkCellTag(), NEM::MSH::New(), numCells, numPoints, points, setFileName(), and nemAux::trim_fname().
|
static |
fname | name of mesh file |
Definition at line 766 of file meshBase.C.
References dataSet, NEM::MSH::New(), numCells, numPoints, points, setFileName(), and nemAux::trim_fname().
Referenced by NEM::DRV::NetgenMeshGenDriver::execute(), and NEM::DRV::MeshGenDriver::MeshGenDriver().
|
static |
mesh | The meshBase object to extract the subset from. |
cellIds | <> |
Definition at line 226 of file meshBase.C.
References getDataSet(), and NEM::MSH::New().
|
static |
mesh | The meshBase object to extract the subset from. |
cellIds | <> |
Definition at line 239 of file meshBase.C.
References Create(), and NEM::MSH::New().
|
pure virtual |
Implemented in FOAM::foamMesh, vtkMesh, meshSrch, and gmshMesh.
Referenced by vtkMesh::read().
void meshBase::generateSizeField | ( | const std::string & | method, |
int | arrayID, | ||
double | dev_mlt, | ||
bool | maxIsmin, | ||
double | sizeFactor = 1.0 , |
||
int | order = 1 |
||
) |
method | (e.g., "gradient", "value", "error estimator") |
arrayID | <> |
dev_mlt | used to determine which cells to consider for refinement |
maxIsmin | used to determine which cells to consider for refinement |
sizeFactor | <> |
order | <> |
Definition at line 396 of file meshBase.C.
References NEM::ADP::SizeFieldBase::computeSizeField(), NEM::ADP::SizeFieldBase::CreateUnique(), and NEM::ADP::SizeFieldBase::setSizeFactor().
Referenced by NEM::ADP::Refine::Refine().
std::vector< int > meshBase::getArrayIDs | ( | std::vector< std::string > | arrayNames, |
bool | fromPointArrays = false |
||
) |
Definition at line 1835 of file meshBase.C.
References id.
id | The id of the cell. |
Implemented in vtkMesh, FOAM::foamMesh, meshSrch, and gmshMesh.
Referenced by vtkMesh::read().
|
pure virtual |
cellID | <> |
Implemented in vtkMesh, FOAM::foamMesh, gmshMesh, and meshSrch.
Referenced by meshSrch::CreateUnique(), vtkMesh::read(), and FETransfer::transferCellData().
|
inlinevirtual |
name | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 369 of file meshBase.H.
Referenced by NEM::GEO::rocPack::createCohesiveElements(), NEM::DRV::ConversionDriver::genExo(), cgnsAnalyzer::overwriteSolData(), and vtkMesh::write().
|
inlinevirtual |
|
inlinevirtual |
name | <> |
Reimplemented in vtkMesh, and meshSrch.
Definition at line 363 of file meshBase.H.
Referenced by vtkMesh::write().
|
pure virtual |
Implemented in vtkMesh, FOAM::foamMesh, meshSrch, and gmshMesh.
Referenced by vtkMesh::read().
|
pure virtual |
Implemented in vtkMesh, FOAM::foamMesh, gmshMesh, and meshSrch.
Referenced by vtkMesh::read().
|
pure virtual |
id | The id of the cell. |
Implemented in vtkMesh, FOAM::foamMesh, gmshMesh, and meshSrch.
Referenced by meshSrch::CreateUnique(), diffMesh(), and vtkMesh::read().
|
pure virtual |
This is only safe to use if mesh has cells of the same type or you have information on the number of cells of each type and the order in which they appear (for look up in resulting vector)
Implemented in FOAM::foamMesh, vtkMesh, gmshMesh, and meshSrch.
Referenced by meshPartitioner::meshPartitioner(), and vtkMesh::read().
|
inline |
Definition at line 308 of file meshBase.H.
Referenced by MeshQuality::checkMesh(), OrderOfAccuracy::computeDiff(), OrderOfAccuracy::computeRichardsonExtrapolation(), ConservativeVolumeTransfer::ConservativeVolumeTransfer(), ConservativeVolumeTransfer::constructSupermesh(), NEM::GEO::rocPack::createCohesiveElements(), diffMesh(), NEM::DRV::FoamToVtkConversionDriver::execute(), extractSelectedCells(), FETransfer::FETransfer(), NEM::DRV::ConversionDriver::freeSurfaceSideSet(), NEM::DRV::ConversionDriver::genExo(), proteusHdf5::get2dCellNodeOrder(), proteusHdf5::getBoundarySideSets(), gmshMesh::gmshMesh(), NEM::ADP::Refine::initAdaptive(), meshPartitioner::meshPartitioner(), MeshQuality::MeshQuality(), OrderOfAccuracy::OrderOfAccuracy(), PNTMesh::pntMesh::pntMesh(), PNTMesh::pntMesh::pntPopulate(), FETransfer::run(), TransferBase::transferCellData(), FETransfer::transferCellData(), ConservativeSurfaceTransfer::transferPointData(), FETransfer::transferPointData(), TransferBase::transferPointData(), writeCobalt(), and ConservativeSurfaceTransfer::writeOverlay().
|
inline |
Definition at line 680 of file meshBase.H.
Referenced by MeshQuality::checkMesh(), and partition().
Definition at line 571 of file meshBase.H.
References globToPartCellMap.
Definition at line 563 of file meshBase.H.
References globToPartNodeMap.
|
inline |
|
inline |
Definition at line 698 of file meshBase.H.
Referenced by OrderOfAccuracy::computeRichardsonExtrapolation(), NEM::ADP::Refine::run(), and vtkMesh::vtkMesh().
|
inline |
Definition at line 550 of file meshBase.H.
Referenced by MeshQuality::checkMesh(), meshSrch::chkDuplElm(), NEM::GEO::rocPack::createCohesiveElements(), diffMesh(), meshSrch::FindCellsInPolyData(), NEM::DRV::ConversionDriver::genExo(), FOAM::foamMesh::getCellLengths(), vtkMesh::getCellLengths(), meshPartitioner::meshPartitioner(), PNTMesh::pntMesh::pntMesh(), FETransfer::transferCellData(), and writeCobalt().
|
inline |
Definition at line 545 of file meshBase.H.
Referenced by OrderOfAccuracy::computeDiff(), OrderOfAccuracy::computeRichardsonExtrapolation(), diffMesh(), meshSrch::FindPntsOnEdge(), meshSrch::FindPntsOnTriSrf(), NEM::DRV::ConversionDriver::genExo(), NEM::GEO::rocPack::geomToVTK(), meshPartitioner::meshPartitioner(), OrderOfAccuracy::OrderOfAccuracy(), PNTMesh::pntMesh::pntMesh(), FETransfer::transferCellData(), and FETransfer::transferPointData().
Definition at line 587 of file meshBase.H.
References partToGlobCellMap.
Definition at line 579 of file meshBase.H.
References partToGlobNodeMap.
|
pure virtual |
id | The id of the point. |
Implemented in vtkMesh, FOAM::foamMesh, meshSrch, and gmshMesh.
Referenced by meshSrch::CreateUnique(), diffMesh(), NEM::DRV::ConversionDriver::genExo(), vtkMesh::read(), and FETransfer::transferCellData().
|
inlinevirtual |
assumes data is not allocated prior to calling
name | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 349 of file meshBase.H.
Referenced by cgnsAnalyzer::overwriteSolData(), and vtkMesh::write().
|
inlinevirtual |
assumes data is not allocated prior to calling
arrayId | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 357 of file meshBase.H.
|
pure virtual |
Implemented in vtkMesh, FOAM::foamMesh, meshSrch, and gmshMesh.
Referenced by partition(), and vtkMesh::read().
|
pure virtual |
ofname | <> |
Implemented in vtkMesh, FOAM::foamMesh, meshSrch, and gmshMesh.
Referenced by vtkMesh::read().
std::vector< std::vector< double > > meshBase::integrateOverMesh | ( | const std::vector< int > & | arrayIDs | ) |
integrated data is available per cell as vtk cell data after operation
arrayIDs | <> |
Definition at line 387 of file meshBase.C.
References GaussCubature::CreateUnique(), and GaussCubature::integrateOverAllCells().
Referenced by OrderOfAccuracy::computeDiff(), OrderOfAccuracy::computeGCI_21(), and OrderOfAccuracy::computeGCI_32().
int meshBase::IsArrayName | ( | const std::string & | name, |
bool | pointOrCell = false |
||
) | const |
check for named array in vtk
pointOrCell | boolean that tells the method whether to transfer point (False) or cell (True) data. |
Definition at line 267 of file meshBase.C.
Referenced by writeCobalt().
|
static |
partition mesh into numPartition pieces (static fcn)
mbObj | The meshBase object to partition. |
numPartitions | The number of partitions to partition the mesh into |
Memory is managed by shared pointer, so do not call delete after use.
Definition at line 295 of file meshBase.C.
References CreateShared(), getFileName(), getVertCrds(), globalNodeIds, NEM::MSH::New(), partToGlobCellMap, partToGlobNodeMap, and nemAux::trim_fname().
|
pure virtual |
fname | name of mesh file |
Implemented in meshSrch, vtkMesh, gmshMesh, and FOAM::foamMesh.
Referenced by NEM::DRV::FoamToMshConversionDriver::execute(), and NEM::DRV::FoamToVtkConversionDriver::execute().
void meshBase::refineMesh | ( | const std::string & | method, |
int | arrayID, | ||
double | dev_mult, | ||
bool | maxIsmin, | ||
double | edge_scale, | ||
const std::string & | ofname, | ||
bool | transferData, | ||
double | sizeFactor = 1. , |
||
bool | constrainBoundary = false |
||
) |
edge_scale is for uniform refinement and is ignored in calls where method is "gradient", "value", etc.
method | <> |
arrayID | <> |
dev_mult | <> |
maxIsmin | <> |
edge_scale | <> |
ofname | <> |
transferData | <> |
sizeFactor | <> |
instead of "uniform"
Definition at line 1565 of file meshBase.C.
References NEM::ADP::Refine::run().
Referenced by OrderOfAccuracy::computeMeshWithResolution(), and proteusHdf5::proteusHdf5().
void meshBase::refineMesh | ( | const std::string & | method, |
const std::string & | arrayName, | ||
double | dev_mult, | ||
bool | maxIsmin, | ||
double | edge_scale, | ||
const std::string & | ofname, | ||
bool | transferData, | ||
double | sizeFactor = 1. |
||
) |
edge_scale is for uniform refinement and is ignored in calls where method is "gradient", "value", etc.
method | <> |
arrayName | <> |
dev_mult | <> |
maxIsmin | <> |
edge_scale | <> |
ofname | <> |
transferData | <> |
sizeFactor | <> |
instead of "uniform"
Definition at line 1599 of file meshBase.C.
void meshBase::refineMesh | ( | const std::string & | method, |
double | edge_scale, | ||
const std::string & | ofname, | ||
bool | transferData, | ||
bool | constrainBoundary = false |
||
) |
method | <> |
edge_scale | <> |
ofname | <> |
transferData | <> |
Definition at line 1631 of file meshBase.C.
void meshBase::refineMesh | ( | const std::string & | method, |
int | arrayID, | ||
int | order, | ||
const std::string & | ofname, | ||
bool | transferData | ||
) |
method | <> |
arrayID | <> |
order | <> |
ofname | <> |
transferData | <> |
Definition at line 1583 of file meshBase.C.
References NEM::ADP::Refine::run().
void meshBase::refineMesh | ( | const std::string & | method, |
const std::string & | arrayName, | ||
int | order, | ||
const std::string & | ofname, | ||
bool | transferData | ||
) |
method | <> |
arrayName | <> |
order | <> |
ofname | <> |
transferData | <> |
Definition at line 1616 of file meshBase.C.
|
inlinevirtual |
Reimplemented in vtkMesh, FOAM::foamMesh, and gmshMesh.
Definition at line 540 of file meshBase.H.
Referenced by NEM::DRV::GmshToVtkConversionDriver::execute(), vtkMesh::read(), gmshMesh::report(), and NEM::ADP::Refine::run().
|
inlinevirtual |
name | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 334 of file meshBase.H.
Referenced by hdf5Reader::setFields(), and vtkMesh::write().
|
inlinevirtual |
|
inline |
|
inline |
x | <> |
Definition at line 691 of file meshBase.H.
|
inline |
This will allow vtk to dispatch appropriate writers based on the extension and whether it is supported by vtk.
fname | The name to set the private variable "filename" to |
Definition at line 675 of file meshBase.H.
Referenced by exportExoToVtk(), exportPntToVtk(), exportVolToVtk(), NEM::ADP::Refine::run(), and vtkMesh::vtkMesh().
|
inline |
|
inlinevirtual |
name | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 319 of file meshBase.H.
Referenced by hdf5Reader::setFields(), and vtkMesh::write().
|
inlinevirtual |
Caller must delete object after use.
mbObjs | a vector of meshBase objects to stich together |
Definition at line 196 of file meshBase.C.
References Create(), and NEM::MSH::New().
Referenced by stitchMB().
|
static |
This is the shared pointer version of stitchMB.
mbObjs | a vector of meshBase objects to stich together |
Memory is managed by shared pointer, so do not call delete after use.
Definition at line 215 of file meshBase.C.
References CreateShared(), and stitchMB().
|
inlinevirtual |
arrayID | <> |
Reimplemented in vtkMesh.
Definition at line 391 of file meshBase.H.
Referenced by NEM::ADP::Refine::initAdaptive(), FETransfer::transferCellData(), and vtkMesh::write().
|
inlinevirtual |
|
inlinevirtual |
name | <> |
Reimplemented in vtkMesh.
Definition at line 401 of file meshBase.H.
Referenced by vtkMesh::write().
|
inlinevirtual |
arrayID | <> |
Reimplemented in vtkMesh.
Definition at line 381 of file meshBase.H.
Referenced by FETransfer::transferPointData(), and vtkMesh::write().
|
inlinevirtual |
|
inlinevirtual |
The file extension of the private var "filename" determines the format of the output file
Reimplemented in vtkMesh.
Definition at line 598 of file meshBase.H.
References write().
Referenced by MeshQuality::checkMesh(), OrderOfAccuracy::computeMeshWithResolution(), NEM::DRV::GmshToVtkConversionDriver::execute(), NEM::DRV::GmshToExoConversionDriver::execute(), NEM::GEO::rocPack::geomToVTK(), proteusHdf5::proteusHdf5(), meshSrch::read(), NEM::ADP::Refine::run(), vtkMesh::write(), write(), and hdf5Reader::writeVTK().
|
pure virtual |
fname | The name of the file to write to |
Implemented in FOAM::foamMesh, vtkMesh, meshSrch, and gmshMesh.
void meshBase::writeCobalt | ( | meshBase * | surfWithPatch, |
const std::string & | mapFile, | ||
std::ofstream & | outputStream | ||
) |
for rocstar restart hack through rflupart/prep
surfWithPatch | <> |
mapFile | <> |
outputStream | <> |
Definition at line 1407 of file meshBase.C.
References buildStaticCellLocator(), getDataSet(), getNumberOfCells(), IsArrayName(), NEM::MSH::New(), and writePatchMap().
void meshBase::writeCobalt | ( | meshBase * | surfWithPatch, |
const std::string & | mapFile, | ||
const std::string & | ofname | ||
) |
for rocstar restart hack through rflupart/prep
surfWithPatch | <> |
mapFile | <> |
ofname | <> |
Definition at line 1527 of file meshBase.C.
void meshBase::writeMSH | ( | std::ofstream & | outputStream | ) |
outputStream | <> |
Definition at line 1078 of file meshBase.C.
Referenced by NEM::ADP::Refine::initAdaptive().
void meshBase::writeMSH | ( | const std::string & | fname | ) |
fname | The name of the file to write to |
Definition at line 1549 of file meshBase.C.
void meshBase::writeMSH | ( | std::ofstream & | outputStream, |
const std::string & | pointOrCell, | ||
int | arrayID | ||
) |
outputStream | <> |
pointOrCell | <> |
arrayID | <> |
Definition at line 1160 of file meshBase.C.
References data.
void meshBase::writeMSH | ( | const std::string & | fname, |
const std::string & | pointOrCell, | ||
int | arrayID | ||
) |
fname | The name of the file to write to |
pointOrCell | <> |
arrayID | <> |
Definition at line 1556 of file meshBase.C.
void meshBase::writeMSH | ( | std::ofstream & | outputStream, |
const std::string & | pointOrCell, | ||
int | arrayID, | ||
bool | onlyVol | ||
) |
convert to gmsh format with specified point or cell data for
outputStream | <> |
pointOrCell | <> |
arrayID | <> |
onlyVol | <> |
Definition at line 1265 of file meshBase.C.
References data.
void meshBase::writeMSH | ( | const std::string & | fname, |
const std::string & | pointOrCell, | ||
int | arrayID, | ||
bool | onlyVol | ||
) |
fname | The name of the file to write to |
pointOrCell | <> |
arrayID | <> |
onlyVol | <> |
Definition at line 1540 of file meshBase.C.
|
protected |
Definition at line 730 of file meshBase.H.
|
protected |
Definition at line 735 of file meshBase.H.
|
protected |
Definition at line 722 of file meshBase.H.
Referenced by meshSrch::buildCellLocator(), meshSrch::chkDuplElm(), exportExoToVtk(), exportGmshToVtk(), exportPntToVtk(), exportVolToVtk(), vtkMesh::extractSurface(), FOAM::foamMesh::extractSurface(), meshSrch::FindCellsInPolyData(), FOAM::foamMesh::genMshDB(), FOAM::foamMesh::getCell(), vtkMesh::getCell(), vtkMesh::getCellDataArray(), vtkMesh::getCellDataIdx(), FOAM::foamMesh::getCellLengths(), vtkMesh::getCellLengths(), FOAM::foamMesh::getCellType(), vtkMesh::getCellType(), meshSrch::getCellVec(), FOAM::foamMesh::getCellVec(), vtkMesh::getCellVec(), vtkMesh::getConnectivities(), FOAM::foamMesh::getConnectivities(), meshSrch::getPoint(), FOAM::foamMesh::getPoint(), vtkMesh::getPoint(), vtkMesh::getPointDataArray(), FOAM::foamMesh::getVertCrds(), vtkMesh::getVertCrds(), FOAM::foamMesh::inspectEdges(), vtkMesh::inspectEdges(), vtkMesh::merge(), FOAM::foamMesh::report(), vtkMesh::report(), vtkMesh::setCellDataArray(), vtkMesh::setPointDataArray(), vtkMesh::unsetCellDataArray(), vtkMesh::unsetFieldDataArray(), vtkMesh::unsetPointDataArray(), vtkMesh::vtkMesh(), and vtkMesh::write().
|
protected |
Definition at line 726 of file meshBase.H.
Referenced by FOAM::foamMesh::report(), vtkMesh::report(), and vtkMesh::vtkMesh().
Definition at line 750 of file meshBase.H.
Only populated for mesh resulting from call to meshBase::partition
Definition at line 746 of file meshBase.H.
|
protected |
Definition at line 760 of file meshBase.H.
|
protected |
Definition at line 739 of file meshBase.H.
|
protected |
Definition at line 718 of file meshBase.H.
Referenced by exportExoToVtk(), exportGmshToVtk(), exportPntToVtk(), exportVolToVtk(), FOAM::foamMesh::genMshDB(), FOAM::foamMesh::getCell(), vtkMesh::getCell(), meshSrch::getCellVec(), FOAM::foamMesh::getCellVec(), vtkMesh::getCellVec(), vtkMesh::merge(), ReadALegacyVTKFile(), ReadDegenerateVTKFile(), readLegacyVTKCells(), FOAM::foamMesh::report(), vtkMesh::report(), vtkMesh::setCellDataArray(), vtkMesh::vtkMesh(), and FOAM::foamMesh::write().
|
protected |
Definition at line 714 of file meshBase.H.
Referenced by exportExoToVtk(), exportGmshToVtk(), exportPntToVtk(), exportVolToVtk(), FOAM::foamMesh::genMshDB(), FOAM::foamMesh::getVertCrds(), vtkMesh::getVertCrds(), vtkMesh::merge(), ReadALegacyVTKFile(), ReadDegenerateVTKFile(), readLegacyVTKPoints(), FOAM::foamMesh::report(), vtkMesh::report(), vtkMesh::setPointDataArray(), vtkMesh::vtkMesh(), and FOAM::foamMesh::write().
Definition at line 758 of file meshBase.H.
Definition at line 754 of file meshBase.H.