Skip to content
Snippets Groups Projects
Commit b842081c authored by william's avatar william
Browse files

BUG: fixed referencing of drag model in two phase system

parent 0e135f4f
Branches
Tags
No related merge requests found
......@@ -55,8 +55,6 @@ Foam::RASModels::kineticTheoryModel::kineticTheoryModel
phase_(phase),
draga_(phase.fluid().drag1()),
viscosityModel_
(
kineticTheoryModels::viscosityModel::New
......@@ -401,7 +399,11 @@ void Foam::RASModels::kineticTheoryModel::correct()
(
alpha*(1.0 - alpha),
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
......
......@@ -82,8 +82,8 @@ class kineticTheoryModel
const phaseModel& phase_;
//- Drag model
const dragModel& draga_;
////- Drag model
//const dragModel& draga_;
// Sub-models
......
......@@ -82,7 +82,7 @@ class twoPhaseSystem
//- Total volumetric flux
surfaceScalarField phi_;
//-
//- Dilatation term
volScalarField dgdt_;
//- Surface tension coefficient
......@@ -224,7 +224,7 @@ public:
return phi_;
}
//- Return
//- Return the dilatation term
const volScalarField& dgdt() const
{
return dgdt_;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment