All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Opm::PvtPropertiesBasic Class Reference

Class collecting simple pvt properties for 1-3 phases. More...

#include <PvtPropertiesBasic.hpp>

Public Member Functions

 PvtPropertiesBasic ()
 Default constructor.
 
void init (const ParameterGroup &param)
 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.
 

Detailed Description

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.

Member Function Documentation

void Opm::PvtPropertiesBasic::init ( const ParameterGroup param)

Initialize from parameters.

The following parameters are accepted (defaults):

  • num_phases (2) – Must be 1, 2 or 3.
  • rho1, rho2, rho3 (1.0e3) – Density in kg/m^3
  • mu1, mu2, mu3 (1.0) – Viscosity in cP
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
Returns
Object describing the active phases.
const double * Opm::PvtPropertiesBasic::surfaceDensities ( ) const

Densities of stock components at surface conditions.

Returns
Array of size numPhases().

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