Opm::BlackoilWellModelConstraints< Scalar > Class Template Reference

Class for handling constraints for the blackoil well model. More...

#include <BlackoilWellModelConstraints.hpp>

Public Member Functions

 BlackoilWellModelConstraints (const BlackoilWellModelGeneric< Scalar > &wellModel)
 Constructor initializes reference to the well model. More...
 
bool hasTHPConstraints () const
 Return true if any well has a THP constraint. More...
 
bool checkGroupConstraints (const Group &group, const int reportStepIdx, DeferredLogger &deferred_logger) const
 Check the constraints of a well group. More...
 
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. More...
 
bool actionOnBrokenConstraints (const Group &group, const int reportStepIdx, const Group::GroupLimitAction group_limit_action, const Group::ProductionCMode &newControl, const WellState< Scalar > &well_state, std::optional< std::string > &worst_offending_well, GroupState< Scalar > &group_state, DeferredLogger &deferred_logger) const
 Execute action on broken constraint for a production well group. Return true if a group control is changed. More...
 
bool updateGroupIndividualControl (const Group &group, const int reportStepIdx, std::map< std::pair< std::string, Phase >, std::string > &switched_inj, std::map< std::string, std::string > &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. More...
 

Detailed Description

template<class Scalar>
class Opm::BlackoilWellModelConstraints< Scalar >

Class for handling constraints for the blackoil well model.

Constructor & Destructor Documentation

◆ BlackoilWellModelConstraints()

template<class Scalar >
Opm::BlackoilWellModelConstraints< Scalar >::BlackoilWellModelConstraints ( const BlackoilWellModelGeneric< Scalar > &  wellModel)
inline

Constructor initializes reference to the well model.

Member Function Documentation

◆ actionOnBrokenConstraints() [1/2]

template<class Scalar >
void Opm::BlackoilWellModelConstraints< Scalar >::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.

◆ actionOnBrokenConstraints() [2/2]

template<class Scalar >
bool Opm::BlackoilWellModelConstraints< Scalar >::actionOnBrokenConstraints ( const Group &  group,
const int  reportStepIdx,
const Group::GroupLimitAction  group_limit_action,
const Group::ProductionCMode &  newControl,
const WellState< Scalar > &  well_state,
std::optional< std::string > &  worst_offending_well,
GroupState< Scalar > &  group_state,
DeferredLogger deferred_logger 
) const

Execute action on broken constraint for a production well group. Return true if a group control is changed.

◆ checkGroupConstraints()

template<class Scalar >
bool Opm::BlackoilWellModelConstraints< Scalar >::checkGroupConstraints ( const Group &  group,
const int  reportStepIdx,
DeferredLogger deferred_logger 
) const

Check the constraints of a well group.

◆ hasTHPConstraints()

template<class Scalar >
bool Opm::BlackoilWellModelConstraints< Scalar >::hasTHPConstraints ( ) const

Return true if any well has a THP constraint.

◆ updateGroupIndividualControl()

template<class Scalar >
bool Opm::BlackoilWellModelConstraints< Scalar >::updateGroupIndividualControl ( const Group &  group,
const int  reportStepIdx,
std::map< std::pair< std::string, Phase >, std::string > &  switched_inj,
std::map< std::string, std::string > &  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.


The documentation for this class was generated from the following file: