36 Info<<
"void polyMesh::setInstance(const fileName& inst) : " 37 <<
"Resetting file instance to " << inst <<
endl;
70 Info<<
"polyMesh::readUpdateState polyMesh::readUpdate() : " 71 <<
"Updating mesh based on saved data." <<
endl;
82 <<
" new = " << facesInst <<
nl 86 <<
" new = " << pointsInst <<
endl;
177 bool boundaryChanged =
false;
179 if (newBoundary.
size() != boundary_.
size())
181 boundaryChanged =
true;
195 oldTypes[patchI] != newTypes[patchI]
196 || oldNames[patchI] != newNames[patchI]
199 boundaryChanged =
true;
207 WarningIn(
"polyMesh::readUpdateState polyMesh::readUpdate()")
208 <<
"Number of patches has changed. This may have " 209 <<
"unexpected consequences. Proceed with care." <<
endl;
214 forAll(newBoundary, patchI)
216 boundary_.
set(patchI, newBoundary[patchI].
clone(boundary_));
225 newBoundary[patchI].
name(),
226 newBoundary[patchI].
size(),
227 newBoundary[patchI].start(),
230 newBoundary[patchI].
type()
272 boundary_.calcGeometry();
297 if (newPointZones.
size() <= pointZones_.
size())
305 pointZones_[czI] = newPointZones[czI];
311 for (
label czI = oldSize; czI < newPointZones.
size(); czI++)
313 pointZones_.
set(czI, newPointZones[czI].
clone(pointZones_));
332 oldSize = faceZones_.
size();
334 if (newFaceZones.
size() <= faceZones_.
size())
342 faceZones_[fzI].resetAddressing
345 newFaceZones[fzI].flipMap()
352 for (
label fzI = oldSize; fzI < newFaceZones.
size(); fzI++)
354 faceZones_.
set(fzI, newFaceZones[fzI].
clone(faceZones_));
373 oldSize = cellZones_.
size();
375 if (newCellZones.
size() <= cellZones_.
size())
383 cellZones_[czI] = newCellZones[czI];
389 for (
label czI = oldSize; czI < newCellZones.
size(); czI++)
391 cellZones_.
set(czI, newCellZones[czI].
clone(cellZones_));
433 if (nOldPoints != 0 && nOldPoints != newPoints.
size())
436 <<
"Point motion detected but number of points " 437 << newPoints.
size() <<
" in " 438 << newPoints.
objectPath() <<
" does not correspond to " 439 <<
" current " << nOldPoints
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
A List of objects of type <T> with automated input and output using a compact storage. Behaves like IOList except when binary output in case it writes a CompactListList.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
label size() const
Return the number of elements in the PtrList.
bool set(const label) const
Is element set.
Foam::autoPtr< IOobject > clone() const
Clone.
void setInstance(const fileName &)
Set the instance for mesh files.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fileName & instance() const
void updateMesh()
Correct polyBoundaryMesh after topology update.
const cellList & cells() const
vectorIOField pointIOField
pointIOField is a vectorIOField.
bool exists(const fileName &, const bool checkGzip=true)
Does the name exist (as DIRECTORY or FILE) in the file system?
const fileName & pointsInstance() const
Return the current instance directory for points.
Templated 3D Vector derived from VectorSpace adding construction from 3 components, element access using x(), y() and z() member functions and the inner-product (dot-product) and cross product operators.
A patch is a list of labels that address the faces in the global face list.
wordList names() const
Return a list of patch names.
void clear()
Clear the list, i.e. set size to zero.
wordList types() const
Return a list of patch types.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
#define WarningIn(functionName)
Report a warning using Foam::Warning.
readUpdateState
Enumeration defining the state of the mesh after a read update.
writeOption writeOpt() const
fileName objectPath() const
Return complete path + object name.
label size() const
Return number of elements in table.
const word & name() const
Return name.
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A bounding box defined in terms of the points at its extremities.
const fileName & facesInstance() const
Return the current instance directory for faces.
A class for handling file names.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
const Time & time() const
Return time.
void clearGeom()
Clear geometry.
CompactIOList< face, label > faceCompactIOList
IOList< label > labelIOList
Label container classes.