mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: fixed referencing of drag model in two phase system
This commit is contained in:
@ -55,8 +55,6 @@ Foam::RASModels::kineticTheoryModel::kineticTheoryModel
|
|||||||
|
|
||||||
phase_(phase),
|
phase_(phase),
|
||||||
|
|
||||||
draga_(phase.fluid().drag1()),
|
|
||||||
|
|
||||||
viscosityModel_
|
viscosityModel_
|
||||||
(
|
(
|
||||||
kineticTheoryModels::viscosityModel::New
|
kineticTheoryModels::viscosityModel::New
|
||||||
@ -401,7 +399,11 @@ void Foam::RASModels::kineticTheoryModel::correct()
|
|||||||
(
|
(
|
||||||
alpha*(1.0 - alpha),
|
alpha*(1.0 - alpha),
|
||||||
phase_.fluid().residualPhaseFraction()
|
phase_.fluid().residualPhaseFraction()
|
||||||
)*draga_.K(magUr + phase_.fluid().residualSlip())/rho
|
)
|
||||||
|
*phase_.fluid().drag(phase_).K
|
||||||
|
(
|
||||||
|
magUr + phase_.fluid().residualSlip()
|
||||||
|
)/rho
|
||||||
);
|
);
|
||||||
|
|
||||||
// Eq. 3.25, p. 50 Js = J1 - J2
|
// Eq. 3.25, p. 50 Js = J1 - J2
|
||||||
|
|||||||
@ -82,8 +82,8 @@ class kineticTheoryModel
|
|||||||
const phaseModel& phase_;
|
const phaseModel& phase_;
|
||||||
|
|
||||||
|
|
||||||
//- Drag model
|
////- Drag model
|
||||||
const dragModel& draga_;
|
//const dragModel& draga_;
|
||||||
|
|
||||||
// Sub-models
|
// Sub-models
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,7 @@ class twoPhaseSystem
|
|||||||
//- Total volumetric flux
|
//- Total volumetric flux
|
||||||
surfaceScalarField phi_;
|
surfaceScalarField phi_;
|
||||||
|
|
||||||
//-
|
//- Dilatation term
|
||||||
volScalarField dgdt_;
|
volScalarField dgdt_;
|
||||||
|
|
||||||
//- Surface tension coefficient
|
//- Surface tension coefficient
|
||||||
@ -224,7 +224,7 @@ public:
|
|||||||
return phi_;
|
return phi_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return
|
//- Return the dilatation term
|
||||||
const volScalarField& dgdt() const
|
const volScalarField& dgdt() const
|
||||||
{
|
{
|
||||||
return dgdt_;
|
return dgdt_;
|
||||||
|
|||||||
Reference in New Issue
Block a user