mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
multiphaseInterFoam: No need for refPhase with MULES
This commit is contained in:
@ -64,7 +64,6 @@ Foam::multiphaseMixture::multiphaseMixture
|
|||||||
:
|
:
|
||||||
transportModel(U, phi),
|
transportModel(U, phi),
|
||||||
phases_(lookup("phases"), phase::iNew(U, phi)),
|
phases_(lookup("phases"), phase::iNew(U, phi)),
|
||||||
refPhase_(*phases_.lookup(word(lookup("refPhase")))),
|
|
||||||
|
|
||||||
mesh_(U.mesh()),
|
mesh_(U.mesh()),
|
||||||
U_(U),
|
U_(U),
|
||||||
@ -335,7 +334,7 @@ void Foam::multiphaseMixture::correctContactAngle
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
const volScalarField::GeometricBoundaryField& gbf
|
const volScalarField::GeometricBoundaryField& gbf
|
||||||
= refPhase_.boundaryField();
|
= alpha1.boundaryField();
|
||||||
|
|
||||||
const fvBoundaryMesh& boundary = mesh_.boundary();
|
const fvBoundaryMesh& boundary = mesh_.boundary();
|
||||||
|
|
||||||
@ -549,8 +548,20 @@ void Foam::multiphaseMixture::solveAlphas
|
|||||||
|
|
||||||
MULES::limitSum(phiAlphaCorrs);
|
MULES::limitSum(phiAlphaCorrs);
|
||||||
|
|
||||||
rhoPhi_ = 0.0*phi_*refPhase_.rho();
|
rhoPhi_ = dimensionedScalar("0", dimensionSet(1, 0, -1, 0, 0), 0);
|
||||||
volScalarField sumAlpha("sumAlpha", 0.0*refPhase_);
|
|
||||||
|
volScalarField sumAlpha
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"sumAlpha",
|
||||||
|
mesh_.time().timeName(),
|
||||||
|
mesh_
|
||||||
|
),
|
||||||
|
mesh_,
|
||||||
|
dimensionedScalar("sumAlpha", dimless, 0)
|
||||||
|
);
|
||||||
|
|
||||||
phasei = 0;
|
phasei = 0;
|
||||||
|
|
||||||
forAllIter(PtrDictionary<phase>, phases_, iter)
|
forAllIter(PtrDictionary<phase>, phases_, iter)
|
||||||
|
|||||||
@ -136,10 +136,6 @@ private:
|
|||||||
//- Dictionary of phases
|
//- Dictionary of phases
|
||||||
PtrDictionary<phase> phases_;
|
PtrDictionary<phase> phases_;
|
||||||
|
|
||||||
//- The phase chosen as reference, the one which is derived from
|
|
||||||
// the others such thatr they sum to 1
|
|
||||||
phase& refPhase_;
|
|
||||||
|
|
||||||
const fvMesh& mesh_;
|
const fvMesh& mesh_;
|
||||||
const volVectorField& U_;
|
const volVectorField& U_;
|
||||||
const surfaceScalarField& phi_;
|
const surfaceScalarField& phi_;
|
||||||
|
|||||||
Reference in New Issue
Block a user