MULES: Added support for predictor-corrector formulation to interFoam and LTSInterFoam

This commit is contained in:
Henry
2013-10-27 21:00:46 +00:00
parent 7c1bc90fc5
commit b994d6a11f
24 changed files with 847 additions and 621 deletions

View File

@ -17,7 +17,7 @@ FoamFile
application interFoam;
startFrom latestTime;
startFrom startTime;
startTime 0;
@ -25,7 +25,7 @@ stopAt endTime;
endTime 100;
deltaT 0.01;
deltaT 0.1;
writeControl adjustableRunTime;
@ -46,8 +46,9 @@ timePrecision 6;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxCo 6;
maxAlphaCo 6;
maxDeltaT 1;
functions

View File

@ -27,12 +27,13 @@ gradSchemes
divSchemes
{
div(rho*phi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
default none;
div(phi,k) Gauss upwind;
div(phi,omega) $div(phi,k);
div(rho*phi,U) Gauss linearUpwind grad(U);
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
"div\(phi,(k|omega)\)" Gauss upwind;
div((muEff*dev(T(grad(U))))) Gauss linear;
}

View File

@ -20,8 +20,16 @@ solvers
alpha.water
{
nAlphaCorr 1;
nAlphaSubCycles 3;
nAlphaSubCycles 1;
cAlpha 1;
MULESCorr yes;
nLimiterIter 3;
solver PBiCG;
preconditioner DILU;
tolerance 1e-8;
relTol 0;
}
pcorr
@ -30,9 +38,9 @@ solvers
preconditioner
{
preconditioner GAMG;
tolerance 1e-05;
tolerance 1e-5;
relTol 0;
smoother DICGaussSeidel;
smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
nFinestSweeps 2;
@ -41,31 +49,43 @@ solvers
agglomerator faceAreaPair;
mergeLevels 1;
}
tolerance 1e-10;
tolerance 1e-5;
relTol 0;
maxIter 100;
maxIter 50;
}
p_rgh
{
$pcorr;
tolerance 1e-6;
relTol 0.01;
solver GAMG;
tolerance 5e-9;
relTol 0.01;
smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
maxIter 50;
};
p_rghFinal
{
$p_rgh;
tolerance 1e-6;
tolerance 5e-9;
relTol 0;
}
"(U|k|omega).*"
{
solver smoothSolver;
smoother GaussSeidel;
smoother symGaussSeidel;
nSweeps 1;
tolerance 1e-7;
tolerance 1e-6;
relTol 0.1;
};
}
@ -84,6 +104,7 @@ relaxationFactors
}
equations
{
".*" 1;
}
}

View File

@ -32,7 +32,6 @@ divSchemes
div(phi,k) Gauss linearUpwind grad(k);
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
UD Gauss upwind;
div((muEff*dev(T(grad(U))))) Gauss linear;
}