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 }
 Enumeration defining the state of the mesh after a read update. More...
 
enum  cellDecomposition { FACE_PLANES, FACE_CENTRE_TRIS, FACE_DIAG_TRIS, CELL_TETS }
 Enumeration defining the decomposition of the cell for. More...
 
typedef polyMesh Mesh
 
typedef polyBoundaryMesh BoundaryMesh
 
- Public Types inherited from regIOobject
enum  fileCheckTypes { timeStamp, timeStampMaster, inotify, inotifyMaster }
 Types of communications. More...
 
- Public Types inherited from IOobject
enum  objectState { GOOD, BAD }
 Enumeration defining the valid states of an IOobject. More...
 
enum  readOption { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ }
 Enumeration defining the read options. More...
 
enum  writeOption { AUTO_WRITE = 0, NO_WRITE = 1 }
 Enumeration defining the write options. More...
 
- Public Types inherited from HashTable< regIOobject * >
typedef regIOobjectvalue_type
 Type of values the HashTable contains. More...
 
typedef regIOobject * & reference
 Type that can be used for storing into HashTable::value_type. More...
 
typedef const regIOobject * & const_reference
 Type that can be used for storing into constant. More...
 
typedef label size_type
 The type that can represent the size of a HashTable. More...
 

Public Member Functions

 TypeName ("polyMesh")
 Runtime type information. More...
 
 polyMesh (const IOobject &io)
 Construct from IOobject. More...
 
 polyMesh (const IOobject &io, const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< labelList > &owner, const Xfer< labelList > &neighbour, const bool syncPar=true)
 Construct from IOobject or from components. More...
 
 polyMesh (const IOobject &io, const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< cellList > &cells, const bool syncPar=true)
 Construct without boundary with cells rather than owner/neighbour. More...
 
 polyMesh (const IOobject &io, const Xfer< 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)
 Construct from cell shapes. More...
 
 polyMesh (const IOobject &io, const Xfer< 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)
 Construct from cell shapes with patch information in dictionary. More...
 
virtual ~polyMesh ()
 Destructor. More...
 
virtual const fileNamedbDir () const
 Override the objectRegistry dbDir for a single-region case. More...
 
fileName meshDir () const
 Return the local mesh directory (dbDir()/meshSubDir) More...
 
const fileNamepointsInstance () const
 Return the current instance directory for points. More...
 
const fileNamefacesInstance () const
 Return the current instance directory for faces. More...
 
void setInstance (const fileName &)
 Set the instance for mesh files. More...
 
virtual const pointFieldpoints () const
 Return raw points. More...
 
virtual bool upToDatePoints (const regIOobject &io) const
 Return true if io is up-to-date with points. More...
 
virtual void setUpToDatePoints (regIOobject &io) const
 Set io to be up-to-date with points. More...
 
virtual const faceListfaces () const
 Return raw faces. More...
 
virtual const labelListfaceOwner () const
 Return face owner. More...
 
virtual const labelListfaceNeighbour () const
 Return face neighbour. More...
 
virtual const pointFieldoldPoints () const
 Return old points for mesh motion. More...
 
const polyBoundaryMeshboundaryMesh () const
 Return boundary mesh. More...
 
const boundBoxbounds () const
 Return mesh bounding box. More...
 
const Vector< label > & geometricD () const
 Return the vector of geometric directions in mesh. More...
 
label nGeometricD () const
 Return the number of valid geometric dimensions in the mesh. More...
 
const Vector< label > & solutionD () const
 Return the vector of solved-for directions in mesh. More...
 
label nSolutionD () const
 Return the number of valid solved-for dimensions in the mesh. More...
 
const labelListtetBasePtIs () const
 Return the tetBasePtIs. More...
 
const indexedOctree< treeDataCell > & cellTree () const
 Return the cell search tree. More...
 
const pointZoneMeshpointZones () const
 Return point zone mesh. More...
 
const faceZoneMeshfaceZones () const
 Return face zone mesh. More...
 
const cellZoneMeshcellZones () const
 Return cell zone mesh. More...
 
const globalMeshDataglobalData () const
 Return parallel info. More...
 
label comm () const
 Return communicator used for parallel communication. More...
 
labelcomm ()
 Return communicator used for parallel communication. More...
 
const objectRegistrythisDb () const
 Return the object registry. More...
 
bool moving () const
 Is mesh moving. More...
 
bool moving (const bool m)
 Set the mesh to be moving. More...
 
bool topoChanging () const
 Is mesh topology changing. More...
 
bool topoChanging (const bool c)
 Set the mesh topology to be changing. More...
 
bool changing () const
 Is mesh changing (topology changing and/or moving) More...
 
virtual tmp< scalarFieldmovePoints (const pointField &)
 Move points, returns volumes swept by faces in motion. More...
 
void resetMotion () const
 Reset motion. More...
 
pointZoneMeshpointZones ()
 Return non-const access to the pointZones. More...
 
faceZoneMeshfaceZones ()
 Return non-const access to the faceZones. More...
 
cellZoneMeshcellZones ()
 Return non-const access to the cellZones. More...
 
void addPatches (const List< polyPatch * > &, const bool validBoundary=true)
 Add boundary patches. More...
 
void addZones (const List< pointZone * > &pz, const List< faceZone * > &fz, const List< cellZone * > &cz)
 Add mesh zones. More...
 
virtual readUpdateState readUpdate ()
 Update the mesh based on the mesh files saved in. More...
 
virtual void updateMesh (const mapPolyMesh &mpm)
 Update the mesh corresponding to given map. More...
 
void removeBoundary ()
 Remove boundary patches. More...
 
void resetPrimitives (const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< labelList > &owner, const Xfer< labelList > &neighbour, const labelList &patchSizes, const labelList &patchStarts, const bool validBoundary=true)
 Reset mesh primitive data. Assumes all patch info correct. More...
 
void clearGeom ()
 Clear geometry. More...
 
void clearAddressing (const bool isMeshUpdate=false)
 Clear addressing. More...
 
void clearOut ()
 Clear all geometry and addressing unnecessary for CFD. More...
 
void clearPrimitives ()
 Clear primitive data (points, faces and cells) More...
 
void clearAdditionalGeom ()
 Clear geometry not used for CFD (cellTree, tetBasePtIs) More...
 
void clearCellTree ()
 Clear cell tree data. More...
 
void removeFiles (const fileName &instanceDir) const
 Remove all files from mesh instance. More...
 
void removeFiles () const
 Remove all files from mesh instance() More...
 
virtual bool checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=NULL) const
 Check non-orthogonality. More...
 
virtual bool checkFaceSkewness (const bool report=false, labelHashSet *setPtr=NULL) const
 Check face skewness. More...
 
virtual bool checkEdgeAlignment (const bool report, const Vector< label > &directions, labelHashSet *setPtr) const
 Check edge alignment for 1D/2D cases. More...
 
virtual bool checkCellDeterminant (const bool report, labelHashSet *setPtr) const
 
virtual bool checkMeshMotion (const pointField &newPoints, const bool report=false, const bool detailedReport=false) const
 Check mesh motion for correctness given motion points. More...
 
virtual bool checkFaceWeight (const bool report, const scalar minWeight=0.05, labelHashSet *setPtr=NULL) const
 Check for face weights. More...
 
virtual bool checkVolRatio (const bool report, const scalar minRatio=0.01, labelHashSet *setPtr=NULL) const
 Check for neighbouring cell volumes. More...
 
void findCellFacePt (const point &p, label &celli, label &tetFacei, label &tetPti) const
 Find the cell, tetFacei and tetPti for point p. More...
 
void findTetFacePt (const label celli, const point &p, label &tetFacei, label &tetPti) const
 Find the tetFacei and tetPti for point p in celli. More...
 
bool pointInCell (const point &p, label celli, const cellDecomposition=CELL_TETS) const
 Test if point p is in the celli. More...
 
label findCell (const point &p, const cellDecomposition=CELL_TETS) const
 Find cell enclosing this location and return index. More...
 
- Public Member Functions inherited from objectRegistry
 TypeName ("objectRegistry")
 Declare type name for this IOobject. More...
 
 objectRegistry (const Time &db, const label nIoObjects=128)
 Construct the time objectRegistry given an initial estimate. More...
 
 objectRegistry (const IOobject &io, const label nIoObjects=128)
 Construct a sub-registry given an IObject to describe the registry. More...
 
virtual ~objectRegistry ()
 Destructor. More...
 
const Timetime () const
 Return time. More...
 
const objectRegistryparent () const
 Return the parent objectRegistry. More...
 
wordList names () const
 Return the list of names of the IOobjects. More...
 
wordList sortedNames () const
 Return the sorted list of names of the IOobjects. More...
 
wordList names (const word &className) const
 Return the list of names of IOobjects of given class name. More...
 
wordList sortedNames (const word &className) const
 Return the sorted list of names of IOobjects of given class name. More...
 
template<class Type >
wordList names () const
 Return the list of names of the IOobjects of given type. More...
 
template<class Type >
wordList names (const wordRe &name) const
 Return the list of objects whose name matches the input regExp. More...
 
template<class Type >
wordList names (const wordReList &name) const
 Return the list of objects whose name matches the input regExp. More...
 
const objectRegistrysubRegistry (const word &name, const bool forceCreate=false) const
 Lookup and return a const sub-objectRegistry. Optionally create. More...
 
template<class Type >
HashTable< const Type * > lookupClass (const bool strict=false) const
 Lookup and return all objects of the given Type. More...
 
template<class Type >
HashTable< Type * > lookupClass (const bool strict=false)
 Lookup and return all objects of the given Type. More...
 
template<class Type >
bool foundObject (const word &name) const
 Is the named Type found? More...
 
template<class Type >
const Type & lookupObject (const word &name) const
 Lookup and return the object of the given Type. More...
 
label getEvent () const
 Return new event number. More...
 
virtual void rename (const word &newName)
 Rename. More...
 
bool checkIn (regIOobject &) const
 Add an regIOobject to registry. More...
 
bool checkOut (regIOobject &) const
 Remove an regIOobject from registry. More...
 
virtual bool modified () const
 Return true if any of the object's files have been modified. More...
 
void readModifiedObjects ()
 Read the objects that have been modified. More...
 
virtual bool readIfModified ()
 Read object if modified. More...
 
virtual bool writeData (Ostream &) const
 writeData function required by regIOobject but not used More...
 
virtual bool writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write the objects. More...
 
template<class Type >
Foam::wordList names () const
 
template<class Type >
Foam::wordList names (const wordRe &name) const
 
template<class Type >
Foam::wordList names (const wordReList &patterns) 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")
 Runtime type information. More...
 
 regIOobject (const IOobject &, const bool isTime=false)
 Construct from IOobject. Optional flag for if IOobject is the. More...
 
 regIOobject (const regIOobject &)
 Construct as copy. More...
 
 regIOobject (const regIOobject &, bool registerCopy)
 Construct as copy, transferring registry registration to copy. More...
 
 regIOobject (const word &newName, const regIOobject &, bool registerCopy)
 Construct as copy with new name, transfering registry registration. More...
 
 regIOobject (const IOobject &, const regIOobject &)
 Construct as copy with new IO parameters. More...
 
virtual ~regIOobject ()
 Destructor. More...
 
bool checkIn ()
 Add object to registry. More...
 
bool checkOut ()
 Remove object from registry. More...
 
bool ownedByRegistry () const
 Is this object owned by the registry? More...
 
void store ()
 Transfer ownership of this object to its registry. More...
 
void release ()
 Release ownership of this object from its registry. More...
 
label eventNo () const
 Event number at last update. More...
 
labeleventNo ()
 Event number at last update. More...
 
bool upToDate (const regIOobject &) const
 Return true if up-to-date with respect to given object. More...
 
bool upToDate (const regIOobject &, const regIOobject &) const
 Return true if up-to-date with respect to given objects. More...
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const
 Return true if up-to-date with respect to given objects. More...
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const
 Return true if up-to-date with respect to given objects. More...
 
void setUpToDate ()
 Set up to date (obviously) More...
 
IstreamreadStream (const word &)
 Return Istream and check object type against that given. More...
 
void close ()
 Close Istream. More...
 
virtual bool readData (Istream &)
 Virtual readData function. More...
 
virtual bool read ()
 Read object. More...
 
label watchIndex () const
 Return file-monitoring handle. More...
 
labelwatchIndex ()
 Return file-monitoring handle. More...
 
virtual bool write () const
 Write using setting from DB. More...
 
void operator= (const IOobject &)
 
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 Runtime type information. More...
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from name, instance, registry, io options. More...
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from name, instance, local, registry, io options. More...
 
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from path, registry, io options. More...
 
Foam::autoPtr< IOobjectclone () const
 Clone. More...
 
virtual ~IOobject ()
 Destructor. More...
 
const Timetime () const
 Return time. More...
 
const objectRegistrydb () const
 Return the local objectRegistry. More...
 
const wordname () const
 Return name. More...
 
const wordheaderClassName () const
 Return name of the class name read from header. More...
 
stringnote ()
 Return non-constant access to the optional note. More...
 
const stringnote () const
 Return the optional note. More...
 
bool & registerObject ()
 Register object created from this IOobject with registry if true. More...
 
bool registerObject () const
 Register object created from this IOobject with registry if true. More...
 
readOption readOpt () const
 
readOptionreadOpt ()
 
writeOption writeOpt () const
 
writeOptionwriteOpt ()
 
word group () const
 Return group (extension part of name) More...
 
word member () const
 Return member (name without the extension) More...
 
const fileNamerootPath () const
 
const fileNamecaseName () const
 
const fileNameinstance () const
 
fileNameinstance ()
 
const fileNamelocal () const
 
fileName path () const
 Return complete path. More...
 
fileName path (const word &instance, const fileName &local="") const
 Return complete path with alternative instance and local. More...
 
fileName objectPath () const
 Return complete path + object name. More...
 
fileName filePath () const
 Return complete path + object name if the file exists. More...
 
bool readHeader (Istream &)
 Read header. More...
 
bool headerOk ()
 Read and check header info. More...
 
bool writeHeader (Ostream &) const
 Write header. More...
 
bool writeHeader (Ostream &, const word &objectType) const
 Write header. Allow override of type. More...
 
bool good () const
 
bool bad () const
 
InfoProxy< IOobjectinfo () const
 Return info proxy. More...
 
void operator= (const IOobject &)
 
template<class Name >
Foam::word groupName (Name name, const word &group)
 
- Public Member Functions inherited from HashTable< regIOobject * >
bool set (const word &, const regIOobject * &newElmt)
 Assign a new hashedEntry, overwriting existing entries. More...
 
 HashTable (const label size=128)
 Construct given initial table size. More...
 
 HashTable (Istream &, const label size=128)
 Construct from Istream. More...
 
 HashTable (const HashTable< regIOobject *, word, string::hash > &)
 Construct as copy. More...
 
 HashTable (const Xfer< HashTable< regIOobject *, word, string::hash > > &)
 Construct by transferring the parameter contents. More...
 
 ~HashTable ()
 Destructor. More...
 
label capacity () const
 The size of the underlying table. More...
 
label size () const
 Return number of elements in table. More...
 
bool empty () const
 Return true if the hash table is empty. More...
 
bool found (const word &) const
 Return true if hashedEntry is found in table. More...
 
iterator find (const word &)
 Find and return an iterator set at the hashedEntry. More...
 
const_iterator find (const word &) const
 Find and return an const_iterator set at the hashedEntry. More...
 
List< wordtoc () const
 Return the table of contents. More...
 
List< wordsortedToc () const
 Return the table of contents as a sorted list. More...
 
OstreamprintInfo (Ostream &) const
 Print information. More...
 
bool insert (const word &, const regIOobject * &newElmt)
 Insert a new hashedEntry. More...
 
bool erase (const iterator &)
 Erase a hashedEntry specified by given iterator. More...
 
bool erase (const word &)
 Erase a hashedEntry specified by the given key. More...
 
label erase (const UList< word > &)
 Remove entries given by the listed keys from this HashTable. More...
 
label erase (const HashTable< AnyType, word, AnyHash > &)
 Remove entries given by the given keys from this HashTable. More...
 
void resize (const label newSize)
 Resize the hash table for efficiency. More...
 
void clear ()
 Clear all entries from table. More...
 
void clearStorage ()
 Clear the table entries and the table itself. More...
 
void shrink ()
 Shrink the allocated table to approx. twice number of elements. More...
 
void transfer (HashTable< regIOobject *, word, string::hash > &)
 Transfer the contents of the argument table into this table. More...
 
Xfer< HashTable< regIOobject *, word, string::hash > > xfer ()
 Transfer contents to the Xfer container. More...
 
regIOobject * & operator[] (const word &)
 Find and return a hashedEntry. More...
 
const regIOobject * & operator[] (const word &) const
 Find and return a hashedEntry. More...
 
regIOobject * & operator() (const word &)
 Find and return a hashedEntry, create it null if not present. More...
 
void operator= (const HashTable< regIOobject *, word, string::hash > &)
 Assignment. More...
 
bool operator== (const HashTable< regIOobject *, word, string::hash > &) const
 Equality. Hash tables are equal if the keys and values are equal. More...
 
bool operator!= (const HashTable< regIOobject *, word, string::hash > &) const
 The opposite of the equality operation. Takes linear time. More...
 
iterator begin ()
 Iterator set to the beginning of the HashTable. More...
 
const_iterator begin () const
 const_iterator set to the beginning of the HashTable More...
 
const_iterator cbegin () const
 const_iterator set to the beginning of the HashTable More...
 
- Public Member Functions inherited from HashTableCore
 HashTableCore ()
 Construct null. More...
 
 ClassName ("HashTable")
 Define template name and debug. More...
 
- Public Member Functions inherited from primitiveMesh
 ClassName ("primitiveMesh")
 
 primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
 Construct from components. More...
 
virtual ~primitiveMesh ()
 Destructor. More...
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
 Reset this primitiveMesh given the primitive array sizes. More...
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &cells)
 Reset this primitiveMesh given the primitive array sizes and cells. More...
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, const Xfer< cellList > &cells)
 Reset this primitiveMesh given the primitive array sizes and cells. More...
 
label nPoints () const
 
label nEdges () const
 
label nInternalFaces () const
 
label nFaces () const
 
label nCells () const
 
label nInternalPoints () const
 Points not on boundary. More...
 
label nInternal0Edges () const
 Internal edges (i.e. not on boundary face) using. More...
 
label nInternal1Edges () const
 Internal edges using 0 or 1 boundary point. More...
 
label nInternalEdges () const
 Internal edges using 0,1 or 2 boundary points. More...
 
const cellShapeListcellShapes () const
 Return cell shapes. More...
 
const edgeListedges () const
 Return mesh edges. Uses calcEdges. More...
 
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)
 Move points, returns volumes swept by faces in motion. More...
 
bool isInternalFace (const label faceIndex) const
 Return true if given face label is internal to the mesh. More...
 
virtual bool checkUpperTriangular (const bool report=false, labelHashSet *setPtr=NULL) const
 Check face ordering. More...
 
virtual bool checkCellsZipUp (const bool report=false, labelHashSet *setPtr=NULL) const
 Check cell zip-up. More...
 
virtual bool checkFaceVertices (const bool report=false, labelHashSet *setPtr=NULL) const
 Check uniqueness of face vertices. More...
 
virtual bool checkPoints (const bool report=false, labelHashSet *setPtr=NULL) const
 Check for unused points. More...
 
virtual bool checkFaceFaces (const bool report=false, labelHashSet *setPtr=NULL) const
 Check face-face connectivity. More...
 
virtual bool checkClosedBoundary (const bool report=false) const
 Check boundary for closedness. More...
 
virtual bool checkClosedCells (const bool report=false, labelHashSet *setPtr=NULL, labelHashSet *highAspectSetPtr=NULL, const Vector< label > &solutionD=Vector< label >::one) const
 Check cells for closedness. More...
 
virtual bool checkFaceAreas (const bool report=false, labelHashSet *setPtr=NULL) const
 Check for negative face areas. More...
 
virtual bool checkCellVolumes (const bool report=false, labelHashSet *setPtr=NULL) const
 Check for negative cell volumes. More...
 
virtual bool checkFacePyramids (const bool report=false, const scalar minPyrVol=-SMALL, labelHashSet *setPtr=NULL) const
 Check face pyramid volume. More...
 
virtual bool checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=NULL) const
 Check face angles. More...
 
virtual bool checkFaceFlatness (const bool report, const scalar warnFlatness, labelHashSet *setPtr) const
 Check face warpage: decompose face and check ratio between. More...
 
virtual bool checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=NULL) const
 Check for point-point-nearness,. More...
 
virtual bool checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=NULL) const
 Check edge length. More...
 
virtual bool checkConcaveCells (const bool report=false, labelHashSet *setPtr=NULL) const
 Check for concave cells by the planes of faces. More...
 
virtual bool checkTopology (const bool report=false) const
 Check mesh topology for correctness. More...
 
virtual bool checkGeometry (const bool report=false) const
 Check mesh geometry (& implicitly topology) for correctness. More...
 
virtual bool checkMesh (const bool report=false) const
 Check mesh for correctness. Returns false for no error. More...
 
bool pointInCellBB (const point &p, label celli, scalar inflationFraction=0) const
 Return true if the point in the cell bounding box. More...
 
bool pointInCell (const point &p, label celli) const
 Return true if the point is in the cell. More...
 
label findNearestCell (const point &location) const
 Find the cell with the nearest cell centre to location. More...
 
label findCell (const point &location) const
 Find cell enclosing this location (-1 if not in mesh) More...
 
void printAllocated () const
 Print a list of all the currently allocated mesh data. More...
 
bool hasCellShapes () const
 
bool hasEdges () const
 
bool hasCellCells () const
 
bool hasEdgeCells () const
 
bool hasPointCells () const
 
bool hasCells () const
 
bool hasEdgeFaces () const
 
bool hasPointFaces () const
 
bool hasCellEdges () const
 
bool hasFaceEdges () const
 
bool hasPointEdges () const
 
bool hasPointPoints () const
 
bool hasCellPoints () const
 
bool hasCellCentres () const
 
bool hasFaceCentres () const
 
bool hasCellVolumes () const
 
bool hasFaceAreas () const
 
const labelListcellCells (const label cellI, DynamicList< label > &) const
 cellCells using cells. More...
 
const labelListcellCells (const label cellI) const
 
const labelListcellPoints (const label cellI, DynamicList< label > &) const
 cellPoints using cells More...
 
const labelListcellPoints (const label cellI) const
 
const labelListpointCells (const label pointI, DynamicList< label > &) const
 pointCells using pointFaces More...
 
const labelListpointCells (const label pointI) const
 
const labelListpointPoints (const label pointI, DynamicList< label > &) const
 pointPoints using edges, pointEdges More...
 
const labelListpointPoints (const label pointI) const
 
const labelListfaceEdges (const label faceI, DynamicList< label > &) const
 faceEdges using pointFaces, edges, pointEdges More...
 
const labelListfaceEdges (const label faceI) const
 
const labelListedgeFaces (const label edgeI, DynamicList< label > &) const
 edgeFaces using pointFaces, edges, pointEdges More...
 
const labelListedgeFaces (const label edgeI) const
 
const labelListedgeCells (const label edgeI, DynamicList< label > &) const
 edgeCells using pointFaces, edges, pointEdges More...
 
const labelListedgeCells (const label edgeI) const
 
const labelListcellEdges (const label cellI, DynamicList< label > &) const
 cellEdges using cells, pointFaces, edges, pointEdges More...
 
const labelListcellEdges (const label cellI) const
 
void clearGeom ()
 Clear geometry. More...
 
void clearAddressing ()
 Clear topological data. More...
 
void clearOut ()
 Clear all geometry and addressing unnecessary for CFD. More...
 

Static Public Attributes

static word defaultRegion = "region0"
 Return the default region name. More...
 
static word meshSubDir = "polyMesh"
 Return the mesh sub-directory name (usually "polyMesh") More...
 
- Static Public Attributes inherited from regIOobject
static const NamedEnum< fileCheckTypes, 4 > fileCheckTypesNames
 
static int fileModificationSkew
 
static fileCheckTypes fileModificationChecking
 
- Static Public Attributes inherited from HashTableCore
static const label maxTableSize
 Maximum allowable table size. More...
 
- Static Public Attributes inherited from primitiveMesh
static const unsigned cellsPerEdge_ = 4
 Estimated number of cells per edge. More...
 
static const unsigned cellsPerPoint_ = 8
 Estimated number of cells per point. More...
 
static const unsigned facesPerCell_ = 6
 Estimated number of faces per cell. More...
 
static const unsigned facesPerEdge_ = 4
 Estimated number of faces per edge. More...
 
static const unsigned facesPerPoint_ = 12
 Estimated number of faces per point. More...
 
static const unsigned edgesPerCell_ = 12
 Estimated number of edges per cell. More...
 
static const unsigned edgesPerFace_ = 4
 Estimated number of edges per cell. More...
 
static const unsigned edgesPerPoint_ = 6
 Estimated number of edges per point. More...
 
static const unsigned pointsPerCell_ = 8
 Estimated number of points per cell. More...
 
static const unsigned pointsPerFace_ = 4
 Estimated number of points per face. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from regIOobject
template<class Type >
static Type & store (Type *)
 Transfer ownership of the given object pointer to its registry. More...
 
template<class Type >
static Type & store (autoPtr< Type > &)
 Transfer ownership of the given object pointer to its registry. More...
 
- Static Public Member Functions inherited from IOobject
static bool fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name)
 Split path into instance, local, name components. More...
 
template<class Name >
static word groupName (Name name, const word &group)
 
template<class Stream >
static Stream & writeBanner (Stream &os, bool noHint=false)
 Write the standard OpenFOAM file/dictionary banner. More...
 
template<class Stream >
static Stream & writeDivider (Stream &os)
 Write the standard file section divider. More...
 
template<class Stream >
static Stream & writeEndDivider (Stream &os)
 Write the standard end file divider. More...
 
- Static Public Member Functions inherited from HashTableCore
static label canonicalSize (const label)
 Return a canonical (power-of-two) size. More...
 
static iteratorEnd cend ()
 iteratorEnd set to beyond the end of any HashTable More...
 
static iteratorEnd end ()
 iteratorEnd set to beyond the end of any HashTable More...
 
- Static Public Member Functions inherited from primitiveMesh
static void calcCells (cellList &, const labelUList &own, const labelUList &nei, const label nCells=-1)
 Helper function to calculate cell-face addressing from. More...
 
static bool calcPointOrder (label &nInternalPoints, labelList &pointMap, const faceList &, const label nInternalFaces, const label nPoints)
 Helper function to calculate point ordering. Returns true. More...
 
static scalar setClosedThreshold (const scalar)
 Set the closedness ratio warning threshold. More...
 
static scalar setAspectThreshold (const scalar)
 Set the aspect ratio warning threshold. More...
 
static scalar setNonOrthThreshold (const scalar)
 Set the non-orthogonality warning threshold in degrees. More...
 
static scalar setSkewThreshold (const scalar)
 Set the skewness warning threshold as percentage. More...
 
- Protected Member Functions inherited from IOobject
IstreamobjectStream ()
 Construct and return an IFstream for the object. More...
 
IstreamobjectStream (const fileName &)
 Construct and return an IFstream for the object given the. More...
 
void setBad (const string &)
 Set the object state to bad. More...
 
- Protected Member Functions inherited from primitiveMesh
void calcFaceCentresAndAreas () const
 Calculate face centres and areas. More...
 
void makeFaceCentresAndAreas (const pointField &p, vectorField &fCtrs, vectorField &fAreas) const
 
void calcCellCentresAndVols () const
 Calculate cell centres and volumes. More...
 
void makeCellCentresAndVols (const vectorField &fCtrs, const vectorField &fAreas, vectorField &cellCtrs, scalarField &cellVols) const
 
void calcEdgeVectors () const
 Calculate edge vectors. More...
 
bool checkDuplicateFaces (const label, const Map< label > &, label &nBaffleFaces, labelHashSet *) const
 Check if all points on face are shared with another face. More...
 
bool checkCommonOrder (const label, const Map< label > &, labelHashSet *) const
 Check that shared points are in consecutive order. More...
 
bool checkClosedBoundary (const vectorField &, const bool, const PackedBoolList &) const
 Check boundary for closedness. More...
 
bool checkClosedCells (const vectorField &faceAreas, const scalarField &cellVolumes, const bool report, labelHashSet *setPtr, labelHashSet *aspectSetPtr, const Vector< label > &meshD) const
 Check cells for closedness. More...
 
bool checkFaceAreas (const vectorField &faceAreas, const bool report, const bool detailedReport, labelHashSet *setPtr) const
 Check for negative face areas. More...
 
bool checkCellVolumes (const scalarField &vols, const bool report, const bool detailedReport, labelHashSet *setPtr) const
 Check for negative cell volumes. More...
 
bool checkFaceOrthogonality (const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const
 Check for non-orthogonality. More...
 
bool checkFacePyramids (const pointField &points, const vectorField &ctrs, const bool report, const bool detailedReport, const scalar minPyrVol, labelHashSet *setPtr) const
 Check face pyramid volume. More...
 
bool checkFaceSkewness (const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const
 Check face skewness. More...
 
bool checkFaceAngles (const pointField &points, const vectorField &faceAreas, const bool report, const scalar maxDeg, labelHashSet *setPtr) const
 Check face angles. More...
 
bool checkFaceFlatness (const pointField &points, const vectorField &faceCentres, const vectorField &faceAreas, const bool report, const scalar warnFlatness, labelHashSet *setPtr) const
 Check face warpage. More...
 
bool checkConcaveCells (const vectorField &fAreas, const pointField &fCentres, const bool report, labelHashSet *setPtr) const
 Check for concave cells by the planes of faces. More...
 
 primitiveMesh ()
 Construct null. More...
 
- Static Protected Attributes inherited from regIOobject
static bool masterOnlyReading = false
 To flag master-only reading of objects. More...
 
- Static Protected Attributes inherited from primitiveMesh
static scalar closedThreshold_ = 1.0e-6
 Static data to control mesh checking. More...
 
static scalar aspectThreshold_ = 1000
 Aspect ratio warning threshold. More...
 
static scalar nonOrthThreshold_ = 70
 Non-orthogonality warning threshold in deg. More...
 
static scalar skewThreshold_ = 4
 Skewness warning threshold. More...
 
static scalar planarCosAngle_ = 1.0e-6
 Threshold where faces are considered coplanar. More...
 

Detailed Description

Mesh consisting of general polyhedral cells.

Source files

Definition at line 74 of file polyMesh.H.

Member Typedef Documentation

typedef polyMesh Mesh

Definition at line 298 of file polyMesh.H.

Definition at line 299 of file polyMesh.H.

Member Enumeration Documentation

Enumeration defining the state of the mesh after a read update.

Used for post-processing applications, where the mesh needs to update based on the files written in time directores

Enumerator
UNCHANGED 
POINTS_MOVED 
TOPO_CHANGE 
TOPO_PATCH_CHANGE 

Definition at line 88 of file polyMesh.H.

Enumeration defining the decomposition of the cell for.

inside/outside test

Enumerator
FACE_PLANES 
FACE_CENTRE_TRIS 
FACE_DIAG_TRIS 
CELL_TETS 

Definition at line 98 of file polyMesh.H.

Constructor & Destructor Documentation

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

Construct from IOobject or from components.

Boundary is added using addPatches() member function

Definition at line 322 of file polyMesh.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, Foam::max(), Foam::min(), and List< T >::size().

Here is the call graph for this function:

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

Construct without boundary with cells rather than owner/neighbour.

Boundary is added using addPatches() member function

Definition at line 482 of file polyMesh.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, Foam::max(), Foam::min(), polyMesh::resetPrimitives(), and List< T >::size().

Here is the call graph for this function:

polyMesh ( const IOobject io,
const Xfer< 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,
const Xfer< 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 ( )
virtual

Destructor.

Definition at line 790 of file polyMesh.C.

References polyMesh::clearOut(), and polyMesh::resetMotion().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "polyMesh"  )

Runtime type information.

const Foam::fileName & dbDir ( ) const
virtual

Override the objectRegistry dbDir for a single-region case.

Reimplemented from objectRegistry.

Definition at line 799 of file polyMesh.C.

References objectRegistry::dbDir(), polyMesh::defaultRegion, and objectRegistry::parent().

Referenced by topoSet::localPath(), and polyMesh::meshDir().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::fileName meshDir ( ) const

Return the local mesh directory (dbDir()/meshSubDir)

Definition at line 812 of file polyMesh.C.

References polyMesh::dbDir(), and polyMesh::meshSubDir.

Referenced by displacementMotionSolver::points0IO(), polyMesh::polyMesh(), polyMesh::readUpdate(), and polyMesh::removeFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::fileName & pointsInstance ( ) const

Return the current instance directory for points.

Used in the consruction of gemometric mesh data dependent on points

Definition at line 818 of file polyMesh.C.

References IOobject::instance().

Referenced by timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), fvMesh::delta(), surfaceInterpolation::movePoints(), and polyMesh::readUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::fileName & facesInstance ( ) const

Return the current instance directory for faces.

Definition at line 824 of file polyMesh.C.

References IOobject::instance().

Referenced by attachPolyTopoChanger::attach(), timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), manualDecomp::decompose(), topoSet::localPath(), polyMesh::readUpdate(), manualRenumber::renumber(), and globalMeshData::sharedPointGlobalLabels().

Here is the call graph for this function:

Here is the caller graph for this function:

void setInstance ( const fileName inst)
const Foam::pointField & points ( ) const
virtual

Return raw points.

Implements primitiveMesh.

Definition at line 1035 of file polyMesh.C.

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

Referenced by autoLayerDriver::addLayers(), polyTopoChange::addMesh(), polyDualMesh::calcFeatures(), meshRefinement::calculateEdgeWeights(), polyMesh::cellTree(), polyMesh::cellZones(), polyTopoChange::changeMesh(), layerAdditionRemoval::changeTopology(), polyMesh::checkEdgeAlignment(), polyMesh::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), motionSmootherAlgo::checkMesh(), pointZone::checkParallelSync(), timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), pointLinear< Type >::correction(), globalMeshData::coupledPatch(), geomCellLooper::cut(), faceCoupleInfo::faceCoupleInfo(), mappedPatchBase::facePoint(), tetIndices::faceTri(), cellClassification::fillRegionEdges(), cellClassification::fillRegionPoints(), polyMeshTetDecomposition::findBasePoint(), FitData< FitDataType, ExtendedStencil, Polynomial >::findFaceDirs(), mappedPatchBase::findSamples(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshAdder::findSharedPoints(), faceCorrectedSnGrad< Type >::fullGradCorrection(), globalMeshData::geometricSharedPoints(), wallBoundedParticle::isTriAlongTrack(), meshRefinement::makePatch(), edgeCollapser::markMergeEdges(), edgeCollapser::markSmallEdges(), polyMeshAdder::mergePoints(), MeshedSurface< Face >::MeshedSurface(), momentOfInertia::meshInertia(), meshTriangulation::meshTriangulation(), layeredEngineMesh::move(), movingConeTopoFvMesh::movingConeTopoFvMesh(), NamedEnum< Enum, nEnum >::names(), cellCuts::nonAnchorPoints(), listPlusEqOp< T >::operator()(), treeDataCell::findIntersectOp::operator()(), tetOverlapVolume::overlappingCells(), polyMesh::pointInCell(), pointMVCWeight::pointMVCWeight(), Foam::polyMeshZipUpCells(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), polyMesh::resetPrimitives(), fvMeshSubset::setCellSubset(), motionSmootherAlgo::setDisplacementPatchFields(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), faceCollapser::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), globalMeshData::sharedPoints(), meshRefinement::testSyncPointList(), tetIndices::tet(), wallBoundedParticle::trackFaceTri(), particle< Type >::trackToFace(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), movingConeTopoFvMesh::update(), cellMotionFvPatchField< Type >::updateCoeffs(), pointEdgePoint::updateEdge(), componentDisplacementMotionSolver::updateMesh(), displacementMotionSolver::updateMesh(), pointEdgePoint::updatePoint(), Implicit< CloudType >::velocityCorrection(), wallLayerCells::wallLayerCells(), FacePostProcessing< CloudType >::write(), meshToMeshMethod::writeConnectivity(), blockMesh::writeTopology(), meshRefinement::zonify(), and medialAxisMeshMover::~medialAxisMeshMover().

Here is the call graph for this function:

bool upToDatePoints ( const regIOobject io) const
virtual

Return true if io is up-to-date with points.

Definition at line 1048 of file polyMesh.C.

References regIOobject::upToDate().

Here is the call graph for this function:

void setUpToDatePoints ( regIOobject io) const
virtual

Set io to be up-to-date with points.

Definition at line 1054 of file polyMesh.C.

References regIOobject::eventNo().

Here is the call graph for this function:

const Foam::faceList & faces ( ) const
virtual

Return raw faces.

Implements primitiveMesh.

Definition at line 1060 of file polyMesh.C.

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

Referenced by polyTopoChange::addMesh(), polyMeshGeometry::affectedCells(), polyDualMesh::calcFeatures(), pointMVCWeight::calcWeights(), polyMeshTetDecomposition::cellTetIndices(), polyMesh::cellZones(), repatchPolyTopoChanger::changeAnchorPoint(), repatchPolyTopoChanger::changePatchID(), layerAdditionRemoval::changeTopology(), polyMeshGeometry::checkFaceAngles(), polyMeshGeometry::checkFaceFlatness(), polyMeshGeometry::checkFacePyramids(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), edgeCollapser::checkMeshQuality(), polyMeshGeometry::checkTriangleTwist(), edgeCollapser::consistentCollapse(), inversePointDistanceDiffusivity::correct(), pointLinear< Type >::correction(), globalMeshData::coupledPatch(), wallBoundedParticle::crossDiagonalEdge(), wallBoundedParticle::crossEdgeConnectedFace(), particle< Type >::crossEdgeConnectedFace(), wallBoundedParticle::currentEdge(), decompositionMethod::decompose(), autoSnapDriver::doSnap(), dynamicRefineFvMesh::dynamicRefineFvMesh(), faceCoupleInfo::faceCoupleInfo(), mappedPatchBase::facePoint(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTri(), tetIndices::faceTriIs(), polyMeshTetDecomposition::findBasePoint(), polyMeshTetDecomposition::findFaceBasePts(), FitData< FitDataType, ExtendedStencil, Polynomial >::findFaceDirs(), sampledSet::findNearFace(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshTetDecomposition::findTet(), cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), faceCorrectedSnGrad< Type >::fullGradCorrection(), isoSurface::generateFaceTriPoints(), autoSnapDriver::getZoneSurfacePoints(), particle< Type >::hitCyclicAMIPatch(), particle< Type >::hitCyclicPatch(), particle< Type >::hitWallFaces(), meshRefinement::makePatch(), edgeCollapser::markFaceZoneEdges(), edgeCollapser::markSmallSliverFaces(), meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), MeshedSurface< Face >::MeshedSurface(), meshTriangulation::meshTriangulation(), multiSolidBodyMotionFvMesh::multiSolidBodyMotionFvMesh(), NamedEnum< Enum, nEnum >::names(), cellCuts::nonAnchorPoints(), tetIndices::oldFaceTri(), tetIndices::oldTet(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), treeDataCell::findIntersectOp::operator()(), pointMVCWeight::pointMVCWeight(), Foam::polyMeshZipUpCells(), fvMeshDistribute::printCoupleInfo(), wallBoundedStreamLine::read(), polyMesh::resetPrimitives(), fvMeshSubset::setCellSubset(), decompositionMethod::setConstraints(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), faceCollapser::setRefinement(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), solidBodyMotionFvMesh::solidBodyMotionFvMesh(), meshRefinement::splitMesh(), syncTools::syncEdgeMap(), tetIndices::tet(), tetIndices::tetIndices(), particle< Type >::tetNeighbour(), particle< Type >::trackToFace(), polyMeshTetDecomposition::triangleTetIndices(), directionInfo::updateCell(), Implicit< CloudType >::velocityCorrection(), wallLayerCells::wallLayerCells(), meshToMeshMethod::writeConnectivity(), meshRefinement::zonify(), and ensightPartCells::~ensightPartCells().

Here is the call graph for this function:

const Foam::labelList & faceOwner ( ) const
virtual

Return face owner.

Implements primitiveMesh.

Definition at line 1073 of file polyMesh.C.

Referenced by polyTopoChange::addMesh(), polyMeshGeometry::affectedCells(), autoRefineDriver::autoRefineDriver(), autoSnapDriver::avgCellCentres(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), repatchPolyTopoChanger::changeAnchorPoint(), repatchPolyTopoChanger::changePatchID(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkVolRatio(), cellDistFuncs::correctBoundaryFaceCells(), meshRefinement::createBaffles(), meshRefinement::createZoneBaffles(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), dynamicRefineFvMesh::dynamicRefineFvMesh(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), mappedPatchBase::facePoint(), polyMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTetDecomposition::faceTetIndices(), polyMeshTools::faceWeights(), polyMeshTetDecomposition::findBasePoint(), polyMeshTetDecomposition::findFaceBasePts(), polyMeshTetDecomposition::findSharedBasePoint(), cellPointWeight::findTriangle(), isoSurface::generateFaceTriPoints(), get_edge_list(), sampledSet::getBoundaryCell(), sampledSet::getCell(), particle< Type >::hitCyclicAMIPatch(), particle< Type >::hitCyclicPatch(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), meshTriangulation::meshTriangulation(), NamedEnum< Enum, nEnum >::names(), cellCuts::nonAnchorPoints(), cellQuality::nonOrthogonality(), minEqOpFace::operator()(), fvMeshDistribute::printCoupleInfo(), fvFieldDecomposer::processorVolPatchFieldDecomposer::processorVolPatchFieldDecomposer(), sampledSet::pushIn(), undoableMeshCutter::removeSplitFaces(), SloanRenumber::renumber(), fvMeshSubset::setCellSubset(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), cellQuality::skewness(), Foam::fvc::smooth(), meshRefinement::splitMesh(), Foam::fvc::spread(), Foam::fvc::sweep(), tetIndices::tetIndices(), particle< Type >::tetNeighbour(), particle< Type >::trackToFace(), polyMeshTetDecomposition::triangleTetIndices(), polyMeshTools::volRatio(), regionSizeDistribution::write(), meshRefinement::zonify(), and ensightPartCells::~ensightPartCells().

const Foam::labelList & faceNeighbour ( ) const
virtual

Return face neighbour.

Implements primitiveMesh.

Definition at line 1079 of file polyMesh.C.

Referenced by addPatchCellLayer::addedCells(), polyTopoChange::addMesh(), polyMeshGeometry::affectedCells(), autoRefineDriver::autoRefineDriver(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkVolRatio(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), dynamicRefineFvMesh::dynamicRefineFvMesh(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), polyMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), polyMeshTetDecomposition::findSharedBasePoint(), isoSurface::generateFaceTriPoints(), get_edge_list(), sampledSet::getCell(), interRegionExplicitPorositySource::initialise(), cellToFaceStencil::insertFaceCells(), cellToCellStencil::insertFaceCells(), meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), cellCuts::nonAnchorPoints(), cellQuality::nonOrthogonality(), minEqOpFace::operator()(), fvMeshDistribute::printCoupleInfo(), fvFieldDecomposer::processorVolPatchFieldDecomposer::processorVolPatchFieldDecomposer(), undoableMeshCutter::removeSplitFaces(), SloanRenumber::renumber(), fvMeshSubset::setCellSubset(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), cellQuality::skewness(), meshRefinement::splitMesh(), particle< Type >::trackToFace(), polyMeshTools::volRatio(), regionSizeDistribution::write(), and meshRefinement::zonify().

const Foam::pointField & oldPoints ( ) const
virtual

Return old points for mesh motion.

Implements primitiveMesh.

Definition at line 1085 of file polyMesh.C.

References Foam::endl(), polyMesh::movePoints(), objectRegistry::time(), TimeState::timeIndex(), and WarningIn.

Referenced by attachPolyTopoChanger::attach(), polyMesh::movePoints(), tetIndices::oldFaceTri(), tetIndices::oldTet(), and movingWallVelocityFvPatchVectorField::updateCoeffs().

Here is the call graph for this function:

Here is the caller graph for this function:

const polyBoundaryMesh& boundaryMesh ( ) const
inline

Return boundary mesh.

Definition at line 421 of file polyMesh.H.

Referenced by isoSurface::adaptPatchFields(), fvMeshAdder::add(), polyMeshAdder::add(), fvMesh::addFvPatches(), autoLayerDriver::addLayers(), polyTopoChange::addMesh(), fvMeshTools::addPatch(), meshRefinement::addPatch(), polyMesh::addPatches(), globalIndexAndTransform::addToTransformIndex(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), meshRefinement::appendPatch(), attachPolyTopoChanger::attach(), autoRefineDriver::autoRefineDriver(), extrudePatchMesh::bottomPatch(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), curvatureSeparation::calcInvR1(), wallShearStress::calcShearStress(), addPatchCellLayer::calcSidePatch(), P1::calculate(), viewFactor::calculate(), cellPointWeightWallModified::cellPointWeightWallModified(), repatchPolyTopoChanger::changeAnchorPoint(), polyTopoChange::changeMesh(), repatchPolyTopoChanger::changePatchID(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), polyMeshGeometry::checkVolRatio(), meshRefinement::checkZoneFaces(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), patchInjection::correct(), wallDistData< TransferType >::correct(), cellDistFuncs::correctBoundaryFaceCells(), cellDistFuncs::correctBoundaryPointCells(), globalMeshData::coupledPatch(), meshRefinement::createBaffles(), meshRefinement::createZoneBaffles(), curvatureSeparation::curvatureSeparation(), structuredDecomp::decompose(), decompositionMethod::decompose(), directions::directions(), fvMeshDistribute::distribute(), autoLayerDriver::doLayers(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), extrudePatchMesh::extrudePatchMesh(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), polyMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), localPointRegion::findDuplicateFacePairs(), patchProbes::findElements(), polyMeshTetDecomposition::findFaceBasePts(), fvBoundaryMesh::findIndices(), isoSurface::generateFaceTriPoints(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), cellDistFuncs::getPatchIDs(), particle< Type >::hitWallFaces(), injectionModelList::info(), SurfaceFilmModel< CloudType >::inject(), interpolationCellPatchConstrained< Type >::interpolate(), temperatureCoupledBase::kappa(), localPointRegion::localPointRegion(), polyTopoChange::makeMesh(), meshRefinement::makePatch(), Foam::MapConsistentSubMesh(), mappedPatchFieldBase< Type >::mappedField(), fvMeshAdder::MapVolFields(), cellDistFuncs::maxPatchSize(), meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), meshTriangulation::meshTriangulation(), DSMCParcel< ParcelType >::move(), Cloud< ParticleType >::move(), KinematicParcel< ParcelType >::move(), regionModel::nbrCoupledPatchID(), regionCoupledBase::neighbPatch(), regionCoupledBase::neighbPatchID(), cellQuality::nonOrthogonality(), ListPlusEqOp< T, Size >::operator()(), listPlusEqOp< T >::operator()(), particle< Type >::patch(), blockMesh::patchDicts(), particle< Type >::patchFace(), sampledPatch::patchIDs(), boundaryMesh::patchify(), patchInjection::patchInjection(), patchInjectionBase::patchInjectionBase(), patchInteractionDataList::patchInteractionDataList(), blockMesh::patchNames(), Foam::polyMeshZipUpCells(), polyTopoChange::polyTopoChange(), fvMeshDistribute::printCoupleInfo(), thermalBaffleModel::read(), nearWallFields::read(), boundaryMesh::read(), forces::read(), fvMesh::readUpdate(), ensightParts::recalculate(), SloanRenumber::renumber(), structuredRenumber::renumber(), fvMeshTools::reorderPatches(), autoSnapDriver::repatchToSurface(), thermalBaffleFvPatchScalarField::rmap(), patchProbes::sample(), sampledCuttingPlane::sampledCuttingPlane(), sampledIsoSurface::sampledIsoSurface(), sampledPatchInternalField::sampledPatchInternalField(), mappedPatchFieldBase< Type >::sampleField(), mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch(), mappedPatchBase::samplePolyPatch(), mappedPatchBase::sampleRegion(), fvMeshSubset::setCellSubset(), decompositionMethod::setConstraints(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), patchInjectionBase::setPositionAndCell(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), edgeCollapser::setRefinement(), fvMatrix< Type >::setValuesFromList(), extrudePatchMesh::sidesPatch(), singleCellFvMesh::singleCellFvMesh(), cellQuality::skewness(), Foam::fvc::smooth(), thermalBaffle::solveEnergy(), Foam::fvc::spread(), thermoSingleLayer::Srho(), cellDistFuncs::sumPatchSize(), regionCoupledBase::surfPtr(), mappedPatchBase::surfPtr(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), Foam::fvc::sweep(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), thermalBaffleFvPatchScalarField::thermalBaffleFvPatchScalarField(), extrudePatchMesh::topPatch(), particle< Type >::trackToFace(), sampledPatch::update(), thermalBaffleFvPatchScalarField::updateCoeffs(), patchInjectionBase::updateMesh(), perfectInterface::updateMesh(), attachDetach::updateMesh(), slidingInterface::updateMesh(), thermoSingleLayer::updateSurfaceTemperatures(), kinematicSingleLayer::updateSurfaceVelocities(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), Implicit< CloudType >::velocityCorrection(), polyMeshTools::volRatio(), wallLayerCells::wallLayerCells(), WallLocalSpringSliderDashpot< CloudType >::WallLocalSpringSliderDashpot(), PatchPostProcessing< CloudType >::write(), thermalBaffleFvPatchScalarField::write(), fvMeshTools::zeroPatchFields(), and meshRefinement::zonify().

const boundBox& bounds ( ) const
inline
const Foam::Vector< Foam::label > & geometricD ( ) const

Return the vector of geometric directions in mesh.

Defined according to the presence of empty and wedge patches. 1 indicates unconstrained direction and -1 a constrained direction.

Definition at line 830 of file polyMesh.C.

References Vector< Cmpt >::x().

Referenced by polyMesh::bounds(), polyMesh::checkCellDeterminant(), Foam::meshTools::constrainToMeshCentre(), FitData< FitDataType, ExtendedStencil, Polynomial >::findFaceDirs(), polyMesh::nGeometricD(), and LeastSquaresVectors< Stencil >::~LeastSquaresVectors().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label nGeometricD ( ) const

Return the number of valid geometric dimensions in the mesh.

Definition at line 841 of file polyMesh.C.

References Foam::cmptSum(), and polyMesh::geometricD().

Referenced by polyMesh::bounds(), and FitData< FitDataType, ExtendedStencil, Polynomial >::findFaceDirs().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return the vector of solved-for directions in mesh.

Differs from geometricD in that it includes for wedge cases the circumferential direction in case of swirl. 1 indicates valid direction and -1 an invalid direction.

Definition at line 847 of file polyMesh.C.

References Vector< Cmpt >::x().

Referenced by polyMesh::bounds(), get_geom_list(), InjectionModel< CloudType >::inject(), InjectionModel< CloudType >::injectSteadyState(), DSMCParcel< ParcelType >::move(), polyMesh::nSolutionD(), and ThermoSurfaceFilm< CloudType >::splashInteraction().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label nSolutionD ( ) const

Return the number of valid solved-for dimensions in the mesh.

Definition at line 858 of file polyMesh.C.

References Foam::cmptSum(), and polyMesh::solutionD().

Referenced by polyMesh::bounds(), get_geom_list(), get_mesh_dim(), and GradientDispersionRAS< CloudType >::update().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return the cell search tree.

Definition at line 890 of file polyMesh.C.

References polyMesh::addPatches(), polyMesh::CELL_TETS, Foam::e, treeBoundBox::extend(), boundBox::max(), boundBox::min(), polyMesh::points(), and rndGen().

Referenced by polyMesh::bounds(), polyMesh::findCellFacePt(), mappedPatchBase::findSamples(), and tetOverlapVolume::overlappingCells().

Here is the call graph for this function:

Here is the caller graph for this function:

const pointZoneMesh& pointZones ( ) const
inline
const faceZoneMesh& faceZones ( ) const
inline
const cellZoneMesh& cellZones ( ) const
inline
const Foam::globalMeshData & globalData ( ) const
Foam::label comm ( ) const

Return communicator used for parallel communication.

Definition at line 1218 of file polyMesh.C.

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

Here is the caller graph for this function:

Foam::label & comm ( )

Return communicator used for parallel communication.

Definition at line 1224 of file polyMesh.C.

const objectRegistry& thisDb ( ) const
inline

Return the object registry.

Definition at line 484 of file polyMesh.H.

Referenced by regionCoupledBaseGAMGInterface::nbrLduInterface(), polyMesh::removeFiles(), and fvMesh::thisDb().

Here is the caller graph for this function:

bool moving ( ) const
inline
bool moving ( const bool  m)
inline

Set the mesh to be moving.

Definition at line 499 of file polyMesh.H.

bool topoChanging ( ) const
inline

Is mesh topology changing.

Definition at line 507 of file polyMesh.H.

Referenced by polyTopoChange::changeMesh(), polyMesh::changing(), nearWallDist::correct(), rawTopoChangerFvMesh::update(), and dynamicRefineFvMesh::update().

Here is the caller graph for this function:

bool topoChanging ( const bool  c)
inline

Set the mesh topology to be changing.

Definition at line 513 of file polyMesh.H.

References Foam::constant::universal::c.

bool changing ( ) const
inline
Foam::tmp< Foam::scalarField > movePoints ( const pointField newPoints)
virtual
void resetMotion ( ) const

Reset motion.

Definition at line 1192 of file polyMesh.C.

Referenced by polyMesh::changing(), polyMesh::clearPrimitives(), fvMeshDistribute::distribute(), and polyMesh::~polyMesh().

Here is the caller graph for this function:

pointZoneMesh& pointZones ( )
inline

Return non-const access to the pointZones.

Definition at line 536 of file polyMesh.H.

faceZoneMesh& faceZones ( )
inline

Return non-const access to the faceZones.

Definition at line 542 of file polyMesh.H.

cellZoneMesh& cellZones ( )
inline
void addPatches ( const List< polyPatch * > &  p,
const bool  validBoundary = true 
)
void addZones ( const List< pointZone * > &  pz,
const List< faceZone * > &  fz,
const List< cellZone * > &  cz 
)
Foam::polyMesh::readUpdateState readUpdate ( )
virtual
void updateMesh ( const mapPolyMesh mpm)
virtual

Update the mesh corresponding to given map.

Reimplemented in fvMesh.

Definition at line 39 of file polyMeshUpdate.C.

References ZoneMesh< ZoneType, MeshType >::clearAddressing(), Foam::endl(), forAll, Foam::Info, Field< Type >::map(), mapPolyMesh::pointMap(), polyMesh::setInstance(), List< T >::setSize(), List< T >::size(), objectRegistry::time(), timeName, and polyBoundaryMesh::updateMesh().

Referenced by polyMesh::cellZones(), polyTopoChanger::changeMesh(), polyMeshFilter::copyMesh(), and fvMesh::updateMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

void removeBoundary ( )

Remove boundary patches.

Definition at line 36 of file polyMeshClear.C.

References PtrList< T >::clear(), polyMesh::clearOut(), Foam::endl(), Foam::Info, and PtrList< T >::setSize().

Referenced by attachPolyTopoChanger::attach(), polyMesh::cellZones(), repatchPolyTopoChanger::changePatches(), and fvMesh::removeFvBoundary().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reset mesh primitive data. Assumes all patch info correct.

(so does e.g. parallel communication). If not use validBoundary=false

Definition at line 666 of file polyMesh.C.

References Foam::abort(), primitiveMesh::clearAddressing(), Foam::endl(), polyMesh::faces(), Foam::FatalError, FatalErrorIn, forAll, Foam::max(), Foam::min(), primitiveMesh::nCells(), Foam::notNull(), primitiveMesh::nPoints(), polyMesh::points(), Foam::returnReduce(), polyMesh::setInstance(), List< T >::size(), objectRegistry::time(), timeName, List< T >::transfer(), and polyBoundaryMesh::updateMesh().

Referenced by polyMesh::cellZones(), polyTopoChange::changeMesh(), polyMesh::polyMesh(), and Foam::polyMeshZipUpCells().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearGeom ( )

Clear geometry.

Definition at line 55 of file polyMeshClear.C.

References polyBoundaryMesh::clearGeom(), primitiveMesh::clearGeom(), Foam::endl(), and Foam::Info.

Referenced by polyMesh::cellZones(), polyMesh::clearOut(), and polyMesh::readUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearAddressing ( const bool  isMeshUpdate = false)

Clear addressing.

Definition at line 99 of file polyMeshClear.C.

References ZoneMesh< ZoneType, MeshType >::clearAddressing(), primitiveMesh::clearAddressing(), meshObject::clearUpto(), Foam::endl(), and Foam::Info.

Here is the call graph for this function:

void clearOut ( )

Clear all geometry and addressing unnecessary for CFD.

Definition at line 173 of file polyMeshClear.C.

References primitiveMesh::clearAddressing(), and polyMesh::clearGeom().

Referenced by polyMesh::cellZones(), fvMesh::clearOut(), Foam::polyMeshZipUpCells(), polyMesh::readUpdate(), polyMesh::removeBoundary(), and polyMesh::~polyMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearPrimitives ( )

Clear primitive data (points, faces and cells)

Definition at line 160 of file polyMeshClear.C.

References polyMesh::resetMotion(), and List< T >::setSize().

Referenced by polyMesh::cellZones().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearAdditionalGeom ( )

Clear geometry not used for CFD (cellTree, tetBasePtIs)

Definition at line 83 of file polyMeshClear.C.

References Foam::endl(), and Foam::Info.

Referenced by polyMesh::cellZones().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearCellTree ( )

Clear cell tree data.

Definition at line 180 of file polyMeshClear.C.

References Foam::endl(), and Foam::Info.

Referenced by polyMesh::cellZones().

Here is the call graph for this function:

Here is the caller graph for this function:

void removeFiles ( const fileName instanceDir) const

Remove all files from mesh instance.

Definition at line 1230 of file polyMesh.C.

References Foam::isDir(), polyMesh::meshDir(), Time::path(), Foam::rm(), Foam::rmDir(), polyMesh::thisDb(), and objectRegistry::time().

Referenced by meshReader::writeMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

void removeFiles ( ) const

Remove all files from mesh instance()

Definition at line 1254 of file polyMesh.C.

References polyMesh::findCellFacePt(), and IOobject::instance().

Referenced by polyMesh::cellZones(), and polyMesh::polyMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Check non-orthogonality.

Could override checkClosedBoundary to not look at (collocated!) coupled.

faces bool Foam::polyMesh::checkClosedBoundary(const bool report) const { return primitiveMesh::checkClosedBoundary ( faceAreas(), report, syncTools::getInternalOrCollocatedCoupledFaces(*this) ); }

Reimplemented from primitiveMesh.

Definition at line 709 of file polyMeshCheck.C.

References primitiveMesh::cellCentres(), and primitiveMesh::faceAreas().

Here is the call graph for this function:

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

Check face skewness.

Reimplemented from primitiveMesh.

Definition at line 726 of file polyMeshCheck.C.

References primitiveMesh::cellCentres(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), and polyMesh::points().

Here is the call graph for this function:

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

Check edge alignment for 1D/2D cases.

Definition at line 745 of file polyMeshCheck.C.

References polyMesh::points().

Here is the call graph for this function:

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

Definition at line 762 of file polyMeshCheck.C.

References primitiveMesh::faceAreas(), and polyMesh::geometricD().

Here is the call graph for this function:

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

Check mesh motion for correctness given motion points.

Definition at line 808 of file polyMeshCheck.C.

References cellVols, primitiveMesh::checkCellVolumes(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkFacePyramids(), Foam::endl(), primitiveMesh::makeCellCentresAndVols(), primitiveMesh::makeFaceCentresAndAreas(), primitiveMesh::nCells(), primitiveMesh::nFaces(), and Foam::Pout.

Referenced by polyMesh::cellZones(), polyMesh::checkVolRatio(), and polyMesh::movePoints().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Check for face weights.

Definition at line 778 of file polyMeshCheck.C.

References primitiveMesh::cellCentres(), primitiveMesh::faceAreas(), and primitiveMesh::faceCentres().

Here is the call graph for this function:

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

Check for neighbouring cell volumes.

Definition at line 797 of file polyMeshCheck.C.

References primitiveMesh::cellVolumes(), and polyMesh::checkMeshMotion().

Here is the call graph for this function:

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

Find the tetFacei and tetPti for point p in celli.

tetFaceI and tetPtI are set to -1 if not found

Definition at line 1341 of file polyMesh.C.

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

Referenced by polyMesh::cellZones(), polyMesh::findCellFacePt(), particle< Type >::initCellFacePt(), polyMesh::pointInCell(), and sampledSet::pushIn().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Member Data Documentation

word defaultRegion = "region0"
static
word meshSubDir = "polyMesh"
static

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