mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
While p and pmh (pd in OpenFOAM-1.5.?) are equivalent on orthogonal meshes they are not on non-orthogonal meshes and the difference is very important for buoyancy-dominated flows such as settling. settlingFoam is now written in terms of pmh (static pressure minus hydrostatic pressure) which used to be called pd but that confused too may people.
85 lines
1.9 KiB
C++
85 lines
1.9 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: 1.6 |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
pmh
|
|
{
|
|
solver PCG;
|
|
preconditioner DIC;
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
}
|
|
|
|
U
|
|
{
|
|
solver PBiCG;
|
|
preconditioner DILU;
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
}
|
|
|
|
k
|
|
{
|
|
solver PBiCG;
|
|
preconditioner DILU;
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
}
|
|
|
|
epsilon
|
|
{
|
|
solver PBiCG;
|
|
preconditioner DILU;
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
}
|
|
|
|
rho
|
|
{
|
|
solver PCG;
|
|
preconditioner DIC;
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
}
|
|
|
|
Alpha
|
|
{
|
|
solver PBiCG;
|
|
preconditioner DILU;
|
|
tolerance 1e-07;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
PISO
|
|
{
|
|
momentumPredictor yes;
|
|
nOuterCorrectors 1;
|
|
nCorrectors 2;
|
|
nNonOrthogonalCorrectors 0;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
U 1;
|
|
k 1;
|
|
epsilon 1;
|
|
}
|
|
|
|
// ************************************************************************* //
|