70 lines
1.6 KiB
C++
70 lines
1.6 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
|
| \\ / O peration | Version: 4.1 |
|
|
| \\ / A nd | Web: http://www.foam-extend.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
p
|
|
{
|
|
solver BiCGStab;
|
|
preconditioner DILU;
|
|
|
|
// solver CG;
|
|
// preconditioner DIC;
|
|
|
|
minIter 1;
|
|
maxIter 1000;
|
|
tolerance 1e-7;
|
|
relTol 0;
|
|
}
|
|
|
|
U
|
|
{
|
|
solver smoothSolver;
|
|
smoother GaussSeidel;
|
|
nSweeps 1;
|
|
|
|
// solver BiCGStab;
|
|
// preconditioner DILU;
|
|
|
|
minIter 1;
|
|
maxIter 1000;
|
|
tolerance 1e-7;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
|
|
SIMPLE
|
|
{
|
|
pRefCell 0;
|
|
pRefValue 0;
|
|
}
|
|
|
|
|
|
relaxationFactors
|
|
{
|
|
fields
|
|
{
|
|
p 0.3;
|
|
}
|
|
equations
|
|
{
|
|
U 0.5;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|