diff --git a/applications/solvers/multiphase/bubbleFoam/alphaEqn.H b/applications/solvers/multiphase/bubbleFoam/alphaEqn.H index 065aa19c6c..a985c6eb95 100644 --- a/applications/solvers/multiphase/bubbleFoam/alphaEqn.H +++ b/applications/solvers/multiphase/bubbleFoam/alphaEqn.H @@ -46,3 +46,5 @@ << " Max(alpha) = " << max(alpha).value() << endl; } + +rho = alpha*rhoa + beta*rhob; diff --git a/applications/solvers/multiphase/bubbleFoam/createFields.H b/applications/solvers/multiphase/bubbleFoam/createFields.H index 9aca6933fc..9367838a52 100644 --- a/applications/solvers/multiphase/bubbleFoam/createFields.H +++ b/applications/solvers/multiphase/bubbleFoam/createFields.H @@ -156,6 +156,16 @@ + fvc::interpolate(beta)*phib ); + volScalarField rho + ( + IOobject + ( + "rho", + runTime.timeName(), + mesh + ), + alpha*rhoa + beta*rhob + ); #include "createRASTurbulence.H" diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H b/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H index e8b056ed7e..47057c0efb 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H @@ -52,3 +52,5 @@ << endl; } } + +rho = alpha*rhoa + beta*rhob; diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H b/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H index 1fdaf944bb..8a17615715 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/createFields.H @@ -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 ( diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/boundary b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/boundary index 59f24d80d0..03d26bcf3c 100644 --- a/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/boundary +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/boundary @@ -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; } )