db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
34 lines
731 B
C++
34 lines
731 B
C++
|
|
//
|
|
// Check if new points (so moving mesh)
|
|
//
|
|
{
|
|
IOobject pointsHeader
|
|
(
|
|
"points",
|
|
runTime.timeName(),
|
|
polyMesh::defaultRegion,
|
|
runTime
|
|
);
|
|
if (pointsHeader.headerOk())
|
|
{
|
|
// points exists for time step, let's read them
|
|
Info<< " Points file detected - updating points" << endl;
|
|
|
|
// Reading new points
|
|
pointIOField newPoints
|
|
(
|
|
IOobject
|
|
(
|
|
"points",
|
|
runTime.timeName(),
|
|
polyMesh::defaultRegion,
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
mesh.polyMesh::movePoints(newPoints);
|
|
}
|
|
}
|