mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
move getWQTotal to StandardWellPrimaryVariables
This commit is contained in:
@@ -73,11 +73,6 @@ protected:
|
|||||||
|
|
||||||
const WellInterfaceIndices<FluidSystem,Indices,Scalar>& baseif_;
|
const WellInterfaceIndices<FluidSystem,Indices,Scalar>& baseif_;
|
||||||
|
|
||||||
const EvalWell& getWQTotal() const
|
|
||||||
{
|
|
||||||
return primary_variables_.evaluation_[WQTotal];
|
|
||||||
}
|
|
||||||
|
|
||||||
EvalWell extendEval(const Eval& in) const;
|
EvalWell extendEval(const Eval& in) const;
|
||||||
|
|
||||||
// computing the accumulation term for later use in well mass equations
|
// computing the accumulation term for later use in well mass equations
|
||||||
|
|||||||
@@ -139,6 +139,11 @@ public:
|
|||||||
return evaluation_[Bhp];
|
return evaluation_[Bhp];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const EvalWell& getWQTotal() const
|
||||||
|
{
|
||||||
|
return evaluation_[WQTotal];
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//! \brief Calculate a relaxation factor for producers.
|
//! \brief Calculate a relaxation factor for producers.
|
||||||
//! \details To avoid overshoot of the fractions which might result in negative rates.
|
//! \details To avoid overshoot of the fractions which might result in negative rates.
|
||||||
|
|||||||
@@ -547,7 +547,7 @@ namespace Opm
|
|||||||
assembleControlEq(well_state, group_state,
|
assembleControlEq(well_state, group_state,
|
||||||
schedule, summaryState,
|
schedule, summaryState,
|
||||||
this->primary_variables_.numWellEq(),
|
this->primary_variables_.numWellEq(),
|
||||||
this->getWQTotal(),
|
this->primary_variables_.getWQTotal(),
|
||||||
this->primary_variables_.getBhp(),
|
this->primary_variables_.getBhp(),
|
||||||
gQ,
|
gQ,
|
||||||
this->getRho(),
|
this->getRho(),
|
||||||
|
|||||||
Reference in New Issue
Block a user