tutorials/combustion/fireFoam/les/oppositeBurningPanels: Improved schemes and BCs

This commit is contained in:
Henry Weller
2015-11-14 19:31:06 +00:00
parent e8eb1707b5
commit e8b453cc1d
5 changed files with 31 additions and 34 deletions

View File

@ -27,13 +27,6 @@ boundaryField
value $internalField; value $internalField;
} }
top
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}
burner burner
{ {
type flowRateInletVelocity; type flowRateInletVelocity;
@ -41,7 +34,7 @@ boundaryField
value uniform (0 0 0); value uniform (0 0 0);
} }
sides "(top|sides)"
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
phi phi; phi phi;

View File

@ -27,19 +27,13 @@ boundaryField
value $internalField; value $internalField;
} }
top
{
type zeroGradient;
value $internalField;
}
burner burner
{ {
type fixedFluxPressure; type fixedFluxPressure;
value $internalField; value $internalField;
} }
sides "(top|sides)"
{ {
type totalPressure; type totalPressure;
U U; U U;

View File

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class uniformDimensionedScalarField;
location "constant";
object hRef;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 0 0 0 0 0];
value 4.2;
// ************************************************************************* //

View File

@ -28,9 +28,10 @@ gradSchemes
divSchemes divSchemes
{ {
default none; default none;
div(phi,U) Gauss limitedLinear 1; div(phi,U) Gauss LUST grad(U);
div(phi,K) Gauss limitedLinear 1;
div(phi,k) Gauss limitedLinear 1; div(phi,k) Gauss limitedLinear 1;
div(phi,Yi_h) Gauss multivariateSelection div(phi,Yi_h) Gauss multivariateSelection
{ {
O2 linearUpwind grad(O2); O2 linearUpwind grad(O2);
N2 linearUpwind grad(N2); N2 linearUpwind grad(N2);
@ -40,7 +41,6 @@ divSchemes
h linearUpwind grad(h); h linearUpwind grad(h);
}; };
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phi,K) Gauss limitedLinear 1;
div(Ji,Ii_h) Gauss upwind; div(Ji,Ii_h) Gauss upwind;
} }

View File

@ -17,7 +17,7 @@ FoamFile
solvers solvers
{ {
rho "rho.*"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
@ -25,12 +25,6 @@ solvers
relTol 0; relTol 0;
}; };
"(rho)Final"
{
$rho;
relTol 0;
}
p_rgh p_rgh
{ {
solver GAMG; solver GAMG;
@ -39,18 +33,16 @@ solvers
smoother GaussSeidel; smoother GaussSeidel;
cacheAgglomeration true; cacheAgglomeration true;
nCellsInCoarsestLevel 10; nCellsInCoarsestLevel 10;
agglomerator faceAreaPair; agglomerator faceAreaPair;
mergeLevels 1; mergeLevels 1;
}; };
p_rghFinal p_rghFinal
{ {
$p_rgh; $p_rgh;
tolerance 1e-6;
relTol 0; relTol 0;
}; };
"(U|Yi|k|h|omega)" "(U|Yi|k|h|omega)"
{ {
solver PBiCG; solver PBiCG;
@ -63,11 +55,9 @@ solvers
"(U|Yi|k|h|omega)Final" "(U|Yi|k|h|omega)Final"
{ {
$U; $U;
tolerance 1e-6;
relTol 0; relTol 0;
}; };
Ii Ii
{ {
solver GAMG; solver GAMG;
@ -90,7 +80,6 @@ solvers
tolerance 1e-04; tolerance 1e-04;
relTol 0; relTol 0;
} }
} }
PIMPLE PIMPLE
@ -105,9 +94,9 @@ relaxationFactors
{ {
equations equations
{ {
"(U|k).*" 1; ".*" 1;
"(C3H8|O2|H2O|CO2|h).*" 1;
} }
} }
// ************************************************************************* // // ************************************************************************* //