opm-simulators
Opm::GroupStateHelpers::TargetCalculator< Scalar, IndexTraits > Class Template Reference

Based on a group control mode, extract or calculate rates, and provide other conveniences. More...

#include <TargetCalculator.hpp>

Public Types

using GroupStateHelperType = Opm::GroupStateHelper< Scalar, IndexTraits >
 

Public Member Functions

 TargetCalculator (const GroupStateHelperType &groupStateHelper, const std::vector< Scalar > &resv_coeff, const Group &group)
 
 TargetCalculator (const GroupStateHelperType &groupStateHelper, const std::vector< Scalar > &resv_coeff, Group::ProductionCMode cmode)
 Construct with an explicit production control mode (not read from group state). More...
 
template<typename RateType >
RateType calcModeRateFromRates (const std::vector< RateType > &rates) const
 
template<typename RateType >
RateType calcModeRateFromRates (const RateType *rates) const
 

Detailed Description

template<typename Scalar, typename IndexTraits>
class Opm::GroupStateHelpers::TargetCalculator< Scalar, IndexTraits >

Based on a group control mode, extract or calculate rates, and provide other conveniences.

Constructor & Destructor Documentation

◆ TargetCalculator()

template<typename Scalar , typename IndexTraits >
Opm::GroupStateHelpers::TargetCalculator< Scalar, IndexTraits >::TargetCalculator ( const GroupStateHelperType groupStateHelper,
const std::vector< Scalar > &  resv_coeff,
Group::ProductionCMode  cmode 
)

Construct with an explicit production control mode (not read from group state).

Used when computing targets/limits for non-active rate types.


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