mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
The Phi field is read if available otherwise created automatically with boundary conditions obtained automatically from the pressure field if available (with optional name) otherwise inferred from the velocity field. Phi Laplacian scheme and solver specification are required. See tutorials for examples.
122 lines
2.4 KiB
C++
122 lines
2.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
rho
|
|
{
|
|
solver PCG;
|
|
preconditioner DIC;
|
|
tolerance 1e-05;
|
|
relTol 0.1;
|
|
}
|
|
|
|
rhoFinal
|
|
{
|
|
$rho;
|
|
tolerance 1e-05;
|
|
relTol 0;
|
|
}
|
|
|
|
"(U|k|omega)"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-06;
|
|
relTol 0.1;
|
|
}
|
|
|
|
"(U|k|omega)Final"
|
|
{
|
|
$U;
|
|
tolerance 1e-06;
|
|
relTol 0;
|
|
}
|
|
|
|
p
|
|
{
|
|
solver GAMG;
|
|
tolerance 0;
|
|
relTol 0.05;
|
|
smoother DICGaussSeidel;
|
|
nPreSweeps 0;
|
|
nPostSweeps 2;
|
|
cacheAgglomeration true;
|
|
nCellsInCoarsestLevel 10;
|
|
agglomerator faceAreaPair;
|
|
mergeLevels 1;
|
|
}
|
|
|
|
pFinal
|
|
{
|
|
$p;
|
|
tolerance 1e-06;
|
|
relTol 0;
|
|
}
|
|
|
|
Phi
|
|
{
|
|
$p;
|
|
}
|
|
|
|
"(Yi|O2|N2|H2O)"
|
|
{
|
|
solver PBiCG;
|
|
preconditioner DILU;
|
|
tolerance 1e-6;
|
|
relTol 0;
|
|
}
|
|
h
|
|
{
|
|
$Yi;
|
|
relTol 0.1;
|
|
}
|
|
hFinal
|
|
{
|
|
$Yi;
|
|
}
|
|
}
|
|
|
|
potentialFlow
|
|
{
|
|
// Used for potentialFoam initialisation
|
|
nNonOrthogonalCorrectors 5;
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
transonic no;
|
|
nOuterCorrectors 1;
|
|
nCorrectors 3;
|
|
nNonOrthogonalCorrectors 0;
|
|
momentumPredictor yes;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
fields
|
|
{
|
|
}
|
|
equations
|
|
{
|
|
".*" 1;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|