Go to the documentation of this file.
38 void Foam::meshReader::addCellZones(polyMesh&
mesh)
const
45 void Foam::meshReader::addFaceZones(polyMesh&
mesh)
const
47 label nZone = monitoringSets_.size();
58 Info<<
"faceZone " << nZone
59 <<
" (size: " << iter().size() <<
") name: "
60 << iter.key() <<
endl;
89 Info<<
"Creating a polyMesh" <<
endl;
92 Info<<
"Number of internal faces: " << nInternalFaces_ <<
endl;
108 std::move(meshFaces_),
109 std::move(cellPolys_)
145 void Foam::meshReader::clearExtraStorage()
148 baffleFaces_.clear();
149 boundaryIds_.clear();
158 Foam::meshReader::meshReader
161 const scalar scaleFactor
164 pointCellsPtr_(
nullptr),
170 geometryFile_(fileOrPrefix),
171 scaleFactor_(scaleFactor),
177 patchPhysicalTypes_(0),
188 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.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool valid) const
Write the underlying polyMesh and other data.
Template functions to aid in the implementation of demand driven data.
const Time & time() const
Return time.
static const versionNumber currentVersion
The current version number.
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.
void deleteDemandDrivenData(DataPtr &dataPtr)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
messageStream Info
Information stream (uses stdout - output is on the master only)
void removeFiles(const fileName &instanceDir) const
Remove all files from mesh instance.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
streamFormat
Data format (ascii | binary)
virtual ~meshReader()
Destructor.
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.