Go to the documentation of this file.
35 Info<<
"void surfMesh::setInstance(const fileName& inst) : "
36 <<
"Resetting file instance to " << inst <<
endl;
56 Info<<
"surfMesh::readUpdateState surfMesh::readUpdate() : "
57 <<
"Updating mesh based on saved data." <<
endl;
61 fileName pointsInst(time().findInstance(meshDir(),
"points"));
62 fileName facesInst(time().findInstance(meshDir(),
"faces"));
66 Info<<
"Points instance: old = " << pointsInstance()
67 <<
" new = " << pointsInst <<
nl
68 <<
"Faces instance: old = " << facesInstance()
69 <<
" new = " << facesInst <<
endl;
72 if (facesInst != facesInstance())
84 setInstance(facesInst);
85 storedIOPoints().instance() = pointsInst;
131 bool zonesChanged =
false;
134 if (zones.
size() != newZones.
size())
142 if (zones[zoneI].
name() != newZones[zoneI].
name())
155 <<
"unexpected consequences. Proceed with care." <<
endl;
165 else if (pointsInst != pointsInstance())
174 storedIOPoints().instance() = pointsInst;
readUpdateState
Enumeration defining the state of the mesh after a read update.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
surfZoneIOList & storedIOZones()
Non-const access to the zones.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & instance() const
writeOption writeOpt() const
pointIOField & storedIOPoints()
Non-const access to the points.
IOobject for a surfZoneList.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in.
vectorIOField pointIOField
pointIOField is a vectorIOField.
void setInstance(const fileName &)
Set the instance for mesh files.
faceCompactIOList & storedIOFaces()
Non-const access to the faces.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
CompactIOList< face, label > faceCompactIOList
void size(const label)
Override size to be inconsistent with allocated storage.
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.