66 class polyTopoChangeMap;
68 class polyDistributionMap;
69 class polyMeshTetDecomposition;
116 bool clearedPrimitives_;
159 mutable label curMotionTimeIndex_;
168 mutable bool storeOldCellCentres_;
183 void calcDirections()
const;
187 void calcCellShapes()
const;
199 void clearAddressing();
221 label& defaultPatchStart,
286 const bool syncPar =
true
298 const bool syncPar =
true
310 const word& defaultBoundaryPatchName,
311 const word& defaultBoundaryPatchType,
312 const wordList& boundaryPatchPhysicalTypes,
313 const bool syncPar =
true
326 const word& defaultBoundaryPatchName,
327 const word& defaultBoundaryPatchType,
328 const bool syncPar =
true
515 const bool validBoundary =
true
529 const label insertPatchi,
541 const bool validBoundary
574 const bool validBoundary =
true
611 const bool write =
true
A primitive field of type <Type> with automated input and output.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
writeOption
Enumeration defining the write options.
streamFormat
Enumeration for the format of data in the stream.
compressionType
Enumeration for the format of data in the stream.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A bounding box defined in terms of the points at its extremities.
A class for handling file names.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
Registry of regIOobjects.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
const pointZoneList & pointZones() const
Return point zones.
virtual ~polyMesh()
Destructor.
bool topoChanged_
Has the mesh topology changed.
const fileName & facesInstance() const
Return the current instance directory for faces.
label nGeometricD() const
Return the number of valid geometric dimensions in the mesh.
const cellZoneList & cellZones() const
Return cell zones.
static word defaultRegion
Return the default region name.
const polyBoundaryMesh & boundary() const
Return boundary mesh.
bool readUpdateIsForward() const
Does a read update move the mesh forward in time?
const objectRegistry & db() const
Return the object registry.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
bool moving_
Member data pending transfer to fvMesh.
IOobject::writeOption facesWriteOpt() const
Return the points write option.
virtual const faceList & faces() const
Return raw faces.
void addedPatches()
Complete addition of single patches.
void clearGeom()
Clear geometry.
readUpdateState
Enumeration defining the state of the mesh after a read update.
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.
virtual const labelList & faceOwner() const
Return face owner.
const labelIOList & tetBasePtIs() const
Return the tetBasePtIs.
void operator=(const polyMesh &)=delete
Disallow default bitwise assignment.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
TypeName("polyMesh")
Runtime type information.
const globalMeshData & globalData() const
Return parallel info.
bool changing() const
Is the mesh changing? I.e., is it moving or topo-changing?
label nSolutionD() const
Return the number of valid solved-for dimensions in the mesh.
polyBoundaryMesh BoundaryMesh
virtual const pointField & oldPoints() const
Return old points for mesh motion.
void swap(polyMesh &)
Swap mesh.
const fileName & pointsInstance() const
Return the current instance directory for points.
label comm() const
Return communicator used for parallel communication.
polyMesh(const IOobject &io)
Construct from IOobject.
void resetMotion() const
Reset motion.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write the mesh data and all objects in the registry.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
const faceZoneList & faceZones() const
Return face zones.
readUpdateState readUpdate()
Update the mesh based on the mesh files saved in.
virtual const labelList & faceNeighbour() const
Return face neighbour.
void topoChangeZones(const polyTopoChangeMap &)
Update zones using the given map.
void addPatches(const List< polyPatch * > &, const bool validBoundary=true)
Add boundary patches.
bool topoChanged() const
Has the mesh topology changed this time-step?
void clearTetBasePtIs()
Clear tet base points.
virtual void distribute(const polyDistributionMap &map)
Redistribute or update using the given distribution map.
void setPointsInstance(const fileName &)
Set the instance for the points files.
void addZones(const List< pointZone * > &pz, const List< faceZone * > &fz, const List< cellZone * > &cz)
Add mesh zones.
virtual const pointField & points() const
Return raw points.
void printAllocated() const
Print a list of all the currently allocated mesh data.
IOobject::writeOption pointsWriteOpt() const
Return the points write option.
void removeFiles() const
Remove all files from mesh instance()
void removeBoundary()
Remove boundary patches.
virtual const pointField & oldCellCentres() const
Return old cell centres for mesh motion.
virtual void reorderPatches(const labelUList &newToOld, const bool validBoundary)
Reorder and trim existing patches. If validBoundary the new.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
void setInstance(const fileName &)
Set the instance for mesh files.
static fileName meshDirInstance(const IOobject &io)
Return the instance of the polyMesh directory. Returns.
virtual bool writeMesh() const
Write the mesh data only.
const boundBox & bounds() const
Return mesh bounding box.
virtual void addPatch(const label insertPatchi, const polyPatch &patch)
Add/insert single patch.
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
virtual void setPoints(const pointField &)
Reset the points.
const Vector< label > & solutionD() const
Return the vector of solved-for directions in mesh.
bool moving() const
Is the mesh moving?
const Vector< label > & geometricD() const
Return the vector of geometric directions in mesh.
A patch is a list of labels that address the faces in the global face list.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Cell-face mesh analysis engine.
const labelListList & pointCells() const
const cellList & cells() const
virtual bool write(const bool write=true) const
Write using setting from DB.
A class for managing temporary objects.
A class for handling words, derived from string.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.