20 #ifndef OPM_SINGLE_COMP_WELL_STATE_HPP 21 #define OPM_SINGLE_COMP_WELL_STATE_HPP 23 #include <opm/input/eclipse/Schedule/Well/WellEnums.hpp> 24 #include <opm/simulators/wells/PerforationData.hpp> 32 template <
typename Scalar>
38 std::size_t num_phases,
39 std::size_t num_components);
42 const std::size_t num_phases,
43 const CompositionalConfig& comp_config);
45 std::vector<Scalar> pressure {};
46 std::vector<Scalar> surface_phase_rates {};
47 std::vector<Scalar> reservoir_phase_rates {};
48 std::vector<Scalar> total_molar_fractions {};
51 std::vector<Scalar> transmissibility_factor {};
52 std::vector<int> satnum_id {};
53 std::vector<std::size_t> ecl_index {};
56 template <
typename Flu
idSystem>
60 using Scalar =
typename FluidSystem::Scalar;
63 const CompositionalConfig& comp_config,
64 const Scalar temperature,
71 WellStatus status{WellStatus::OPEN};
73 Scalar temperature{0};
75 std::vector<Scalar> surface_phase_rates;
76 std::vector<Scalar> phase_fractions;
77 std::vector<Scalar> reservoir_phase_rates;
79 std::vector<Scalar> total_molar_fractions;
81 std::vector<std::vector<Scalar> > phase_molar_fractions;
83 CompConnectionData<Scalar> connection_data;
85 WellInjectorCMode injection_cmode{WellInjectorCMode::CMODE_UNDEFINED};
86 WellProducerCMode production_cmode{WellProducerCMode::CMODE_UNDEFINED};
91 void update_producer_targets(
const Well& well,
92 const std::vector<std::vector<Scalar>>& cell_mole_fractions,
93 const SummaryState& st);
95 void update_injector_targets(
const Well& well,
const SummaryState& st);
97 void copyRuntimeStateFrom(
const SingleCompWellState& other);
99 Scalar get_total_surface_rate()
const;
104 #include "SingleCompWellState_impl.hpp" 106 #endif // OPM_SINGLE_COMP_WELL_STATE_HPP Definition: CompWellPrimaryVariables.hpp:32
Definition: SingleCompWellState.hpp:33
Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45
Static data associated with a well perforation.
Definition: BlackoilWellModelRestart.hpp:41