Mesh consisting of general polyhedral cells. More...
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 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... | |
enum | fileCheckTypes { timeStamp, timeStampMaster, inotify, inotifyMaster } |
Enumeration defining the file checking options. More... | |
Public Types inherited from HashTable< regIOobject *> | |
typedef regIOobject * | value_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, pointField &&points, faceList &&faces, labelList &&owner, labelList &&neighbour, const bool syncPar=true) | |
Move construct from IOobject or from components. More... | |
polyMesh (const IOobject &io, pointField &&points, faceList &&faces, cellList &&cells, const bool syncPar=true) | |
Move construct without boundary with cells rather than. More... | |
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) | |
Move construct from cell shapes. More... | |
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) | |
Move construct from cell shapes with patch information in dictionary. More... | |
polyMesh (const polyMesh &) | |
Disallow default bitwise copy construction. More... | |
virtual | ~polyMesh () |
Destructor. More... | |
virtual const fileName & | dbDir () const |
Override the objectRegistry dbDir for a single-region case. More... | |
fileName | meshDir () const |
Return the local mesh directory (dbDir()/meshSubDir) More... | |
const fileName & | pointsInstance () const |
Return the current instance directory for points. More... | |
const fileName & | facesInstance () const |
Return the current instance directory for faces. More... | |
void | setInstance (const fileName &) |
Set the instance for mesh files. More... | |
void | setPointsInstance (const fileName &) |
Set the instance for the points files. More... | |
virtual const pointField & | points () const |
Return raw points. More... | |
virtual const faceList & | faces () const |
Return raw faces. More... | |
virtual const labelList & | faceOwner () const |
Return face owner. More... | |
virtual const labelList & | faceNeighbour () const |
Return face neighbour. More... | |
virtual const pointField & | oldPoints () const |
Return old points for mesh motion. More... | |
virtual const pointField & | oldCellCentres () const |
Return old cell centres for mesh motion. More... | |
bool | upToDatePoints (const regIOobject &io) const |
Return true if io is up-to-date with points. More... | |
void | setUpToDatePoints (regIOobject &io) const |
Set io to be up-to-date with points. More... | |
const polyBoundaryMesh & | boundaryMesh () const |
Return boundary mesh. More... | |
const boundBox & | bounds () 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 labelIOList & | tetBasePtIs () const |
Return the tetBasePtIs. More... | |
const indexedOctree< treeDataCell > & | cellTree () const |
Return the cell search tree. More... | |
const meshPointZones & | pointZones () const |
Return point zones. More... | |
const meshFaceZones & | faceZones () const |
Return face zones. More... | |
const meshCellZones & | cellZones () const |
Return cell zones. More... | |
const globalMeshData & | globalData () const |
Return parallel info. More... | |
label | comm () const |
Return communicator used for parallel communication. More... | |
label & | comm () |
Return communicator used for parallel communication. More... | |
const objectRegistry & | thisDb () const |
Return the object registry. More... | |
bool | moving () const |
Is mesh moving. More... | |
bool | topoChanged () const |
Is mesh topology changing. More... | |
bool | changing () const |
Is mesh changing (topology changing and/or moving) More... | |
virtual void | setPoints (const pointField &) |
Reset the points. More... | |
virtual tmp< scalarField > | movePoints (const pointField &) |
Move points, returns volumes swept by faces in motion. More... | |
void | resetMotion () const |
Reset motion. More... | |
meshPointZones & | pointZones () |
Return non-const access to the pointZones. More... | |
meshFaceZones & | faceZones () |
Return non-const access to the faceZones. More... | |
meshCellZones & | cellZones () |
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 void | addPatch (const label insertPatchi, const polyPatch &patch, const dictionary &patchFieldDict, const word &defaultPatchFieldType, const bool validBoundary) |
Add/insert single patch. If validBoundary the new situation. More... | |
virtual void | reorderPatches (const labelUList &newToOld, const bool validBoundary) |
Reorder and trim existing patches. If validBoundary the new. More... | |
readUpdateState | readUpdate () |
Update the mesh based on the mesh files saved in. More... | |
virtual void | topoChange (const polyTopoChangeMap &) |
Update topology using the given map. More... | |
virtual void | mapMesh (const polyMeshMap &) |
Update from another mesh using the given map. More... | |
virtual void | distribute (const polyDistributionMap &map) |
Redistribute or update using the given distribution map. More... | |
void | removeBoundary () |
Remove boundary patches. More... | |
void | resetPrimitives (pointField &&points, faceList &&faces, labelList &&owner, labelList &&neighbour, const labelList &patchSizes, const labelList &patchStarts, const bool validBoundary=true) |
Reset mesh primitive data. Assumes all patch info correct. More... | |
void | reset (const polyMesh &) |
Reset mesh. 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 | clearTetBasePtIs () |
Clear tet base points. 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=nullptr) const |
Check non-orthogonality. More... | |
virtual bool | checkFaceSkewness (const bool report=false, labelHashSet *setPtr=nullptr) 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=nullptr) const |
Check for face weights. More... | |
virtual bool | checkVolRatio (const bool report, const scalar minRatio=0.01, labelHashSet *setPtr=nullptr) 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... | |
virtual bool | writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const |
Write the underlying polyMesh. More... | |
void | operator= (const polyMesh &)=delete |
Disallow default bitwise assignment. 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... | |
objectRegistry (const objectRegistry &) | |
Disallow default bitwise copy construction. More... | |
virtual | ~objectRegistry () |
Destructor. More... | |
const Time & | time () const |
Return time. More... | |
const objectRegistry & | parent () const |
Return the parent objectRegistry. More... | |
fileName | path (const word &instance, const fileName &local="") const |
Return complete path with alternative instance and local. 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 objectRegistry & | subRegistry (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... | |
template<class Type > | |
Type & | lookupObjectRef (const word &name) const |
Lookup and return the object reference of the given Type. More... | |
label | getEvent () const |
Return new event number. More... | |
const objectRegistry & | thisDb () const |
Return the object registry. 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... | |
void | clear () |
Remove all regIOobject owned by the registry. More... | |
void | addTemporaryObject (const word &name) const |
Add the given name to the set of temporary objects to cache. More... | |
bool | cacheTemporaryObject (const word &name) const |
Return true if given name is in the cacheTemporaryObjects set. More... | |
template<class Object > | |
bool | cacheTemporaryObject (Object &ob) const |
Cache the given object. More... | |
void | resetCacheTemporaryObject (const regIOobject &ob) const |
Reset the cache state of the given object. More... | |
bool | checkCacheTemporaryObjects () const |
Check that all objects in the cacheTemporaryObjects set. 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... | |
void | operator= (const objectRegistry &)=delete |
Disallow default bitwise assignment. 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 &) | |
Copy constructor. More... | |
regIOobject (const regIOobject &&) | |
Move constructor. More... | |
regIOobject (const regIOobject &, bool registerCopy) | |
Copy constructor, transferring registry registration to copy. More... | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
Copy constructor with new name, transferring registry registration. More... | |
regIOobject (const IOobject &, const regIOobject &) | |
Copy constructor with new IO parameters. More... | |
virtual | ~regIOobject () |
Destructor. More... | |
virtual bool | global () const |
Return true if object is global, i.e. same for all processors. More... | |
virtual bool | globalFile () const |
Return true if object is global, i.e. same for all processors. More... | |
const fileName & | caseName () const |
fileName | path () const |
Return complete path. More... | |
fileName | objectPath () const |
Return complete path + object name. More... | |
fileName | filePath () const |
Return complete path + object name if the file exists. More... | |
bool | checkIn () |
Add object to registry. More... | |
bool | checkOut () |
Remove object from registry. More... | |
void | addWatch () |
Add file watch on object (if registered and READ_IF_MODIFIED) More... | |
bool | registered () const |
Is this object registered with the 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... | |
label & | eventNo () |
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... | |
bool | headerOk () |
Read and check header info. More... | |
Istream & | readStream (const word &, const bool read=true) |
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... | |
const labelList & | watchIndices () const |
Return file-monitoring handles. More... | |
labelList & | watchIndices () |
Return file-monitoring handles. More... | |
virtual bool | write (const bool write=true) 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 ®istry, 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 ®istry, 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 ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
Construct from path, registry, io options. More... | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
Construct from copy resetting registry. More... | |
IOobject (const IOobject &io, const word &name) | |
Construct from copy resetting name. More... | |
IOobject (const IOobject &io)=default | |
Copy constructor. More... | |
autoPtr< IOobject > | clone () const |
Clone. More... | |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
Clone resetting registry. More... | |
virtual | ~IOobject () |
Destructor. More... | |
const Time & | time () const |
Return time. More... | |
const objectRegistry & | db () const |
Return the local objectRegistry. More... | |
const word & | name () const |
Return name. More... | |
const word & | headerClassName () const |
Return name of the class name read from header. More... | |
word & | headerClassName () |
Return name of the class name read from header. More... | |
string & | note () |
Return non-constant access to the optional note. More... | |
const string & | note () 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 |
readOption & | readOpt () |
writeOption | writeOpt () const |
writeOption & | writeOpt () |
word | group () const |
Return group (extension part of name) More... | |
word | member () const |
Return member (name without the extension) More... | |
word | modelName (const char *name) const |
Return the name of the object within this model. More... | |
const fileName & | rootPath () const |
const fileName & | caseName (const bool global) const |
fileName & | instance () const |
Return the instance directory, constant, system, <time> etc. More... | |
void | updateInstance () const |
If the instance is a time directory update to the current time. More... | |
const fileName & | local () const |
fileName | path (const bool global) const |
Return complete path including the processor sub-directory. More... | |
fileName | objectPath (const bool global) const |
Return complete path + object name including the processor. More... | |
fileName | relativePath () const |
Return the path relative to the case directory. More... | |
fileName | relativeObjectPath () const |
Return complete relativePath + object name. More... | |
fileName | filePath (const word &typeName, const bool global) const |
Return complete path + object name if the file exists. More... | |
bool | readHeader (Istream &) |
Read header. More... | |
bool | headerOk () |
Read header of local object without type-checking. More... | |
template<class Type > | |
void | warnNoRereading () const |
Helper: warn that type does not support re-reading. 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< IOobject > | info () const |
Return info proxy. More... | |
void | operator= (const IOobject &) |
template<class Name > | |
Foam::word | groupName (Name name, const word &group) |
template<class Name > | |
Foam::word | modelName (Name name, const word &model) |
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 > &) | |
Copy constructor. More... | |
HashTable (HashTable< regIOobject *, word, string::hash > &&) | |
Move constructor. More... | |
HashTable (std::initializer_list< Tuple2< word, regIOobject * >>) | |
Construct from an initialiser list. 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< word > | toc () const |
Return the table of contents. More... | |
List< word > | sortedToc () const |
Return the table of contents as a sorted list. More... | |
Ostream & | printInfo (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... | |
Foam::label | erase (const HashTable< AnyType, word, AnyHash > &rhs) |
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... | |
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 operator. More... | |
void | operator= (HashTable< regIOobject *, word, string::hash > &&) |
Move assignment operator. More... | |
void | operator= (std::initializer_list< Tuple2< word, regIOobject * >>) |
Assignment to an initialiser list. 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... | |
primitiveMesh (const primitiveMesh &) | |
Disallow default bitwise copy construction. 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, 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 cellShapeList & | cellShapes () const |
Return cell shapes. More... | |
const edgeList & | edges () const |
Return mesh edges. Uses calcEdges. More... | |
const labelListList & | cellCells () const |
const labelListList & | edgeCells () const |
const labelListList & | pointCells () const |
const cellList & | cells () const |
const labelListList & | edgeFaces () const |
const labelListList & | pointFaces () const |
const labelListList & | cellEdges () const |
const labelListList & | faceEdges () const |
const labelListList & | pointEdges () const |
const labelListList & | pointPoints () const |
const labelListList & | cellPoints () const |
const vectorField & | cellCentres () const |
const vectorField & | faceCentres () const |
const scalarField & | cellVolumes () const |
const vectorField & | faceAreas () const |
const scalarField & | magFaceAreas () const |
tmp< scalarField > | movePoints (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=nullptr) const |
Check face ordering. More... | |
virtual bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check cell zip-up. More... | |
virtual bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check uniqueness of face vertices. More... | |
virtual bool | checkPoints (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for unused points. More... | |
virtual bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=nullptr) 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=nullptr, labelHashSet *highAspectSetPtr=nullptr, const Vector< label > &solutionD=Vector< label >::one) const |
Check cells for closedness. More... | |
virtual bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative face areas. More... | |
virtual bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative cell volumes. More... | |
virtual bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-small, labelHashSet *setPtr=nullptr) const |
Check face pyramid volume. More... | |
virtual bool | checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=nullptr) 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=nullptr) const |
Check for point-point-nearness,. More... | |
virtual bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr) const |
Check edge length. More... | |
virtual bool | checkConcaveCells (const bool report=false, labelHashSet *setPtr=nullptr) 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 labelList & | cellCells (const label celli, DynamicList< label > &) const |
cellCells using cells. More... | |
const labelList & | cellCells (const label celli) const |
const labelList & | cellPoints (const label celli, DynamicList< label > &) const |
cellPoints using cells More... | |
const labelList & | cellPoints (const label celli) const |
const labelList & | pointCells (const label pointi, DynamicList< label > &) const |
pointCells using pointFaces More... | |
const labelList & | pointCells (const label pointi) const |
const labelList & | pointPoints (const label pointi, DynamicList< label > &) const |
pointPoints using edges, pointEdges More... | |
const labelList & | pointPoints (const label pointi) const |
const labelList & | faceEdges (const label facei, DynamicList< label > &) const |
faceEdges using pointFaces, edges, pointEdges More... | |
const labelList & | faceEdges (const label facei) const |
const labelList & | edgeFaces (const label edgeI, DynamicList< label > &) const |
edgeFaces using pointFaces, edges, pointEdges More... | |
const labelList & | edgeFaces (const label edgeI) const |
const labelList & | edgeCells (const label edgeI, DynamicList< label > &) const |
edgeCells using pointFaces, edges, pointEdges More... | |
const labelList & | edgeCells (const label edgeI) const |
const labelList & | cellEdges (const label celli, DynamicList< label > &) const |
cellEdges using cells, pointFaces, edges, pointEdges More... | |
const labelList & | cellEdges (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... | |
void | operator= (const primitiveMesh &)=delete |
Disallow default bitwise assignment. 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 float | fileModificationSkew |
Static Public Attributes inherited from IOobject | |
static constexpr const char * | foamFile = "FoamFile" |
Keyword for the FoamFile header sub-dictionary. More... | |
static const NamedEnum< fileCheckTypes, 4 > | fileCheckTypesNames |
static fileCheckTypes | fileModificationChecking |
Type of file modification checking. More... | |
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... | |
Protected Attributes | |
bool | moving_ |
Member data pending transfer to fvMesh. More... | |
bool | topoChanged_ |
Is the mesh topology changing. 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) |
static word | group (const word &name) |
Return group (extension part of name) More... | |
static word | member (const word &name) |
Return member (name without the extension) More... | |
template<class Name > | |
static word | modelName (Name name, const word &model) |
Return the name of the object within the given model. More... | |
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 regIOobject | |
bool | readHeaderOk (const IOstream::streamFormat defaultFormat, const word &typeName) |
Read header, check readOpt flags and read data if necessary. More... | |
Protected Member Functions inherited from IOobject | |
void | setBad (const string &) |
Set the object state to bad. More... | |
template<class Type > | |
bool | typeHeaderOk (const bool checkType) |
Read header using typeGlobalFile to find file. 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, scalarField &magfAreas) 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 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... | |
Definition at line 317 of file polyMesh.H.
typedef polyBoundaryMesh BoundaryMesh |
Definition at line 318 of file polyMesh.H.
enum readUpdateState |
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 directories
Enumerator | |
---|---|
UNCHANGED | |
POINTS_MOVED | |
TOPO_CHANGE | |
TOPO_PATCH_CHANGE |
Definition at line 90 of file polyMesh.H.
enum cellDecomposition |
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 100 of file polyMesh.H.
Construct from IOobject.
Definition at line 163 of file polyMesh.C.
References Foam::endl(), IOobject::headerClassName(), polyMesh::meshDir(), polyMesh::meshSubDir, IOobject::MUST_READ, primitiveMesh::nCells(), IOobject::NO_WRITE, primitiveMesh::nPoints(), Foam::returnReduce(), objectRegistry::time(), polyBoundaryMesh::topoChange(), WarningInFunction, and regIOobject::write().
Referenced by polyMesh::addPatch(), polyMesh::clearAddressing(), polyMesh::polyMesh(), and polyMesh::reorderPatches().
polyMesh | ( | const IOobject & | io, |
pointField && | points, | ||
faceList && | faces, | ||
labelList && | owner, | ||
labelList && | neighbour, | ||
const bool | syncPar = true |
||
) |
Move construct from IOobject or from components.
Boundary is added using addPatches() member function
Definition at line 347 of file polyMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), Foam::min(), polyMesh::polyMesh(), and List< T >::size().
polyMesh | ( | const IOobject & | io, |
pointField && | points, | ||
faceList && | faces, | ||
cellList && | cells, | ||
const bool | syncPar = true |
||
) |
Move construct without boundary with cells rather than.
owner/neighbour. Boundary is added using addPatches() member function
Definition at line 502 of file polyMesh.C.
References Foam::abort(), primitiveMesh::cells(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), Foam::min(), polyMesh::resetPrimitives(), and List< T >::size().
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 |
||
) |
Move construct from cell shapes.
Definition at line 390 of file polyMeshFromShapeMesh.C.
References primitiveMesh::cells(), primitiveMesh::checkMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, Foam::Info, IOobject::instance(), IOobject::name(), polyPatch::New(), primitiveMesh::nFaces(), patchi, polyMesh::polyMesh(), Foam::reduce(), polyMesh::removeFiles(), PtrList< T >::set(), PtrList< T >::setSize(), UPtrList< T >::size(), List< T >::size(), polyBoundaryMesh::topoChange(), and WarningInFunction.
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 |
||
) |
Move construct from cell shapes with patch information in dictionary.
format.
Definition at line 680 of file polyMeshFromShapeMesh.C.
References primitiveMesh::cells(), primitiveMesh::checkMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, Foam::Info, IOobject::instance(), IOobject::name(), polyPatch::New(), primitiveMesh::nFaces(), patchi, Foam::reduce(), polyMesh::removeFiles(), PtrList< T >::set(), dictionary::set(), PtrList< T >::setSize(), UPtrList< T >::size(), List< T >::size(), polyBoundaryMesh::topoChange(), Foam::type(), and WarningInFunction.
|
virtual |
Destructor.
Definition at line 854 of file polyMesh.C.
References polyMesh::clearOut(), and polyMesh::resetMotion().
TypeName | ( | "polyMesh" | ) |
Runtime type information.
|
virtual |
Override the objectRegistry dbDir for a single-region case.
Reimplemented from objectRegistry.
Definition at line 863 of file polyMesh.C.
References objectRegistry::dbDir(), polyMesh::defaultRegion, and objectRegistry::parent().
Referenced by polyMesh::meshDir(), fvMeshMover::New(), fvMeshDistributor::New(), fvMeshTopoChanger::New(), and fvMeshStitcher::New().
Foam::fileName meshDir | ( | ) | const |
Return the local mesh directory (dbDir()/meshSubDir)
Definition at line 876 of file polyMesh.C.
References polyMesh::dbDir(), and polyMesh::meshSubDir.
Referenced by polyMesh::polyMesh(), polyMesh::readUpdate(), and polyMesh::removeFiles().
const Foam::fileName & pointsInstance | ( | ) | const |
Return the current instance directory for points.
Used in the construction of gemometric mesh data dependent on points
Definition at line 882 of file polyMesh.C.
References IOobject::instance().
Referenced by timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), surfaceInterpolation::movePoints(), and polyMesh::readUpdate().
const Foam::fileName & facesInstance | ( | ) | const |
Return the current instance directory for faces.
Definition at line 888 of file polyMesh.C.
References IOobject::instance().
Referenced by refinementHistoryConstraint::add(), refinementHistoryConstraint::apply(), attachPolyTopoChanger::attach(), timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), manualDecomp::decompose(), domainDecomposition::readAddressing(), polyMesh::readUpdate(), manualRenumber::renumber(), globalMeshData::sharedPointGlobalLabels(), hexRef8Data::topoChange(), and domainDecomposition::writeAddressing().
void setInstance | ( | const fileName & | inst | ) |
Set the instance for mesh files.
Definition at line 77 of file polyMeshIO.C.
References IOobject::AUTO_WRITE, Foam::endl(), InfoInFunction, IOobject::instance(), and polyMesh::setPointsInstance().
Referenced by snappyLayerDriver::addLayers(), attachPolyTopoChanger::attach(), meshRefinement::createBaffles(), fvMeshDistribute::distribute(), meshRefinement::dupNonManifoldPoints(), extrudePatchMesh::extrudePatchMesh(), meshRefinement::mergeBaffles(), Foam::polyMeshZipUpCells(), polyMesh::readUpdate(), polyMesh::reset(), polyMesh::resetPrimitives(), polyMesh::topoChange(), and meshRefinement::zonify().
void setPointsInstance | ( | const fileName & | inst | ) |
Set the instance for the points files.
Definition at line 57 of file polyMeshIO.C.
References IOobject::AUTO_WRITE, Foam::endl(), regIOobject::eventNo(), objectRegistry::getEvent(), InfoInFunction, and IOobject::instance().
Referenced by domainDecomposition::decompose(), polyMesh::movePoints(), polyMesh::setInstance(), and polyMesh::setPoints().
|
virtual |
Return raw points.
Implements primitiveMesh.
Definition at line 1211 of file polyMesh.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), waveAlphaFvPatchScalarField::alphan(), interpolationCellPointWallModified< Type >::calcPointField(), 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(), motionSolverList::curPoints(), geomCellLooper::cut(), domainDecomposition::decompose(), mappedPatchBase::facePoint(), tetIndices::faceTri(), cellClassification::fillRegionEdges(), cellClassification::fillRegionPoints(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), mappedPatchBase::findSamples(), faceCorrectedSnGrad< Type >::fullGradCorrection(), PatchTools::gatherAndMerge(), globalMeshData::geometricSharedPoints(), Foam::fvPatchDistWave::getInternalInfo(), globalIndexAndTransform::globalIndexAndTransform(), Foam::levelSetFraction(), meshRefinement::makePatch(), meshToMesh::mapAndOpTgtToSrc(), points0MotionSolver::mapMesh(), interpolator::mapMesh(), componentDisplacementMotionSolver::mapMesh(), edgeCollapser::markMergeEdges(), edgeCollapser::markSmallEdges(), MeshedSurface< Foam::face >::MeshedSurface(), momentOfInertia::meshInertia(), meshTriangulation::meshTriangulation(), polyMeshTetDecomposition::minQuality(), movingCone::movingCone(), listPlusEqOp< T >::operator()(), treeDataCell::findIntersectOp::operator()(), tetOverlapVolume::overlappingCells(), polyMesh::pointInCell(), pointMVCWeight::pointMVCWeight(), Foam::polyMeshZipUpCells(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), nonConformalCyclicPolyPatch::ray(), nonConformalCyclicPolyPatch::rays(), repatchMesh::read(), polyMesh::reset(), polyMesh::resetPrimitives(), fvMeshSubset::setCellSubset(), motionSmootherAlgo::setDisplacement(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), faceCollapser::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), globalMeshData::sharedPoints(), meshRefinement::testSyncPointList(), tetIndices::tet(), solidBodyMotionSolver::topoChange(), componentDisplacementMotionSolver::topoChange(), rigidBodyMeshMotion::topoChange(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), waveVelocityFvPatchVectorField::Un(), cellMotionFvPatchField< Type >::updateCoeffs(), pointEdgePoint::updateEdge(), pointEdgePoint::updatePoint(), Implicit< CloudType >::velocityCorrection(), wallLayerCells::wallLayerCells(), FacePostProcessing< CloudType >::write(), meshToMeshMethod::writeConnectivity(), meshRefinement::zonify(), and medialAxisMeshMover::~medialAxisMeshMover().
|
virtual |
Return raw faces.
Implements primitiveMesh.
Definition at line 1224 of file polyMesh.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by singleProcessorFaceSetsConstraint::add(), polyTopoChange::addMesh(), singleProcessorFaceSetsConstraint::apply(), pointMVCWeight::calcWeights(), polyMeshTetDecomposition::cellTetIndices(), polyMesh::cellZones(), repatchPolyTopoChanger::changeAnchorPoint(), repatchPolyTopoChanger::changePatchID(), layerAdditionRemoval::changeTopology(), Foam::polyMeshCheck::checkFaceAngles(), Foam::polyMeshCheck::checkFaceFlatness(), Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceTet(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), edgeCollapser::checkMeshQuality(), Foam::polyMeshCheck::checkTriangleTwist(), edgeCollapser::consistentCollapse(), particle::correctAfterProcessorTransfer(), pointLinear< Type >::correction(), globalMeshData::coupledPatch(), domainDecomposition::decompose(), decompositionMethod::decompose(), snappySnapDriver::doSnap(), mappedPatchBase::facePoint(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTriIs(), polyMeshTetDecomposition::findBasePoint(), polyMeshTetDecomposition::findFaceBasePts(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshTetDecomposition::findTet(), faceCorrectedSnGrad< Type >::fullGradCorrection(), snappySnapDriver::getZoneSurfacePoints(), particle::hitCyclicPatch(), isoSurface::isoSurface(), meshRefinement::makePatch(), meshToMesh::mapAndOpTgtToSrc(), edgeCollapser::markFaceZoneEdges(), edgeCollapser::markSmallSliverFaces(), meshRefinement::mergeBaffles(), MeshedSurface< Foam::face >::MeshedSurface(), meshTriangulation::meshTriangulation(), polyMeshTetDecomposition::minQuality(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), inversePointDistanceDiffusivity::operator()(), treeDataCell::findIntersectOp::operator()(), pointMVCWeight::pointMVCWeight(), Foam::polyMeshUnMergeCyclics(), Foam::polyMeshZipUpCells(), fvMeshDistribute::printCoupleInfo(), particle::procTetPt(), refiner::refiner(), polyMesh::reset(), polyMesh::resetPrimitives(), fvMeshSubset::setCellSubset(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), faceCollapser::setRefinement(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), solidBodyMotionSolver::solidBodyMotionSolver(), meshRefinement::splitMesh(), syncTools::syncEdgeMap(), directionInfo::updateCell(), layerInfo::updateFace(), Implicit< CloudType >::velocityCorrection(), wallLayerCells::wallLayerCells(), meshToMeshMethod::writeConnectivity(), meshRefinement::zonify(), and ensightPartCells::~ensightPartCells().
|
virtual |
Return face owner.
Implements primitiveMesh.
Definition at line 1237 of file polyMesh.C.
Referenced by refinementHistory::add(), polyTopoChange::addMesh(), preserveBafflesConstraint::apply(), preserveFaceZonesConstraint::apply(), singleProcessorFaceSetsConstraint::apply(), refinementHistory::apply(), snappySnapDriver::avgCellCentres(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), interpolationCellPointWallModified< Type >::calcPointField(), repatchPolyTopoChanger::changeAnchorPoint(), repatchPolyTopoChanger::changePatchID(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), Foam::polyMeshCheck::checkNonOrtho(), Foam::polyMeshCheck::checkVolRatio(), particle::correctAfterNonConformalCyclicTransfer(), meshRefinement::createBaffles(), meshRefinement::createZoneBaffles(), domainDecomposition::decompose(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), nonConformalFvPatch::faceCells(), fvMeshSubset::faceFlipMap(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), mappedPatchBase::facePoint(), polyMeshTools::faceSkewness(), cellQuality::faceSkewness(), tetIndices::faceTriIs(), polyMeshTools::faceWeights(), polyMeshTetDecomposition::findBasePoint(), polyMeshTetDecomposition::findFaceBasePts(), polyMeshTetDecomposition::findSharedBasePoint(), cellPointWeight::findTriangle(), Foam::polyMeshCheck::getAffectedCells(), particle::hitCyclicAMIPatch(), particle::hitCyclicPatch(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), meshRefinement::mergeBaffles(), meshTriangulation::meshTriangulation(), Foam::min(), NamedEnum< compressibleField, 8 >::names(), cellQuality::nonOrthogonality(), minEqOpFace::operator()(), Foam::polyMeshUnMergeCyclics(), fvMeshDistribute::printCoupleInfo(), particle::procTetPt(), refiner::refiner(), undoableMeshCutter::removeSplitFaces(), SloanRenumber::renumber(), polyMesh::reset(), MPLIC::setCellAlphaf(), fvMeshSubset::setCellSubset(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), cellQuality::skewness(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), layerInfo::updateCell(), layerInfo::updateFace(), polyMeshTools::volRatio(), meshRefinement::zonify(), and ensightPartCells::~ensightPartCells().
|
virtual |
Return face neighbour.
Implements primitiveMesh.
Definition at line 1243 of file polyMesh.C.
Referenced by refinementHistory::add(), addPatchCellLayer::addedCells(), polyTopoChange::addMesh(), preserveBafflesConstraint::apply(), preserveFaceZonesConstraint::apply(), singleProcessorFaceSetsConstraint::apply(), refinementHistory::apply(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), Foam::polyMeshCheck::checkNonOrtho(), Foam::polyMeshCheck::checkVolRatio(), domainDecomposition::decompose(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), polyMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), polyMeshTetDecomposition::findSharedBasePoint(), Foam::polyMeshCheck::getAffectedCells(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), meshRefinement::mergeBaffles(), cellQuality::nonOrthogonality(), minEqOpFace::operator()(), fvMeshDistribute::printCoupleInfo(), refiner::refiner(), undoableMeshCutter::removeSplitFaces(), SloanRenumber::renumber(), polyMesh::reset(), fvMeshSubset::setCellSubset(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), cellQuality::skewness(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), polyMeshTools::volRatio(), and meshRefinement::zonify().
|
virtual |
Return old points for mesh motion.
Implements primitiveMesh.
Definition at line 1249 of file polyMesh.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and polyMesh::moving_.
Referenced by attachPolyTopoChanger::attach(), polyMesh::movePoints(), tetIndices::oldFaceTri(), nonConformalCyclicPolyPatch::ray(), nonConformalCyclicPolyPatch::rays(), and movingWallVelocityFvPatchVectorField::updateCoeffs().
|
virtual |
Return old cell centres for mesh motion.
Implements primitiveMesh.
Definition at line 1267 of file polyMesh.C.
References primitiveMesh::cellCentres(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and polyMesh::moving_.
bool upToDatePoints | ( | const regIOobject & | io | ) | const |
Return true if io is up-to-date with points.
Definition at line 1287 of file polyMesh.C.
References regIOobject::upToDate().
void setUpToDatePoints | ( | regIOobject & | io | ) | const |
Set io to be up-to-date with points.
Definition at line 1293 of file polyMesh.C.
References regIOobject::eventNo().
|
inline |
Return boundary mesh.
Definition at line 453 of file polyMesh.H.
Referenced by preservePatchesConstraint::add(), fvMeshAdder::add(), polyMeshAdder::add(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), fvMeshTools::addPatch(), pointMesh::addPatch(), polyMesh::addPatches(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), patchFluxToFace::applyToSet(), attachPolyTopoChanger::attach(), extrudePatchMesh::bottomPatch(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), curvatureSeparation::calcInvR1(), interpolationCellPointWallModified< Type >::calcPointField(), addPatchCellLayer::calcSidePatch(), P1::calculate(), viewFactor::calculate(), repatchPolyTopoChanger::changeAnchorPoint(), polyTopoChange::changeMesh(), repatchPolyTopoChanger::changePatchID(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), faceZone::checkParallelSync(), timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), Foam::polyMeshCheck::checkVolRatio(), meshRefinement::checkZoneFaces(), patchEjection::correct(), particle::correctAfterNonConformalCyclicTransfer(), particle::correctAfterParallelTransfer(), particle::correctAfterProcessorTransfer(), globalMeshData::coupledPatch(), meshRefinement::createBaffles(), meshRefinement::createZoneBaffles(), curvatureSeparation::curvatureSeparation(), cuttingPlane::cuttingPlane(), structuredDecomp::decompose(), domainDecomposition::decompose(), decompositionMethod::decompose(), directions::directions(), distanceSurface::distanceSurface(), fvMeshDistribute::distribute(), snappyLayerDriver::doLayers(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), extrudePatchMesh::extrudePatchMesh(), nonConformalFvPatch::faceCells(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), polyMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), localPointRegion::findDuplicateFacePairs(), patchProbes::findElements(), polyMeshTetDecomposition::findFaceBasePts(), fvBoundaryMesh::findIndices(), Foam::fvPatchDistWave::getInternalInfo(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), globalIndexAndTransform::globalIndexAndTransform(), particle::hitCyclicAMIPatch(), streamlinesParticle::hitCyclicPatch(), particle::hitCyclicPatch(), particle::hitFace(), particle::hitNonConformalCyclicPatch(), streamlinesParticle::hitProcessorPatch(), particle::hitProcessorPatch(), ejectionModelList::info(), transferModelList::info(), SurfaceFilmModel< Foam::MomentumCloud< CloudType > >::inject(), interpolationCellPatchConstrained< Type >::interpolate(), localPointRegion::localPointRegion(), polyTopoChange::makeMesh(), meshRefinement::makePatch(), mappedPatchFieldBase< Type >::mappedField(), fvMeshAdder::MapVolFields(), meshRefinement::mergeBaffles(), snappyLayerDriver::mergePatchFacesUndo(), meshTriangulation::meshTriangulation(), Foam::min(), regionModel::nbrCoupledPatchID(), nonConformalBoundary::nonConformalNonCoupledPatchIDs(), cellQuality::nonOrthogonality(), listPlusEqOp< T >::operator()(), inversePointDistanceDiffusivity::operator()(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), particle::patch(), patchEjection::patchEjection(), patchInjectionBase::patchInjectionBase(), patchInteractionDataList::patchInteractionDataList(), patchInternalField::patchInternalField(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), nonConformalFvPatch::polyFaces(), Foam::polyMeshUnMergeCyclics(), Foam::polyMeshZipUpCells(), polyTopoChange::polyTopoChange(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), particle::prepareForNonConformalCyclicTransfer(), fvMeshDistribute::printCoupleInfo(), thermalBaffleModel::read(), repatchMesh::read(), ensightParts::recalculate(), SloanRenumber::renumber(), structuredRenumber::renumber(), snappySnapDriver::repatchToSurface(), polyMesh::reset(), patchProbes::sample(), mappedPatchFieldBase< Type >::sampleField(), mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch(), mappedPatchBase::samplePolyPatch(), mappedPatchBase::sampleRegion(), fvMeshSubset::setCellSubset(), repatchPolyTopoChanger::setFaceZone(), fvMeshSubset::setLargeCellSubset(), patchInjectionBase::setPositionAndCell(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), tetDecomposer::setRefinement(), meshCutAndRemove::setRefinement(), edgeCollapser::setRefinement(), thermoSingleLayer::Sh(), extrudePatchMesh::sidesPatch(), singleCellFvMesh::singleCellFvMesh(), cellQuality::skewness(), snappyRefineDriver::snappyRefineDriver(), thermalBaffle::solveEnergy(), kinematicSingleLayer::Srho(), kinematicSingleLayer::SU(), mappedPatchBase::surfPtr(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), thermoSingleLayer::SYi(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), patchInjectionBase::topoChange(), perfectInterface::topoChange(), attachDetach::topoChange(), slidingInterface::topoChange(), extrudePatchMesh::topPatch(), thermoSingleLayer::Tw(), kinematicSingleLayer::Uw(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), Implicit< CloudType >::velocityCorrection(), polyMeshTools::volRatio(), wallLayerCells::wallLayerCells(), WallLocalSpringSliderDashpot< CloudType >::WallLocalSpringSliderDashpot(), PatchPostProcessing< CloudType >::write(), and meshRefinement::zonify().
|
inline |
Return mesh bounding box.
Definition at line 459 of file polyMesh.H.
References polyMesh::cellTree(), polyMesh::geometricD(), polyMesh::nGeometricD(), polyMesh::nSolutionD(), polyMesh::solutionD(), and polyMesh::tetBasePtIs().
Referenced by motionSmootherAlgo::checkMesh(), Foam::meshTools::constrainToMeshCentre(), refinementParameters::findCells(), globalMeshData::geometricSharedPoints(), Kmesh::Kmesh(), meshToMesh::mapAndOpTgtToSrc(), meshRefinement::mergeBaffles(), streamlinesParticle::move(), NamedEnum< compressibleField, 8 >::names(), and globalMeshData::topoChange().
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 894 of file polyMesh.C.
Referenced by polyMesh::bounds(), polyMesh::checkCellDeterminant(), Foam::meshTools::constrainToMeshCentre(), particle::deviationFromMeshCentre(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), polyMesh::nGeometricD(), and LeastSquaresVectors< Stencil >::~LeastSquaresVectors().
Foam::label nGeometricD | ( | ) | const |
Return the number of valid geometric dimensions in the mesh.
Definition at line 905 of file polyMesh.C.
References Foam::cmptSum(), and polyMesh::geometricD().
Referenced by Foam::fvc::average(), polyMesh::bounds(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), and Foam::fvc::reconstruct().
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 911 of file polyMesh.C.
Referenced by polyMesh::bounds(), MomentumParcel< ParcelType >::calcVelocity(), get_geom_list(), InjectionModel< CloudType >::inject(), InjectionModel< CloudType >::injectSteadyState(), DSMCParcel< ParcelType >::move(), polyMesh::nSolutionD(), ThermoSurfaceFilm< CloudType >::splashInteraction(), and fvMesh::validComponents().
Foam::label nSolutionD | ( | ) | const |
Return the number of valid solved-for dimensions in the mesh.
Definition at line 922 of file polyMesh.C.
References Foam::cmptSum(), and polyMesh::solutionD().
Referenced by polyMesh::bounds(), get_geom_list(), get_mesh_dim(), and GradientDispersionRAS< CloudType >::update().
const Foam::labelIOList & tetBasePtIs | ( | ) | const |
Return the tetBasePtIs.
Definition at line 928 of file polyMesh.C.
References Foam::endl(), polyMeshTetDecomposition::findFaceBasePts(), IOobject::instance(), polyMesh::meshSubDir, IOobject::NO_READ, IOobject::NO_WRITE, and WarningInFunction.
Referenced by polyMesh::bounds(), mappedPatchBase::facePoint(), mappedPatchBase::facePoints(), tetIndices::faceTriIs(), polyMesh::findCell(), refinementParameters::findCells(), patchProbes::findElements(), meshRefinement::mergeBaffles(), meshSearch::meshSearch(), and tetDecomposer::setRefinement().
const Foam::indexedOctree< Foam::treeDataCell > & cellTree | ( | ) | const |
Return the cell search tree.
Definition at line 962 of file polyMesh.C.
References polyMesh::addPatches(), polyMesh::CELL_TETS, Foam::e, and polyMesh::points().
Referenced by polyMesh::bounds(), polyMesh::findCellFacePt(), mappedPatchBase::findSamples(), and tetOverlapVolume::overlappingCells().
|
inline |
Return point zones.
Definition at line 489 of file polyMesh.H.
Referenced by polyTopoChange::addMesh(), polyMesh::addZones(), polyTopoChange::changeMesh(), domainDecomposition::decompose(), fvMeshDistribute::distribute(), polyTopoChange::makeMesh(), slidingInterface::modifyMotionPoints(), NamedEnum< compressibleField, 8 >::names(), pointZoneSet::pointZoneSet(), polyTopoChange::polyTopoChange(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), edgeCollapser::setRefinement(), and slidingInterface::topoChange().
|
inline |
Return face zones.
Definition at line 495 of file polyMesh.H.
Referenced by preserveFaceZonesConstraint::add(), surfaceZonesInfo::addFaceZonesToMesh(), polyTopoChange::addMesh(), polyMesh::addZones(), preserveFaceZonesConstraint::apply(), repatchPolyTopoChanger::changeAnchorPoint(), polyTopoChange::changeMesh(), repatchPolyTopoChanger::changePatchID(), layerAdditionRemoval::changeTopology(), meshRefinement::checkCoupledFaceZones(), meshRefinement::checkZoneFaces(), domainDecomposition::decompose(), fvMeshDistribute::distribute(), snappySnapDriver::doSnap(), faceZoneSet::faceZoneSet(), snappySnapDriver::getZoneSurfacePoints(), polyTopoChange::makeMesh(), meshRefinement::mergeBaffles(), slidingInterface::modifyMotionPoints(), movingCone::movingCone(), NamedEnum< compressibleField, 8 >::names(), listPlusEqOp< T >::operator()(), Foam::polyMeshZipUpCells(), polyTopoChange::polyTopoChange(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), snappySnapDriver::repatchToSurface(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), perfectInterface::topoChange(), attachDetach::topoChange(), slidingInterface::topoChange(), FacePostProcessing< CloudType >::write(), and meshRefinement::zonify().
|
inline |
Return cell zones.
Definition at line 501 of file polyMesh.H.
References polyMesh::comm(), and polyMesh::globalData().
Referenced by cellTable::addCellZones(), surfaceZonesInfo::addCellZonesToMesh(), polyTopoChange::addMesh(), polyMesh::addZones(), cellZoneSet::cellZoneSet(), polyTopoChange::changeMesh(), cuttingPlane::cuttingPlane(), domainDecomposition::decompose(), distanceSurface::distanceSurface(), fvMeshDistribute::distribute(), interRegionExplicitPorositySource::interRegionExplicitPorositySource(), polyTopoChange::makeMesh(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), cellTable::operator=(), plane::plane(), polyTopoChange::polyTopoChange(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), ensightParts::recalculate(), tetDecomposer::setRefinement(), solidBodyMotionSolver::solidBodyMotionSolver(), displacementLayeredMotionMotionSolver::solve(), CellZoneInjection< CloudType >::topoChange(), and meshRefinement::zonify().
const Foam::globalMeshData & globalData | ( | ) | const |
Return parallel info.
Definition at line 1435 of file polyMesh.C.
References Foam::endl(), and Foam::Pout.
Referenced by polyMesh::cellZones(), polyBoundaryMesh::clearAddressing(), structuredDecomp::decompose(), decompositionMethod::decompose(), meshRefinement::dupNonManifoldPoints(), PatchTools::edgeNormals(), extrudePatchMesh::extrudePatchMesh(), PatchTools::gatherAndMerge(), Foam::fvPatchDistWave::getInternalInfo(), syncTools::getMasterEdges(), syncTools::getMasterPoints(), globalIndexAndTransform::globalIndexAndTransform(), ejectionModelList::info(), transferModelList::info(), Foam::min(), polyBoundaryMesh::movePoints(), NamedEnum< compressibleField, 8 >::names(), patchEjection::patchEjection(), PatchTools::pointNormals(), fvMeshDistribute::printFieldInfo(), structuredRenumber::renumber(), motionSmootherAlgo::setDisplacement(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), syncTools::syncEdgeList(), syncTools::syncEdgeMap(), syncTools::syncPointList(), syncTools::syncPointMap(), pointConstraints::syncUntransformedData(), polyBoundaryMesh::topoChange(), distributor::update(), FacePostProcessing< CloudType >::write(), and medialAxisMeshMover::~medialAxisMeshMover().
Foam::label comm | ( | ) | const |
Return communicator used for parallel communication.
Definition at line 1453 of file polyMesh.C.
Referenced by polyMesh::cellZones(), processorPolyPatch::comm(), and fvMesh::comm().
Foam::label & comm | ( | ) |
Return communicator used for parallel communication.
Definition at line 1459 of file polyMesh.C.
|
inline |
Return the object registry.
Definition at line 516 of file polyMesh.H.
Referenced by polyMesh::removeFiles(), and fvMesh::thisDb().
|
inline |
Is mesh moving.
Definition at line 525 of file polyMesh.H.
References polyMesh::moving_.
Referenced by backwardDdtScheme< Type >::backwardDdtScheme(), polyMesh::changing(), fvMeshStitcher::connect(), Foam::MULES::correct(), particle::correctAfterInteractionListReferral(), CrankNicolsonDdtScheme< Type >::CrankNicolsonDdtScheme(), particle::currentTetTransform(), fvMeshStitcher::disconnect(), Foam::MULES::explicitSolve(), Foam::MULES::limiter(), particle::patchData(), particle::trackToTri(), movingWallSlipVelocityFvPatchVectorField::updateCoeffs(), movingWallVelocityFvPatchVectorField::updateCoeffs(), fvMesh::Vsc(), and fvMesh::Vsc0().
|
inline |
Is mesh topology changing.
Definition at line 531 of file polyMesh.H.
References polyMesh::topoChanged_.
Referenced by polyMesh::changing(), and MRFZoneList::update().
|
inline |
Is mesh changing (topology changing and/or moving)
Definition at line 537 of file polyMesh.H.
References polyMesh::movePoints(), polyMesh::moving(), polyMesh::resetMotion(), polyMesh::setPoints(), and polyMesh::topoChanged().
Referenced by Foam::correctUphiBCs(), epsilonWallFunctionFvPatchScalarField::createAveragingWeights(), omegaWallFunctionFvPatchScalarField::createAveragingWeights(), waveVelocityFvPatchVectorField::faceCellSubset(), and waveAlphaFvPatchScalarField::faceCellSubset().
|
virtual |
Reset the points.
without storing old points or returning swept volumes
Reimplemented in fvMesh.
Definition at line 1299 of file polyMesh.C.
References primitiveMesh::clearGeom(), Foam::endl(), InfoInFunction, MeshZones< ZoneType, MeshType >::movePoints(), polyBoundaryMesh::movePoints(), polyMesh::movePoints(), polyMesh::setPointsInstance(), objectRegistry::time(), TimeState::timeIndex(), timeName, dimensioned< Type >::value(), and Foam::Zero.
Referenced by polyMesh::changing(), and fvMesh::setPoints().
|
virtual |
Move points, returns volumes swept by faces in motion.
Reimplemented in fvMesh.
Definition at line 1342 of file polyMesh.C.
References primitiveMesh::cellCentres(), polyMesh::checkMeshMotion(), Foam::endl(), InfoInFunction, MeshZones< ZoneType, MeshType >::movePoints(), polyBoundaryMesh::movePoints(), primitiveMesh::movePoints(), Foam::nl, polyMesh::oldPoints(), polyMesh::setPointsInstance(), objectRegistry::time(), timeIndex, TimeState::timeIndex(), timeName, dimensioned< Type >::value(), regIOobject::write(), and Foam::Zero.
Referenced by attachPolyTopoChanger::attach(), polyMesh::changing(), polyMeshFilter::copyMesh(), fvMesh::movePoints(), and polyMesh::setPoints().
void resetMotion | ( | ) | const |
Reset motion.
Definition at line 1427 of file polyMesh.C.
Referenced by polyMesh::changing(), polyMesh::clearPrimitives(), fvMeshDistribute::distribute(), and polyMesh::~polyMesh().
|
inline |
Return non-const access to the pointZones.
Definition at line 556 of file polyMesh.H.
|
inline |
Return non-const access to the faceZones.
Definition at line 562 of file polyMesh.H.
|
inline |
Return non-const access to the cellZones.
Definition at line 568 of file polyMesh.H.
References polyMesh::addPatch(), polyMesh::addPatches(), polyMesh::addZones(), polyMesh::CELL_TETS, polyMesh::checkMeshMotion(), primitiveMesh::clearAddressing(), polyMesh::clearCellTree(), polyMesh::clearGeom(), polyMesh::clearOut(), polyMesh::clearPrimitives(), polyMesh::clearTetBasePtIs(), polyMesh::distribute(), polyMesh::faces(), polyMesh::findCell(), polyMesh::findCellFacePt(), polyMesh::findTetFacePt(), polyMesh::mapMesh(), polyMesh::operator=(), p, polyMesh::pointInCell(), polyMesh::points(), polyMesh::readUpdate(), polyMesh::removeBoundary(), polyMesh::removeFiles(), polyMesh::reorderPatches(), polyMesh::reset(), polyMesh::resetPrimitives(), polyMesh::topoChange(), regIOobject::write(), and polyMesh::writeObject().
Add boundary patches.
Definition at line 989 of file polyMesh.C.
References Foam::abort(), polyMesh::addZones(), polyMesh::boundaryMesh(), polyBoundaryMesh::checkDefinition(), Foam::FatalError, FatalErrorInFunction, forAll, PtrList< T >::set(), PtrList< T >::setSize(), List< T >::size(), HashTable< regIOobject *>::size(), polyBoundaryMesh::topoChange(), and Foam::Zero.
Referenced by polyMeshAdder::add(), attachPolyTopoChanger::attach(), polyMesh::cellTree(), polyMesh::cellZones(), repatchPolyTopoChanger::changePatches(), and Foam::polyMeshUnMergeCyclics().
void addZones | ( | const List< pointZone *> & | pz, |
const List< faceZone *> & | fz, | ||
const List< cellZone *> & | cz | ||
) |
Add mesh zones.
Definition at line 1033 of file polyMesh.C.
References Foam::abort(), IOobject::AUTO_WRITE, polyMesh::cellZones(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, polyMesh::pointZones(), polyMesh::reorderPatches(), PtrList< T >::set(), PtrList< T >::setSize(), List< T >::size(), HashTable< regIOobject *>::size(), and IOobject::writeOpt().
Referenced by polyMesh::addPatches(), polyMesh::cellZones(), polyTopoChange::makeMesh(), and fvMeshDistribute::printCoupleInfo().
|
virtual |
Add/insert single patch. If validBoundary the new situation.
is consistent across processors.
Reimplemented in fvMesh.
Definition at line 1129 of file polyMesh.C.
References primitiveMesh::clearAddressing(), polyBoundaryMesh::clearGeom(), meshObject::clearUpto(), polyPatch::clone(), primitiveMesh::nFaces(), polyMesh::polyMesh(), polyMesh::reorderPatches(), PtrList< T >::set(), UPtrList< T >::size(), and polyBoundaryMesh::topoChange().
Referenced by fvMesh::addPatch(), polyMesh::cellZones(), and polyMesh::reorderPatches().
|
virtual |
Reorder and trim existing patches. If validBoundary the new.
situation is consistent across processors
Reimplemented in fvMesh.
Definition at line 1091 of file polyMesh.C.
References polyMesh::addPatch(), primitiveMesh::clearAddressing(), polyBoundaryMesh::clearGeom(), meshObject::clearUpto(), polyMesh::polyMesh(), and polyBoundaryMesh::reorderPatches().
Referenced by polyMesh::addPatch(), polyMesh::addZones(), polyMesh::cellZones(), and fvMesh::reorderPatches().
Foam::polyMesh::readUpdateState readUpdate | ( | ) |
Update the mesh based on the mesh files saved in.
time directories
Definition at line 98 of file polyMeshIO.C.
References primitiveMesh::cells(), PtrList< T >::clear(), List< T >::clear(), polyMesh::clearGeom(), polyMesh::clearOut(), IOobject::clone(), Foam::endl(), Foam::exit(), polyMesh::facesInstance(), Foam::FatalError, FatalErrorInFunction, forAll, IOobject::headerClassName(), Foam::Info, InfoInFunction, IOobject::instance(), polyMesh::meshDir(), polyMesh::meshSubDir, IOobject::MUST_READ, IOobject::name(), polyBoundaryMesh::names(), Foam::nl, IOobject::NO_WRITE, regIOobject::objectPath(), patchi, polyMesh::POINTS_MOVED, polyMesh::pointsInstance(), IOobject::READ_IF_PRESENT, PtrList< T >::set(), polyMesh::setInstance(), PtrList< T >::setSize(), UPtrList< T >::size(), List< T >::size(), HashTable< regIOobject *>::size(), objectRegistry::time(), polyMesh::TOPO_CHANGE, polyMesh::TOPO_PATCH_CHANGE, polyBoundaryMesh::topoChange(), List< T >::transfer(), Foam::type(), polyBoundaryMesh::types(), polyMesh::UNCHANGED, autoPtr< T >::valid(), polyMesh::writeObject(), and Foam::Zero.
Referenced by polyMesh::cellZones(), fvMesh::readUpdate(), and fvMesh::reset().
|
virtual |
Update topology using the given map.
Reimplemented in fvMesh.
Definition at line 39 of file polyMeshUpdate.C.
References primitiveMesh::cellCentres(), polyTopoChangeMap::cellMap(), MeshZones< ZoneType, MeshType >::clearAddressing(), Foam::endl(), forAll, InfoInFunction, Field< Type >::map(), newPointi, polyTopoChangeMap::pointMap(), polyMesh::setInstance(), List< T >::setSize(), List< T >::size(), HashTable< regIOobject *>::size(), objectRegistry::time(), timeName, polyBoundaryMesh::topoChange(), and Foam::Zero.
Referenced by polyMesh::cellZones(), polyTopoChanger::changeMesh(), polyMeshFilter::copyMesh(), and fvMesh::topoChange().
|
virtual |
Update from another mesh using the given map.
Reimplemented in fvMesh.
Definition at line 128 of file polyMeshUpdate.C.
Referenced by polyMesh::cellZones(), and fvMesh::mapMesh().
|
virtual |
Redistribute or update using the given distribution map.
Reimplemented in fvMesh.
Definition at line 135 of file polyMeshUpdate.C.
Referenced by polyMesh::cellZones(), and fvMesh::distribute().
void removeBoundary | ( | ) |
Remove boundary patches.
Definition at line 36 of file polyMeshClear.C.
References PtrList< T >::clear(), polyMesh::clearOut(), Foam::endl(), InfoInFunction, and PtrList< T >::setSize().
Referenced by attachPolyTopoChanger::attach(), polyMesh::cellZones(), repatchPolyTopoChanger::changePatches(), Foam::polyMeshUnMergeCyclics(), and fvMesh::removeFvBoundary().
void resetPrimitives | ( | pointField && | points, |
faceList && | faces, | ||
labelList && | owner, | ||
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 672 of file polyMesh.C.
References Foam::abort(), primitiveMesh::clearAddressing(), Foam::endl(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), Foam::min(), primitiveMesh::nCells(), Foam::notNull(), primitiveMesh::nPoints(), patchi, polyMesh::points(), Foam::returnReduce(), polyMesh::setInstance(), List< T >::size(), objectRegistry::time(), timeName, and polyBoundaryMesh::topoChange().
Referenced by polyMesh::cellZones(), polyTopoChange::changeMesh(), polyMesh::polyMesh(), and Foam::polyMeshZipUpCells().
void reset | ( | const polyMesh & | newMesh | ) |
Reset mesh.
For run-time mesh replacement and mesh to mesh mapping
Definition at line 772 of file polyMesh.C.
References Foam::abort(), polyMesh::boundaryMesh(), polyBoundaryMesh::clearAddressing(), primitiveMesh::clearAddressing(), polyBoundaryMesh::clearGeom(), IOobject::clone(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), Foam::min(), MeshObject< polyMesh, PatchMeshObject, pointMesh >::New(), patches, patchi, polyMesh::points(), pointMesh::reset(), PtrList< T >::set(), polyMesh::setInstance(), PtrList< T >::setSize(), List< T >::size(), HashTable< regIOobject *>::size(), objectRegistry::time(), timeName, and polyBoundaryMesh::topoChange().
Referenced by polyMesh::cellZones(), and fvMesh::reset().
void clearGeom | ( | ) |
Clear geometry.
Definition at line 53 of file polyMeshClear.C.
References polyBoundaryMesh::clearGeom(), primitiveMesh::clearGeom(), Foam::endl(), InfoInFunction, and Foam::Zero.
Referenced by polyMesh::cellZones(), polyMesh::clearOut(), and polyMesh::readUpdate().
void clearAddressing | ( | const bool | isMeshUpdate = false | ) |
Clear addressing.
Definition at line 77 of file polyMeshClear.C.
References MeshZones< ZoneType, MeshType >::clearAddressing(), primitiveMesh::clearAddressing(), meshObject::clearUpto(), Foam::endl(), InfoInFunction, polyMesh::polyMesh(), and Foam::Zero.
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
Definition at line 150 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().
void clearPrimitives | ( | ) |
Clear primitive data (points, faces and cells)
Definition at line 137 of file polyMeshClear.C.
References polyMesh::resetMotion(), and List< T >::setSize().
Referenced by polyMesh::cellZones().
void clearTetBasePtIs | ( | ) |
Clear tet base points.
Definition at line 157 of file polyMeshClear.C.
References Foam::endl(), and InfoInFunction.
Referenced by polyMesh::cellZones().
void clearCellTree | ( | ) |
Clear cell tree data.
Definition at line 168 of file polyMeshClear.C.
References Foam::endl(), and InfoInFunction.
Referenced by polyMesh::cellZones().
void removeFiles | ( | const fileName & | instanceDir | ) | const |
Remove all files from mesh instance.
Definition at line 1465 of file polyMesh.C.
References Foam::isDir(), polyMesh::meshDir(), TimePaths::path(), Foam::rm(), Foam::rmDir(), polyMesh::thisDb(), and objectRegistry::time().
Referenced by meshReader::writeMesh().
void removeFiles | ( | ) | const |
Remove all files from mesh instance()
Definition at line 1489 of file polyMesh.C.
References polyMesh::findCellFacePt(), and IOobject::instance().
Referenced by polyMesh::cellZones(), and polyMesh::polyMesh().
|
virtual |
Check non-orthogonality.
Reimplemented from primitiveMesh.
Definition at line 673 of file polyMeshCheck.C.
References primitiveMesh::cellCentres(), and primitiveMesh::faceAreas().
|
virtual |
Check face skewness.
Reimplemented from primitiveMesh.
Definition at line 690 of file polyMeshCheck.C.
References primitiveMesh::cellCentres(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), and polyMesh::points().
|
virtual |
Check edge alignment for 1D/2D cases.
Definition at line 709 of file polyMeshCheck.C.
References polyMesh::points().
|
virtual |
Definition at line 726 of file polyMeshCheck.C.
References primitiveMesh::faceAreas(), and polyMesh::geometricD().
|
virtual |
Check mesh motion for correctness given motion points.
Definition at line 772 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().
|
virtual |
Check for face weights.
Definition at line 742 of file polyMeshCheck.C.
References primitiveMesh::cellCentres(), primitiveMesh::faceAreas(), and primitiveMesh::faceCentres().
|
virtual |
Check for neighbouring cell volumes.
Definition at line 761 of file polyMeshCheck.C.
References primitiveMesh::cellVolumes(), and polyMesh::checkMeshMotion().
Find the cell, tetFacei and tetPti for point p.
Definition at line 1496 of file polyMesh.C.
References polyMesh::cellTree(), indexedOctree< Type >::findInside(), and polyMesh::findTetFacePt().
Referenced by polyMesh::cellZones(), polyMesh::findCell(), polyMesh::removeFiles(), and patchInjectionBase::setPositionAndCell().
Find the tetFacei and tetPti for point p in celli.
tetFacei and tetPtI are set to -1 if not found
Definition at line 1521 of file polyMesh.C.
References tetIndices::face(), polyMeshTetDecomposition::findTet(), mesh, polyMesh::pointInCell(), and tetIndices::tetPt().
Referenced by polyMesh::cellZones(), polyMesh::findCellFacePt(), polyMesh::pointInCell(), and patchInjectionBase::setPositionAndCell().
bool pointInCell | ( | const point & | p, |
label | celli, | ||
const cellDecomposition | decompMode = CELL_TETS |
||
) | const |
Test if point p is in the celli.
Definition at line 1537 of file polyMesh.C.
References triangle< Point, PointRef >::area(), polyMesh::CELL_TETS, primitiveMesh::cells(), triangle< Point, PointRef >::centre(), f(), polyMesh::FACE_CENTRE_TRIS, polyMesh::FACE_DIAG_TRIS, polyMesh::FACE_PLANES, primitiveMesh::faceCentres(), tetIndices::faceTri(), polyMesh::findCell(), polyMesh::findTetFacePt(), forAll, face::nextLabel(), primitiveMesh::pointInCell(), polyMesh::points(), and List< T >::size().
Referenced by polyMesh::cellZones(), polyMesh::findCell(), and polyMesh::findTetFacePt().
Foam::label findCell | ( | const point & | p, |
const cellDecomposition | decompMode = CELL_TETS |
||
) | const |
Find cell enclosing this location and return index.
If not found -1 is returned
Definition at line 1647 of file polyMesh.C.
References polyMesh::CELL_TETS, polyMesh::FACE_DIAG_TRIS, polyMesh::findCellFacePt(), primitiveMesh::findNearestCell(), primitiveMesh::nCells(), UPstream::parRun(), polyMesh::pointInCell(), and polyMesh::tetBasePtIs().
Referenced by polyMesh::cellZones(), refinementParameters::findCells(), probes::findElements(), meshRefinement::findRegion(), and polyMesh::pointInCell().
|
virtual |
Write the underlying polyMesh.
Reimplemented from objectRegistry.
Reimplemented in fvMesh.
Definition at line 505 of file polyMeshIO.C.
References IOobject::NO_WRITE, and objectRegistry::writeObject().
Referenced by polyMesh::cellZones(), polyMesh::readUpdate(), meshReader::writeMesh(), and fvMesh::writeObject().
Disallow default bitwise assignment.
Referenced by polyMesh::cellZones().
|
protected |
Member data pending transfer to fvMesh.
Is the mesh moving
Definition at line 307 of file polyMesh.H.
Referenced by polyMesh::moving(), polyMesh::oldCellCentres(), and polyMesh::oldPoints().
|
protected |
Is the mesh topology changing.
Definition at line 310 of file polyMesh.H.
Referenced by polyMesh::topoChanged(), and list::update().
|
static |
Return the default region name.
Definition at line 325 of file polyMesh.H.
Referenced by writeFile::baseFileDir(), regIOobject::checkIn(), polyMesh::dbDir(), meshReader::mesh(), probes::prepare(), fvMeshDistribute::printCoupleInfo(), Foam::regionDir(), sampledSets::sampledSets(), sampledSurfaces::sampledSurfaces(), Foam::selectRegionNames(), layerAverage::write(), and streamlines::write().
|
static |
Return the mesh sub-directory name (usually "polyMesh")
Definition at line 328 of file polyMesh.H.
Referenced by refinementHistoryConstraint::add(), refinementHistoryConstraint::apply(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), solidBodyMotionDisplacementPointPatchVectorField::localPoints0(), polyMesh::meshDir(), fileOperation::nProcs(), points0MotionSolver::points0MotionSolver(), polyMesh::polyMesh(), domainDecomposition::readAddressing(), points0MotionSolver::readPoints0(), polyMesh::readUpdate(), globalMeshData::sharedPointGlobalLabels(), polyMesh::tetBasePtIs(), meshReader::warnDuplicates(), domainDecomposition::writeAddressing(), domainDecomposition::writeComplete(), and domainDecomposition::writeProcs().