Added objOutput Switch to controls to allow debug obj output to be controlled.

Added function to limit vertex displacements that penetrate the surface or come
to close to it (closer than twice the local point pair distance) by recursively
halving the displacement vector.

Using runTime.loop() construct in app for time loop - with runTime++ at the end
of the loop - wasn't getting the polyMesh written to the final timestep.  Moving
targetCellSize and internal delaunay vertex writing out of writeDual function
and calling them from the move() function.
This commit is contained in:
graham
2009-07-14 15:34:30 +01:00
parent f17fcfebb8
commit 1f8e1a0a58
8 changed files with 138 additions and 60 deletions

View File

@ -57,21 +57,17 @@ int main(int argc, char *argv[])
conformalVoronoiMesh mesh(runTime, cvMeshDict);
while (runTime.run())
while (runTime.loop())
{
Info<< nl << "Time = " << runTime.timeName() << endl;
mesh.move();
mesh.conformToSurface();
runTime++;
}
mesh.writeMesh();
mesh.writePoints("allFinalPoints.obj", false);
Info<< nl << "End\n" << endl;
return 0;