68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
|
| \\ / O peration | Version: 4.0 |
|
|
| \\ / A nd | Web: http://www.foam-extend.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
"(p|pFinal)" //Unstable to change settings for final - iterate more instead
|
|
{
|
|
solver PCG;
|
|
preconditioner DIC;
|
|
tolerance 1e-07;
|
|
relTol 0.01;
|
|
}
|
|
|
|
U
|
|
{
|
|
solver BiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-06;
|
|
relTol 0.1;
|
|
}
|
|
|
|
UFinal
|
|
{
|
|
$U;
|
|
relTol 0;
|
|
}
|
|
|
|
"(k|epsilon)"
|
|
{
|
|
solver BiCGStab;
|
|
preconditioner DILU;
|
|
tolerance 1e-06;
|
|
relTol 0.1;
|
|
}
|
|
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
nOuterCorrectors 10;
|
|
nCorrectors 1;
|
|
nNonOrthogonalCorrectors 1;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
p 0.3;
|
|
U 0.7;
|
|
UFinal 0.7; // To avoid sudden increase in pressure residual
|
|
k 0.7;
|
|
epsilon 0.7;
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|