chtMultiRegionFoam: Changed solid energy from enthalpy to internal energy

The solid is currently assumed incompressible (the solid pressure is not
updated) and in general would be near incompressible so internal energy is a
more appropriate energy choice than enthalpy which would require a pressure work
term currently not implemented.  Additionally due to the way in which the
conduction is handled in terms of the gradient of energy the accuracy of the
current enthalpy implementation is sensitive to the pressure distribution as
this introduces an enthalpy gradient from the p/rho term which would need to be
corrected; this issue is avoided by solving for internal energy instead.

This improvement requires the scheme and solver settings for the solids in
chtMultiRegionFoam cases to be changed from "h" to "e" and the thermo-physical
properties in <solid>/thermophysicalProperties to be set to the corresponding
internal energy forms, e.g.:

    thermo          eConst;
    .
    .
    .
    energy          sensibleInternalEnergy;

All tutorials have be updated to reflect this and provide guidance when updating
cases.
This commit is contained in:
Henry Weller
2020-06-10 15:38:54 +01:00
parent f2ad07bd12
commit c109bec4cc
31 changed files with 1335 additions and 82 deletions

View File

@ -19,10 +19,10 @@ thermoType
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
thermo eConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
mixture
@ -41,7 +41,7 @@ mixture
thermodynamics
{
Hf 0;
Cp 896; // [J/kg/K]
Cv 896; // [J/kg/K]
}
equationOfState

View File

@ -19,10 +19,10 @@ thermoType
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
thermo eConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
mixture
@ -41,7 +41,7 @@ mixture
thermodynamics
{
Hf 0;
Cp 385; // [J/kg/K]
Cv 385; // [J/kg/K]
}
equationOfState

View File

@ -37,7 +37,7 @@ fixedPower
sources
{
h
e
{
explicit $power;
implicit 0;

View File

@ -24,7 +24,7 @@ porousToair
master true;
nbrModel airToporous;
fields (h);
fields (e);
semiImplicit no;
}

View File

@ -28,7 +28,7 @@ options
sources
{
h
e
{
explicit 1e7; // W/m^3 == kg/m/s^3
implicit 0;

View File

@ -20,10 +20,10 @@ thermoType
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
thermo eConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
mixture
@ -45,7 +45,7 @@ mixture
thermodynamics
{
Hf 0;
Cp 450;
Cv 450;
}
}

View File

@ -20,10 +20,10 @@ thermoType
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
thermo eConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
mixture
@ -45,7 +45,7 @@ mixture
thermodynamics
{
Hf 0;
Cp 900;
Cv 900;
}
}

View File

@ -33,7 +33,7 @@ divSchemes
laplacianSchemes
{
default none;
laplacian(alpha,h) Gauss linear corrected;
laplacian(alpha,e) Gauss linear corrected;
}
interpolationSchemes

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
h
e
{
solver GAMG;
smoother symGaussSeidel;
@ -25,9 +25,9 @@ solvers
relTol 0.1;
}
hFinal
eFinal
{
$h;
$e;
relTol 0;
}
}

View File

@ -33,7 +33,7 @@ divSchemes
laplacianSchemes
{
default none;
laplacian(alpha,h) Gauss linear corrected;
laplacian(alpha,e) Gauss linear corrected;
}
interpolationSchemes

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
h
e
{
solver GAMG;
smoother symGaussSeidel;
@ -25,9 +25,9 @@ solvers
relTol 0.1;
}
hFinal
eFinal
{
$h;
$e;
relTol 0;
}
}

View File

@ -19,10 +19,10 @@ thermoType
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
thermo eConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
mixture
@ -38,7 +38,7 @@ mixture
thermodynamics
{
Hf 0;
Cp 450;
Cv 450;
}
transport
{

View File

@ -32,7 +32,7 @@ divSchemes
laplacianSchemes
{
default none;
laplacian(alpha,h) Gauss linear corrected;
laplacian(alpha,e) Gauss linear corrected;
}
interpolationSchemes

View File

@ -16,7 +16,7 @@ FoamFile
solvers
{
h
e
{
solver PCG;
preconditioner DIC;
@ -24,9 +24,9 @@ solvers
relTol 0.1;
}
hFinal
eFinal
{
$h;
$e;
tolerance 1e-06;
relTol 0;
}
@ -41,7 +41,7 @@ relaxationFactors
{
equations
{
h 0.7;
e 0.7;
}
}

View File

@ -20,10 +20,10 @@ thermoType
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
thermo eConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
mixture
@ -45,7 +45,7 @@ mixture
thermodynamics
{
Hf 0;
Cp 900;
Cv 900;
}
}

View File

@ -33,7 +33,7 @@ divSchemes
laplacianSchemes
{
default none;
laplacian(alpha,h) Gauss linear corrected;
laplacian(alpha,e) Gauss linear corrected;
}
interpolationSchemes

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
"h.*"
"e.*"
{
solver GAMG;
smoother symGaussSeidel;