This commit is contained in:
Hrvoje Jasak 2011-07-07 14:22:14 +01:00
parent 6208a5ccd1
commit 25c5d9847a
2 changed files with 29 additions and 8 deletions

View file

@ -1,14 +1,16 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \ -I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \
-I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \ -I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/engine/lnInclude \ -I$(LIB_SRC)/engine/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude $(WM_DECOMP_INC)
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-ldynamicMesh \
-ldynamicFvMesh \ -ldynamicFvMesh \
-lmeshTools \ -lmeshTools \
-ldynamicMesh \
-lengine \ -lengine \
-lmeshTools $(WM_DECOMP_LIBS) \
-llduSolvers

View file

@ -26,7 +26,7 @@ Application
moveDynamicMesh moveDynamicMesh
Description Description
Mesh motion and topological mesh changes run for an engine geometry Mesh motion and topological mesh changes utility for an engine geometry
Author Author
Hrvoje Jasak, Wikki Ltd. All rights reserved Hrvoje Jasak, Wikki Ltd. All rights reserved
@ -41,11 +41,11 @@ Author
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
# include "setRootCase.H" # include "setRootCase.H"
# include "createEngineTime.H" # include "createEngineTime.H"
# include "createEngineDynamicMesh.H" # include "createEngineDynamicMesh.H"
<<<<<<< HEAD
scalar totalVolume = sum(mesh.V()).value(); scalar totalVolume = sum(mesh.V()).value();
Info<< "Reading field U\n" << endl; Info<< "Reading field U\n" << endl;
@ -76,15 +76,34 @@ int main(int argc, char *argv[])
zeroGradientFvPatchScalarField::typeName zeroGradientFvPatchScalarField::typeName
); );
=======
fileName path = runTime.caseName();
OFstream volFile(path+"/totVol.Cyl");
>>>>>>> Engine updates: parallelisation of topo changes
while (runTime.loop()) while (runTime.loop())
{ {
Info<< "Time = " << runTime.timeName() << endl; Info<< "Time = " << runTime.timeName() << endl;
mesh.update(); volFile << runTime.timeName() << "\t" << sum(mesh.V()).value() << endl;
// mesh.checkMesh(true);
# include "checkTotalVolume.H" if (isDir(runTime.path()/"VTK"))
{
Info << "Clear VTK directory" << endl;
rmDir(runTime.path()/"VTK");
}
mesh.update();
# include "checkVolContinuity.H"
if(checkEngineMesh)
{
mesh.checkMesh(true);
}
volFile << runTime.timeName() << tab << sum(mesh.V()).value() << endl;
runTime.write(); runTime.write();