Public Types | Public Member Functions | Static Public Attributes | List of all members
polyMesh Class Reference

Mesh consisting of general polyhedral cells. More...

Inheritance diagram for polyMesh:
Inheritance graph
[legend]
Collaboration diagram for polyMesh:
Collaboration graph
[legend]

Public Types

enum  readUpdateState { UNCHANGED, POINTS_MOVED, TOPO_CHANGE, TOPO_PATCH_CHANGE }
 
enum  cellDecomposition { FACE_PLANES, FACE_CENTRE_TRIS, FACE_DIAG_TRIS, CELL_TETS }
 
typedef polyMesh Mesh
 
typedef polyBoundaryMesh BoundaryMesh
 
- Public Types inherited from IOobject
enum  objectState : char { GOOD, BAD }
 
enum  readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ }
 
enum  writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 }
 
enum  fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster }
 
- Public Types inherited from HashTable< regIOobject * >
typedef HashTable< T, Key, Hashthis_type
 
typedef Key key_type
 
typedef T mapped_type
 
typedef T value_type
 
typedef Hash hasher
 
typedef Tpointer
 
typedef Treference
 
typedef label difference_type
 
typedef label size_type
 
using key_iterator = key_iterator_base< iterator >
 
using const_key_iterator = key_iterator_base< const_iterator >
 

Public Member Functions

 TypeName ("polyMesh")
 
 polyMesh (const IOobject &io, const bool doInit=true)
 
 polyMesh (const IOobject &io, const zero, const bool syncPar=true)
 
 polyMesh (const IOobject &io, pointField &&points, faceList &&faces, labelList &&owner, labelList &&neighbour, const bool syncPar=true)
 
 polyMesh (const IOobject &io, pointField &&points, faceList &&faces, cellList &&cells, const bool syncPar=true)
 
 polyMesh (const IOobject &io, pointField &&points, const cellShapeList &shapes, const faceListList &boundaryFaces, const wordList &boundaryPatchNames, const wordList &boundaryPatchTypes, const word &defaultBoundaryPatchName, const word &defaultBoundaryPatchType, const wordList &boundaryPatchPhysicalTypes, const bool syncPar=true)
 
 polyMesh (const IOobject &io, pointField &&points, const cellShapeList &shapes, const faceListList &boundaryFaces, const wordList &boundaryPatchNames, const PtrList< dictionary > &boundaryDicts, const word &defaultBoundaryPatchName, const word &defaultBoundaryPatchType, const bool syncPar=true)
 
virtual ~polyMesh ()
 
virtual const fileNamedbDir () const
 
fileName meshDir () const
 
const fileNamepointsInstance () const
 
const fileNamefacesInstance () const
 
void setInstance (const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
 
virtual const pointFieldpoints () const
 
virtual bool upToDatePoints (const regIOobject &io) const
 
virtual void setUpToDatePoints (regIOobject &io) const
 
virtual const faceListfaces () const
 
virtual const labelListfaceOwner () const
 
virtual const labelListfaceNeighbour () const
 
virtual const pointFieldoldPoints () const
 
virtual const pointFieldoldCellCentres () const
 
const polyBoundaryMeshboundaryMesh () const
 
const boundBoxbounds () const
 
const Vector< label > & geometricD () const
 
label nGeometricD () const
 
const Vector< label > & solutionD () const
 
label nSolutionD () const
 
const labelIOListtetBasePtIs () const
 
const indexedOctree< treeDataCell > & cellTree () const
 
const pointZoneMeshpointZones () const noexcept
 
const faceZoneMeshfaceZones () const noexcept
 
const cellZoneMeshcellZones () const noexcept
 
const globalMeshDataglobalData () const
 
label comm () const noexcept
 
label & comm () noexcept
 
const objectRegistrythisDb () const noexcept
 
virtual bool dynamic () const
 
bool moving () const noexcept
 
bool moving (const bool on) noexcept
 
bool topoChanging () const noexcept
 
bool topoChanging (const bool on) noexcept
 
bool changing () const noexcept
 
virtual tmp< scalarFieldmovePoints (const pointField &)
 
void resetMotion () const
 
pointZoneMeshpointZones () noexcept
 
faceZoneMeshfaceZones () noexcept
 
cellZoneMeshcellZones () noexcept
 
void addPatches (PtrList< polyPatch > &plist, const bool validBoundary=true)
 
void addPatches (const List< polyPatch * > &p, const bool validBoundary=true)
 
void addZones (const List< pointZone * > &pz, const List< faceZone * > &fz, const List< cellZone * > &cz)
 
virtual bool init (const bool doInit)
 
virtual readUpdateState readUpdate ()
 
virtual void updateMesh (const mapPolyMesh &mpm)
 
void removeBoundary ()
 
void resetPrimitives (autoPtr< pointField > &&points, autoPtr< faceList > &&faces, autoPtr< labelList > &&owner, autoPtr< labelList > &&neighbour, const labelUList &patchSizes, const labelUList &patchStarts, const bool validBoundary=true)
 
void clearGeom ()
 
void updateGeomPoints (pointIOField &&newPoints, autoPtr< labelIOList > &newTetBasePtIsPtr)
 
void clearAddressing (const bool isMeshUpdate=false)
 
void clearOut ()
 
void clearPrimitives ()
 
void clearTetBasePtIs ()
 
void clearCellTree ()
 
void removeFiles (const fileName &instanceDir) const
 
void removeFiles () const
 
bool hasTetBasePtIs () const
 
virtual bool checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkFaceSkewness (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkEdgeAlignment (const bool report, const Vector< label > &directions, labelHashSet *setPtr) const
 
virtual bool checkCellDeterminant (const bool report, labelHashSet *setPtr) const
 
virtual bool checkMeshMotion (const pointField &newPoints, const bool report=false, const bool detailedReport=false) const
 
virtual bool checkFaceWeight (const bool report, const scalar minWeight=0.05, labelHashSet *setPtr=nullptr) const
 
virtual bool checkVolRatio (const bool report, const scalar minRatio=0.01, labelHashSet *setPtr=nullptr) const
 
void findCellFacePt (const point &p, label &celli, label &tetFacei, label &tetPti) const
 
void findTetFacePt (const label celli, const point &p, label &tetFacei, label &tetPti) const
 
bool pointInCell (const point &p, label celli, const cellDecomposition=CELL_TETS) const
 
label findCell (const point &p, const cellDecomposition=CELL_TETS) const
 
- Public Member Functions inherited from objectRegistry
 TypeName ("objectRegistry")
 
 objectRegistry (const Time &db, const label nObjects=128)
 
 objectRegistry (const IOobject &io, const label nObjects=128)
 
virtual ~objectRegistry ()
 
const objectRegistrythisDb () const noexcept
 
const objectRegistryparent () const noexcept
 
const Timetime () const noexcept
 
bool isTimeDb () const noexcept
 
HashTable< wordHashSetclasses () const
 
template<class MatchPredicate >
HashTable< wordHashSetclasses (const MatchPredicate &matchName) const
 
label count (const char *clsName) const
 
template<class MatchPredicate >
label count (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
label count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
label count (const bool strict=false) const
 
template<class Type , class MatchPredicate >
label count (const MatchPredicate &matchName) const
 
wordList names () const
 
wordList names (const char *clsName) const
 
template<class MatchPredicate >
wordList names (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
wordList names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
wordList names () const
 
template<class Type , class MatchPredicate >
wordList names (const MatchPredicate &matchName) const
 
wordList sortedNames () const
 
wordList sortedNames (const char *clsName) const
 
template<class MatchPredicate >
wordList sortedNames (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
wordList sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
wordList sortedNames () const
 
template<class Type , class MatchPredicate >
wordList sortedNames (const MatchPredicate &matchName) const
 
const objectRegistrysubRegistry (const word &name, const bool forceCreate=false, const bool recursive=false) const
 
template<class Type >
HashTable< const Type * > lookupClass (const bool strict=false) const
 
template<class Type >
HashTable< Type * > lookupClass (const bool strict=false)
 
const regIOobjectcfindIOobject (const word &name, const bool recursive=false) const
 
bool found (const word &name, const bool recursive=false) const
 
template<class Type >
bool foundObject (const word &name, const bool recursive=false) const
 
template<class Type >
const Type * cfindObject (const word &name, const bool recursive=false) const
 
template<class Type >
const Type * findObject (const word &name, const bool recursive=false) const
 
template<class Type >
Type * findObject (const word &name, const bool recursive=false)
 
template<class Type >
Type * getObjectPtr (const word &name, const bool recursive=false) const
 
template<class Type >
const Type & lookupObject (const word &name, const bool recursive=false) const
 
template<class Type >
Type & lookupObjectRef (const word &name, const bool recursive=false) const
 
label getEvent () const
 
bool checkIn (regIOobject *io) const
 
bool checkIn (regIOobject &io) const
 
bool checkOut (regIOobject *io) const
 
bool checkOut (regIOobject &io) const
 
bool checkOut (const word &key) const
 
void clear ()
 
void clearStorage ()
 
bool erase (const iterator &iter)
 
bool erase (const word &key)
 
label erase (std::initializer_list< word > keys)
 
label erase (const UList< word > &keys)
 
virtual void rename (const word &newName)
 
virtual bool modified () const
 
void readModifiedObjects ()
 
virtual bool readIfModified ()
 
virtual bool writeData (Ostream &) const
 
virtual bool writeObject (IOstreamOption streamOpt, const bool valid) const
 
template<class Type >
const Type * lookupObjectPtr (const word &name, bool recursive=false) const
 
template<class Type >
Type * lookupObjectRefPtr (const word &name, bool recursive=false) const
 
template<class MatchPredicate >
Foam::HashTable< Foam::wordHashSetclassesImpl (const objectRegistry &list, const MatchPredicate &matchName)
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::label countImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName)
 
template<class Type , class MatchPredicate >
Foam::label countTypeImpl (const objectRegistry &list, const MatchPredicate &matchName)
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList namesImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool doSort)
 
template<class Type , class MatchPredicate >
Foam::wordList namesTypeImpl (const objectRegistry &list, const MatchPredicate &matchName, const bool doSort)
 
template<class MatchPredicate >
Foam::HashTable< Foam::wordHashSetclasses (const MatchPredicate &matchName) const
 
template<class MatchPredicate >
Foam::label count (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::label count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type , class MatchPredicate >
Foam::label count (const MatchPredicate &matchName) const
 
template<class Type >
Foam::label count (const bool strict) const
 
template<class MatchPredicate >
Foam::wordList names (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
Foam::wordList names () const
 
template<class Type , class MatchPredicate >
Foam::wordList names (const MatchPredicate &matchName) const
 
template<class MatchPredicate >
Foam::wordList sortedNames (const MatchPredicate &matchClass) const
 
template<class MatchPredicate1 , class MatchPredicate2 >
Foam::wordList sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const
 
template<class Type >
Foam::wordList sortedNames () const
 
template<class Type , class MatchPredicate >
Foam::wordList sortedNames (const MatchPredicate &matchName) const
 
template<class Type >
Foam::HashTable< const Type * > lookupClass (const bool strict) const
 
template<class Type >
Foam::HashTable< Type * > lookupClass (const bool strict)
 
- Public Member Functions inherited from regIOobject
 TypeName ("regIOobject")
 
 regIOobject (const IOobject &io, const bool isTimeObject=false)
 
 regIOobject (const regIOobject &rio)
 
 regIOobject (const regIOobject &rio, bool registerCopy)
 
 regIOobject (const word &newName, const regIOobject &, bool registerCopy)
 
 regIOobject (const IOobject &io, const regIOobject &rio)
 
virtual ~regIOobject ()
 
bool checkIn ()
 
bool checkOut ()
 
virtual void addWatch ()
 
bool ownedByRegistry () const
 
bool store ()
 
void release (const bool unregister=false)
 
label eventNo () const
 
label & eventNo ()
 
bool upToDate (const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const
 
void setUpToDate ()
 
const dictionaryfindMetaData () const noexcept
 
dictionarygetMetaData () noexcept
 
void removeMetaData ()
 
virtual void updateMetaData ()
 
virtual fileName filePath () const
 
bool headerOk ()
 
IstreamreadStream (const word &, const bool valid=true)
 
void close ()
 
virtual bool readData (Istream &)
 
virtual bool read ()
 
virtual label addWatch (const fileName &)
 
const labelListwatchIndices () const
 
labelListwatchIndices ()
 
virtual bool write (const bool valid=true) const
 
virtual bool global () const
 
void operator= (const IOobject &io)
 
virtual bool writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const
 
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 
 IOobject (const IOobject &)=default
 
virtual ~IOobject ()=default
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 
 IOobject (const IOobject &io, const word &name)
 
 IOobject (const IOobject &io, readOption, writeOption)
 
autoPtr< IOobjectclone () const
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 
const objectRegistrydb () const noexcept
 
const Timetime () const
 
const wordname () const noexcept
 
const wordheaderClassName () const noexcept
 
wordheaderClassName () noexcept
 
const stringnote () const noexcept
 
stringnote () noexcept
 
bool registerObject () const noexcept
 
bool registerObject (bool on) noexcept
 
bool globalObject () const noexcept
 
bool globalObject (bool on) noexcept
 
unsigned labelByteSize () const noexcept
 
unsigned scalarByteSize () const noexcept
 
bool isHeaderClassName (const word &clsName) const
 
template<class Type >
bool isHeaderClassName () const
 
readOption readOpt () const noexcept
 
readOption readOpt (readOption opt) noexcept
 
writeOption writeOpt () const noexcept
 
writeOption writeOpt (writeOption opt) noexcept
 
word group () const
 
word member () const
 
const fileNamerootPath () const
 
const fileNamecaseName () const
 
const fileNameinstance () const noexcept
 
fileNameinstance () noexcept
 
const fileNamelocal () const noexcept
 
fileName path () const
 
fileName path (const word &instance, const fileName &local=fileName::null) const
 
fileName objectPath () const
 
fileName objectRelPath () const
 
fileName localFilePath (const word &typeName, const bool search=true) const
 
fileName globalFilePath (const word &typeName, const bool search=true) const
 
IOstreamOption parseHeader (const dictionary &headerDict)
 
bool readHeader (Istream &is)
 
bool readHeader (dictionary &headerDict, Istream &is)
 
template<class Type >
bool typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true)
 
template<class Type >
void warnNoRereading () const
 
bool writeHeader (Ostream &os) const
 
bool writeHeader (Ostream &os, const word &objectType) const
 
void writeHeader (dictionary &dict, IOstreamOption streamOpt) const
 
void writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const
 
bool good () const noexcept
 
bool bad () const noexcept
 
InfoProxy< IOobjectinfo () const
 
void operator= (const IOobject &io)
 
readOptionreadOpt () noexcept
 
writeOptionwriteOpt () noexcept
 
boolregisterObject () noexcept
 
boolglobalObject () noexcept
 
template<>
bool isHeaderClassName () const
 
template<class StringType >
Foam::word groupName (StringType base, const word &group)
 
- Public Member Functions inherited from HashTable< regIOobject * >
 HashTable ()
 
 HashTable (const label size)
 
 HashTable (Istream &is, const label size=128)
 
 HashTable (const this_type &ht)
 
 HashTable (this_type &&rhs)
 
 HashTable (std::initializer_list< std::pair< Key, T >> list)
 
 ~HashTable ()
 
label capacity () const noexcept
 
label size () const noexcept
 
bool empty () const noexcept
 
Tat (const Key &key)
 
const Tat (const Key &key) const
 
bool found (const Key &key) const
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const
 
const_iterator cfind (const Key &key) const
 
const Tlookup (const Key &key, const T &deflt) const
 
List< Key > toc () const
 
List< Key > sortedToc () const
 
List< Key > sortedToc (const Compare &comp) const
 
Foam::List< Key > sortedToc (const Compare &comp) const
 
List< Key > tocKeys (const UnaryPredicate &pred, const bool invert=false) const
 
Foam::List< Key > tocKeys (const UnaryPredicate &pred, const bool invert) const
 
List< Key > tocValues (const UnaryPredicate &pred, const bool invert=false) const
 
Foam::List< Key > tocValues (const UnaryPredicate &pred, const bool invert) const
 
List< Key > tocEntries (const BinaryPredicate &pred, const bool invert=false) const
 
Foam::List< Key > tocEntries (const BinaryPredicate &pred, const bool invert) const
 
label countKeys (const UnaryPredicate &pred, const bool invert=false) const
 
Foam::label countKeys (const UnaryPredicate &pred, const bool invert) const
 
label countValues (const UnaryPredicate &pred, const bool invert=false) const
 
Foam::label countValues (const UnaryPredicate &pred, const bool invert) const
 
label countEntries (const BinaryPredicate &pred, const bool invert=false) const
 
Foam::label countEntries (const BinaryPredicate &pred, const bool invert) const
 
bool emplace (const Key &key, Args &&... args)
 
bool emplace_set (const Key &key, Args &&... args)
 
bool insert (const Key &key, const T &obj)
 
bool insert (const Key &key, T &&obj)
 
bool set (const Key &key, const T &obj)
 
bool set (const Key &key, T &&obj)
 
bool erase (const iterator &iter)
 
bool erase (const Key &key)
 
label erase (const HashTable< AnyType, Key, AnyHash > &other)
 
label erase (std::initializer_list< Key > keys)
 
label erase (InputIter first, InputIter last)
 
label erase (const FixedList< Key, N > &keys)
 
label erase (const UList< Key > &keys)
 
Foam::label erase (InputIter first, InputIter last)
 
Foam::label erase (const FixedList< Key, N > &keys)
 
Foam::label erase (const HashTable< AnyType, Key, AnyHash > &other)
 
label retain (const HashTable< AnyType, Key, AnyHash > &other)
 
Foam::label retain (const HashTable< AnyType, Key, AnyHash > &other)
 
label filterKeys (const UnaryPredicate &pred, const bool pruning=false)
 
Foam::label filterKeys (const UnaryPredicate &pred, const bool pruning)
 
label filterValues (const UnaryPredicate &pred, const bool pruning=false)
 
Foam::label filterValues (const UnaryPredicate &pred, const bool pruning)
 
label filterEntries (const BinaryPredicate &pred, const bool pruning=false)
 
Foam::label filterEntries (const BinaryPredicate &pred, const bool pruning)
 
void resize (const label sz)
 
void clear ()
 
void clearStorage ()
 
void swap (HashTable< T, Key, Hash > &rhs)
 
void transfer (HashTable< T, Key, Hash > &rhs)
 
Toperator[] (const Key &key)
 
const Toperator[] (const Key &key) const
 
Toperator() (const Key &key)
 
Toperator() (const Key &key, const T &deflt)
 
void operator= (const this_type &rhs)
 
void operator= (std::initializer_list< std::pair< Key, T >> rhs)
 
void operator= (this_type &&rhs)
 
bool operator== (const this_type &rhs) const
 
bool operator!= (const this_type &rhs) const
 
this_typeoperator+= (const this_type &rhs)
 
const_iterator_pair< const_key_iterator, this_typekeys () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
constexpr const_iterator cend () const noexcept
 
OstreamprintInfo (Ostream &os) const
 
OstreamwriteKeys (Ostream &os, const label shortLen=0) const
 
- Public Member Functions inherited from primitiveMesh
 ClassName ("primitiveMesh")
 
 primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
 
virtual ~primitiveMesh ()
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &cells)
 
void resetGeometry (pointField &&faceCentres, pointField &&faceAreas, pointField &&cellCentres, scalarField &&cellVolumes)
 
label nPoints () const noexcept
 
label nEdges () const
 
label nFaces () const noexcept
 
label nCells () const noexcept
 
label nInternalFaces () const noexcept
 
label nBoundaryFaces () const noexcept
 
label nInternalPoints () const noexcept
 
label nInternal0Edges () const
 
label nInternal1Edges () const
 
label nInternalEdges () const
 
const cellShapeListcellShapes () const
 
const edgeListedges () const
 
const labelListListcellCells () const
 
const labelListListedgeCells () const
 
const labelListListpointCells () const
 
const cellListcells () const
 
const labelListListedgeFaces () const
 
const labelListListpointFaces () const
 
const labelListListcellEdges () const
 
const labelListListfaceEdges () const
 
const labelListListpointEdges () const
 
const labelListListpointPoints () const
 
const labelListListcellPoints () const
 
const vectorFieldcellCentres () const
 
const vectorFieldfaceCentres () const
 
const scalarFieldcellVolumes () const
 
const vectorFieldfaceAreas () const
 
tmp< scalarFieldmovePoints (const pointField &p, const pointField &oldP)
 
bool isInternalFace (const label faceIndex) const noexcept
 
virtual bool checkUpperTriangular (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkCellsZipUp (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkFaceVertices (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkPoints (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkFaceFaces (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkClosedBoundary (const bool report=false) const
 
virtual bool checkClosedCells (const bool report=false, labelHashSet *setPtr=nullptr, labelHashSet *highAspectSetPtr=nullptr, const Vector< label > &solutionD=Vector< label >::one) const
 
virtual bool checkFaceAreas (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkCellVolumes (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkFacePyramids (const bool report=false, const scalar minPyrVol=-SMALL, labelHashSet *setPtr=nullptr) const
 
virtual bool checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=nullptr) const
 
virtual bool checkFaceFlatness (const bool report, const scalar warnFlatness, labelHashSet *setPtr) const
 
virtual bool checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=nullptr) const
 
virtual bool checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr) const
 
virtual bool checkConcaveCells (const bool report=false, labelHashSet *setPtr=nullptr) const
 
virtual bool checkTopology (const bool report=false) const
 
virtual bool checkGeometry (const bool report=false) const
 
virtual bool checkMesh (const bool report=false) const
 
bool pointInCellBB (const point &p, label celli, scalar inflationFraction=0) const
 
bool pointInCell (const point &p, label celli) const
 
label findNearestCell (const point &location) const
 
label findCell (const point &location) const
 
void printAllocated () const
 
bool hasCellShapes () const noexcept
 
bool hasEdges () const noexcept
 
bool hasCellCells () const noexcept
 
bool hasEdgeCells () const noexcept
 
bool hasPointCells () const noexcept
 
bool hasCells () const noexcept
 
bool hasEdgeFaces () const noexcept
 
bool hasPointFaces () const noexcept
 
bool hasCellEdges () const noexcept
 
bool hasFaceEdges () const noexcept
 
bool hasPointEdges () const noexcept
 
bool hasPointPoints () const noexcept
 
bool hasCellPoints () const noexcept
 
bool hasCellCentres () const noexcept
 
bool hasFaceCentres () const noexcept
 
bool hasCellVolumes () const noexcept
 
bool hasFaceAreas () const noexcept
 
const labelListcellCells (const label celli, DynamicList< label > &) const
 
const labelListcellCells (const label celli) const
 
const labelListcellPoints (const label celli, labelHashSet &, DynamicList< label > &) const
 
const labelListcellPoints (const label celli) const
 
const labelListpointCells (const label pointi, DynamicList< label > &) const
 
const labelListpointCells (const label pointi) const
 
const labelListpointPoints (const label pointi, DynamicList< label > &) const
 
const labelListpointPoints (const label pointi) const
 
const labelListfaceEdges (const label facei, DynamicList< label > &) const
 
const labelListfaceEdges (const label facei) const
 
const labelListedgeFaces (const label edgeI, DynamicList< label > &) const
 
const labelListedgeFaces (const label edgeI) const
 
const labelListedgeCells (const label edgeI, DynamicList< label > &) const
 
const labelListedgeCells (const label edgeI) const
 
const labelListcellEdges (const label celli, labelHashSet &, DynamicList< label > &) const
 
const labelListcellEdges (const label celli) const
 
virtual void updateGeom ()
 
void clearGeom ()
 
void clearCellGeom ()
 
void clearAddressing ()
 
void clearOut ()
 

Static Public Attributes

static word defaultRegion = "region0"
 
static word meshSubDir = "polyMesh"
 
- Static Public Attributes inherited from IOobject
static const Enum< fileCheckTypesfileCheckTypesNames
 
static char scopeSeparator
 
static fileCheckTypes fileModificationChecking
 
static float fileModificationSkew
 
static int maxFileModificationPolls
 
- Static Public Attributes inherited from primitiveMesh
static const unsigned cellsPerEdge_ = 4
 
static const unsigned cellsPerPoint_ = 8
 
static const unsigned facesPerCell_ = 6
 
static const unsigned facesPerEdge_ = 4
 
static const unsigned facesPerPoint_ = 12
 
static const unsigned edgesPerCell_ = 12
 
static const unsigned edgesPerFace_ = 4
 
static const unsigned edgesPerPoint_ = 6
 
static const unsigned pointsPerCell_ = 8
 
static const unsigned pointsPerFace_ = 4
 

Additional Inherited Members

- Static Public Member Functions inherited from regIOobject
template<class Type >
static Type & store (Type *p)
 
template<class Type >
static Type & store (autoPtr< Type > &ptr)
 
template<class Type >
static Type & store (autoPtr< Type > &&ptr)
 
template<class Type >
static Type & store (refPtr< Type > &ptr)
 
template<class Type >
static Type & store (refPtr< Type > &&ptr)
 
template<class Type >
static Type & store (tmp< Type > &ptr)
 
template<class Type >
static Type & store (tmp< Type > &&ptr)
 
- Static Public Member Functions inherited from IOobject
static bool bannerEnabled () noexcept
 
static bool bannerEnabled (bool on) noexcept
 
static bool fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name)
 
template<class StringType >
static word groupName (StringType base, const word &group)
 
static word group (const word &name)
 
static word member (const word &name)
 
static word scopedName (const std::string &scope, const word &name)
 
static IOobject selectIO (const IOobject &io, const fileName &altFile, const word &ioName="")
 
static OstreamwriteBanner (Ostream &os, const bool noSyntaxHint=false)
 
static OstreamwriteDivider (Ostream &os)
 
static OstreamwriteEndDivider (Ostream &os)
 
- Static Public Member Functions inherited from primitiveMesh
static void calcCells (cellList &, const labelUList &own, const labelUList &nei, const label nCells=-1)
 
static bool calcPointOrder (label &nInternalPoints, labelList &pointMap, const faceList &, const label nInternalFaces, const label nPoints)
 
static scalar setClosedThreshold (const scalar)
 
static scalar setAspectThreshold (const scalar)
 
static scalar setNonOrthThreshold (const scalar)
 
static scalar setSkewThreshold (const scalar)
 
- Public Attributes inherited from HashTable< regIOobject * >
const typedef Tconst_pointer
 
const typedef Tconst_reference
 
- Protected Member Functions inherited from regIOobject
bool readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName)
 
- Protected Member Functions inherited from IOobject
void setBad (const string &s)
 
- Protected Member Functions inherited from HashTable< regIOobject * >
bool iterator_erase (node_type *&entry, label &index)
 
- Protected Member Functions inherited from primitiveMesh
void calcFaceCentresAndAreas () const
 
void calcCellCentresAndVols () const
 
void calcEdgeVectors () const
 
bool checkDuplicateFaces (const label, const Map< label > &, label &nBaffleFaces, labelHashSet *) const
 
bool checkCommonOrder (const label, const Map< label > &, labelHashSet *) const
 
bool checkClosedBoundary (const vectorField &areas, const bool report, const bitSet &internalOrCoupledFaces) const
 
bool checkClosedCells (const vectorField &faceAreas, const scalarField &cellVolumes, const bool report, labelHashSet *setPtr, labelHashSet *aspectSetPtr, const Vector< label > &meshD) const
 
bool checkFaceAreas (const vectorField &faceAreas, const bool report, const bool detailedReport, labelHashSet *setPtr) const
 
bool checkCellVolumes (const scalarField &vols, const bool report, const bool detailedReport, labelHashSet *setPtr) const
 
bool checkFaceOrthogonality (const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const
 
bool checkFacePyramids (const pointField &points, const vectorField &ctrs, const bool report, const bool detailedReport, const scalar minPyrVol, labelHashSet *setPtr) const
 
bool checkFaceSkewness (const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const
 
bool checkFaceAngles (const pointField &points, const vectorField &faceAreas, const bool report, const scalar maxDeg, labelHashSet *setPtr) const
 
bool checkFaceFlatness (const pointField &points, const vectorField &faceCentres, const vectorField &faceAreas, const bool report, const scalar warnFlatness, labelHashSet *setPtr) const
 
bool checkConcaveCells (const vectorField &fAreas, const pointField &fCentres, const bool report, labelHashSet *setPtr) const
 
 primitiveMesh ()
 
- Static Protected Member Functions inherited from IOobject
static void writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr)
 
static void writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr)
 
- Static Protected Attributes inherited from regIOobject
static bool masterOnlyReading = false
 
- Static Protected Attributes inherited from primitiveMesh
static scalar closedThreshold_ = 1.0e-6
 
static scalar aspectThreshold_ = 1000
 
static scalar nonOrthThreshold_ = 70
 
static scalar skewThreshold_ = 4
 
static scalar planarCosAngle_ = 1.0e-6
 

Detailed Description

Mesh consisting of general polyhedral cells.

Source files

Definition at line 73 of file polyMesh.H.

Member Typedef Documentation

◆ Mesh

typedef polyMesh Mesh

Definition at line 306 of file polyMesh.H.

◆ BoundaryMesh

Definition at line 307 of file polyMesh.H.

Member Enumeration Documentation

◆ readUpdateState

Enumerator
UNCHANGED 
POINTS_MOVED 
TOPO_CHANGE 
TOPO_PATCH_CHANGE 

Definition at line 86 of file polyMesh.H.

◆ cellDecomposition

Enumerator
FACE_PLANES 
FACE_CENTRE_TRIS 
FACE_DIAG_TRIS 
CELL_TETS 

Definition at line 96 of file polyMesh.H.

Constructor & Destructor Documentation

◆ polyMesh() [1/6]

polyMesh ( const IOobject io,
const bool  doInit = true 
)
explicit

◆ polyMesh() [2/6]

polyMesh ( const IOobject io,
const  zero,
const bool  syncPar = true 
)

Definition at line 704 of file polyMesh.C.

◆ polyMesh() [3/6]

polyMesh ( const IOobject io,
pointField &&  points,
faceList &&  faces,
labelList &&  owner,
labelList &&  neighbour,
const bool  syncPar = true 
)

Definition at line 381 of file polyMesh.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), and Foam::min().

Here is the call graph for this function:

◆ polyMesh() [4/6]

polyMesh ( const IOobject io,
pointField &&  points,
faceList &&  faces,
cellList &&  cells,
const bool  syncPar = true 
)

Definition at line 535 of file polyMesh.C.

References Foam::abort(), cells, Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), and Foam::min().

Here is the call graph for this function:

◆ polyMesh() [5/6]

polyMesh ( const IOobject io,
pointField &&  points,
const cellShapeList shapes,
const faceListList boundaryFaces,
const wordList boundaryPatchNames,
const wordList boundaryPatchTypes,
const word defaultBoundaryPatchName,
const word defaultBoundaryPatchType,
const wordList boundaryPatchPhysicalTypes,
const bool  syncPar = true 
)

◆ polyMesh() [6/6]

polyMesh ( const IOobject io,
pointField &&  points,
const cellShapeList shapes,
const faceListList boundaryFaces,
const wordList boundaryPatchNames,
const PtrList< dictionary > &  boundaryDicts,
const word defaultBoundaryPatchName,
const word defaultBoundaryPatchType,
const bool  syncPar = true 
)

◆ ~polyMesh()

~polyMesh ( )
virtual

Definition at line 813 of file polyMesh.C.

Member Function Documentation

◆ TypeName()

TypeName ( "polyMesh"  )

◆ dbDir()

const Foam::fileName & dbDir ( ) const
virtual

Reimplemented from objectRegistry.

Definition at line 822 of file polyMesh.C.

References objectRegistry::dbDir().

Referenced by topoSet::findIOobject(), faMesh::meshDir(), sensitivitySurface::smoothSensitivities(), and cellCellStencil::zoneID().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ meshDir()

Foam::fileName meshDir ( ) const

Definition at line 833 of file polyMesh.C.

Referenced by points0MotionSolver::points0IO(), polyMesh::polyMesh(), and polyMesh::readUpdate().

Here is the caller graph for this function:

◆ pointsInstance()

const Foam::fileName & pointsInstance ( ) const

◆ facesInstance()

const Foam::fileName & facesInstance ( ) const

◆ setInstance()

void setInstance ( const fileName instance,
const IOobject::writeOption  wOpt = IOobject::AUTO_WRITE 
)

Definition at line 29 of file polyMeshIO.C.

References DebugInFunction, and Foam::endl().

Referenced by snappyLayerDriver::addLayers(), attachPolyTopoChanger::attach(), polyMesh::readUpdate(), and polyMesh::updateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ points()

const Foam::pointField & points ( ) const
virtual

Implements primitiveMesh.

Definition at line 1062 of file polyMesh.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Referenced by polyMeshAdder::add(), sensitivitySurface::addGeometricSens(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), polyDualMesh::calcFeatures(), meshRefinement::calculateEdgeWeights(), deltaBoundary::cellCenters_d(), polyTopoChange::changeMesh(), layerAdditionRemoval::changeTopology(), pointZone::checkParallelSync(), timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), distanceSurface::createGeometry(), volumetricBSplinesMotionSolver::curPoints(), geomCellLooper::cut(), faceCoupleInfo::faceCoupleInfo(), FaceInteraction< CloudType >::FaceInteraction(), mappedPatchBase::facePoint(), tetIndices::faceTri(), sensitivitySurfacePoints::finalisePointSensitivities(), localPointRegion::findDuplicateFaces(), mappedPatchBase::findLocalSamples(), searchableExtrudedCircle::findParametricNearest(), polyMeshAdder::findSharedPoints(), Foam::getMeshPointRef(), searchableExtrudedCircle::getNormal(), globalIndexAndTransform::globalIndexAndTransform(), volPointInterpolation::interpolateDimensionedInternalField(), wallBoundedParticle::isTriAlongTrack(), meshRefinement::makePatch(), meshToMeshMethod::maskCells(), polyMeshAdder::mergePoints(), cyclicACMIFvPatch::movePoints(), stabilisedFvGeometryScheme::movePoints(), highAspectRatioFvGeometryScheme::movePoints(), averageNeighbourFvGeometryScheme::movePoints(), faMesh::movePoints(), zoneCellStencils::nonEmptyFacesPatch(), treeDataCell::findIntersectOp::operator()(), tetOverlapVolume::overlappingCells(), cuttingPlane::performCut(), pointHistory::pointHistory(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), laplacianMotionSolver::setBoundaryConditions(), elasticityMotionSolver::setBoundaryConditions(), edgeFaceCirculator::setCanonical(), fvMeshSubset::setCellSubset(), motionSmootherAlgo::setDisplacement(), boundaryMesh::setFeatureEdges(), perfectInterface::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), shortestPathSet::shortestPathSet(), Foam::simpleGeometricFilter(), syncTools::syncEdgeList(), meshRefinement::testSyncPointList(), tetIndices::tet(), blockMesh::topology(), wallBoundedParticle::trackFaceTri(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), dynamicMotionSolverListFvMesh::update(), trackingInverseDistance::update(), inverseDistance::update(), shapeOptimisation::updateDesignVariables(), PointIntegrateData::updateEdge(), pointEdgePoint::updateEdge(), points0MotionSolver::updateMesh(), pointEdgePoint::updatePoint(), velocityDisplacementMotionSolver::velocityDisplacementMotionSolver(), wallLayerCells::wallLayerCells(), ensightCells::write(), meshToMeshMethod::writeConnectivity(), pointBitSet::writeDebug(), and pointSet::writeDebug().

Here is the call graph for this function:

◆ upToDatePoints()

bool upToDatePoints ( const regIOobject io) const
virtual

Definition at line 1075 of file polyMesh.C.

References regIOobject::upToDate().

Here is the call graph for this function:

◆ setUpToDatePoints()

void setUpToDatePoints ( regIOobject io) const
virtual

Definition at line 1081 of file polyMesh.C.

References regIOobject::eventNo().

Here is the call graph for this function:

◆ faces()

const Foam::faceList & faces ( ) const
virtual

Implements primitiveMesh.

Definition at line 1087 of file polyMesh.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Referenced by polyMeshAdder::add(), cyclicAMIPolyPatch::addAMIFaces(), sensitivitySurface::addGeometricSens(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), nearWallFields::calcAddressing(), polyDualMesh::calcFeatures(), deltaBoundary::cellCenters_d(), layerAdditionRemoval::changeTopology(), primitiveMeshGeometry::checkFaceAngles(), polyMeshGeometry::checkFaceAngles(), polyMeshGeometry::checkFaceFlatness(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkTriangleTwist(), inversePointDistanceDiffusivity::correct(), wallBoundedParticle::crossDiagonalEdge(), wallBoundedParticle::crossEdgeConnectedFace(), wallBoundedParticle::currentEdge(), decompositionMethod::decompose(), directionInfo::edgeToFaceIndex(), faceCoupleInfo::faceCoupleInfo(), FaceInteraction< CloudType >::FaceInteraction(), mappedPatchBase::facePoint(), tetIndices::faceTriIs(), sensitivitySurfacePoints::finalisePointSensitivities(), localPointRegion::findDuplicateFaces(), sampledSet::findNearFace(), dynamicMultiMotionSolverFvMesh::init(), prismMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), meshRefinement::makePatch(), meshToMeshMethod::maskCells(), degenerateMatcher::match(), prismMatcher::matches(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), hexMatcher::matches(), tetMatcher::matches(), pyrMatcher::matches(), polyMeshAdder::mergePoints(), averageNeighbourFvGeometryScheme::movePoints(), zoneCellStencils::nonEmptyFacesPatch(), treeDataCell::findIntersectOp::operator()(), FaceInteraction< CloudType >::postFace(), particle< Type >::procTetPt(), edgeFaceCirculator::sameOrder(), edgeFaceCirculator::setCanonical(), fvMeshSubset::setCellSubset(), lumpedPointMovement::setPatchControl(), perfectInterface::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), shortestPathSet::shortestPathSet(), syncTools::syncEdgeMap(), tetMatcher::test(), pyrMatcher::test(), hexMatcher::test(), blockMesh::topology(), tetIndices::triIs(), directionInfo::updateCell(), wallLayerCells::wallLayerCells(), meshToMeshMethod::writeConnectivity(), and lumpedPointMovement::writeZonesVTP().

Here is the call graph for this function:

◆ faceOwner()

const Foam::labelList & faceOwner ( ) const
virtual

Implements primitiveMesh.

Definition at line 1100 of file polyMesh.C.

Referenced by polyMeshAdder::add(), cyclicAMIPolyPatch::addAMIFaces(), polyTopoChange::addMesh(), polyMeshGeometry::affectedCells(), snappySnapDriver::avgCellCentres(), decompositionMethod::calcCellCells(), polyDualMesh::calcFeatures(), edgeFaceCirculator::cellLabel(), primitiveMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceDotProduct(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), primitiveMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkVolRatio(), cellDistFuncs::correctBoundaryFaceCells(), decompositionMethod::decompose(), mappedPatchBase::facePoint(), tetIndices::faceTriIs(), sampledSet::getBoundaryCell(), sampledSet::getNeighbourCell(), cellCellStencil::globalCellCells(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), prismMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), fvMeshAdder::MapSurfaceField(), Foam::markGrowFaceCellFace(), degenerateMatcher::match(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), prismMatcher::matches(), tetMatcher::matches(), pyrMatcher::matches(), hexMatcher::matches(), polyMeshAdder::mergePoints(), edgeFaceCirculator::operator++(), sampledSet::pointInCell(), particle< Type >::procTetPt(), sampledSet::pushIn(), undoableMeshCutter::removeSplitFaces(), SloanRenumber::renumber(), edgeFaceCirculator::setCanonical(), fvMeshSubset::setCellSubset(), perfectInterface::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), blockMesh::topology(), and tetIndices::triIs().

◆ faceNeighbour()

const Foam::labelList & faceNeighbour ( ) const
virtual

◆ oldPoints()

const Foam::pointField & oldPoints ( ) const
virtual

Implements primitiveMesh.

Definition at line 1112 of file polyMesh.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), and WarningInFunction.

Referenced by attachPolyTopoChanger::attach(), and tetIndices::oldFaceTri().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oldCellCentres()

const Foam::pointField & oldCellCentres ( ) const
virtual

Definition at line 1134 of file polyMesh.C.

◆ boundaryMesh()

const polyBoundaryMesh& boundaryMesh ( ) const
inline

Definition at line 440 of file polyMesh.H.

Referenced by fvMeshAdder::add(), polyMeshAdder::add(), snappyRefineDriver::addFaceZones(), sensitivitySurface::addGeometricSens(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), meshRefinement::addPatch(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), mappedPatchBase::AMI(), meshRefinement::appendPatch(), lumpedPointMovement::areas(), sensitivitySurfacePoints::assembleSensitivities(), assemblyFaceAreaPairGAMGAgglomeration::assemblyFaceAreaPairGAMGAgglomeration(), attachPolyTopoChanger::attach(), patchMeshWriter::beginPiece(), extrudePatchMesh::bottomPatch(), decompositionMethod::calcCellCells(), addPatchCellLayer::calcExtrudeInfo(), polyDualMesh::calcFeatures(), snappySnapDriver::calcNearestSurface(), deltaBoundary::cellCenters_d(), polyTopoChange::changeMesh(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), patchInjection::correct(), cellDistFuncs::correctBoundaryFaceCells(), cellDistFuncs::correctBoundaryPointCells(), Foam::createZeroBoundaryPointFieldPtr(), curvatureSeparation::curvatureSeparation(), structuredDecomp::decompose(), decompositionMethod::decompose(), directions::directions(), snappyLayerDriver::doLayers(), extrudePatchMesh::extrudePatchMesh(), FacePostProcessing< CloudType >::FacePostProcessing(), localPointRegion::findDuplicateFacePairs(), meshRefinement::findRegions(), lumpedPointMovement::forcesAndMoments(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), cellDistFuncs::getPatchIDs(), globalIndexAndTransform::globalIndexAndTransform(), Sampled< Type >::haveSampleField(), isoSurfaceBase::ignoreCyclics(), fvBoundaryMesh::indices(), injectionModelList::info(), transferModelList::info(), objectivePtLosses::initialize(), SurfaceFilmModel< CloudType >::inject(), PDRblock::innerMesh(), interpolationCellPatchConstrained< Type >::interpolate(), regionModel::interRegionAMI(), mappedPatchBase::lookupMesh(), mappedPatchBase::lookupPatch(), polyTopoChange::makeMesh(), meshRefinement::makePatch(), mappedPatchBase::map(), Foam::MapConsistentSubMesh(), volSurfaceMapping::mapInternalToSurface(), mappedPatchFieldBase< scalar >::mappedField(), mapPolyMesh::mapPolyMesh(), volSurfaceMapping::mapToField(), volSurfaceMapping::mapToSurface(), volSurfaceMapping::mapToVolume(), cellDistFuncs::maxPatchSize(), polyMeshAdder::mergePoints(), meshReader::mesh(), regionModel::nbrCoupledPatchID(), fvMeshTools::newMesh(), zoneCellStencils::nonEmptyFacesPatch(), ParticleErosion< CloudType >::ParticleErosion(), polyMeshAdder::patchFacePairs(), sampledPatch::patchIDs(), boundaryMesh::patchify(), patchInjection::patchInjection(), patchInteractionDataList::patchInteractionDataList(), PatchParticleHistogram< CloudType >::PatchParticleHistogram(), PatchPostProcessing< CloudType >::PatchPostProcessing(), polyTopoChange::polyTopoChange(), boundaryMesh::read(), fvMeshTools::removeEmptyPatches(), RemoveParcels< CloudType >::RemoveParcels(), SloanRenumber::renumber(), fvMeshTools::reorderPatches(), snappySnapDriver::repatchToSurface(), fvFieldDecomposer::reset(), sampledCuttingPlane::sampledCuttingPlane(), sampledInterface::sampledInterface(), sampledIsoSurface::sampledIsoSurface(), Sampled< Type >::sampleField(), mappedPatchFieldBase< scalar >::sampleField(), mappedPatchBase::samplePolyPatch(), laplacianMotionSolver::setBoundaryConditions(), elasticityMotionSolver::setBoundaryConditions(), adjointBoundaryCondition< Type >::setBoundaryContributionPtr(), fvMeshSubset::setCellSubset(), patchInjectionBase::setPositionAndCell(), perfectInterface::setRefinement(), meshCutAndRemove::setRefinement(), thermoSingleLayer::Sh(), shortestPathSet::shortestPathSet(), extrudePatchMesh::sidesPatch(), singleCellFvMesh::singleCellFvMesh(), thermalBaffle::solveEnergy(), thermoSingleLayer::Srho(), cellDistFuncs::sumPatchSize(), mappedPatchBase::surfPtr(), syncTools::swapBoundaryCellList(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), blockMesh::topology(), extrudePatchMesh::topPatch(), sampledFaceZone::update(), sampledPatch::update(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), patchInjectionBase::updateMesh(), perfectInterface::updateMesh(), attachDetach::updateMesh(), slidingInterface::updateMesh(), thermoSingleLayer::updateSurfaceTemperatures(), kinematicSingleLayer::updateSurfaceVelocities(), liquidFilmBase::Uw(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), Sampled< Type >::value(), wallLayerCells::wallLayerCells(), fieldExtents::writeFileHeader(), lumpedPointMovement::writeVTP(), and lumpedPointMovement::writeZonesVTP().

◆ bounds()

const boundBox& bounds ( ) const
inline

◆ geometricD()

const Foam::Vector< Foam::label > & geometricD ( ) const

Definition at line 851 of file polyMesh.C.

Referenced by sensitivitySurface::computeRadius().

Here is the caller graph for this function:

◆ nGeometricD()

Foam::label nGeometricD ( ) const

Definition at line 862 of file polyMesh.C.

References Foam::cmptSum().

Referenced by sensitivitySurface::computeRadius(), InjectionModel< CloudType >::InjectionModel(), and inverseDistance::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ solutionD()

const Foam::Vector< Foam::label > & solutionD ( ) const

◆ nSolutionD()

Foam::label nSolutionD ( ) const

Definition at line 879 of file polyMesh.C.

References Foam::cmptSum().

Referenced by GradientDispersionRAS< CloudType >::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tetBasePtIs()

const Foam::labelIOList & tetBasePtIs ( ) const

◆ cellTree()

const Foam::indexedOctree< Foam::treeDataCell > & cellTree ( ) const

◆ pointZones() [1/2]

const pointZoneMesh& pointZones ( ) const
inlinenoexcept

◆ faceZones() [1/2]

const faceZoneMesh& faceZones ( ) const
inlinenoexcept

◆ cellZones() [1/2]

const cellZoneMesh& cellZones ( ) const
inlinenoexcept

◆ globalData()

const Foam::globalMeshData & globalData ( ) const

◆ comm() [1/2]

Foam::label & comm ( ) const
noexcept

Definition at line 1306 of file polyMesh.C.

Referenced by fvMesh::comm(), and processorPolyPatch::comm().

Here is the caller graph for this function:

◆ comm() [2/2]

label& comm ( )
noexcept

◆ thisDb()

const objectRegistry& thisDb ( ) const
inlinenoexcept

Definition at line 503 of file polyMesh.H.

Referenced by fvMesh::thisDb().

Here is the caller graph for this function:

◆ dynamic()

virtual bool dynamic ( ) const
inlinevirtual

Reimplemented in dynamicFvMesh, engineMesh, and staticFvMesh.

Definition at line 512 of file polyMesh.H.

◆ moving() [1/2]

bool moving ( ) const
inlinenoexcept

◆ moving() [2/2]

bool moving ( const bool  on)
inlinenoexcept

Definition at line 524 of file polyMesh.H.

◆ topoChanging() [1/2]

bool topoChanging ( ) const
inlinenoexcept

Definition at line 532 of file polyMesh.H.

Referenced by mappedPatchBase::AMI(), polyTopoChange::changeMesh(), polyMesh::changing(), mappedPatchBase::map(), and isoAlpha::reconstruct().

Here is the caller graph for this function:

◆ topoChanging() [2/2]

bool topoChanging ( const bool  on)
inlinenoexcept

Definition at line 538 of file polyMesh.H.

◆ changing()

bool changing ( ) const
inlinenoexcept

Definition at line 546 of file polyMesh.H.

References polyMesh::moving(), and polyMesh::topoChanging().

Referenced by adjointRASModel::correct(), epsilonWallFunctionFvPatchScalarField::createAveragingWeights(), omegaWallFunctionFvPatchScalarField::createAveragingWeights(), and pyrolysisModelCollection::evolve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ movePoints()

Foam::tmp< Foam::scalarField > movePoints ( const pointField newPoints)
virtual

Reimplemented in fvMesh.

Definition at line 1153 of file polyMesh.C.

References IOobject::AUTO_WRITE, Foam::expressions::patchExpr::debug, DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, InfoInFunction, primitiveMesh::movePoints(), Foam::nl, timeIndex, regIOobject::write(), and Foam::Zero.

Referenced by attachPolyTopoChanger::attach(), and fvMesh::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetMotion()

void resetMotion ( ) const

Definition at line 1280 of file polyMesh.C.

Referenced by polyMeshAdder::add().

Here is the caller graph for this function:

◆ pointZones() [2/2]

pointZoneMesh& pointZones ( )
inlinenoexcept

Definition at line 561 of file polyMesh.H.

◆ faceZones() [2/2]

faceZoneMesh& faceZones ( )
inlinenoexcept

Definition at line 567 of file polyMesh.H.

◆ cellZones() [2/2]

cellZoneMesh& cellZones ( )
inlinenoexcept

Definition at line 573 of file polyMesh.H.

◆ addPatches() [1/2]

void addPatches ( PtrList< polyPatch > &  plist,
const bool  validBoundary = true 
)

Definition at line 954 of file polyMesh.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::Zero.

Referenced by polyMeshAdder::add(), attachPolyTopoChanger::attach(), PDRblock::innerMesh(), meshReader::mesh(), and blockMesh::topology().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addPatches() [2/2]

void addPatches ( const List< polyPatch * > &  p,
const bool  validBoundary = true 
)

Definition at line 1050 of file polyMesh.C.

References p.

◆ addZones()

void addZones ( const List< pointZone * > &  pz,
const List< faceZone * > &  fz,
const List< cellZone * > &  cz 
)

Definition at line 992 of file polyMesh.C.

References Foam::abort(), IOobject::AUTO_WRITE, Foam::FatalError, FatalErrorInFunction, and forAll.

Referenced by blockMesh::mesh(), and fvMeshTools::newMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

bool init ( const bool  doInit)
virtual

Reimplemented from primitiveMesh.

Reimplemented in dynamicOversetFvMesh, interfaceTrackingFvMesh, fvMesh, dynamicRefineFvMesh, dynamicFvMesh, movingConeTopoFvMesh, dynamicMotionSolverFvMeshAMI, dynamicMultiMotionSolverFvMesh, dynamicMotionSolverFvMesh, dynamicMotionSolverTopoFvMesh, and dynamicMotionSolverListFvMesh.

Definition at line 360 of file polyMesh.C.

References primitiveMesh::init().

Referenced by fvMesh::init(), and polyMesh::polyMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readUpdate()

Foam::polyMesh::readUpdateState readUpdate ( )
virtual

◆ updateMesh()

void updateMesh ( const mapPolyMesh mpm)
virtual

◆ removeBoundary()

void removeBoundary ( )

Definition at line 32 of file polyMeshClear.C.

References PtrList::clear(), polyMesh::clearOut(), DebugInFunction, Foam::endl(), and PtrList::setSize().

Referenced by attachPolyTopoChanger::attach(), and fvMesh::removeFvBoundary().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetPrimitives()

void resetPrimitives ( autoPtr< pointField > &&  points,
autoPtr< faceList > &&  faces,
autoPtr< labelList > &&  owner,
autoPtr< labelList > &&  neighbour,
const labelUList patchSizes,
const labelUList patchStarts,
const bool  validBoundary = true 
)

Definition at line 711 of file polyMesh.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), Foam::min(), nPoints, points, Foam::returnReduce(), and timeName.

Referenced by polyMeshAdder::add(), and polyTopoChange::changeMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearGeom()

void clearGeom ( )

Definition at line 46 of file polyMeshClear.C.

References primitiveMesh::clearGeom(), DebugInFunction, Foam::endl(), and Foam::Zero.

Here is the call graph for this function:

◆ updateGeomPoints()

void updateGeomPoints ( pointIOField &&  newPoints,
autoPtr< labelIOList > &  newTetBasePtIsPtr 
)

Definition at line 68 of file polyMeshClear.C.

References bool, primitiveMesh::clearGeom(), meshObject::clearUpto(), DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::Zero.

Referenced by polyMesh::readUpdate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearAddressing()

void clearAddressing ( const bool  isMeshUpdate = false)

Definition at line 145 of file polyMeshClear.C.

References primitiveMesh::clearAddressing(), meshObject::clearUpto(), DebugInFunction, Foam::endl(), and Foam::Zero.

Here is the call graph for this function:

◆ clearOut()

void clearOut ( )

Definition at line 215 of file polyMeshClear.C.

Referenced by fvMesh::clearOut(), polyMesh::readUpdate(), and polyMesh::removeBoundary().

Here is the caller graph for this function:

◆ clearPrimitives()

void clearPrimitives ( )

Definition at line 202 of file polyMeshClear.C.

◆ clearTetBasePtIs()

void clearTetBasePtIs ( )

Definition at line 222 of file polyMeshClear.C.

References DebugInFunction, and Foam::endl().

Here is the call graph for this function:

◆ clearCellTree()

void clearCellTree ( )

Definition at line 230 of file polyMeshClear.C.

References DebugInFunction, and Foam::endl().

Here is the call graph for this function:

◆ removeFiles() [1/2]

void removeFiles ( const fileName instanceDir) const

Definition at line 1318 of file polyMesh.C.

References Foam::isDir(), fileName::path(), Foam::rm(), and Foam::rmDir().

Referenced by meshReader::writeMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeFiles() [2/2]

void removeFiles ( ) const

Definition at line 1342 of file polyMesh.C.

◆ hasTetBasePtIs()

bool hasTetBasePtIs ( ) const
inline

Definition at line 667 of file polyMesh.H.

References bool.

◆ checkFaceOrthogonality()

bool checkFaceOrthogonality ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Reimplemented from primitiveMesh.

Definition at line 634 of file polyMeshCheck.C.

◆ checkFaceSkewness()

bool checkFaceSkewness ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Reimplemented from primitiveMesh.

Definition at line 651 of file polyMeshCheck.C.

References points.

◆ checkEdgeAlignment()

bool checkEdgeAlignment ( const bool  report,
const Vector< label > &  directions,
labelHashSet setPtr 
) const
virtual

Definition at line 670 of file polyMeshCheck.C.

References points.

◆ checkCellDeterminant()

bool checkCellDeterminant ( const bool  report,
labelHashSet setPtr 
) const
virtual

Definition at line 687 of file polyMeshCheck.C.

◆ checkMeshMotion()

bool checkMeshMotion ( const pointField newPoints,
const bool  report = false,
const bool  detailedReport = false 
) const
virtual

◆ checkFaceWeight()

bool checkFaceWeight ( const bool  report,
const scalar  minWeight = 0.05,
labelHashSet setPtr = nullptr 
) const
virtual

Definition at line 703 of file polyMeshCheck.C.

References polyMesh::checkFaceWeight().

Referenced by polyMesh::checkFaceWeight().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkVolRatio()

bool checkVolRatio ( const bool  report,
const scalar  minRatio = 0.01,
labelHashSet setPtr = nullptr 
) const
virtual

Definition at line 722 of file polyMeshCheck.C.

◆ findCellFacePt()

void findCellFacePt ( const point p,
label &  celli,
label &  tetFacei,
label &  tetPti 
) const

Definition at line 1349 of file polyMesh.C.

References indexedOctree::findInside(), and p.

Referenced by patchInjectionBase::setPositionAndCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findTetFacePt()

void findTetFacePt ( const label  celli,
const point p,
label &  tetFacei,
label &  tetPti 
) const

Definition at line 1374 of file polyMesh.C.

References tetIndices::face(), polyMeshTetDecomposition::findTet(), mesh, p, and tetIndices::tetPt().

Referenced by nearWallFields::calcAddressing(), sampledSet::pushIn(), and patchInjectionBase::setPositionAndCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointInCell()

bool pointInCell ( const point p,
label  celli,
const cellDecomposition  decompMode = CELL_TETS 
) const

Definition at line 1390 of file polyMesh.C.

References triangle::areaNormal(), cells, triangle::centre(), f(), tetIndices::faceTri(), forAll, p, primitiveMesh::pointInCell(), and points.

Referenced by sampledSet::pointInCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findCell()

Foam::label findCell ( const point p,
const cellDecomposition  decompMode = CELL_TETS 
) const

Definition at line 1500 of file polyMesh.C.

References p, and UPstream::parRun().

Referenced by waveMethod::calculate(), meshRefinement::findRegion(), sampledSet::getTrackingPoint(), and inverseDistance::markDonors().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ defaultRegion

word defaultRegion = "region0"
static

◆ meshSubDir

word meshSubDir = "polyMesh"
static

The documentation for this class was generated from the following files: