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.
59 lines
1.5 KiB
C++
59 lines
1.5 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 polyBoundaryMesh;
|
|
location "constant/polyMesh";
|
|
object boundary;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
6
|
|
(
|
|
inlet
|
|
{
|
|
type patch;
|
|
nFaces 40;
|
|
startFace 15760;
|
|
}
|
|
outlet
|
|
{
|
|
type patch;
|
|
nFaces 4;
|
|
startFace 15800;
|
|
}
|
|
bottomWall
|
|
{
|
|
type patch;
|
|
nFaces 200;
|
|
startFace 15804;
|
|
}
|
|
endWall
|
|
{
|
|
type wall;
|
|
nFaces 36;
|
|
startFace 16004;
|
|
}
|
|
top
|
|
{
|
|
type patch;
|
|
nFaces 200;
|
|
startFace 16040;
|
|
}
|
|
frontAndBack
|
|
{
|
|
type empty;
|
|
nFaces 16000;
|
|
startFace 16240;
|
|
}
|
|
)
|
|
|
|
// ************************************************************************* //
|