multiphaseEulerFoam, turbulentDispersionModel: Corrected face-force for multiphase case

This is a completion of commit 64da7a2c. The fix has now also been
applied to the face-momentum equation.
This commit is contained in:
Will Bainbridge
2022-01-11 11:22:09 +00:00
parent cc96abda03
commit 32b656f8a7
6 changed files with 35 additions and 85 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2018-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -26,6 +26,7 @@ License
#include "phaseForces.H"
#include "addToRunTimeSelectionTable.H"
#include "BlendedInterfacialModel.H"
#include "fvcGrad.H"
#include "dragModel.H"
#include "virtualMassModel.H"
#include "liftModel.H"
@ -277,7 +278,12 @@ bool Foam::functionObjects::phaseForces::execute()
if (fluid_.foundBlendedSubModel<turbulentDispersionModel>(pair))
{
*forceFields_[turbulentDispersionModel::typeName] +=
nonDragForce<turbulentDispersionModel>(pair);
fluid_.lookupBlendedSubModel<turbulentDispersionModel>
(
pair
).D()
*(&pair.phase1() == &phase_ ? -1 : +1)
*fvc::grad(pair.phase1()/(pair.phase1() + pair.phase2()));
}
}
}