#include <ThermalGasPvtWrapper.hpp>
|
| ThermalGasPvtWrapper () |
|
void | initFromDeck (std::shared_ptr< const PvtInterface > isothermalPvt, Opm::DeckConstPtr deck, Opm::EclipseStateConstPtr eclipseState) |
|
virtual void | mu (const int n, const int *pvtRegionIdx, const double *p, const double *T, const double *z, double *output_mu) const |
| Viscosity as a function of p, T and z. More...
|
|
virtual void | mu (const int n, const int *pvtRegionIdx, const double *p, const double *T, const double *r, double *output_mu, double *output_dmudp, double *output_dmudr) const |
|
virtual void | mu (const int n, const int *pvtRegionIdx, const double *p, const double *T, const double *r, const PhasePresence *cond, double *output_mu, double *output_dmudp, double *output_dmudr) const |
|
virtual void | B (const int n, const int *pvtRegionIdx, const double *p, const double *T, const double *z, double *output_B) const |
| Formation volume factor as a function of p, T and z. More...
|
|
virtual void | dBdp (const int n, const int *pvtRegionIdx, const double *p, const double *T, const double *z, double *output_B, double *output_dBdp) const |
| Formation volume factor and p-derivative as functions of p and z. More...
|
|
virtual void | b (const int n, const int *pvtRegionIdx, const double *p, const double *T, const double *r, double *output_b, double *output_dbdp, double *output_dbdr) const |
|
virtual void | b (const int n, const int *pvtRegionIdx, const double *p, const double *T, const double *r, const PhasePresence *cond, double *output_b, double *output_dbdp, double *output_dbdr) const |
|
virtual void | rsSat (const int n, const int *pvtRegionIdx, const double *p, double *output_rsSat, double *output_drsSatdp) const |
| Solution gas/oil ratio and its derivatives at saturated conditions as a function of p. More...
|
|
virtual void | rvSat (const int n, const int *pvtRegionIdx, const double *p, double *output_rvSat, double *output_drvSatdp) const |
| Vapor oil/gas ratio and its derivatives at saturated conditions as a function of p. More...
|
|
virtual void | R (const int n, const int *pvtRegionIdx, const double *p, const double *z, double *output_R) const |
| Solution factor as a function of p and z. More...
|
|
virtual void | dRdp (const int n, const int *pvtRegionIdx, const double *p, const double *z, double *output_R, double *output_dRdp) const |
| Solution factor and p-derivative as functions of p and z. More...
|
|
void | setPhaseConfiguration (const int num_phases, const int *phase_pos) |
|
Class which wraps another (i.e., isothermal) PVT object into one which adds temperature dependence of gas
Enumerator |
---|
Aqua |
|
Liquid |
|
Vapour |
|
Opm::ThermalGasPvtWrapper::ThermalGasPvtWrapper |
( |
| ) |
|
|
inline |
virtual void Opm::ThermalGasPvtWrapper::B |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
T, |
|
|
const double * |
z, |
|
|
double * |
output_B |
|
) |
| const |
|
inlinevirtual |
virtual void Opm::ThermalGasPvtWrapper::b |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
T, |
|
|
const double * |
r, |
|
|
double * |
output_b, |
|
|
double * |
output_dbdp, |
|
|
double * |
output_dpdr |
|
) |
| const |
|
inlinevirtual |
The inverse of the volume factor b = 1 / B as a function of p, T and r. The fluid is considered saturated if r >= rsSat(p).
Implements Opm::PvtInterface.
virtual void Opm::ThermalGasPvtWrapper::b |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
T, |
|
|
const double * |
r, |
|
|
const PhasePresence * |
cond, |
|
|
double * |
output_b, |
|
|
double * |
output_dbdp, |
|
|
double * |
output_dpdr |
|
) |
| const |
|
inlinevirtual |
The inverse of the volume factor b = 1 / B as a function of p, T and r. State condition determined by 'cond'.
Implements Opm::PvtInterface.
virtual void Opm::ThermalGasPvtWrapper::dBdp |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
T, |
|
|
const double * |
z, |
|
|
double * |
output_B, |
|
|
double * |
output_dBdp |
|
) |
| const |
|
inlinevirtual |
Formation volume factor and p-derivative as functions of p and z.
Implements Opm::PvtInterface.
virtual void Opm::ThermalGasPvtWrapper::dRdp |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
z, |
|
|
double * |
output_R, |
|
|
double * |
output_dRdp |
|
) |
| const |
|
inlinevirtual |
Solution factor and p-derivative as functions of p and z.
Implements Opm::PvtInterface.
void Opm::ThermalGasPvtWrapper::initFromDeck |
( |
std::shared_ptr< const PvtInterface > |
isothermalPvt, |
|
|
Opm::DeckConstPtr |
deck, |
|
|
Opm::EclipseStateConstPtr |
eclipseState |
|
) |
| |
|
inline |
extract the quantities needed specify the temperature dependence of the gas viscosity and density from the deck
virtual void Opm::ThermalGasPvtWrapper::mu |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
T, |
|
|
const double * |
z, |
|
|
double * |
output_mu |
|
) |
| const |
|
inlinevirtual |
Viscosity as a function of p, T and z.
The PVT properties can either be given as a function of pressure (p), temperature (T) and surface volume (z) or pressure (p), temperature (T) and gas resolution factor (r). For all the virtual methods, the following apply:
- pvtRegionIdx is an array of size n and represents the index of the PVT table which should be used to calculate the output. NULL can also be passed and is interpreted such that the first table should be used for the output
- p, r and z are expected to be of size n, size n and n*num_phases, respectively.
- Output arrays shall be of size n, and must be valid before calling the method.
Implements Opm::PvtInterface.
virtual void Opm::ThermalGasPvtWrapper::mu |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
T, |
|
|
const double * |
r, |
|
|
double * |
output_mu, |
|
|
double * |
output_dmudp, |
|
|
double * |
output_dmudr |
|
) |
| const |
|
inlinevirtual |
Viscosity as a function of p, T and r. The fluid is considered saturated if r >= rsSat(p).
Implements Opm::PvtInterface.
virtual void Opm::ThermalGasPvtWrapper::mu |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
T, |
|
|
const double * |
r, |
|
|
const PhasePresence * |
cond, |
|
|
double * |
output_mu, |
|
|
double * |
output_dmudp, |
|
|
double * |
output_dmudr |
|
) |
| const |
|
inlinevirtual |
Viscosity as a function of p, T and r. State condition determined by 'cond'.
Implements Opm::PvtInterface.
virtual void Opm::ThermalGasPvtWrapper::R |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
const double * |
z, |
|
|
double * |
output_R |
|
) |
| const |
|
inlinevirtual |
virtual void Opm::ThermalGasPvtWrapper::rsSat |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
double * |
output_rsSat, |
|
|
double * |
output_drsSatdp |
|
) |
| const |
|
inlinevirtual |
Solution gas/oil ratio and its derivatives at saturated conditions as a function of p.
Implements Opm::PvtInterface.
virtual void Opm::ThermalGasPvtWrapper::rvSat |
( |
const int |
n, |
|
|
const int * |
pvtRegionIdx, |
|
|
const double * |
p, |
|
|
double * |
output_rvSat, |
|
|
double * |
output_drvSatdp |
|
) |
| const |
|
inlinevirtual |
Vapor oil/gas ratio and its derivatives at saturated conditions as a function of p.
Implements Opm::PvtInterface.
void Opm::PvtInterface::setPhaseConfiguration |
( |
const int |
num_phases, |
|
|
const int * |
phase_pos |
|
) |
| |
|
inherited |
- Parameters
-
[in] | num_phases | The number of active phases. |
[in] | phase_pos | Array of BlackpoilPhases::MaxNumPhases integers, giving the relative positions of the three canonical phases A, L, V in order to handle arbitrary two-phase and three-phase situations. |
const int Opm::BlackoilPhases::MaxNumPhases = 3 |
|
staticinherited |
Referenced by Opm::Equil::isConstPc(), Opm::Equil::PcEq::PcEq(), Opm::Equil::PcEqSum::PcEqSum(), Opm::Equil::phaseSaturations(), Opm::phaseUsageFromDeck(), Opm::Equil::Miscibility::RsSatAtContact::RsSatAtContact(), Opm::Equil::Miscibility::RsVD::RsVD(), Opm::Equil::Miscibility::RvSatAtContact::RvSatAtContact(), Opm::Equil::Miscibility::RvVD::RvVD(), Opm::Equil::satFromDepth(), Opm::Equil::satFromPc(), Opm::Equil::satFromSumOfPcs(), and Opm::ExplicitArraysFluidState::setIndex().
int Opm::PvtInterface::num_phases_ |
|
protectedinherited |
The documentation for this class was generated from the following file:
|