37void Foam::meshReader::addCellZones(polyMesh&
mesh)
const
46 label nZone = monitoringSets_.size();
57 Info<<
"faceZone " << nZone
58 <<
" (size: " << iter().size() <<
") name: "
59 << iter.key() <<
endl;
77 warnDuplicates(
"faceZones",
mesh.faceZones().names());
83 const objectRegistry& registry
88 Info<<
"Creating a polyMesh" <<
endl;
91 Info<<
"Number of internal faces: " << nInternalFaces_ <<
endl;
101 registry.time().constant(),
107 std::move(meshFaces_),
108 std::move(cellPolys_)
115 mesh.addPatches(newPatches);
117 warnDuplicates(
"boundaries",
mesh.boundaryMesh().names());
135 mesh.writeObject(streamOpt,
true);
140void Foam::meshReader::clearExtraStorage()
143 baffleFaces_.clear();
144 boundaryIds_.clear();
147 pointCellsPtr_.reset(
nullptr);
153Foam::meshReader::meshReader
156 const scalar scaleFactor
159 pointCellsPtr_(nullptr),
165 geometryFile_(fileOrPrefix),
166 scaleFactor_(scaleFactor),
172 patchPhysicalTypes_(0),
writeOption writeOpt() const noexcept
Get the write option.
@ NO_READ
Nothing to be read.
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A simple container for options an IOstream can normally have.
const T * set(const label i) const
Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie,...
void setSize(const label n)
Same as resize().
const word & constant() const noexcept
Return constant name.
wordList names() const
A list of the zone names.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
A subset of mesh faces organised as a primitive patch.
A class for handling file names.
scalar scaleFactor_
Geometry scaling.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
List< List< cellFaceIdentifier > > boundaryIds_
Identify boundary faces by cells and their faces.
wordList patchPhysicalTypes_
Boundary patch physical types.
faceList meshFaces_
Global face list for polyMesh.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
wordList patchNames_
Boundary patch names.
void writeAux(const objectRegistry &) const
Write auxiliary information.
label nInternalFaces_
Number of internal faces for polyMesh.
cellTable cellTable_
Cell table persistent data saved as a dictionary.
virtual bool readGeometry(const scalar scaleFactor=1.0)=0
Subclasses are required to supply this information.
labelList cellTableId_
Cell table id for each cell.
labelList origCellId_
Lookup original Cell number for a given cell.
pointField points_
Points supporting the mesh.
void writeMesh(const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const
Write mesh.
faceList baffleFaces_
List of each baffle face.
faceListList cellFaces_
List of faces for every cell.
labelList patchStarts_
Polyhedral mesh boundary patch start indices and dimensions.
fileName geometryFile_
Referenced filename.
wordList patchTypes_
Boundary patch types.
Registry of regIOobjects.
const Time & time() const noexcept
Return time registry.
Mesh consisting of general polyhedral cells.
const faceZoneMesh & faceZones() const noexcept
Return face zone mesh.
static word defaultRegion
Return the default region name.
Foam::autoPtr< Foam::dynamicFvMesh > meshPtr
PtrList< polyPatch > polyPatchList
Store lists of polyPatch as a PtrList.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.