mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Thermodynamics: Changed h-eqn to conserve total energy
This commit is contained in:
@ -31,7 +31,7 @@ divSchemes
|
||||
default none;
|
||||
|
||||
div(phi,U) Gauss limitedLinearV 1;
|
||||
div(phiU,p) Gauss limitedLinear 1;
|
||||
div(phi,K) Gauss limitedLinear 1;
|
||||
div(phid,p) Gauss limitedLinear 1;
|
||||
div(phi,k) Gauss limitedLinear 1;
|
||||
div(phi,epsilon) Gauss limitedLinear 1;
|
||||
|
||||
@ -29,7 +29,7 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
div(phiU,p) Gauss linear;
|
||||
div(phi,K) Gauss linear;
|
||||
div(phi,k) Gauss limitedLinear 0.1;
|
||||
div(phiXi,Xi) Gauss limitedLinear01 0.1;
|
||||
div(phiXi,Su) Gauss limitedLinear01 0.1;
|
||||
|
||||
@ -29,7 +29,7 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
div(phiU,p) Gauss linear;
|
||||
div(phi,K) Gauss linear;
|
||||
div(phi,k) Gauss limitedLinear 0.1;
|
||||
div(phiXi,Xi) Gauss limitedLinear01 0.1;
|
||||
div(phiXi,Su) Gauss limitedLinear01 0.1;
|
||||
|
||||
@ -30,7 +30,7 @@ divSchemes
|
||||
default none;
|
||||
div(phi,U) Gauss limitedLinearV 1;
|
||||
div(phid,p) Gauss limitedLinear 1;
|
||||
div(phiU,p) Gauss linear;
|
||||
div(phi,K) Gauss limitedLinear 1;
|
||||
div(phi,k) Gauss limitedLinear 1;
|
||||
div(phi,epsilon) Gauss limitedLinear 1;
|
||||
div(phi,R) Gauss limitedLinear 1;
|
||||
|
||||
@ -29,8 +29,8 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss upwind;
|
||||
div(phi,K) Gauss upwind;
|
||||
div(phid,p) Gauss upwind;
|
||||
div(phiU,p) Gauss linear;
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div(phi,R) Gauss upwind;
|
||||
|
||||
@ -40,7 +40,7 @@ divSchemes
|
||||
hs limitedLinear 1;
|
||||
};
|
||||
div((muEff*dev2(T(grad(U))))) Gauss linear;
|
||||
div(phiU,p) Gauss linear;
|
||||
div(phi,K) Gauss limitedLinear 1;
|
||||
div(Ji,Ii_h) Gauss upwind;
|
||||
}
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ divSchemes
|
||||
};
|
||||
div((muEff*dev2(T(grad(U))))) Gauss linear;
|
||||
div(phi,omega) Gauss limitedLinear 1;
|
||||
div(phiU,p) Gauss linear;
|
||||
div(phi,K) Gauss limitedLinear 1;
|
||||
div(U) Gauss linear;
|
||||
div(Ji,Ii_h) Gauss upwind;
|
||||
}
|
||||
|
||||
@ -24,7 +24,8 @@ boundaryField
|
||||
{
|
||||
type MarshakRadiation;
|
||||
T T;
|
||||
emissivity 1;
|
||||
emissivityMode lookup;
|
||||
emissivity uniform 1.0;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,25 +15,31 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
3
|
||||
4
|
||||
(
|
||||
base
|
||||
{
|
||||
type patch;
|
||||
nFaces 3600;
|
||||
nFaces 3456;
|
||||
startFace 637200;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 3600;
|
||||
startFace 640800;
|
||||
startFace 640656;
|
||||
}
|
||||
sides
|
||||
{
|
||||
type patch;
|
||||
nFaces 14400;
|
||||
startFace 644400;
|
||||
startFace 644256;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 144;
|
||||
startFace 658656;
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -29,6 +29,7 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
div(phi,K) Gauss linear;
|
||||
div(phi,k) Gauss limitedLinear 0.1;
|
||||
div(phi,Yi_hs) Gauss multivariateSelection
|
||||
{
|
||||
@ -40,7 +41,6 @@ divSchemes
|
||||
hs limitedLinear 1;
|
||||
};
|
||||
div((muEff*dev2(T(grad(U))))) Gauss linear;
|
||||
div(phiU,p) Gauss linear;
|
||||
div(Ji,Ii_h) Gauss upwind;
|
||||
}
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ divSchemes
|
||||
div(phi,U) Gauss limitedLinearV 1;
|
||||
div(phi,Yi_h) Gauss limitedLinear01 1;
|
||||
div(phi,h) Gauss limitedLinear 1;
|
||||
div(phiU,p) Gauss limitedLinear 1;
|
||||
div(phi,K) Gauss limitedLinear 1;
|
||||
div(phid,p) Gauss limitedLinear 1;
|
||||
div(phi,epsilon) Gauss limitedLinear 1;
|
||||
div(phi,k) Gauss limitedLinear 1;
|
||||
|
||||
@ -29,14 +29,14 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
|
||||
div(phi,U) Gauss upwind; //limitedLinearV 1; //upwind;
|
||||
div(phi,U) Gauss upwind;
|
||||
div((muEff*dev2(T(grad(U))))) Gauss linear;
|
||||
div(phi,h) Gauss upwind; //limitedLinear 1; //upwind;
|
||||
div(phi,h) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div(phi,k) Gauss upwind;
|
||||
|
||||
div(phid,p) Gauss upwind;
|
||||
div(U,p) Gauss linear;
|
||||
div(phi,K) Gauss upwind;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
@ -46,24 +46,18 @@ laplacianSchemes
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default none;
|
||||
interpolate(rho) linear;
|
||||
div(U,p) upwind phi;
|
||||
interpolate((psi*U)) linear;
|
||||
interpolate(U) linear;
|
||||
UD upwind phid;
|
||||
interpolate(p) linear;
|
||||
interpolate(((rho|(A(U)-H(1)))-(rho|A(U)))) linear;
|
||||
default linear;
|
||||
UD upwind phid;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
default no;
|
||||
p;
|
||||
pCorr;
|
||||
}
|
||||
|
||||
@ -17,14 +17,6 @@ FoamFile
|
||||
|
||||
solvers
|
||||
{
|
||||
p0
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-08;
|
||||
relTol 0.01;
|
||||
}
|
||||
|
||||
p
|
||||
{
|
||||
solver GAMG;
|
||||
@ -40,120 +32,7 @@ solvers
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
U0
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
U1
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
nSweeps 1;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
U
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
nFinestSweeps 2;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 20;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
h0
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
nSweeps 1;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
h
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
nFinestSweeps 2;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 20;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
k0
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
k1
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
nSweeps 1;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
k
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
nFinestSweeps 2;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 20;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
epsilon0
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
epsilon1
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
nSweeps 1;
|
||||
tolerance 1e-08;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
epsilon
|
||||
"(U|h|k|epsilon)"
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-08;
|
||||
@ -182,31 +61,15 @@ relaxationFactors
|
||||
fields
|
||||
{
|
||||
p 1;
|
||||
rho 1; //0.1;
|
||||
rho 1;
|
||||
}
|
||||
equations
|
||||
{
|
||||
U 0.9;
|
||||
h 0.95;
|
||||
h 0.8;
|
||||
k 0.9;
|
||||
epsilon 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
relaxationFactors0
|
||||
{
|
||||
fields
|
||||
{
|
||||
p 0.3;
|
||||
rho 0.1;
|
||||
}
|
||||
equations
|
||||
{
|
||||
U 0.7;
|
||||
h 0.7;
|
||||
k 0.7;
|
||||
epsilon 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -28,6 +28,7 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss limitedLinear 0.2;
|
||||
div(phi,K) Gauss limitedLinear 0.2;
|
||||
div(phi,h) Gauss limitedLinear 0.2;
|
||||
div(phi,k) Gauss limitedLinear 0.2;
|
||||
div(phi,epsilon) Gauss limitedLinear 0.2;
|
||||
|
||||
@ -28,6 +28,7 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss limitedLinear 0.2;
|
||||
div(phi,K) Gauss limitedLinear 0.2;
|
||||
div(phi,h) Gauss limitedLinear 0.2;
|
||||
div(phi,k) Gauss limitedLinear 0.2;
|
||||
div(phi,epsilon) Gauss limitedLinear 0.2;
|
||||
|
||||
@ -30,6 +30,7 @@ divSchemes
|
||||
default none;
|
||||
div(phi,U) Gauss upwind;
|
||||
div(phi,h) Gauss upwind;
|
||||
div(phi,K) Gauss upwind;
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div(phi,R) Gauss upwind;
|
||||
|
||||
@ -29,6 +29,7 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss upwind;
|
||||
div(phi,K) Gauss upwind;
|
||||
div(phi,h) Gauss upwind;
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
|
||||
@ -29,6 +29,7 @@ divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss upwind;
|
||||
div(phi,K) Gauss upwind;
|
||||
div(phi,h) Gauss upwind;
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
|
||||
Reference in New Issue
Block a user