67 class polyMeshTetDecomposition;
69 template<
class Type>
class indexedOctree;
131 bool clearedPrimitives_;
184 mutable label curMotionTimeIndex_;
205 void calcDirections()
const;
209 void calcCellShapes()
const;
234 label& defaultPatchStart,
243 bool checkFaceOrthogonality
248 const bool detailedReport,
253 bool checkFaceSkewness
260 const bool detailedReport,
264 bool checkEdgeAlignment
272 bool checkCellDeterminant
286 const scalar minWeight,
294 const scalar minRatio,
330 const bool syncPar =
true 341 const bool syncPar =
true 353 const word& defaultBoundaryPatchName,
354 const word& defaultBoundaryPatchType,
355 const wordList& boundaryPatchPhysicalTypes,
356 const bool syncPar =
true 369 const word& defaultBoundaryPatchName,
370 const word& defaultBoundaryPatchType,
371 const bool syncPar =
true 513 return topoChanging_;
519 bool c0 = topoChanging_;
561 const bool validBoundary =
true 593 const bool validBoundary =
true 627 virtual bool checkFaceOrthogonality
629 const bool report =
false,
634 virtual bool checkFaceSkewness
636 const bool report =
false,
641 virtual bool checkEdgeAlignment
648 virtual bool checkCellDeterminant
658 const bool report =
false,
659 const bool detailedReport =
false 663 virtual bool checkFaceWeight
666 const scalar minWeight = 0.05,
671 virtual bool checkVolRatio
674 const scalar minRatio = 0.01,
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A simple container for copying or transferring objects of type <T>.
bool changing() const
Is mesh changing (topology changing and/or moving)
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
void clearAddressing()
Clear topological data.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
const faceZoneMesh & faceZones() const
Return face zone mesh.
bool moving() const
Is mesh moving.
const fileName & facesInstance() const
Return the current instance directory for faces.
virtual const labelList & faceNeighbour() const
Return face neighbour.
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.
virtual void setUpToDatePoints(regIOobject &io) const
Set io to be up-to-date with points.
Cell-face mesh analysis engine.
void resetMotion() const
Reset motion.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
const Vector< label > & solutionD() const
Return the vector of solved-for directions in mesh.
Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per c...
static word defaultRegion
Return the default region name.
A bounding box defined in terms of the points at its extremities.
const cellList & cells() const
virtual const fileName & dbDir() const
Override the objectRegistry dbDir for a single-region case.
bool pointInCell(const point &p, label celli, const cellDecomposition=CELL_TETS) const
Test if point p is in the celli.
cellDecomposition
Enumeration defining the decomposition of the cell for.
label nGeometricD() const
Return the number of valid geometric dimensions in the mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual const pointField & points() const
Return raw points.
const Vector< label > & geometricD() const
Return the vector of geometric directions in mesh.
const fileName & pointsInstance() const
Return the current instance directory for points.
void removeFiles() const
Remove all files from mesh instance()
void clearPrimitives()
Clear primitive data (points, faces and cells)
void resetPrimitives(const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< labelList > &owner, const Xfer< labelList > &neighbour, const labelList &patchSizes, const labelList &patchStarts, const bool validBoundary=true)
Reset mesh primitive data. Assumes all patch info correct.
virtual void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
const pointZoneMesh & pointZones() const
Return point zone mesh.
A class for handling words, derived from string.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
void findCellFacePt(const point &p, label &celli, label &tetFacei, label &tetPti) const
Find the cell, tetFacei and tetPti for point p.
virtual const pointField & oldPoints() const
Return old points for mesh motion.
virtual const labelList & faceOwner() const
Return face owner.
const globalMeshData & globalData() const
Return parallel info.
virtual const faceList & faces() const
Return raw faces.
label comm() const
Return communicator used for parallel communication.
void addZones(const List< pointZone *> &pz, const List< faceZone *> &fz, const List< cellZone *> &cz)
Add mesh zones.
void addPatches(const List< polyPatch *> &, const bool validBoundary=true)
Add boundary patches.
const labelListList & pointCells() const
void clearGeom()
Clear geometry.
void removeBoundary()
Remove boundary patches.
const scalarField & cellVols
void clearTetBasePtIs()
Clear tet base points.
void setInstance(const fileName &)
Set the instance for mesh files.
label nSolutionD() const
Return the number of valid solved-for dimensions in the mesh.
virtual bool upToDatePoints(const regIOobject &io) const
Return true if io is up-to-date with points.
TypeName("polyMesh")
Runtime type information.
const indexedOctree< treeDataCell > & cellTree() const
Return the cell search tree.
const boundBox & bounds() const
Return mesh bounding box.
Non-pointer based hierarchical recursive searching.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
const vectorField & faceAreas() const
const dimensionedScalar c
Speed of light in a vacuum.
bool topoChanging() const
Is mesh topology changing.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
void findTetFacePt(const label celli, const point &p, label &tetFacei, label &tetPti) const
Find the tetFacei and tetPti for point p in celli.
label findCell(const point &p, const cellDecomposition=CELL_TETS) const
Find cell enclosing this location and return index.
polyBoundaryMesh BoundaryMesh
virtual ~polyMesh()
Destructor.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
const objectRegistry & thisDb() const
Return the object registry.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
readUpdateState
Enumeration defining the state of the mesh after a read update.
A class for managing temporary objects.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A primitive field of type <T> with automated input and output.
void clearCellTree()
Clear cell tree data.
virtual bool checkMeshMotion(const pointField &newPoints, const bool report=false, const bool detailedReport=false) const
Check mesh motion for correctness given motion points.