diff --git a/applications/solvers/multiphase/bubbleFoam/alphaEqn.H b/applications/solvers/multiphase/bubbleFoam/alphaEqn.H index 065aa19c6c93e1f02c327f3e98b2eb149c0f7ad3..a985c6eb95e1c9c5eb11c531912503351e19296c 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 9aca6933fc300f754f064f3b2ad95c05168e7fdd..9367838a52bcfa3d43337c70396d7c865e4c2504 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 e8b056ed7e8b4b39099790cb2b922b5540eb1a69..47057c0efb44ce9bfa26e50a70fc0588dd3df682 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 1fdaf944bb4dcfa00a07a3c51fbe5e26ef69afb7..8a176157152c6b3042870796b53644f7e467aeaf 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 59f24d80d0f357d27a4b9bfd10777011d610ffa8..03d26bcf3c96c86ca8ecf11604193892ebc80d29 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; } )