36 if (tetBasePtIsPtr_.valid())
38 tetBasePtIsPtr_->writeOpt() = wo;
67 if (tetBasePtIsPtr_.valid())
69 tetBasePtIsPtr_->instance() = inst;
70 tetBasePtIsPtr_().eventNo() =
getEvent();
112 <<
" new = " << facesInst <<
nl 114 <<
" new = " << pointsInst <<
endl;
122 Info<<
"Topological change" <<
endl;
205 bool boundaryChanged =
false;
207 if (newBoundary.
size() != boundary_.
size())
209 boundaryChanged =
true;
227 boundaryChanged =
true;
251 newBoundary[
patchi].start(),
296 boundary_.calcGeometry();
321 if (newPointZones.
size() <= pointZones_.
size())
329 pointZones_[czI] = newPointZones[czI];
335 for (
label czI = oldSize; czI < newPointZones.
size(); czI++)
337 pointZones_.
set(czI, newPointZones[czI].
clone(pointZones_));
356 oldSize = faceZones_.
size();
358 if (newFaceZones.
size() <= faceZones_.
size())
366 faceZones_[fzI].resetAddressing
369 newFaceZones[fzI].flipMap()
376 for (
label fzI = oldSize; fzI < newFaceZones.
size(); fzI++)
378 faceZones_.
set(fzI, newFaceZones[fzI].
clone(faceZones_));
397 oldSize = cellZones_.
size();
399 if (newCellZones.
size() <= cellZones_.
size())
407 cellZones_[czI] = newCellZones[czI];
413 for (
label czI = oldSize; czI < newCellZones.
size(); czI++)
415 cellZones_.
set(czI, newCellZones[czI].
clone(cellZones_));
419 tetBasePtIsPtr_ = readTetBasePtIs();
460 if (nOldPoints != 0 && nOldPoints != newPoints.
size())
463 <<
"Point motion detected but number of points " 464 << newPoints.
size() <<
" in " 465 << newPoints.
objectPath() <<
" does not correspond to " 466 <<
" current " << nOldPoints
475 if (newTetBasePtIsPtr.
valid())
477 tetBasePtIsPtr_ = newTetBasePtIsPtr;
481 boundary_.calcGeometry();
autoPtr< IOobject > clone() const
Clone.
#define forAll(list, i)
Loop across all elements in list.
writeOption
Enumeration defining the write options.
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.
fileName objectPath() const
Return complete path + object name.
A bounding box defined in terms of the points at its extremities.
void setPointsInstance(const fileName &)
Set the instance for the points files.
const cellList & cells() const
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write the underlying polyMesh.
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 topoChange()
Correct polyBoundaryMesh after topology update.
void clear()
Clear the list, i.e. set size to zero.
wordList names() const
Return a list of patch names.
label getEvent() const
Return new event number.
streamFormat
Enumeration for the format of data in the stream.
label eventNo() const
Event number at last update.
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.
compressionType
Enumeration for the format of data in the stream.
void clearGeom()
Clear geometry.
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
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...
fileName & instance() const
Return the instance directory, constant, system, <time> etc.
Mesh consisting of general polyhedral cells.
readUpdateState
Enumeration defining the state of the mesh after a read update.
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...
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write) const
Write the objects.
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.