Opm::GroupState< Scalar > Class Template Reference

#include <GroupState.hpp>

Inheritance diagram for Opm::GroupState< Scalar >:
Inheritance graph

Public Member Functions

 GroupState ()=default
 
 GroupState (std::size_t num_phases)
 
bool operator== (const GroupState &other) const
 
bool has_production_rates (const std::string &gname) const
 
void update_production_rates (const std::string &gname, const std::vector< Scalar > &rates)
 
const std::vector< Scalar > & production_rates (const std::string &gname) const
 
bool has_production_reduction_rates (const std::string &gname) const
 
void update_production_reduction_rates (const std::string &gname, const std::vector< Scalar > &rates)
 
const std::vector< Scalar > & production_reduction_rates (const std::string &gname) const
 
bool has_injection_reduction_rates (const std::string &gname) const
 
void update_injection_reduction_rates (const std::string &gname, const std::vector< Scalar > &rates)
 
const std::vector< Scalar > & injection_reduction_rates (const std::string &gname) const
 
bool has_injection_reservoir_rates (const std::string &gname) const
 
void update_injection_reservoir_rates (const std::string &gname, const std::vector< Scalar > &rates)
 
const std::vector< Scalar > & injection_reservoir_rates (const std::string &gname) const
 
bool has_injection_surface_rates (const std::string &gname) const
 
void update_injection_surface_rates (const std::string &gname, const std::vector< Scalar > &rates)
 
const std::vector< Scalar > & injection_surface_rates (const std::string &gname) const
 
void update_injection_rein_rates (const std::string &gname, const std::vector< Scalar > &rates)
 
const std::vector< Scalar > & injection_rein_rates (const std::string &gname) const
 
void update_injection_vrep_rate (const std::string &gname, Scalar rate)
 
Scalar injection_vrep_rate (const std::string &gname) const
 
void update_grat_sales_target (const std::string &gname, Scalar target)
 
Scalar grat_sales_target (const std::string &gname) const
 
bool has_grat_sales_target (const std::string &gname) const
 
void update_gpmaint_target (const std::string &gname, Scalar target)
 
Scalar gpmaint_target (const std::string &gname) const
 
bool has_gpmaint_target (const std::string &gname) const
 
bool has_production_control (const std::string &gname) const
 
void production_control (const std::string &gname, Group::ProductionCMode cmode)
 
Group::ProductionCMode production_control (const std::string &gname) const
 
bool has_injection_control (const std::string &gname, Phase phase) const
 
void injection_control (const std::string &gname, Phase phase, Group::InjectionCMode cmode)
 
Group::InjectionCMode injection_control (const std::string &gname, Phase phase) const
 
std::size_t data_size () const
 
std::size_t collect (Scalar *data) const
 
std::size_t distribute (const Scalar *data)
 
GPMaint::State & gpmaint (const std::string &gname)
 
template<class Comm >
void communicate_rates (const Comm &comm)
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 

Static Public Member Functions

static GroupState serializationTestObject ()
 

Constructor & Destructor Documentation

◆ GroupState() [1/2]

template<class Scalar >
Opm::GroupState< Scalar >::GroupState ( )
default

◆ GroupState() [2/2]

template<class Scalar >
Opm::GroupState< Scalar >::GroupState ( std::size_t  num_phases)
explicit

Member Function Documentation

◆ collect()

template<class Scalar >
std::size_t Opm::GroupState< Scalar >::collect ( Scalar *  data) const

◆ communicate_rates()

template<class Scalar >
template<class Comm >
void Opm::GroupState< Scalar >::communicate_rates ( const Comm comm)
inline

◆ data_size()

template<class Scalar >
std::size_t Opm::GroupState< Scalar >::data_size ( ) const

◆ distribute()

template<class Scalar >
std::size_t Opm::GroupState< Scalar >::distribute ( const Scalar *  data)

◆ gpmaint()

template<class Scalar >
GPMaint::State & Opm::GroupState< Scalar >::gpmaint ( const std::string &  gname)

◆ gpmaint_target()

template<class Scalar >
Scalar Opm::GroupState< Scalar >::gpmaint_target ( const std::string &  gname) const

◆ grat_sales_target()

template<class Scalar >
Scalar Opm::GroupState< Scalar >::grat_sales_target ( const std::string &  gname) const

◆ has_gpmaint_target()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_gpmaint_target ( const std::string &  gname) const

◆ has_grat_sales_target()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_grat_sales_target ( const std::string &  gname) const

◆ has_injection_control()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_injection_control ( const std::string &  gname,
Phase  phase 
) const

◆ has_injection_reduction_rates()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_injection_reduction_rates ( const std::string &  gname) const

◆ has_injection_reservoir_rates()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_injection_reservoir_rates ( const std::string &  gname) const

◆ has_injection_surface_rates()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_injection_surface_rates ( const std::string &  gname) const

◆ has_production_control()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_production_control ( const std::string &  gname) const

◆ has_production_rates()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_production_rates ( const std::string &  gname) const

◆ has_production_reduction_rates()

template<class Scalar >
bool Opm::GroupState< Scalar >::has_production_reduction_rates ( const std::string &  gname) const

◆ injection_control() [1/2]

template<class Scalar >
Group::InjectionCMode Opm::GroupState< Scalar >::injection_control ( const std::string &  gname,
Phase  phase 
) const

◆ injection_control() [2/2]

template<class Scalar >
void Opm::GroupState< Scalar >::injection_control ( const std::string &  gname,
Phase  phase,
Group::InjectionCMode  cmode 
)

◆ injection_reduction_rates()

template<class Scalar >
const std::vector< Scalar > & Opm::GroupState< Scalar >::injection_reduction_rates ( const std::string &  gname) const

◆ injection_rein_rates()

template<class Scalar >
const std::vector< Scalar > & Opm::GroupState< Scalar >::injection_rein_rates ( const std::string &  gname) const

◆ injection_reservoir_rates()

template<class Scalar >
const std::vector< Scalar > & Opm::GroupState< Scalar >::injection_reservoir_rates ( const std::string &  gname) const

◆ injection_surface_rates()

template<class Scalar >
const std::vector< Scalar > & Opm::GroupState< Scalar >::injection_surface_rates ( const std::string &  gname) const

◆ injection_vrep_rate()

template<class Scalar >
Scalar Opm::GroupState< Scalar >::injection_vrep_rate ( const std::string &  gname) const

◆ operator==()

template<class Scalar >
bool Opm::GroupState< Scalar >::operator== ( const GroupState< Scalar > &  other) const

◆ production_control() [1/2]

template<class Scalar >
Group::ProductionCMode Opm::GroupState< Scalar >::production_control ( const std::string &  gname) const

◆ production_control() [2/2]

template<class Scalar >
void Opm::GroupState< Scalar >::production_control ( const std::string &  gname,
Group::ProductionCMode  cmode 
)

◆ production_rates()

template<class Scalar >
const std::vector< Scalar > & Opm::GroupState< Scalar >::production_rates ( const std::string &  gname) const

◆ production_reduction_rates()

template<class Scalar >
const std::vector< Scalar > & Opm::GroupState< Scalar >::production_reduction_rates ( const std::string &  gname) const

◆ serializationTestObject()

template<class Scalar >
static GroupState Opm::GroupState< Scalar >::serializationTestObject ( )
static

◆ serializeOp()

template<class Scalar >
template<class Serializer >
void Opm::GroupState< Scalar >::serializeOp ( Serializer &  serializer)
inline

◆ update_gpmaint_target()

template<class Scalar >
void Opm::GroupState< Scalar >::update_gpmaint_target ( const std::string &  gname,
Scalar  target 
)

◆ update_grat_sales_target()

template<class Scalar >
void Opm::GroupState< Scalar >::update_grat_sales_target ( const std::string &  gname,
Scalar  target 
)

◆ update_injection_reduction_rates()

template<class Scalar >
void Opm::GroupState< Scalar >::update_injection_reduction_rates ( const std::string &  gname,
const std::vector< Scalar > &  rates 
)

◆ update_injection_rein_rates()

template<class Scalar >
void Opm::GroupState< Scalar >::update_injection_rein_rates ( const std::string &  gname,
const std::vector< Scalar > &  rates 
)

◆ update_injection_reservoir_rates()

template<class Scalar >
void Opm::GroupState< Scalar >::update_injection_reservoir_rates ( const std::string &  gname,
const std::vector< Scalar > &  rates 
)

◆ update_injection_surface_rates()

template<class Scalar >
void Opm::GroupState< Scalar >::update_injection_surface_rates ( const std::string &  gname,
const std::vector< Scalar > &  rates 
)

◆ update_injection_vrep_rate()

template<class Scalar >
void Opm::GroupState< Scalar >::update_injection_vrep_rate ( const std::string &  gname,
Scalar  rate 
)

◆ update_production_rates()

template<class Scalar >
void Opm::GroupState< Scalar >::update_production_rates ( const std::string &  gname,
const std::vector< Scalar > &  rates 
)

◆ update_production_reduction_rates()

template<class Scalar >
void Opm::GroupState< Scalar >::update_production_reduction_rates ( const std::string &  gname,
const std::vector< Scalar > &  rates 
)

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