mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
multiphaseEulerFoam: Change the specification of the residual drag and smooth the drag phase-fraction pre-factor
* The residual drag is now specified in terms of a residual phase-fraction and slip-velocity. * The drag phase-fraction pre-factor is smoothed so that the computational molecule matches that of the transport terms.
This commit is contained in:
@ -46,11 +46,17 @@ Foam::dragModel::dragModel
|
|||||||
interfaceDict_(interfaceDict),
|
interfaceDict_(interfaceDict),
|
||||||
phase1_(phase1),
|
phase1_(phase1),
|
||||||
phase2_(phase2),
|
phase2_(phase2),
|
||||||
residualDrag_
|
residualPhaseFraction_
|
||||||
(
|
(
|
||||||
"residualDrag",
|
"residualPhaseFraction",
|
||||||
dimensionSet(1, -3, -1, 0, 0),
|
dimless,
|
||||||
interfaceDict.lookup("residualDrag")
|
interfaceDict.lookup("residualPhaseFraction")
|
||||||
|
),
|
||||||
|
residualSlip_
|
||||||
|
(
|
||||||
|
"residualSlip",
|
||||||
|
dimVelocity,
|
||||||
|
interfaceDict.lookup("residualSlip")
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,8 @@ protected:
|
|||||||
const dictionary& interfaceDict_;
|
const dictionary& interfaceDict_;
|
||||||
const phaseModel& phase1_;
|
const phaseModel& phase1_;
|
||||||
const phaseModel& phase2_;
|
const phaseModel& phase2_;
|
||||||
dimensionedScalar residualDrag_;
|
dimensionedScalar residualPhaseFraction_;
|
||||||
|
dimensionedScalar residualSlip_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -117,9 +118,14 @@ public:
|
|||||||
return phase2_;
|
return phase2_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const dimensionedScalar& residualDrag() const
|
const dimensionedScalar& residualPhaseFraction() const
|
||||||
{
|
{
|
||||||
return residualDrag_;
|
return residualPhaseFraction_;
|
||||||
|
}
|
||||||
|
|
||||||
|
const dimensionedScalar& residualSlip() const
|
||||||
|
{
|
||||||
|
return residualSlip_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- the dragfunction K used in the momentum eq.
|
//- the dragfunction K used in the momentum eq.
|
||||||
|
|||||||
@ -30,6 +30,7 @@ License
|
|||||||
#include "MULES.H"
|
#include "MULES.H"
|
||||||
#include "fvcSnGrad.H"
|
#include "fvcSnGrad.H"
|
||||||
#include "fvcFlux.H"
|
#include "fvcFlux.H"
|
||||||
|
#include "fvcAverage.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -626,9 +627,20 @@ Foam::multiphaseSystem::dragCoeffs() const
|
|||||||
(
|
(
|
||||||
iter.key(),
|
iter.key(),
|
||||||
(
|
(
|
||||||
dm.phase1()*dm.phase2()
|
max
|
||||||
*dm.K(mag(dm.phase1().U() - dm.phase2().U()))
|
(
|
||||||
+ dm.residualDrag()
|
fvc::average(dm.phase1())*fvc::average(dm.phase2()),
|
||||||
|
//dm.phase1()*dm.phase2(),
|
||||||
|
dm.residualPhaseFraction()
|
||||||
|
)
|
||||||
|
*dm.K
|
||||||
|
(
|
||||||
|
max
|
||||||
|
(
|
||||||
|
mag(dm.phase1().U() - dm.phase2().U()),
|
||||||
|
dm.residualSlip()
|
||||||
|
)
|
||||||
|
)
|
||||||
).ptr()
|
).ptr()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user