The state of a set of wells.
More...
#include <WellState.hpp>
|
typedef std::array< int, 3 > | mapentry_t |
|
typedef std::map< std::string, mapentry_t > | WellMapType |
|
|
template<class State > |
void | init (const Wells *wells, const State &state) |
|
void | init (const Wells *wells, const std::vector< double > &cellPressures) |
| Allocate and initialize if wells is non-null. More...
|
|
std::vector< double > & | bhp () |
| One bhp pressure per well.
|
|
const std::vector< double > & | bhp () const |
|
std::vector< double > & | thp () |
| One thp pressure per well.
|
|
const std::vector< double > & | thp () const |
|
std::vector< double > & | temperature () |
| One temperature per well.
|
|
const std::vector< double > & | temperature () const |
|
std::vector< double > & | wellRates () |
| One rate per well and phase.
|
|
const std::vector< double > & | wellRates () const |
|
std::vector< double > & | perfRates () |
| One rate per well connection.
|
|
const std::vector< double > & | perfRates () const |
|
std::vector< double > & | perfPress () |
| One pressure per well connection.
|
|
const std::vector< double > & | perfPress () const |
|
size_t | getRestartBhpOffset () const |
|
size_t | getRestartPerfPressOffset () const |
|
size_t | getRestartPerfRatesOffset () const |
|
size_t | getRestartTemperatureOffset () const |
|
size_t | getRestartWellRatesOffset () const |
|
const WellMapType & | wellMap () const |
|
WellMapType & | wellMap () |
|
int | numWells () const |
| The number of wells present.
|
|
int | numPhases () const |
| The number of phases present.
|
|
virtual data::Wells | report (const PhaseUsage &pu) const |
|
| WellState (const WellState &rhs) |
|
WellState & | operator= (const WellState &rhs) |
|
The state of a set of wells.
◆ init()
void Opm::WellState::init |
( |
const Wells * |
wells, |
|
|
const std::vector< double > & |
cellPressures |
|
) |
| |
|
inline |
Allocate and initialize if wells is non-null.
Also tries to give useful initial values to the bhp() and wellRates() fields, depending on controls. The perfRates() field is filled with zero, and perfPress() with -1e100.
The documentation for this class was generated from the following file: