Go to the documentation of this file.
37 void Foam::meshReader::addCellZones(polyMesh&
mesh)
const
44 void Foam::meshReader::addFaceZones(polyMesh&
mesh)
const
46 label nZone = monitoringSets_.size();
57 Info<<
"faceZone " << nZone
58 <<
" (size: " << iter().size() <<
") name: "
59 << iter.key() <<
endl;
88 Info<<
"Creating a polyMesh" <<
endl;
91 Info<<
"Number of internal faces: " << nInternalFaces_ <<
endl;
107 std::move(meshFaces_),
108 std::move(cellPolys_)
142 void Foam::meshReader::clearExtraStorage()
145 baffleFaces_.clear();
146 boundaryIds_.clear();
149 pointCellsPtr_.reset(
nullptr);
155 Foam::meshReader::meshReader
158 const scalar scaleFactor
161 pointCellsPtr_(
nullptr),
167 geometryFile_(fileOrPrefix),
168 scaleFactor_(scaleFactor),
174 patchPhysicalTypes_(0),
185 if (scaleFactor_ <= VSMALL)
void addPatches(PtrList< polyPatch > &plist, const bool validBoundary=true)
Add boundary patches.
static autoPtr< T > New(Args &&... args)
Construct autoPtr of T with forwarding arguments.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Foam::autoPtr< Foam::fvMesh > meshPtr(nullptr)
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
A class for handling file names.
static word defaultRegion
Return the default region name.
const Time & time() const
Return time.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList cellTableId_
Cell table id for each cell.
cellTable cellTable_
Cell table persistent data saved as a dictionary.
Mesh consisting of general polyhedral cells.
wordList names() const
Return a list of patch names.
const faceZoneMesh & faceZones() const
Return face zone mesh.
Registry of regIOobjects.
messageStream Info
Information stream (uses stdout - output is on the master only)
void removeFiles(const fileName &instanceDir) const
Remove all files from mesh instance.
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
streamFormat
Data format (ascii | binary)
wordList names() const
A list of the zone names.
forAllConstIters(mixture.phases(), phase)
const word & constant() const
Return constant name.
void writeMesh(const polyMesh &, IOstream::streamFormat fmt=IOstream::BINARY) const
Write mesh.
void addCellZones(polyMesh &, const labelList &tableIds) const
Classify tableIds into cellZones according to the cellTable.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write the underlying polyMesh and other data.