Added rho for the buoyantPressure BC.

This commit is contained in:
henry
2009-07-10 14:42:23 +01:00
parent ccf35fb5b6
commit 5a83c4660c
5 changed files with 32 additions and 8 deletions

View File

@ -46,3 +46,5 @@
<< " Max(alpha) = " << max(alpha).value()
<< endl;
}
rho = alpha*rhoa + beta*rhob;

View File

@ -156,6 +156,16 @@
+ fvc::interpolate(beta)*phib
);
volScalarField rho
(
IOobject
(
"rho",
runTime.timeName(),
mesh
),
alpha*rhoa + beta*rhob
);
#include "createRASTurbulence.H"

View File

@ -52,3 +52,5 @@
<< endl;
}
}
rho = alpha*rhoa + beta*rhob;

View File

@ -145,6 +145,16 @@
fvc::interpolate(alpha)*phia + fvc::interpolate(beta)*phib
);
volScalarField rho
(
IOobject
(
"rho",
runTime.timeName(),
mesh
),
alpha*rhoa + beta*rhob
);
IOdictionary RASProperties
(

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -21,25 +21,25 @@ FoamFile
{
type patch;
nFaces 51;
startFace 15151;
startFace 57362;
}
outlet
{
type patch;
nFaces 51;
startFace 15202;
startFace 57413;
}
walls
{
type wall;
nFaces 436;
startFace 15253;
nFaces 836;
startFace 57464;
}
frontBack
{
type empty;
nFaces 15420;
startFace 15689;
nFaces 57540;
startFace 58300;
}
)