settlingFoam: Changed to solving for pmh (static pressure minus hydrostatic pressure).

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.
This commit is contained in:
henry
2010-01-28 16:06:08 +00:00
parent b1b7fbec65
commit 3b038c3702
14 changed files with 149 additions and 42 deletions

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object p;
object pmh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6.x |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/

View File

@ -39,7 +39,7 @@ laplacianSchemes
{
default none;
laplacian(muEff,U) Gauss linear corrected;
laplacian((rho*(1|A(U))),p) Gauss linear corrected;
laplacian((rho*(1|A(U))),pmh) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
laplacian(mut,Alpha) Gauss linear corrected;
@ -58,7 +58,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
pmh ;
}

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
p
pmh
{
solver PCG;
preconditioner DIC;

View File

@ -57,7 +57,8 @@ boundaryField
WALL6
{
type fixedValue;
type translatingWallVelocity;
U (-0.003 0 0);
value uniform (-0.003 0 0);
}

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object p;
object pmh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -28,27 +28,32 @@ boundaryField
INLE1
{
type zeroGradient;
type buoyantPressure;
value uniform 0;
}
OUTL9
{
type zeroGradient;
type buoyantPressure;
value uniform 0;
}
OUTL10
{
type zeroGradient;
type buoyantPressure;
value uniform 0;
}
OUTL11
{
type zeroGradient;
type buoyantPressure;
value uniform 0;
}
OUTL12
{
type zeroGradient;
type buoyantPressure;
value uniform 0;
}
WALL6

View File

@ -3,4 +3,4 @@
# Clean time folders only
rm -rf *[1-9]*
rm -f log.* 2>/dev/null
rm log.*

View File

@ -17,7 +17,7 @@ FoamFile
application settlingFoam;
startFrom startTime;
startFrom latestTime;
startTime 0;

View File

@ -39,7 +39,7 @@ laplacianSchemes
{
default none;
laplacian(muEff,U) Gauss linear corrected;
laplacian((rho*(1|A(U))),p) Gauss linear corrected;
laplacian((rho*(1|A(U))),pmh) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
laplacian(mut,Alpha) Gauss linear corrected;
@ -58,7 +58,7 @@ snGradSchemes
fluxRequired
{
default no;
p ;
pmh ;
}

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
p
pmh
{
solver PCG;
preconditioner DIC;
@ -68,9 +68,17 @@ solvers
PISO
{
nCorrectors 2;
momentumPredictor yes;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
U 1;
k 1;
epsilon 1;
}
// ************************************************************************* //