moveMesh.H
Go to the documentation of this file.
1 typeIOobject<pointIOField> ioPoints
2 (
3  "points",
4  runTime.name(),
5  mesh.name(),
6  mesh
7 );
8 
9 if (ioPoints.headerOk())
10 {
11  Info<< "new points available" << endl;
12  // Reading new points
13  pointIOField newPoints
14  (
15  IOobject
16  (
17  "points",
18  runTime.name(),
19  mesh.name(),
20  mesh,
21  IOobject::MUST_READ,
22  IOobject::NO_WRITE
23  )
24  );
25 
26  mesh.setPoints(newPoints);
27 }
const word & name() const
Return reference to name.
Definition: fvMesh.H:434
virtual void setPoints(const pointField &)
Reset the points.
Definition: fvMesh.C:1228
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
typeIOobject< pointIOField > ioPoints("points", runTime.name(), mesh.name(), mesh)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:258
messageStream Info
vectorIOField pointIOField
pointIOField is a vectorIOField.
Definition: pointIOField.H:42