engineCompRatio: Updated to use the engine fvMeshMover

This commit is contained in:
Henry Weller
2021-11-06 00:39:04 +00:00
parent 451fbb40d4
commit 730b8163b5
2 changed files with 4 additions and 7 deletions

View File

@ -1,10 +1,8 @@
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/engine/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lengine \
-ldynamicMesh \
-lfiniteVolume \
-lmeshTools

View File

@ -32,7 +32,6 @@ Description
\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "engineMesh.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -40,7 +39,7 @@ int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"
#include "createEngineMesh.H"
#include "createMesh.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -62,7 +61,7 @@ int main(int argc, char *argv[])
runTime.setDeltaT(t0);
runTime++;
Info<< "CA = " << runTime.userTimeValue() << endl;
mesh.move();
mesh.update();
}
scalar Vmax = sum(mesh.V().field());
@ -73,14 +72,14 @@ int main(int argc, char *argv[])
runTime.setDeltaT(t1);
runTime++;
Info<< "CA = " << runTime.userTimeValue() << endl;
mesh.move();
mesh.update();
}
scalar Vmin = sum(mesh.V().field());
Info<< "\nVmax = " << Vmax;
Info<< ", Vmin = " << Vmin << endl;
Info<< "Vmax/Vmin = " << Vmax/Vmin << endl;
Info<< "Compression ratio Vmax/Vmin = " << Vmax/Vmin << endl;
Info<< "\nEnd\n" << endl;
return 0;