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