69 void Foam::meshReader::addCellZones(polyMesh& mesh)
const 76 void Foam::meshReader::addFaceZones(polyMesh& mesh)
const 78 label nZone = monitoringSets_.size();
79 mesh.faceZones().setSize(nZone);
89 HashTable<List<label>, word, string::hash>::const_iterator
90 iter = monitoringSets_.begin();
91 iter != monitoringSets_.end();
95 Info<<
"faceZone " << nZone
96 <<
" (size: " << iter().size() <<
") name: " 97 << iter.key() <<
endl;
106 List<bool>(iter().size(),
false),
126 Info<<
"Creating a polyMesh" <<
endl;
129 Info<<
"Number of internal faces: " << nInternalFaces_ <<
endl;
131 createPolyBoundary();
151 mesh().addPatches(polyBoundaryPatches(mesh));
155 addCellZones(
mesh());
156 addFaceZones(
mesh());
181 void Foam::meshReader::clearExtraStorage()
194 Foam::meshReader::meshReader
197 const scalar scaleFactor
200 pointCellsPtr_(NULL),
const Time & time() const
Return time.
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 NULL.
A class for handling file names.
virtual bool readGeometry(const scalar scaleFactor=1.0)=0
Subclasses are required to supply this information.
void writeAux(const objectRegistry &) const
Write auxiliary information.
wordList patchTypes_
Boundary patch types.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
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 addCellZones(polyMesh &, const labelList &tableIds) const
Classify tableIds into cellZones according to the cellTable.
pointField points_
Points supporting the mesh.
labelList origCellId_
Lookup original Cell number for a given cell.
wordList patchNames_
Boundary patch names.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
void clear()
Clear the list, i.e. set size to zero.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write the objects.
virtual ~meshReader()
Destructor.
streamFormat
Enumeration for the format of data in the stream.
const word & constant() const
Return constant name.
virtual autoPtr< polyMesh > mesh(const objectRegistry &)
Create and return polyMesh.
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...
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...
void writeMesh(const polyMesh &, IOstream::streamFormat fmt=IOstream::BINARY) const
Write mesh.
void removeFiles(const fileName &instanceDir) const
Remove all files from mesh instance.