mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Creation of OpenFOAM-dev repository 15/04/2008
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
|
||||
//
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user