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_)
138 void Foam::meshReader::clearExtraStorage()
141 baffleFaces_.clear();
142 boundaryIds_.clear();
145 pointCellsPtr_.reset(
nullptr);
151 Foam::meshReader::meshReader
154 const scalar scaleFactor
157 pointCellsPtr_(
nullptr),
163 geometryFile_(fileOrPrefix),
164 scaleFactor_(scaleFactor),
170 patchPhysicalTypes_(0),
181 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 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.
Registry of regIOobjects.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void writeMesh(const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const
Write mesh.
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.
const faceZoneMesh & faceZones() const noexcept
Return face zone mesh.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
wordList names() const
A list of the zone names.
forAllConstIters(mixture.phases(), phase)
const word & constant() const
Return constant name.
const Time & time() const noexcept
Return time registry.
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.