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,
A simple container for copying or transferring objects of type <T>.
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
const indexedOctree< treeDataCell > & cellTree() const
Return the cell search tree.
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.
label comm() const
Return communicator used for parallel communication.
A class for handling file names.
void removeFiles() const
Remove all files from mesh instance()
const boundBox & bounds() const
Return mesh bounding box.
void resetMotion() const
Reset motion.
const fileName & facesInstance() const
Return the current instance directory for faces.
const Vector< label > & solutionD() const
Return the vector of solved-for directions in mesh.
Cell-face mesh analysis engine.
const vectorField & faceAreas() const
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")
Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per c...
const Vector< label > & geometricD() const
Return the vector of geometric directions in mesh.
static word defaultRegion
Return the default region name.
A bounding box defined in terms of the points at its extremities.
label nSolutionD() const
Return the number of valid solved-for dimensions in the mesh.
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.
label nGeometricD() const
Return the number of valid geometric dimensions in the mesh.
cellDecomposition
Enumeration defining the decomposition of the cell for.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
bool moving() const
Is mesh moving.
void clearAdditionalGeom()
Clear geometry not used for CFD (cellTree, tetBasePtIs)
virtual const pointField & points() const
Return raw points.
const labelListList & pointCells() const
void clearPrimitives()
Clear primitive data (points, faces and cells)
virtual void setUpToDatePoints(regIOobject &io) const
Set io to be up-to-date with points.
virtual const pointField & oldPoints() const
Return old points for mesh motion.
void findCellFacePt(const point &p, label &celli, label &tetFacei, label &tetPti) const
Find the cell, tetFacei and tetPti for point p.
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.
A class for handling words, derived from string.
virtual bool upToDatePoints(const regIOobject &io) const
Return true if io is up-to-date with points.
virtual const fileName & dbDir() const
Override the objectRegistry dbDir for a single-region case.
const objectRegistry & thisDb() const
Return the object registry.
bool changing() const
Is mesh changing (topology changing and/or moving)
void findTetFacePt(const label celli, const point &p, label &tetFacei, label &tetPti) const
Find the tetFacei and tetPti for point p in celli.
const globalMeshData & globalData() const
Return parallel info.
void clearGeom()
Clear geometry.
void removeBoundary()
Remove boundary patches.
const labelList & tetBasePtIs() const
Return the tetBasePtIs.
const scalarField & cellVols
const pointZoneMesh & pointZones() const
Return point zone mesh.
void setInstance(const fileName &)
Set the instance for mesh files.
void addPatches(const List< polyPatch * > &, const bool validBoundary=true)
Add boundary patches.
bool topoChanging() const
Is mesh topology changing.
TypeName("polyMesh")
Runtime type information.
bool pointInCell(const point &p, label celli, const cellDecomposition=CELL_TETS) const
Test if point p is in the celli.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
virtual const labelList & faceNeighbour() const
Return face neighbour.
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 fileName & pointsInstance() const
Return the current instance directory for points.
const dimensionedScalar c
Speed of light in a vacuum.
polyBoundaryMesh BoundaryMesh
virtual ~polyMesh()
Destructor.
label findCell(const point &p, const cellDecomposition=CELL_TETS) const
Find cell enclosing this location and return index.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
const faceZoneMesh & faceZones() const
Return face zone mesh.
void addZones(const List< pointZone * > &pz, const List< faceZone * > &fz, const List< cellZone * > &cz)
Add mesh zones.
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.
virtual const labelList & faceOwner() const
Return face owner.
Registry of regIOobjects.
virtual const faceList & faces() const
Return raw faces.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void clearCellTree()
Clear cell tree data.