80 <<
" new = " << facesInst <<
nl 82 <<
" new = " << pointsInst <<
endl;
173 bool boundaryChanged =
false;
175 if (newBoundary.
size() != boundary_.
size())
177 boundaryChanged =
true;
195 boundaryChanged =
true;
204 <<
"unexpected consequences. Proceed with care." <<
endl;
222 newBoundary[
patchi].start(),
267 boundary_.calcGeometry();
292 if (newPointZones.
size() <= pointZones_.
size())
300 pointZones_[czI] = newPointZones[czI];
306 for (
label czI = oldSize; czI < newPointZones.
size(); czI++)
308 pointZones_.
set(czI, newPointZones[czI].
clone(pointZones_));
327 oldSize = faceZones_.
size();
329 if (newFaceZones.
size() <= faceZones_.
size())
337 faceZones_[fzI].resetAddressing
340 newFaceZones[fzI].flipMap()
347 for (
label fzI = oldSize; fzI < newFaceZones.
size(); fzI++)
349 faceZones_.
set(fzI, newFaceZones[fzI].
clone(faceZones_));
368 oldSize = cellZones_.
size();
370 if (newCellZones.
size() <= cellZones_.
size())
378 cellZones_[czI] = newCellZones[czI];
384 for (
label czI = oldSize; czI < newCellZones.
size(); czI++)
386 cellZones_.
set(czI, newCellZones[czI].
clone(cellZones_));
428 if (nOldPoints != 0 && nOldPoints != newPoints.
size())
431 <<
"Point motion detected but number of points " 432 << newPoints.
size() <<
" in " 433 << newPoints.
objectPath() <<
" does not correspond to " 434 <<
" current " << nOldPoints
442 boundary_.calcGeometry();
const Time & time() const
Return time.
fileName objectPath() const
Return complete path + object name.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
wordList names() const
Return a list of patch names.
const fileName & facesInstance() const
Return the current instance directory for faces.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
vectorIOField pointIOField
pointIOField is a vectorIOField.
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A bounding box defined in terms of the points at its extremities.
label size() const
Return number of elements in table.
const cellList & cells() const
writeOption writeOpt() const
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
CompactIOList< face, label > faceCompactIOList
void clear()
Clear the list, i.e. set size to zero.
bool set(const label) const
Is element set.
Foam::autoPtr< IOobject > clone() const
Clone.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
void clearGeom()
Clear geometry.
void updateMesh()
Correct polyBoundaryMesh after topology update.
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 setInstance(const fileName &)
Set the instance for mesh files.
wordList types() const
Return a list of patch types.
bool exists(const fileName &, const bool checkGzip=true)
Does the name exist (as DIRECTORY or FILE) in the file system?
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define WarningInFunction
Report a warning using Foam::Warning.
const fileName & pointsInstance() const
Return the current instance directory for points.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
readUpdateState
Enumeration defining the state of the mesh after a read update.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in.
A patch is a list of labels that address the faces in the global face list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const fileName & instance() const
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
const word & name() const
Return name.
IOList< label > labelIOList
Label container classes.
label size() const
Return the number of elements in the UPtrList.
#define InfoInFunction
Report an information message using Foam::Info.