20 #ifndef OPM_SINGLE_WELL_STATE_HEADER_INCLUDED
21 #define OPM_SINGLE_WELL_STATE_HEADER_INCLUDED
26 #include <opm/input/eclipse/Schedule/Well/Well.hpp>
27 #include <opm/input/eclipse/Schedule/Events.hpp>
29 #include <opm/simulators/wells/SegmentState.hpp>
30 #include <opm/simulators/wells/PerfData.hpp>
31 #include <opm/simulators/wells/ParallelWellInfo.hpp>
32 #include <opm/core/props/BlackoilPhases.hpp>
36 struct PerforationData;
43 double presssure_first_connection,
44 const std::vector<PerforationData>& perf_input,
49 std::reference_wrapper<const ParallelWellInfo> parallel_info;
51 Well::Status status{Well::Status::OPEN};
56 double temperature{0};
57 double dissolved_gas_rate{0};
58 double vaporized_oil_rate{0};
59 double vaporized_wat_rate{0};
60 std::vector<double> well_potentials;
61 std::vector<double> productivity_index;
62 std::vector<double> surface_rates;
63 std::vector<double> reservoir_rates;
68 Well::InjectorCMode injection_cmode{Well::InjectorCMode::CMODE_UNDEFINED};
69 Well::ProducerCMode production_cmode{Well::ProducerCMode::CMODE_UNDEFINED};
79 void update_producer_targets(
const Well& ecl_well,
const SummaryState& st);
80 void update_injector_targets(
const Well& ecl_well,
const SummaryState& st);
81 void update_targets(
const Well& ecl_well,
const SummaryState& st);
82 void updateStatus(Well::Status status);
91 double sum_solvent_rates()
const;
92 double sum_polymer_rates()
const;
93 double sum_brine_rates()
const;
95 double sum_connection_rates(
const std::vector<double>& connection_rates)
const;
Class encapsulating some information about parallel wells.
Definition: ParallelWellInfo.hpp:243
Definition: PerfData.hpp:30
Definition: SegmentState.hpp:33
Definition: SingleWellState.hpp:38
void reset_connection_factors(const std::vector< PerforationData > &new_perf_data)
Special purpose method to support dynamically rescaling a well's CTFs through WELPI.
Definition: SingleWellState.cpp:107
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27
Definition: BlackoilPhases.hpp:46