67 class polyMeshTetDecomposition;
69 template<
class Type>
class indexedOctree;
131 bool clearedPrimitives_;
184 mutable label curMotionTimeIndex_;
193 mutable bool storeOldCellCentres_;
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 342 const bool syncPar =
true 354 const word& defaultBoundaryPatchName,
355 const word& defaultBoundaryPatchType,
356 const wordList& boundaryPatchPhysicalTypes,
357 const bool syncPar =
true 370 const word& defaultBoundaryPatchName,
371 const word& defaultBoundaryPatchType,
372 const bool syncPar =
true 529 return topoChanging_;
535 bool c0 = topoChanging_;
577 const bool validBoundary =
true 592 const label insertPatchi,
595 const word& defaultPatchFieldType,
596 const bool validBoundary
604 const bool validBoundary
628 const bool validBoundary =
true 662 virtual bool checkFaceOrthogonality
664 const bool report =
false,
669 virtual bool checkFaceSkewness
671 const bool report =
false,
676 virtual bool checkEdgeAlignment
683 virtual bool checkCellDeterminant
693 const bool report =
false,
694 const bool detailedReport =
false 698 virtual bool checkFaceWeight
701 const scalar minWeight = 0.05,
706 virtual bool checkVolRatio
709 const scalar minRatio = 0.01,
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual void reorderPatches(const labelUList &newToOld, const bool validBoundary)
Reorder and trim existing patches. If validBoundary the new.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
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)
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 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.
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.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const labelListList & pointCells() const
void clearGeom()
Clear geometry.
void removeBoundary()
Remove boundary patches.
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.
const scalarField & cellVols
void clearTetBasePtIs()
Clear tet base points.
void setInstance(const fileName &)
Set the instance for mesh files.
static IOobject points0IO(const polyMesh &mesh)
Return IO object for points0.
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.
void operator=(const polyMesh &)=delete
Disallow default bitwise assignment.
TypeName("polyMesh")
Runtime type information.
const indexedOctree< treeDataCell > & cellTree() const
Return the cell search tree.
const boundBox & bounds() const
Return mesh bounding box.
virtual const pointField & oldCellCentres() const
Return old points for mesh motion.
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)
virtual bool dynamic() const
Is mesh dynamic.
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.
A patch is a list of labels that address the faces in the global face list.
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.
polyMesh(const IOobject &io)
Construct from IOobject.