Public Member Functions | |
vtkMesh ()=default | |
vtkMesh (const std::string &fname) | |
vtkMesh (const std::string &fname1, const std::string &fname2) | |
vtkMesh (vtkSmartPointer< vtkDataSet > dataSet_tmp, const std::string &fname) | |
vtkMesh (const std::vector< double > &xCrds, const std::vector< double > &yCrds, const std::vector< double > &zCrds, const std::vector< nemId_t > &elemConn, int cellType, const std::string &newname) | |
~vtkMesh () override | |
void | read (const std::string &fname) override |
abstract read method reserved for derived classes More... | |
void | merge (vtkSmartPointer< vtkDataSet > dataSet_new) |
std::vector< double > | getPoint (nemId_t id) const override |
get point with id 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... | |
std::vector< std::vector< double > > | getCellVec (nemId_t id) const override |
get vector of coords of cell with id More... | |
std::vector< double > | getCellLengths () const override |
get diameter of circumsphere of each cell 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... | |
void | inspectEdges (const std::string &ofname) const override |
get edge lengths of dataSet More... | |
std::vector< nemId_t > | getConnectivities () const override |
get connectivities. More... | |
vtkSmartPointer< vtkDataSet > | extractSurface () override |
extract the surface mesh More... | |
void | report () const override |
generate a report of the mesh More... | |
void | write () const override |
write the mesh to file named after the private var 'filename'. More... | |
void | write (const std::string &fname) const override |
write the mesh to file named fname More... | |
void | setPointDataArray (const std::string &name, const std::vector< std::vector< double >> &data) override |
register data to dataSet's point data More... | |
void | setPointDataArray (const std::string &name, const std::vector< double > &data) override |
register data to dataSet's point data More... | |
void | setCellDataArray (const std::string &name, const std::vector< std::vector< double >> &data) override |
register data to dataSet's cell data More... | |
void | setCellDataArray (const std::string &name, const std::vector< double > &data) override |
register data to dataSet's cell data More... | |
void | unsetPointDataArray (int arrayID) override |
delete array with id from dataSet's point data More... | |
void | unsetPointDataArray (const std::string &name) override |
<> More... | |
void | unsetCellDataArray (int arrayID) override |
delete array with id from dataSet's cell data More... | |
void | unsetCellDataArray (const std::string &name) override |
<> More... | |
void | unsetFieldDataArray (const std::string &name) override |
delete array with id from dataSet's field data More... | |
void | getPointDataArray (const std::string &name, std::vector< double > &data) override |
get scalar point or cell data array. More... | |
void | getPointDataArray (int arrayId, std::vector< double > &data) override |
get scalar point or cell data array. More... | |
int | getCellDataIdx (const std::string &name) override |
<> More... | |
void | getCellDataArray (const std::string &name, std::vector< double > &data) override |
<> More... | |
void | getCellDataArray (int arrayId, std::vector< double > &data) override |
<> More... | |
vtkSmartPointer< vtkDataSet > | getDataSet () const |
get this meshes' dataSet 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... | |
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... | |
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 |
Inherits meshBase.
|
default |
Referenced by vtkMesh().
|
explicit |
Definition at line 169 of file vtkMesh.C.
References NEM::DRV::TransferDriver::CreateTransferObject(), meshBase::dataSet, meshBase::getNewArrayNames(), NEM::MSH::New(), meshBase::numCells, meshBase::numPoints, ReadALegacyVTKFile(), ReadDegenerateVTKFile(), meshBase::setFileName(), and vtkMesh().
vtkMesh::vtkMesh | ( | const std::string & | fname1, |
const std::string & | fname2 | ||
) |
Definition at line 245 of file vtkMesh.C.
References meshBase::dataSet, NEM::MSH::New(), meshBase::numCells, meshBase::numPoints, and meshBase::setFileName().
vtkMesh::vtkMesh | ( | vtkSmartPointer< vtkDataSet > | dataSet_tmp, |
const std::string & | fname | ||
) |
Definition at line 99 of file vtkMesh.C.
References meshBase::dataSet, meshBase::filename, meshBase::numCells, and meshBase::numPoints.
vtkMesh::vtkMesh | ( | const std::vector< double > & | xCrds, |
const std::vector< double > & | yCrds, | ||
const std::vector< double > & | zCrds, | ||
const std::vector< nemId_t > & | elemConn, | ||
int | cellType, | ||
const std::string & | newname | ||
) |
Definition at line 113 of file vtkMesh.C.
References meshBase::dataSet, meshBase::filename, NEM::MSH::New(), meshBase::numCells, meshBase::numPoints, and points.
|
inlineoverride |
|
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().
|
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().
|
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::GmshMeshGenDriver::execute(), NEM::DRV::BlockMeshMeshGenDriver::execute(), NEM::DRV::SnappyMeshMeshGenDriver::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().
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.
|
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.
|
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().
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.
|
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(), 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, setCellDataArray(), and 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().
|
overridevirtual |
Implements meshBase.
Definition at line 847 of file vtkMesh.C.
References meshBase::dataSet, and NEM::MSH::New().
|
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 706 of file vtkMesh.C.
References meshBase::dataSet, getPoint(), NEM::MSH::New(), and meshBase::numCells.
|
overridevirtual |
cellID | <> |
Implements meshBase.
Definition at line 874 of file vtkMesh.C.
References getCellVec().
|
overridevirtual |
name | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 960 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
arrayId | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 984 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
name | <> |
Reimplemented from meshBase.
Definition at line 953 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
Implements meshBase.
Definition at line 864 of file vtkMesh.C.
References meshBase::dataSet, and meshBase::getNumberOfCells().
|
overridevirtual |
Implements meshBase.
Definition at line 883 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
id | The id of the cell. |
Implements meshBase.
Definition at line 724 of file vtkMesh.C.
References meshBase::dataSet, getPoint(), NEM::MSH::New(), and meshBase::numCells.
Referenced by getCellCenter().
|
overridevirtual |
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 768 of file vtkMesh.C.
References meshBase::dataSet.
|
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().
|
inlineinherited |
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(), 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(), 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.
|
overridevirtual |
id | The id of the point. |
Implements meshBase.
Definition at line 683 of file vtkMesh.C.
References meshBase::dataSet.
Referenced by getCell(), and getCellVec().
|
overridevirtual |
assumes data is not allocated prior to calling
name | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 907 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
assumes data is not allocated prior to calling
arrayId | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 931 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
Implements meshBase.
Definition at line 691 of file vtkMesh.C.
References meshBase::dataSet, and meshBase::numPoints.
|
overridevirtual |
ofname | <> |
Implements meshBase.
Definition at line 742 of file vtkMesh.C.
References meshBase::dataSet, NEM::MSH::New(), and points.
|
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().
void vtkMesh::merge | ( | vtkSmartPointer< vtkDataSet > | dataSet_new | ) |
Definition at line 1053 of file vtkMesh.C.
References meshBase::dataSet, NEM::MSH::New(), meshBase::numCells, and meshBase::numPoints.
|
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 124 of file vtkMesh.H.
References meshBase::extractSurface(), meshBase::getCell(), meshBase::getCellCenter(), meshBase::getCellLengths(), meshBase::getCellType(), meshBase::getCellVec(), meshBase::getConnectivities(), meshBase::getPoint(), meshBase::getVertCrds(), meshBase::inspectEdges(), and meshBase::report().
|
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.
|
overridevirtual |
Reimplemented from meshBase.
Definition at line 780 of file vtkMesh.C.
References meshBase::dataSet, meshBase::filename, meshBase::numCells, and meshBase::numPoints.
Referenced by NEM::GEO::rocPack::createCohesiveElements(), and NEM::DRV::FoamToVtkConversionDriver::execute().
|
overridevirtual |
name | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 1007 of file vtkMesh.C.
References data, meshBase::dataSet, NEM::MSH::New(), and meshBase::numCells.
Referenced by NEM::GEO::rocPack::createCohesiveElements(), and meshBase::exportGmshToVtk().
|
overridevirtual |
name | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 1018 of file vtkMesh.C.
References meshBase::dataSet, NEM::MSH::New(), and meshBase::numCells.
|
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().
|
inlineinherited |
|
overridevirtual |
name | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 896 of file vtkMesh.C.
References data, meshBase::dataSet, NEM::MSH::New(), and meshBase::numPoints.
Referenced by meshBase::exportGmshToVtk().
|
overridevirtual |
name | <> |
data | <> |
Reimplemented from meshBase.
Definition at line 886 of file vtkMesh.C.
References meshBase::dataSet, NEM::MSH::New(), and meshBase::numPoints.
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().
|
overridevirtual |
arrayID | <> |
Reimplemented from meshBase.
Definition at line 1039 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
name | <> |
Reimplemented from meshBase.
Definition at line 1043 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
name | <> |
Reimplemented from meshBase.
Definition at line 1048 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
arrayID | <> |
Reimplemented from meshBase.
Definition at line 1030 of file vtkMesh.C.
References meshBase::dataSet.
|
overridevirtual |
name | <> |
Reimplemented from meshBase.
Definition at line 1034 of file vtkMesh.C.
References meshBase::dataSet.
|
inlineoverridevirtual |
The file extension of the private var "filename" determines the format of the output file
Reimplemented from meshBase.
Definition at line 152 of file vtkMesh.H.
References data, meshBase::getCellDataArray(), meshBase::getCellDataIdx(), meshBase::getPointDataArray(), meshBase::setCellDataArray(), meshBase::setPointDataArray(), meshBase::unsetCellDataArray(), meshBase::unsetFieldDataArray(), meshBase::unsetPointDataArray(), and meshBase::write().
Referenced by NEM::GEO::rocPack::createCohesiveElements(), NEM::DRV::FoamToVtkConversionDriver::execute(), and meshBase::exportExoToVtk().
|
overridevirtual |
fname | The name of the file to write to |
Implements meshBase.
Definition at line 71 of file vtkMesh.C.
References meshBase::dataSet, nemAux::find_ext(), and nemAux::trim_fname().
|
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 meshSrch::buildCellLocator(), meshSrch::chkDuplElm(), meshBase::exportExoToVtk(), meshBase::exportGmshToVtk(), meshBase::exportPntToVtk(), meshBase::exportVolToVtk(), extractSurface(), FOAM::foamMesh::extractSurface(), meshSrch::FindCellsInPolyData(), FOAM::foamMesh::genMshDB(), FOAM::foamMesh::getCell(), getCell(), getCellDataArray(), getCellDataIdx(), FOAM::foamMesh::getCellLengths(), getCellLengths(), FOAM::foamMesh::getCellType(), getCellType(), meshSrch::getCellVec(), FOAM::foamMesh::getCellVec(), getCellVec(), getConnectivities(), FOAM::foamMesh::getConnectivities(), meshSrch::getPoint(), FOAM::foamMesh::getPoint(), getPoint(), getPointDataArray(), FOAM::foamMesh::getVertCrds(), getVertCrds(), FOAM::foamMesh::inspectEdges(), inspectEdges(), merge(), FOAM::foamMesh::report(), report(), setCellDataArray(), setPointDataArray(), unsetCellDataArray(), unsetFieldDataArray(), unsetPointDataArray(), vtkMesh(), and write().
|
protectedinherited |
Definition at line 726 of file meshBase.H.
Referenced by FOAM::foamMesh::report(), report(), and 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(), getCell(), meshSrch::getCellVec(), FOAM::foamMesh::getCellVec(), getCellVec(), merge(), ReadALegacyVTKFile(), ReadDegenerateVTKFile(), readLegacyVTKCells(), FOAM::foamMesh::report(), report(), setCellDataArray(), 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(), getVertCrds(), merge(), ReadALegacyVTKFile(), ReadDegenerateVTKFile(), readLegacyVTKPoints(), FOAM::foamMesh::report(), report(), setPointDataArray(), vtkMesh(), and FOAM::foamMesh::write().
Definition at line 758 of file meshBase.H.
Definition at line 754 of file meshBase.H.