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;
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_)
140 void Foam::meshReader::clearExtraStorage()
143 baffleFaces_.clear();
144 boundaryIds_.clear();
147 pointCellsPtr_.reset(
nullptr);
153 Foam::meshReader::meshReader
156 const scalar scaleFactor
159 pointCellsPtr_(nullptr),
165 geometryFile_(fileOrPrefix),
166 scaleFactor_(scaleFactor),
172 patchPhysicalTypes_(0),
A class for handling file names.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write the underlying polyMesh and other data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
A simple container for options an IOstream can normally have.
PtrList< polyPatch > polyPatchList
Store lists of polyPatch as a PtrList.
writeOption writeOpt() const noexcept
Get the write option.
void removeFiles(const fileName &instanceDir) const
Remove all files from mesh instance.
Foam::autoPtr< Foam::dynamicFvMesh > meshPtr
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
static word defaultRegion
Return the default region name.
wordList names() const
Return a list of patch names.
const T * set(const label i) const
Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie...
void writeMesh(const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const
Write mesh.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
const faceZoneMesh & faceZones() const noexcept
Return face zone mesh.
void setSize(const label newLen)
Same as resize()
scalar scaleFactor_
Geometry scaling.
cellTable cellTable_
Cell table persistent data saved as a dictionary.
labelList cellTableId_
Cell table id for each cell.
Automatically write from objectRegistry::writeObject()
wordList names() const
A list of the zone names.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void addCellZones(polyMesh &, const labelList &tableIds) const
Classify tableIds into cellZones according to the cellTable.
Mesh consisting of general polyhedral cells.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
void addPatches(polyPatchList &plist, const bool validBoundary=true)
Add boundary patches.
forAllConstIters(mixture.phases(), phase)