/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2026 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . Class Foam::polyMesh Description Mesh consisting of general polyhedral cells. SourceFiles polyMesh.C polyMeshInitMesh.C polyMeshClear.C polyMeshFromShapeMesh.C polyMeshIO.C polyMeshUpdate.C polyMeshCheck.C \*---------------------------------------------------------------------------*/ #ifndef polyMesh_H #define polyMesh_H #include "objectRegistry.H" #include "primitiveMesh.H" #include "pointField.H" #include "faceList.H" #include "cellList.H" #include "cellShapeList.H" #include "pointIOField.H" #include "faceIOList.H" #include "labelIOList.H" #include "polyBoundaryMesh.H" #include "boundBox.H" #include "pointZoneList.H" #include "faceZoneList.H" #include "cellZoneList.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { // Forward declaration of classes class globalMeshData; class polyTopoChangeMap; class polyMeshMap; class polyDistributionMap; class polyMeshTetDecomposition; /*---------------------------------------------------------------------------*\ Class polyMesh Declaration \*---------------------------------------------------------------------------*/ class polyMesh : public objectRegistry, public primitiveMesh { public: // Public data types //- Enumeration defining the state of the mesh after a read update. // Used for post-processing applications, where the mesh // needs to update based on the files written in time directories. enum readUpdateState { UNCHANGED, POINTS_MOVED, TOPO_CHANGE, TOPO_PATCH_CHANGE }; private: // Private Data // Primitive mesh data //- Points pointIOField points_; //- Faces faceCompactIOList faces_; //- Face owner labelIOList owner_; //- Face neighbour labelIOList neighbour_; //- Have the primitives been cleared bool clearedPrimitives_; //- Boundary mesh mutable polyBoundaryMesh boundary_; //- Mesh bounding-box. // Created from points on construction, updated when the mesh moves boundBox bounds_; //- Communicator used for parallel communication label comm_; //- Vector of non-constrained directions in mesh // defined according to the presence of empty and wedge patches mutable Vector