move getWQTotal to StandardWellPrimaryVariables

This commit is contained in:
Arne Morten Kvarving
2022-11-09 11:39:50 +01:00
parent fbf99889b2
commit 23a8aed4e8
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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(),