ENH: Update icoReactingMultiPhaseInterFoam tutorials

This commit is contained in:
sergio
2021-03-18 11:16:27 -07:00
parent 85ff3d39d4
commit 5c4d714b45
6 changed files with 33 additions and 14 deletions

View File

@ -39,6 +39,14 @@ solvers
cYi 1; cYi 1;
} }
"pcorr.*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-5;
relTol 0;
}
"(U.*|epsilon.*|k.*)" "(U.*|epsilon.*|k.*)"
{ {
solver smoothSolver; solver smoothSolver;

View File

@ -29,7 +29,7 @@ deltaT 1e-5;
writeControl adjustable; writeControl adjustable;
writeInterval 0.02; writeInterval 0.01;
purgeWrite 0; purgeWrite 0;

View File

@ -29,7 +29,7 @@ divSchemes
{ {
default none; default none;
div(rhoPhi,U) Gauss linearUpwind gradU; div(rhoPhi,U) Gauss limitedLinearV 1;
"div\(phi,alpha.*\)" Gauss vanLeer; "div\(phi,alpha.*\)" Gauss vanLeer;
"div\(phir,alpha.*\)" Gauss linear; "div\(phir,alpha.*\)" Gauss linear;

View File

@ -39,7 +39,7 @@ solvers
); );
nAlphaCorr 2; nAlphaCorr 2;
nAlphaSubCycles 2; nAlphaSubCycles 3;
// Compressiion factor for species in each alpha phase // Compressiion factor for species in each alpha phase
// NOTE: It should be similar to cAlpha // NOTE: It should be similar to cAlpha
@ -74,14 +74,11 @@ solvers
p_rgh p_rgh
{ {
solver PCG; solver GAMG;
preconditioner DIC; smoother DICGaussSeidel;
tolerance 1e-9; tolerance 1e-11;
relTol 0.01; relTol 0.01;
nPreSweeps 0;
nPostSweeps 2;
cacheAgglomeration true; cacheAgglomeration true;
nCellsInCoarsestLevel 10; nCellsInCoarsestLevel 10;
@ -94,10 +91,19 @@ solvers
$p_rgh; $p_rgh;
relTol 0; relTol 0;
}; };
"pcorr.*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-5;
relTol 0;
}
} }
PIMPLE PIMPLE
{ {
correctPhi false;
momentumPredictor false; momentumPredictor false;
nOuterCorrectors 1; nOuterCorrectors 1;
nCorrectors 4; nCorrectors 4;

View File

@ -49,6 +49,11 @@ solvers
relTol 0; relTol 0;
} }
"pcorr.*"
{
$p_rgh;
}
"U.*" "U.*"
{ {
solver smoothSolver; solver smoothSolver;

View File

@ -36,7 +36,7 @@ solvers
relTol 0; relTol 0;
} }
pcorr "pcorr.*"
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;