63 if (tetBasePtIsPtr_.valid())
66 tetBasePtIsPtr_->instance() = inst;
86 <<
" new = " << facesInst <<
nl 88 <<
" new = " << pointsInst <<
endl;
179 bool boundaryChanged =
false;
181 if (newBoundary.
size() != boundary_.
size())
183 boundaryChanged =
true;
201 boundaryChanged =
true;
210 <<
"boundary changed, proceed with care." <<
endl;
228 newBoundary[
patchi].start(),
273 boundary_.calcGeometry();
298 if (newPointZones.
size() <= pointZones_.
size())
306 pointZones_[czI] = newPointZones[czI];
312 for (
label czI = oldSize; czI < newPointZones.
size(); czI++)
314 pointZones_.
set(czI, newPointZones[czI].
clone(pointZones_));
333 oldSize = faceZones_.
size();
335 if (newFaceZones.
size() <= faceZones_.
size())
343 faceZones_[fzI].resetAddressing
346 newFaceZones[fzI].flipMap()
353 for (
label fzI = oldSize; fzI < newFaceZones.
size(); fzI++)
355 faceZones_.
set(fzI, newFaceZones[fzI].
clone(faceZones_));
374 oldSize = cellZones_.
size();
376 if (newCellZones.
size() <= cellZones_.
size())
384 cellZones_[czI] = newCellZones[czI];
390 for (
label czI = oldSize; czI < newCellZones.
size(); czI++)
392 cellZones_.
set(czI, newCellZones[czI].
clone(cellZones_));
396 tetBasePtIsPtr_ = readTetBasePtIs();
437 if (nOldPoints != 0 && nOldPoints != newPoints.
size())
440 <<
"Point motion detected but number of points " 441 << newPoints.
size() <<
" in " 442 << newPoints.
objectPath() <<
" does not correspond to " 443 <<
" current " << nOldPoints
452 if (newTetBasePtIsPtr.
valid())
454 tetBasePtIsPtr_ = newTetBasePtIsPtr;
458 boundary_.calcGeometry();
autoPtr< IOobject > clone() const
Clone.
#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.
const word & name() const
Return name.
A class for handling file names.
bool set(const label) const
Is element set.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
const cellList & cells() const
wordList types() const
Return a list of patch types.
label size() const
Return number of elements in table.
CompactIOList< face, label > faceCompactIOList
const fileName & pointsInstance() const
Return the current instance directory for points.
void clear()
Clear the list, i.e. set size to zero.
wordList names() const
Return a list of patch names.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
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.
const Time & time() const
Return time.
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.
label size() const
Return the number of elements in the UPtrList.
writeOption writeOpt() const
const fileName & instance() const
#define WarningInFunction
Report a warning using Foam::Warning.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.
const word & headerClassName() const
Return name of the class name read from header.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
fileName objectPath() const
Return complete path + object name.
A primitive field of type <T> with automated input and output.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
IOList< label > labelIOList
Label container classes.
#define InfoInFunction
Report an information message using Foam::Info.