Class collecting simple pvt properties for 1-3 phases. More...
#include <PvtPropertiesBasic.hpp>
Public Member Functions | |
PvtPropertiesBasic () | |
Default constructor. | |
void | init (const ParameterGroup ¶m) |
Initialize from parameters. More... | |
void | init (const int num_phases, const std::vector< double > &rho, const std::vector< double > &visc) |
Initialize from arguments. More... | |
int | numPhases () const |
Number of active phases. | |
PhaseUsage | phaseUsage () const |
const double * | surfaceDensities () const |
Densities of stock components at surface conditions. More... | |
void | mu (const int n, const double *p, const double *T, const double *z, double *output_mu) const |
Viscosity as a function of p, T and z. | |
void | B (const int n, const double *p, const double *T, const double *z, double *output_B) const |
Formation volume factor as a function of p, T and z. | |
void | dBdp (const int n, 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, T and z. | |
void | R (const int n, const double *p, const double *z, double *output_R) const |
Solution factor as a function of p and z. | |
void | dRdp (const int n, const double *p, const double *z, double *output_R, double *output_dRdp) const |
Solution factor and p-derivative as functions of p and z. | |
Class collecting simple pvt properties for 1-3 phases.
All phases are incompressible and have constant viscosities. For all the methods, the following apply: p, T and z are unused. Output arrays shall be of size n*numPhases(), and must be valid before calling the method. NOTE: This class is intentionally similar to BlackoilPvtProperties.
void Opm::PvtPropertiesBasic::init | ( | const ParameterGroup & | param | ) |
Initialize from parameters.
The following parameters are accepted (defaults):
void Opm::PvtPropertiesBasic::init | ( | const int | num_phases, |
const std::vector< double > & | rho, | ||
const std::vector< double > & | visc | ||
) |
Initialize from arguments.
Basic multi phase fluid pvt properties.
PhaseUsage Opm::PvtPropertiesBasic::phaseUsage | ( | ) | const |
const double * Opm::PvtPropertiesBasic::surfaceDensities | ( | ) | const |
Densities of stock components at surface conditions.