diff --git a/applications/solvers/multiphase/bubbleFoam/alphaEqn.H b/applications/solvers/multiphase/bubbleFoam/alphaEqn.H index 065aa19c6c..a985c6eb95 100644 --- a/applications/solvers/multiphase/bubbleFoam/alphaEqn.H +++ b/applications/solvers/multiphase/bubbleFoam/alphaEqn.H @@ -46,3 +46,5 @@ << " Max(alpha) = " << max(alpha).value() << endl; } + +rho = alpha*rhoa + beta*rhob; diff --git a/applications/solvers/multiphase/bubbleFoam/createFields.H b/applications/solvers/multiphase/bubbleFoam/createFields.H index 9aca6933fc..9367838a52 100644 --- a/applications/solvers/multiphase/bubbleFoam/createFields.H +++ b/applications/solvers/multiphase/bubbleFoam/createFields.H @@ -156,6 +156,16 @@ + fvc::interpolate(beta)*phib ); + volScalarField rho + ( + IOobject + ( + "rho", + runTime.timeName(), + mesh + ), + alpha*rhoa + beta*rhob + ); #include "createRASTurbulence.H" diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H b/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H index e8b056ed7e..47057c0efb 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H @@ -52,3 +52,5 @@ << endl; } } + +rho = alpha*rhoa + beta*rhob; diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H b/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H index 1fdaf944bb..8a17615715 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H @@ -145,6 +145,16 @@ fvc::interpolate(alpha)*phia + fvc::interpolate(beta)*phib ); + volScalarField rho + ( + IOobject + ( + "rho", + runTime.timeName(), + mesh + ), + alpha*rhoa + beta*rhob + ); IOdictionary RASProperties ( diff --git a/bin/tools/CleanFunctions b/bin/tools/CleanFunctions index e7a5da0753..4a2015febf 100644 --- a/bin/tools/CleanFunctions +++ b/bin/tools/CleanFunctions @@ -61,12 +61,17 @@ cleanTimeDirectories () cleanCase () { cleanTimeDirectories + rm -rf processor* > /dev/null 2>&1 + rm -rf probes* > /dev/null 2>&1 + rm -rf forces* > /dev/null 2>&1 - rm -rf constant/polyMesh/{allOwner*,cell*,face*,meshModifiers*} \ + rm -rf system/machines \ + constant/polyMesh/{allOwner*,cell*,face*,meshModifiers*} \ constant/polyMesh/{owner*,neighbour*,point*,edge*} \ constant/polyMesh/{cellLevel*,pointLevel*,refinementHistory*,surfaceIndex*} \ - constant/{cellLevel*,pointLevel*} \ + constant/{cellToRegion,cellLevel*,pointLevel*} \ constant/polyMesh/sets/ \ + VTK \ > /dev/null 2>&1 for f in `find . -name "*Dict"` @@ -76,13 +81,6 @@ cleanCase () done } -cleanParallelCase () -{ - cleanCase - - rm -rf processor* > /dev/null 2>&1 -} - removeCase () { echo "Removing $case case" diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions index 6907b291ef..e2c335b05b 100644 --- a/bin/tools/RunFunctions +++ b/bin/tools/RunFunctions @@ -37,12 +37,13 @@ getApplication () runApplication () { APP_RUN=$1; shift + APP_NAME=${APP_RUN##*/} - if [ -f log.$APP_RUN ] ; then - echo "$APP_RUN already run on $PWD: remove log file to run" + if [ -f log.$APP_NAME ] ; then + echo "$APP_NAME already run on $PWD: remove log file to run" else echo "Running $APP_RUN on $PWD" - $APP_RUN $* > log.$APP_RUN 2>&1 + $APP_RUN $* > log.$APP_NAME 2>&1 fi } @@ -53,18 +54,8 @@ runParallel () if [ -f $log.$APP_RUN ] ; then echo "$APP_RUN already run on $PWD: remove log file to run" else - if [ "$WM_MPLIB" = LAM ] - then - echo "Starting LAM using $2 machines file" - lamboot -v $2 - fi echo "Running $APP_RUN in parallel on $PWD using $1 processes" ( mpirun -np $1 $APP_RUN -parallel < /dev/null > log.$APP_RUN 2>&1 ) - if [ "$WM_MPLIB" = LAM ] - then - echo "Stopping LAM" - lamclean - fi fi } diff --git a/src/lagrangian/dieselSpray/spray/spray.C b/src/lagrangian/dieselSpray/spray/spray.C index b6ab574d1d..3280fefdc9 100644 --- a/src/lagrangian/dieselSpray/spray/spray.C +++ b/src/lagrangian/dieselSpray/spray/spray.C @@ -67,6 +67,7 @@ Foam::spray::spray time0_(runTime_.value()), mesh_(U.mesh()), rndGen_(label(0)), + g_(g.value()), U_(U), rho_(rho), @@ -181,7 +182,6 @@ Foam::spray::spray ), subCycles_(readLabel(sprayProperties_.lookup("subCycles"))), - g_(g.value()), gasProperties_(gasProperties), composition_(composition), diff --git a/src/lagrangian/dieselSpray/spray/spray.H b/src/lagrangian/dieselSpray/spray/spray.H index 27ec6a43ec..60127656e7 100644 --- a/src/lagrangian/dieselSpray/spray/spray.H +++ b/src/lagrangian/dieselSpray/spray/spray.H @@ -79,6 +79,9 @@ class spray //- Random number generator Random rndGen_; + //- Acceleration due to gravity + const vector& g_; + // References to the physical fields @@ -93,14 +96,14 @@ class spray //- Ambient Pressure - scalar ambientPressure_; + scalar ambientPressure_; //- Ambient Temperature - scalar ambientTemperature_; + scalar ambientTemperature_; //- The injectors - IOPtrList injectors_; + IOPtrList injectors_; // References to the spray sub-models @@ -121,10 +124,6 @@ class spray const label subCycles_; - //- Acceleration due to gravity - const vector& g_; - - // Composition properties const PtrList& gasProperties_; diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C index e473102c1a..650cb7ddcb 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloud.C @@ -249,10 +249,10 @@ template void Foam::KinematicCloud::info() const { Info<< "Cloud: " << this->name() << nl - << " Parcels added during this run = " + << " Total number of parcels added = " << returnReduce(this->injection().parcelsAddedTotal(), sumOp