ENH: Add time selection to checkCvMesh

This commit is contained in:
laurence
2012-03-16 10:17:24 +00:00
parent 7f6527130b
commit 644a76b40c

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -42,6 +42,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
timeSelector::addOptions();
# include "addOverwriteOption.H"
# include "setRootCase.H"
@ -49,7 +51,7 @@ int main(int argc, char *argv[])
instantList timeDirs = timeSelector::select0(runTime, args);
# include "createMesh.H"
# include "createNamedPolyMesh.H"
runTime.functionObjects().off();
@ -57,14 +59,11 @@ int main(int argc, char *argv[])
{
runTime.setTime(timeDirs[timeI], timeI);
Info<< "Create mesh for time = " << runTime.timeName()
Info<< "Time = " << runTime.timeName()
<< nl << endl;
mesh.readUpdate();
Info<< "Read mesh in = "
<< runTime.cpuTimeIncrement() << " s" << endl;
// Check patches and faceZones are synchronised
mesh.boundaryMesh().checkParallelSync(true);
meshRefinement::checkCoupledFaceZones(mesh);
@ -87,8 +86,10 @@ int main(int argc, char *argv[])
= cvMeshDict.subDict("meshQualityControls");
Info<< "Checking initial mesh ..." << endl;
Info<< "Checking mesh ..." << endl;
faceSet wrongFaces(mesh, "wrongFaces", mesh.nFaces()/100);
motionSmoother::checkMesh(false, mesh, meshQualityDict, wrongFaces);
const label nInitErrors = returnReduce
@ -117,6 +118,5 @@ int main(int argc, char *argv[])
Info<< "End\n" << endl;
return 0;
}