ENH: twoPhaseEulerFoam: modified noBlending to handle cases where only the segregated model is used
This commit is contained in:
parent
f54ea84f6d
commit
1fdafa42d6
1 changed files with 23 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ Foam::tmp<Foam::volScalarField> Foam::blendingMethods::noBlending::f1
|
|||
(
|
||||
"f",
|
||||
dimless,
|
||||
phase1.name() == continuousPhase_
|
||||
phase2.name() != continuousPhase_
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
@ -101,7 +101,28 @@ Foam::tmp<Foam::volScalarField> Foam::blendingMethods::noBlending::f2
|
|||
const phaseModel& phase2
|
||||
) const
|
||||
{
|
||||
return f1(phase1, phase2);
|
||||
const fvMesh& mesh(phase1.mesh());
|
||||
|
||||
return
|
||||
tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"f",
|
||||
mesh.time().timeName(),
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar
|
||||
(
|
||||
"f",
|
||||
dimless,
|
||||
phase1.name() == continuousPhase_
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue