20 #ifndef OPM_WELLSTATEFULLYIMPLICITBLACKOILSOLVENT_HEADER_INCLUDED 21 #define OPM_WELLSTATEFULLYIMPLICITBLACKOILSOLVENT_HEADER_INCLUDED 23 #include <opm/autodiff/WellStateFullyImplicitBlackoil.hpp> 35 const std::vector<double>&
solventFraction()
const {
return solvent_fraction_; }
37 data::Wells report(
const PhaseUsage &pu)
const override {
38 data::Wells res = WellStateFullyImplicitBlackoil::report(pu);
40 const int nw = WellState::numWells();
48 const int np = BaseType::numPhases();
53 for(
auto w = 0; w < nw; ++w ) {
54 using rt = data::Rates::opt;
55 double solvent_well_rate = 0.0;
56 for (
int perf = wells_->well_connpos[w]; perf < wells_->well_connpos[w+1]; ++perf ) {
58 solvent_well_rate += solvent_rate_this;
61 res.at( wells_->name[ w ]).rates.set( rt::solvent, solvent_well_rate );
68 std::vector<double> solvent_fraction_;
73 #endif // OPM_WELLSTATEFULLYIMPLICITBLACKOILSOLVENT_HEADER_INCLUDED Definition: WellStateFullyImplicitBlackoilSolvent.hpp:28
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: AdditionalObjectDeleter.hpp:22
std::vector< double > & perfPhaseRates()
One rate per phase and well connection.
Definition: WellStateFullyImplicitBlackoil.hpp:230
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition: WellStateFullyImplicitBlackoil.hpp:44
std::vector< double > & solventFraction()
One solvent fraction per well connection.
Definition: WellStateFullyImplicitBlackoilSolvent.hpp:34