Public Types | |
typedef AutoDiffBlock< double > | ADB |
Public Member Functions | |
VFPInjProperties () | |
Empty constructor. | |
VFPInjProperties (const VFPInjTable *inj_table) | |
Constructor Takes *no* ownership of data. | |
VFPInjProperties (const std::map< int, VFPInjTable > &inj_tables) | |
Constructor Takes *no* ownership of data. | |
ADB | bhp (const std::vector< int > &table_id, const Wells &wells, const ADB &qs, const ADB &thp) const |
Linear interpolation of bhp as function of the input parameters. | |
ADB | bhp (const std::vector< int > &table_id, const ADB &aqua, const ADB &liquid, const ADB &vapour, const ADB &thp) const |
Linear interpolation of bhp as a function of the input parameters given as ADBs Each entry corresponds typically to one well. | |
template<class EvalWell > | |
EvalWell | bhp (const int table_id, const EvalWell &aqua, const EvalWell &liquid, const EvalWell &vapour, const double &thp) const |
Linear interpolation of bhp as a function of the input parameters given as Evaluation Each entry corresponds typically to one well. | |
double | bhp (int table_id, const double &aqua, const double &liquid, const double &vapour, const double &thp) const |
Linear interpolation of bhp as a function of the input parameters. | |
double | thp (int table_id, const double &aqua, const double &liquid, const double &vapour, const double &bhp) const |
Linear interpolation of thp as a function of the input parameters. | |
const VFPInjTable * | getTable (const int table_id) const |
Returns the table associated with the ID, or throws an exception if the table does not exist. | |
bool | empty () const |
Returns true if no vfp tables are in the current map. |
Opm::VFPInjProperties::VFPInjProperties | ( | const VFPInjTable * | inj_table | ) | [explicit] |
Constructor Takes *no* ownership of data.
inj_table | A *single* VFPINJ table |
Opm::VFPInjProperties::VFPInjProperties | ( | const std::map< int, VFPInjTable > & | inj_tables | ) | [explicit] |
Constructor Takes *no* ownership of data.
inj_tables | A map of different VFPINJ tables. |
double Opm::VFPInjProperties::bhp | ( | int | table_id, | |
const double & | aqua, | |||
const double & | liquid, | |||
const double & | vapour, | |||
const double & | thp | |||
) | const |
Linear interpolation of bhp as a function of the input parameters.
table_id | Table number to use | |
aqua | Water phase | |
liquid | Oil phase | |
vapour | Gas phase | |
thp | Tubing head pressure |
EvalWell Opm::VFPInjProperties::bhp | ( | const int | table_id, | |
const EvalWell & | aqua, | |||
const EvalWell & | liquid, | |||
const EvalWell & | vapour, | |||
const double & | thp | |||
) | const [inline] |
Linear interpolation of bhp as a function of the input parameters given as Evaluation Each entry corresponds typically to one well.
table_id | Table number to use. A negative entry (e.g., -1) will indicate that no table is used, and the corresponding BHP will be calculated as a constant -1e100. | |
aqua | Water phase | |
liquid | Oil phase | |
vapour | Gas phase | |
thp | Tubing head pressure |
VFPInjProperties::ADB Opm::VFPInjProperties::bhp | ( | const std::vector< int > & | table_id, | |
const ADB & | aqua, | |||
const ADB & | liquid, | |||
const ADB & | vapour, | |||
const ADB & | thp | |||
) | const |
Linear interpolation of bhp as a function of the input parameters given as ADBs Each entry corresponds typically to one well.
table_id | Table number to use. A negative entry (e.g., -1) will indicate that no table is used, and the corresponding BHP will be calculated as a constant -1e100. | |
aqua | Water phase | |
liquid | Oil phase | |
vapour | Gas phase | |
thp | Tubing head pressure |
VFPInjProperties::ADB Opm::VFPInjProperties::bhp | ( | const std::vector< int > & | table_id, | |
const Wells & | wells, | |||
const ADB & | qs, | |||
const ADB & | thp | |||
) | const |
Linear interpolation of bhp as function of the input parameters.
table_id | Table number to use | |
wells | Wells structure with information about wells in qs | |
qs | Flow quantities | |
thp | Tubing head pressure |
double Opm::VFPInjProperties::thp | ( | int | table_id, | |
const double & | aqua, | |||
const double & | liquid, | |||
const double & | vapour, | |||
const double & | bhp | |||
) | const |
Linear interpolation of thp as a function of the input parameters.
table_id | Table number to use | |
aqua | Water phase | |
liquid | Oil phase | |
vapour | Gas phase | |
bhp | Bottom hole pressure |
Find the function bhp_array(thp) by creating a 1D view of the data by interpolating for every value of thp. This might be somewhat expensive, but let us assome that nthp is small