70 void Foam::meshReader::addCellZones(polyMesh& mesh)
const 77 void Foam::meshReader::addFaceZones(polyMesh& mesh)
const 79 label nZone = monitoringSets_.size();
80 mesh.faceZones().setSize(nZone);
90 HashTable<List<label>, word, string::hash>::const_iterator
91 iter = monitoringSets_.begin();
92 iter != monitoringSets_.end();
96 Info<<
"faceZone " << nZone
97 <<
" (size: " << iter().size() <<
") name: " 98 << iter.key() <<
endl;
107 List<bool>(iter().size(),
false),
127 Info<<
"Creating a polyMesh" <<
endl;
130 Info<<
"Number of internal faces: " << nInternalFaces_ <<
endl;
132 createPolyBoundary();
152 mesh().addPatches(polyBoundaryPatches(mesh));
159 addCellZones(
mesh());
160 addFaceZones(
mesh());
186 void Foam::meshReader::clearExtraStorage()
202 const scalar scaleFactor
205 pointCellsPtr_(
nullptr),
List< List< cellFaceIdentifier > > boundaryIds_
Identify boundary faces by cells and their faces.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
wordList patchPhysicalTypes_
Boundary patch physical types.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or nullptr.
A class for handling file names.
virtual bool readGeometry(const scalar scaleFactor=1.0)=0
Subclasses are required to supply this information.
wordList patchTypes_
Boundary patch types.
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
void writeMesh(const polyMesh &, IOstream::streamFormat fmt=IOstream::BINARY) const
Write mesh.
pointField points_
Points supporting the mesh.
void polyMeshUnMergeCyclics(polyMesh &mesh, const scalar includedAngle=165)
Find all patches of type "mergedCyclic" in the given mesh and split them.
labelList origCellId_
Lookup original Cell number for a given cell.
wordList patchNames_
Boundary patch names.
void removeFiles(const fileName &instanceDir) const
Remove all files from mesh instance.
void clear()
Clear the list, i.e. set size to zero.
virtual ~meshReader()
Destructor.
meshReader(const fileName &, const scalar scaleFactor=1.0)
Construct from fileName.
const word & constant() const
Return constant name.
streamFormat
Enumeration for the format of data in the stream.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
const Time & time() const
Return time.
scalar scaleFactor_
Geometry scaling.
cellTable cellTable_
Cell table persistent data saved as a dictionary.
fileName geometryFile_
Referenced filename.
Template functions to aid in the implementation of demand driven data.
faceList baffleFaces_
List of each baffle face.
labelList cellTableId_
Cell table id for each cell.
static const versionNumber currentVersion
Current version number.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
void writeAux(const objectRegistry &) const
Write auxiliary information.
void addCellZones(polyMesh &, const labelList &tableIds) const
Classify tableIds into cellZones according to the cellTable.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
Registry of regIOobjects.
faceListList cellFaces_
List of faces for every cell.
void deleteDemandDrivenData(DataPtr &dataPtr)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write) const
Write the objects.