23#ifndef OPM_BLACKOILWELLMODEL_CONSTRAINTS_HEADER_INCLUDED
24#define OPM_BLACKOILWELLMODEL_CONSTRAINTS_HEADER_INCLUDED
26#include <opm/input/eclipse/Schedule/Group/Group.hpp>
32template<
class Scalar>
class BlackoilWellModelGeneric;
34template<
class Scalar>
class GroupState;
36template<
class Scalar>
class WellState;
45 : wellModel_(wellModel)
74 std::map<std::string, std::array<std::vector<Group::InjectionCMode>, 3>>&
switched_inj,
75 std::map<std::string, std::vector<Group::ProductionCMode>>&
switched_prod,
83 std::pair<Group::InjectionCMode, Scalar>
84 checkGroupInjectionConstraints(
const Group& group,
86 const Phase& phase)
const;
89 std::pair<Group::ProductionCMode, Scalar>
90 checkGroupProductionConstraints(
const Group& group,
Class for handling constraints for the blackoil well model.
Definition BlackoilWellModelConstraints.hpp:41
bool updateGroupIndividualControl(const Group &group, const int reportStepIdx, const int max_number_of_group_switch, std::map< std::string, std::array< std::vector< Group::InjectionCMode >, 3 > > &switched_inj, std::map< std::string, std::vector< Group::ProductionCMode > > &switched_prod, std::map< std::string, std::pair< std::string, std::string > > &closed_offending_wells, GroupState< Scalar > &group_state, WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const
Update the individual controls for wells in a group. Return true if a group control is changed.
Definition BlackoilWellModelConstraints.cpp:564
bool checkGroupConstraints(const Group &group, const int reportStepIdx, DeferredLogger &deferred_logger) const
Check the constraints of a well group.
Definition BlackoilWellModelConstraints.cpp:395
void actionOnBrokenConstraints(const Group &group, const Group::InjectionCMode &newControl, const Phase &controlPhase, GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) const
Execute action for broken constraint for an injection well group.
Definition BlackoilWellModelConstraints.cpp:433
BlackoilWellModelConstraints(const BlackoilWellModelGeneric< Scalar > &wellModel)
Constructor initializes reference to the well model.
Definition BlackoilWellModelConstraints.hpp:44
Class for handling the blackoil well model.
Definition BlackoilWellModelGeneric.hpp:92
Definition DeferredLogger.hpp:57
Definition GroupState.hpp:43
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:66
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242