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() << " Max(alpha) = " << max(alpha).value()
<< endl; << endl;
} }
rho = alpha*rhoa + beta*rhob;

View File

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

View File

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

View File

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

View File

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