ENH: Arrhenius viscocity model and energyTransport function-object

- Arrhenius viscocity model for incompressible viscocity.

- energyTransport FO for incompressible single and multiple phase
  flows and viscousDissipation fvOption source.

- Tutorial to show the use of energyTransport:
     multiphase/multiphaseInterFoam/laminar/mixerVessel2D

- Tutorial to show viscousDissipation:
     compressible/rhoPimpleFoam/RAS/TJunction
This commit is contained in:
sergio
2017-10-25 10:17:55 -07:00
committed by Mark Olesen
parent 11da9bdc36
commit ffabc42dbf
37 changed files with 1667 additions and 12541 deletions

View File

@ -9,35 +9,14 @@ FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
class dictionary;
location "constant";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
viscousDissipation
{
rotor
{
type noSlip;
}
stator
{
type noSlip;
}
front
{
type empty;
}
back
{
type empty;
}
type viscousDissipation;
enabled true;
}
// ************************************************************************* //

View File

@ -10,19 +10,20 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
dimensions [0 0 0 1 0 0 0];
internalField uniform 0;
internalField uniform 300;
boundaryField
{
rotor
{
type zeroGradient;
type fixedValue;
value uniform 305;
}
stator

View File

@ -2,7 +2,6 @@
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase
rm 0/alphas > /dev/null 2>&1
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,6 +3,10 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication ./makeMesh
restore0Dir
topoSet
setFields
setsToZones -noFlipMap
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -5,4 +5,3 @@ blockMesh
topoSet
setsToZones -noFlipMap
#------------------------------------------------------------------------------

View File

@ -52,5 +52,62 @@ maxAlphaCo 0.5;
maxDeltaT 1;
functions
{
sTransport
{
type energyTransport;
libs ("libsolverFunctionObjects.so");
enabled true;
writeControl outputTime;
writeInterval 1;
field T;
rho rho;
phi rhoPhi;
write true;
phaseThermos
{
alpha.air
{
Cp 1e3;
kappa 0.0243;
}
alpha.mercury
{
Cp 140;
kappa 8.2;
}
alpha.oil
{
Cp 2e3;
kappa 0.2;
}
alpha.water
{
Cp 4e3;
kappa 0.6;
}
}
fvOptions
{
viscousDissipation
{
type viscousDissipation;
enabled true;
viscousDissipationCoeffs
{
fields (T);
rho rho; //rho Field
}
}
}
}
}
// ************************************************************************* //

View File

@ -31,6 +31,7 @@ divSchemes
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,T) Gauss limitedLinear 1;
}
laplacianSchemes

View File

@ -48,7 +48,7 @@ solvers
relTol 0;
}
U
"(U|T)"
{
solver smoothSolver;
smoother symGaussSeidel;
@ -71,7 +71,7 @@ relaxationFactors
{
equations
{
"U.*" 1;
".*" 1;
}
}