mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user