ractingEulerFoam: populationBalance: Refactored scaling

Refactored the function for scaling the size group volume fractions to
better handle situations in which their sum drifts away from unity.
Scaling is now turned on by default, and can be turned off in the
solution dictionary for the population balance.

Additional revision and renaming of *Polydisperse tutorials

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
This commit is contained in:
Will Bainbridge
2019-07-25 12:27:09 +01:00
parent 696d5f4941
commit b942ba07e0
47 changed files with 86 additions and 164 deletions

View File

@ -1,14 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=$(getApplication)
runApplication blockMesh
runApplication setFields
runApplication $application
runApplication $(getApplication)
# ----------------------------------------------------------------- end-of-file
#------------------------------------------------------------------------------

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
internalField uniform 1;
boundaryField
{

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
internalField uniform 1;
boundaryField
{

View File

@ -1,15 +1,12 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=$(getApplication)
runApplication blockMesh
runApplication topoSet
runApplication setFields
runApplication $application
runApplication $(getApplication)
# ----------------------------------------------------------------- end-of-file
#------------------------------------------------------------------------------

View File

@ -25,9 +25,10 @@ solvers
bubbles
{
nCorr 1;
tolerance 1e-4;
renormalize true;
nCorr 1;
tolerance 1e-4;
scale true;
solveOnFinalIterOnly true;
}
p_rgh

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
internalField uniform 1;
boundaryField
{

View File

@ -1,15 +1,12 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=$(getApplication)
runApplication blockMesh
runApplication topoSet
runApplication setFields
runApplication $application
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -81,21 +81,16 @@ populationBalanceCoeffs
coalescenceModels
(
CoulaloglouTavlarides{}
LehrMilliesMewes{}
);
binaryBreakupModels
();
(
LehrMilliesMewes{}
);
breakupModels
(
exponential
{
C 10.0;
exponent 1.0;
daughterSizeDistributionModel uniform;
}
);
();
driftModels
(

View File

@ -24,11 +24,11 @@ RAS
turbulence on;
printCoeffs on;
// mixtureKEpsilonCoeffs
// {
// Cp 1;
// C3 1;
// }
mixtureKEpsilonCoeffs
{
Cp 1;
C3 1;
}
}
// ************************************************************************* //

View File

@ -27,7 +27,7 @@ solvers
{
nCorr 1;
tolerance 1e-4;
renormalize false;
scale true;
solveOnFinalIterOnly true;
}

View File

@ -76,24 +76,16 @@ populationBalanceCoeffs
coalescenceModels
(
hydrodynamic
{
C 0.25;
}
LehrMilliesMewes{}
);
binaryBreakupModels
();
(
LehrMilliesMewes{}
);
breakupModels
(
exponential
{
C 0.5;
exponent 0.01;
daughterSizeDistributionModel uniform;
}
);
();
driftModels
(
@ -125,7 +117,13 @@ blending
}
surfaceTension
();
(
(gas and liquid)
{
type constant;
sigma 0.07;
}
);
saturationModel
{

View File

@ -25,11 +25,10 @@ solvers
bubbles
{
nCorr 1;
tolerance 1e-4;
renormalizeOnRestart true;
renormalize true;
solveOnFinalIterOnly true;
nCorr 1;
tolerance 1e-4;
scale true;
solveOnFinalIterOnly true;
}
p_rgh