Definition at line 39 of file meshSrch.H.
Public Member Functions | |
meshSrch ()=delete | |
meshSrch (meshBase *mb) | |
~meshSrch () override=default | |
std::vector< std::vector< double > > | getCellVec (nemId_t id) const override |
get vector of coords of cell with id More... | |
std::vector< double > | getPoint (nemId_t id) const override |
get point with id More... | |
std::vector< double > | getCellCenter (nemId_t cellID) const override |
get center of a cell More... | |
int | getCellType () const override |
get cell type as an integer assumes all elements are the same type More... | |
std::vector< std::vector< double > > | getVertCrds () const override |
get 3 vecs with x,y and z coords More... | |
std::map< nemId_t, std::vector< double > > | getCell (nemId_t id) const override |
get cell with id More... | |
int | getCellDataIdx (const std::string &name) override |
<> More... | |
std::vector< double > | getCellLengths () const override |
get diameter of circumsphere of each cell More... | |
std::vector< nemId_t > | getConnectivities () const override |
get connectivities. More... | |
bool | chkDuplElm () const |
void | FindPntsOnTriSrf (const std::vector< double > &crds, const std::vector< nemId_t > &conn, std::set< nemId_t > &ids, double tol=0.1e-15) const |
void | FindPntsOnEdge (std::vector< double > &crds, std::set< nemId_t > &ids, double tol=0.1e-15) const |
void | FindCellsInPolyData (vtkPolyData *polyData, std::vector< nemId_t > &ids, bool query3Donly=true, double tol=0.1e-15) const |
void | FindCellsWithinBounds (std::vector< double > &bb, std::vector< nemId_t > &ids, bool fulImrsd=true) |
void | FindCellsInTriSrf (const std::vector< std::vector< double >> &crds, const std::vector< std::vector< vtkIdType >> &conns, std::vector< nemId_t > &ids, bool query3Donly=true, double tol=0.1e-15) const |
void | FindCellsInSphere (const std::vector< double > ¢er, double radius, std::vector< nemId_t > &ids, bool query3Donly=true, double tol=0.1e-15) const |
void | inspectEdges (const std::string &ofname) const override |
get edge lengths of dataSet More... | |
vtkSmartPointer< vtkDataSet > | extractSurface () override |
extract the surface mesh More... | |
void | read (const std::string &fname=std::string()) override |
abstract read method reserved for derived classes More... | |
void | write (const std::string &fname) const override |
write the mesh to file named fname More... | |
vtkSmartPointer< vtkDataSet > | getDataSet () const |
get this meshes' dataSet 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 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... | |
vtkSmartPointer< vtkStaticCellLocator > | buildStaticCellLocator () |
build locators for efficient search operations More... | |
vtkSmartPointer< vtkStaticPointLocator > | buildStaticPointLocator () |
build thread-safe point locator for efficient search operations 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... | |
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 meshSrch * | Create (meshBase *mb) |
static std::shared_ptr< meshSrch > | CreateShared (meshBase *mb) |
static std::unique_ptr< meshSrch > | CreateUnique (meshBase *mb) |
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 (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 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 |
Private Member Functions | |
void | buildCellLocator () |
Private Attributes | |
bool | upd_vcl |
vtkSmartPointer< vtkCellLocator > | vcl |
Inherits meshBase.
|
delete |
|
inlineexplicit |
Definition at line 43 of file meshSrch.H.
|
overridedefault |
|
private |
Definition at line 83 of file meshSrch.C.
References meshBase::dataSet, NEM::MSH::New(), upd_vcl, and vcl.
Referenced by FindCellsWithinBounds().
|
inherited |
Definition at line 1640 of file meshBase.C.
References NEM::MSH::New().
Referenced by meshBase::writeCobalt().
|
inherited |
Definition at line 1648 of file meshBase.C.
References NEM::MSH::New().
|
inherited |
ofname | <> |
Definition at line 1657 of file meshBase.C.
References MeshQuality::checkMesh().
bool meshSrch::chkDuplElm | ( | ) | const |
Definition at line 212 of file meshSrch.C.
References meshBase::dataSet, meshBase::getNumberOfCells(), and NEM::MSH::New().
Referenced by NEM::DRV::ConversionDriver::procExo().
|
inherited |
meshdataSet | Input hexahedral mesh dataset |
Definition at line 1826 of file meshBase.C.
References NEM::MSH::New().
|
inherited |
Definition at line 1769 of file meshBase.C.
References NEM::MSH::New(), and points.
Referenced by proteusHdf5::proteusHdf5().
Definition at line 45 of file meshSrch.H.
Referenced by CreateShared(), CreateUnique(), and NEM::DRV::ConversionDriver::procExo().
|
staticinherited |
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(), meshBase::CreateShared(), meshBase::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(), meshBase::extractSelectedCells(), NEM::DRV::MeshGenDriver::MeshGenDriver(), NEM::DRV::ConversionDriver::procExo(), proteusHdf5::proteusHdf5(), and meshBase::stitchMB().
|
staticinherited |
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.
|
staticinherited |
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.
|
staticinherited |
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 meshBase::Create(), and mesh.
Referenced by COBALT::cobalt::cobalt(), NEM::DRV::VtkHexToTetConversionDriver::execute(), NEM::DRV::SnappyMeshMeshGenDriver::execute(), NEM::DRV::GmshMeshGenDriver::execute(), NEM::DRV::BlockMeshMeshGenDriver::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(), meshBase::partition(), PATRAN::patran::patran(), and meshBase::stitchMB().
|
staticinherited |
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 meshBase::Create(), and mesh.
|
staticinherited |
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 meshBase::Create(), and mesh.
Definition at line 56 of file meshSrch.H.
References Create(), meshBase::getCellCenter(), meshBase::getCellVec(), and meshBase::getPoint().
|
staticinherited |
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 meshBase::Create().
|
staticinherited |
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 meshBase::Create().
|
staticinherited |
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 meshBase::Create().
|
staticinherited |
exports exodusII to vtk format
fname | name of mesh file |
Definition at line 918 of file meshBase.C.
References meshBase::dataSet, NEM::MSH::EXOMesh::e2vEMap(), NEM::MSH::EXOMesh::elmTypeNum(), NEM::MSH::New(), meshBase::numCells, meshBase::numPoints, points, meshBase::setFileName(), vtkMesh::write(), and NEM::MSH::EXOMesh::wrnErrMsg().
|
staticinherited |
fname | name of mesh file |
Definition at line 409 of file meshBase.C.
References data, meshBase::dataSet, id, NEM::MSH::New(), meshBase::numCells, meshBase::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().
|
staticinherited |
exports pntMesh to vtk format
fname | name of mesh file |
Definition at line 848 of file meshBase.C.
References meshBase::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(), meshBase::numCells, meshBase::numPoints, points, meshBase::setFileName(), and nemAux::trim_fname().
|
staticinherited |
fname | name of mesh file |
Definition at line 766 of file meshBase.C.
References meshBase::dataSet, NEM::MSH::New(), meshBase::numCells, meshBase::numPoints, points, meshBase::setFileName(), and nemAux::trim_fname().
Referenced by NEM::DRV::NetgenMeshGenDriver::execute(), and NEM::DRV::MeshGenDriver::MeshGenDriver().
|
staticinherited |
mesh | The meshBase object to extract the subset from. |
cellIds | <> |
Definition at line 226 of file meshBase.C.
References meshBase::getDataSet(), and NEM::MSH::New().
|
staticinherited |
mesh | The meshBase object to extract the subset from. |
cellIds | <> |
Definition at line 239 of file meshBase.C.
References meshBase::Create(), and NEM::MSH::New().
|
inlineoverridevirtual |
Implements meshBase.
Definition at line 125 of file meshSrch.H.
void meshSrch::FindCellsInPolyData | ( | vtkPolyData * | polyData, |
std::vector< nemId_t > & | ids, | ||
bool | query3Donly = true , |
||
double | tol = 0.1e-15 |
||
) | const |
Definition at line 227 of file meshSrch.C.
References meshBase::dataSet, meshBase::getNumberOfCells(), id, and NEM::MSH::New().
Referenced by FindCellsInSphere(), and FindCellsInTriSrf().
void meshSrch::FindCellsInSphere | ( | const std::vector< double > & | center, |
double | radius, | ||
std::vector< nemId_t > & | ids, | ||
bool | query3Donly = true , |
||
double | tol = 0.1e-15 |
||
) | const |
Definition at line 280 of file meshSrch.C.
References FindCellsInPolyData(), and NEM::MSH::New().
Referenced by NEM::DRV::ConversionDriver::procExo().
void meshSrch::FindCellsInTriSrf | ( | const std::vector< std::vector< double >> & | crds, |
const std::vector< std::vector< vtkIdType >> & | conns, | ||
std::vector< nemId_t > & | ids, | ||
bool | query3Donly = true , |
||
double | tol = 0.1e-15 |
||
) | const |
Definition at line 256 of file meshSrch.C.
References FindCellsInPolyData(), and NEM::MSH::New().
Referenced by NEM::DRV::ConversionDriver::procExo().
void meshSrch::FindCellsWithinBounds | ( | std::vector< double > & | bb, |
std::vector< nemId_t > & | ids, | ||
bool | fulImrsd = true |
||
) |
Definition at line 93 of file meshSrch.C.
References buildCellLocator(), getCellCenter(), nemAux::isInBBox(), NEM::MSH::New(), and vcl.
Referenced by NEM::DRV::ConversionDriver::procExo().
void meshSrch::FindPntsOnEdge | ( | std::vector< double > & | crds, |
std::set< nemId_t > & | ids, | ||
double | tol = 0.1e-15 |
||
) | const |
Definition at line 167 of file meshSrch.C.
References meshBase::getNumberOfPoints(), getPoint(), and NEM::MSH::New().
Referenced by NEM::DRV::ConversionDriver::procExo().
void meshSrch::FindPntsOnTriSrf | ( | const std::vector< double > & | crds, |
const std::vector< nemId_t > & | conn, | ||
std::set< nemId_t > & | ids, | ||
double | tol = 0.1e-15 |
||
) | const |
Definition at line 119 of file meshSrch.C.
References meshBase::getNumberOfPoints(), getPoint(), and NEM::MSH::New().
Referenced by NEM::DRV::ConversionDriver::procExo().
|
inherited |
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().
|
inherited |
Definition at line 1835 of file meshBase.C.
References id.
id | The id of the cell. |
Implements meshBase.
Definition at line 72 of file meshSrch.H.
|
overridevirtual |
cellID | <> |
Implements meshBase.
Definition at line 75 of file meshSrch.C.
References getCellVec().
Referenced by FindCellsWithinBounds().
|
inlinevirtualinherited |
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().
|
inlinevirtualinherited |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
id | The id of the cell. |
Implements meshBase.
Definition at line 56 of file meshSrch.C.
References meshBase::dataSet, getPoint(), NEM::MSH::New(), and meshBase::numCells.
Referenced by getCellCenter().
|
inlineoverridevirtual |
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)
Implements meshBase.
Definition at line 79 of file meshSrch.H.
|
inlineinherited |
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(), meshBase::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(), meshBase::writeCobalt(), and ConservativeSurfaceTransfer::writeOverlay().
|
inlineinherited |
Definition at line 680 of file meshBase.H.
Referenced by MeshQuality::checkMesh(), and meshBase::partition().
Definition at line 571 of file meshBase.H.
References globToPartCellMap.
Definition at line 563 of file meshBase.H.
References globToPartNodeMap.
|
inlineinherited |
|
inlineinherited |
Definition at line 698 of file meshBase.H.
Referenced by OrderOfAccuracy::computeRichardsonExtrapolation(), NEM::ADP::Refine::run(), and vtkMesh::vtkMesh().
|
inlineinherited |
Definition at line 550 of file meshBase.H.
Referenced by MeshQuality::checkMesh(), chkDuplElm(), NEM::GEO::rocPack::createCohesiveElements(), diffMesh(), FindCellsInPolyData(), NEM::DRV::ConversionDriver::genExo(), FOAM::foamMesh::getCellLengths(), vtkMesh::getCellLengths(), meshPartitioner::meshPartitioner(), PNTMesh::pntMesh::pntMesh(), FETransfer::transferCellData(), and meshBase::writeCobalt().
|
inlineinherited |
Definition at line 545 of file meshBase.H.
Referenced by OrderOfAccuracy::computeDiff(), OrderOfAccuracy::computeRichardsonExtrapolation(), diffMesh(), FindPntsOnEdge(), 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.
|
overridevirtual |
id | The id of the point. |
Implements meshBase.
Definition at line 48 of file meshSrch.C.
References meshBase::dataSet.
Referenced by FindPntsOnEdge(), FindPntsOnTriSrf(), and getCellVec().
|
inlinevirtualinherited |
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().
|
inlinevirtualinherited |
assumes data is not allocated prior to calling
arrayId | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 357 of file meshBase.H.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inherited |
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().
|
inherited |
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 meshBase::writeCobalt().
|
staticinherited |
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 meshBase::CreateShared(), meshBase::getFileName(), meshBase::getVertCrds(), globalNodeIds, NEM::MSH::New(), partToGlobCellMap, partToGlobNodeMap, and nemAux::trim_fname().
|
inlineoverridevirtual |
fname | name of mesh file |
Implements meshBase.
Definition at line 129 of file meshSrch.H.
References meshBase::write().
|
inherited |
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().
|
inherited |
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.
|
inherited |
method | <> |
edge_scale | <> |
ofname | <> |
transferData | <> |
Definition at line 1631 of file meshBase.C.
|
inherited |
method | <> |
arrayID | <> |
order | <> |
ofname | <> |
transferData | <> |
Definition at line 1583 of file meshBase.C.
References NEM::ADP::Refine::run().
|
inherited |
method | <> |
arrayName | <> |
order | <> |
ofname | <> |
transferData | <> |
Definition at line 1616 of file meshBase.C.
|
inlinevirtualinherited |
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().
|
inlinevirtualinherited |
name | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 334 of file meshBase.H.
Referenced by hdf5Reader::setFields(), and vtkMesh::write().
|
inlinevirtualinherited |
|
inlineinherited |
|
inlineinherited |
x | <> |
Definition at line 691 of file meshBase.H.
|
inlineinherited |
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 meshBase::exportExoToVtk(), meshBase::exportPntToVtk(), meshBase::exportVolToVtk(), NEM::ADP::Refine::run(), and vtkMesh::vtkMesh().
|
inlineinherited |
|
inlinevirtualinherited |
name | <> |
data | <> |
Reimplemented in vtkMesh.
Definition at line 319 of file meshBase.H.
Referenced by hdf5Reader::setFields(), and vtkMesh::write().
|
inlinevirtualinherited |
Caller must delete object after use.
mbObjs | a vector of meshBase objects to stich together |
Definition at line 196 of file meshBase.C.
References meshBase::Create(), and NEM::MSH::New().
Referenced by meshBase::stitchMB().
|
staticinherited |
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 meshBase::CreateShared(), and meshBase::stitchMB().
|
inlinevirtualinherited |
arrayID | <> |
Reimplemented in vtkMesh.
Definition at line 391 of file meshBase.H.
Referenced by NEM::ADP::Refine::initAdaptive(), FETransfer::transferCellData(), and vtkMesh::write().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
name | <> |
Reimplemented in vtkMesh.
Definition at line 401 of file meshBase.H.
Referenced by vtkMesh::write().
|
inlinevirtualinherited |
arrayID | <> |
Reimplemented in vtkMesh.
Definition at line 381 of file meshBase.H.
Referenced by FETransfer::transferPointData(), and vtkMesh::write().
|
inlinevirtualinherited |
|
inlineoverridevirtual |
fname | The name of the file to write to |
Implements meshBase.
Definition at line 131 of file meshSrch.H.
|
inlinevirtualinherited |
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 meshBase::write().
Referenced by MeshQuality::checkMesh(), OrderOfAccuracy::computeMeshWithResolution(), NEM::DRV::GmshToVtkConversionDriver::execute(), NEM::DRV::GmshToExoConversionDriver::execute(), NEM::GEO::rocPack::geomToVTK(), proteusHdf5::proteusHdf5(), read(), NEM::ADP::Refine::run(), vtkMesh::write(), meshBase::write(), and hdf5Reader::writeVTK().
|
inherited |
for rocstar restart hack through rflupart/prep
surfWithPatch | <> |
mapFile | <> |
outputStream | <> |
Definition at line 1407 of file meshBase.C.
References meshBase::buildStaticCellLocator(), meshBase::getDataSet(), meshBase::getNumberOfCells(), meshBase::IsArrayName(), NEM::MSH::New(), and writePatchMap().
|
inherited |
for rocstar restart hack through rflupart/prep
surfWithPatch | <> |
mapFile | <> |
ofname | <> |
Definition at line 1527 of file meshBase.C.
|
inherited |
outputStream | <> |
Definition at line 1078 of file meshBase.C.
Referenced by NEM::ADP::Refine::initAdaptive().
|
inherited |
fname | The name of the file to write to |
Definition at line 1549 of file meshBase.C.
|
inherited |
outputStream | <> |
pointOrCell | <> |
arrayID | <> |
Definition at line 1160 of file meshBase.C.
References data.
|
inherited |
fname | The name of the file to write to |
pointOrCell | <> |
arrayID | <> |
Definition at line 1556 of file meshBase.C.
|
inherited |
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.
|
inherited |
fname | The name of the file to write to |
pointOrCell | <> |
arrayID | <> |
onlyVol | <> |
Definition at line 1540 of file meshBase.C.
|
protectedinherited |
Definition at line 730 of file meshBase.H.
|
protectedinherited |
Definition at line 735 of file meshBase.H.
|
protectedinherited |
Definition at line 722 of file meshBase.H.
Referenced by buildCellLocator(), chkDuplElm(), meshBase::exportExoToVtk(), meshBase::exportGmshToVtk(), meshBase::exportPntToVtk(), meshBase::exportVolToVtk(), vtkMesh::extractSurface(), FOAM::foamMesh::extractSurface(), FindCellsInPolyData(), FOAM::foamMesh::genMshDB(), FOAM::foamMesh::getCell(), vtkMesh::getCell(), vtkMesh::getCellDataArray(), vtkMesh::getCellDataIdx(), FOAM::foamMesh::getCellLengths(), vtkMesh::getCellLengths(), FOAM::foamMesh::getCellType(), vtkMesh::getCellType(), getCellVec(), FOAM::foamMesh::getCellVec(), vtkMesh::getCellVec(), vtkMesh::getConnectivities(), FOAM::foamMesh::getConnectivities(), 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().
|
protectedinherited |
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.
|
protectedinherited |
Definition at line 760 of file meshBase.H.
|
protectedinherited |
Definition at line 739 of file meshBase.H.
|
protectedinherited |
Definition at line 718 of file meshBase.H.
Referenced by meshBase::exportExoToVtk(), meshBase::exportGmshToVtk(), meshBase::exportPntToVtk(), meshBase::exportVolToVtk(), FOAM::foamMesh::genMshDB(), FOAM::foamMesh::getCell(), vtkMesh::getCell(), getCellVec(), FOAM::foamMesh::getCellVec(), vtkMesh::getCellVec(), vtkMesh::merge(), ReadALegacyVTKFile(), ReadDegenerateVTKFile(), readLegacyVTKCells(), FOAM::foamMesh::report(), vtkMesh::report(), vtkMesh::setCellDataArray(), vtkMesh::vtkMesh(), and FOAM::foamMesh::write().
|
protectedinherited |
Definition at line 714 of file meshBase.H.
Referenced by meshBase::exportExoToVtk(), meshBase::exportGmshToVtk(), meshBase::exportPntToVtk(), meshBase::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.
|
private |
Definition at line 138 of file meshSrch.H.
Referenced by buildCellLocator().
|
private |
Definition at line 139 of file meshSrch.H.
Referenced by buildCellLocator(), and FindCellsWithinBounds().