interFoam/ras/damBreak: updated for predictor-corrector MULES and changes to phi in pEqn

This commit is contained in:
Henry
2014-02-03 18:04:18 +00:00
parent faf867c84c
commit a67dfdb23a
8 changed files with 68 additions and 64 deletions

View File

@ -47,8 +47,8 @@ runTimeModifiable yes;
adjustTimeStep on; adjustTimeStep on;
maxCo 0.2; maxCo 1;
maxAlphaCo 0.2; maxAlphaCo 1;
maxDeltaT 1; maxDeltaT 1;

View File

@ -27,14 +27,11 @@ gradSchemes
divSchemes divSchemes
{ {
div(rhoPhi,U) Gauss linear; div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer; div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear; div(phirb,alpha) Gauss linear;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,nuTilda) Gauss upwind;
div((muEff*dev(T(grad(U))))) Gauss linear; div((muEff*dev(T(grad(U))))) Gauss linear;
} }
@ -58,7 +55,7 @@ fluxRequired
default no; default no;
p_rgh; p_rgh;
pcorr; pcorr;
alpha; alpha.water;
} }

View File

@ -17,18 +17,27 @@ FoamFile
solvers solvers
{ {
alpha.water "alpha.water.*"
{ {
nAlphaCorr 1; nAlphaCorr 2;
nAlphaSubCycles 4; nAlphaSubCycles 1;
cAlpha 2; alphaOuterCorrectors yes;
cAlpha 1;
MULESCorr yes;
nLimiterIter 3;
solver PBiCG;
preconditioner DILU;
tolerance 1e-8;
relTol 0;
} }
pcorr pcorr
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
tolerance 1e-10; tolerance 1e-5;
relTol 0; relTol 0;
} }
@ -42,35 +51,34 @@ solvers
p_rghFinal p_rghFinal
{ {
solver PCG; $p_rgh;
preconditioner DIC;
tolerance 1e-07;
relTol 0; relTol 0;
} }
"(U|k|epsilon)" "(U|k|epsilon).*"
{ {
solver PBiCG; solver smoothSolver;
preconditioner DILU; smoother symGaussSeidel;
tolerance 1e-06; tolerance 1e-06;
relTol 0; relTol 0;
} minIter 1;
"(U|k|epsilon)Final"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-08;
relTol 0;
} }
} }
PIMPLE PIMPLE
{ {
momentumPredictor no; momentumPredictor no;
nCorrectors 3; nOuterCorrectors 1;
nCorrectors 3;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
relaxationFactors
{
equations
{
".*" 1;
}
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -58,18 +58,18 @@ boundaryField
patchType cyclic; patchType cyclic;
jump uniform 0; jump uniform 0;
value uniform 0; value uniform 0;
D 700; D 1000;
I 500; I 500;
length 1.05; length 0.15;
} }
porous_half1 porous_half1
{ {
type porousBafflePressure; type porousBafflePressure;
patchType cyclic; patchType cyclic;
value uniform 0; value uniform 0;
D 700; D 1000;
I 500; I 500;
length 1.05; length 0.15;
} }
} }

View File

@ -29,7 +29,7 @@ deltaT 0.001;
writeControl adjustableRunTime; writeControl adjustableRunTime;
writeInterval 0.1; writeInterval 0.05;
purgeWrite 0; purgeWrite 0;

View File

@ -49,9 +49,9 @@ baffles
{ {
type porousBafflePressure; type porousBafflePressure;
patchType cyclic; patchType cyclic;
D 700; D 1000;
I 500; I 500;
length 1.05; length 0.15;
jump uniform 0; jump uniform 0;
value uniform 0; value uniform 0;
} }

View File

@ -27,14 +27,11 @@ gradSchemes
divSchemes divSchemes
{ {
div(rhoPhi,U) Gauss linear; div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer; div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss linear; div(phirb,alpha) Gauss linear;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind; div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;
div(R) Gauss linear;
div(phi,nuTilda) Gauss upwind;
div((muEff*dev(T(grad(U))))) Gauss linear; div((muEff*dev(T(grad(U))))) Gauss linear;
} }
@ -58,7 +55,7 @@ fluxRequired
default no; default no;
p_rgh; p_rgh;
pcorr; pcorr;
alpha; alpha.water;
} }

View File

@ -17,18 +17,27 @@ FoamFile
solvers solvers
{ {
alpha.water "alpha.water.*"
{ {
nAlphaCorr 1; nAlphaCorr 2;
nAlphaSubCycles 4; nAlphaSubCycles 1;
cAlpha 2; alphaOuterCorrectors yes;
cAlpha 1;
MULESCorr yes;
nLimiterIter 3;
solver PBiCG;
preconditioner DILU;
tolerance 1e-8;
relTol 0;
} }
pcorr pcorr
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
tolerance 1e-10; tolerance 1e-5;
relTol 0; relTol 0;
} }
@ -42,41 +51,34 @@ solvers
p_rghFinal p_rghFinal
{ {
solver PCG; $p_rgh;
preconditioner DIC;
tolerance 1e-08;
relTol 0; relTol 0;
} }
"(U|k|epsilon)" "(U|k|epsilon).*"
{ {
solver PBiCG; solver smoothSolver;
preconditioner DILU; smoother symGaussSeidel;
tolerance 1e-06; tolerance 1e-06;
relTol 0; relTol 0;
} minIter 1;
"(U|k|epsilon)Final"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-07;
relTol 0;
} }
} }
PIMPLE PIMPLE
{ {
momentumPredictor yes; momentumPredictor no;
nCorrectors 3; nOuterCorrectors 1;
nCorrectors 3;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }
relaxationFactors relaxationFactors
{ {
"U.*" 1; equations
"k.*" 1; {
"epsilon.*" 1; ".*" 1;
}
} }
// ************************************************************************* // // ************************************************************************* //