Opm::RateConverter::SurfaceToReservoirVoidage< Property, Region > Class Template Reference

#include <RateConverter.hpp>

Inheritance diagram for Opm::RateConverter::SurfaceToReservoirVoidage< Property, Region >:
Inheritance graph

Public Types

typedef RegionMapping< Region >
::RegionId 
RegionId
 

Public Member Functions

 SurfaceToReservoirVoidage (const Property &props, const Region &region)
 
void defineState (const BlackoilState &state)
 
template<class Input , class Coeff >
void calcCoeff (const Input &in, const RegionId r, Coeff &coeff) const
 

Detailed Description

template<class Property, class Region>
class Opm::RateConverter::SurfaceToReservoirVoidage< Property, Region >

Convert component rates at surface conditions to phase (voidage) rates at reservoir conditions.

The conversion uses fluid properties evaluated at average hydrocarbon pressure in regions or field.

Template Parameters
PropertyFluid property object. Expected to feature the formation volume factor functions of the BlackoilPropsAdInterface.
RegionType of a forward region mapping. Expected to provide indexed access through
operator[]()
as well as inner types value_type, size_type, and const_iterator. Typically
std::vector<int>
.

Member Typedef Documentation

template<class Property, class Region>
typedef RegionMapping<Region>::RegionId Opm::RateConverter::SurfaceToReservoirVoidage< Property, Region >::RegionId

Region identifier.

Integral type.

Constructor & Destructor Documentation

template<class Property, class Region>
Opm::RateConverter::SurfaceToReservoirVoidage< Property, Region >::SurfaceToReservoirVoidage ( const Property &  props,
const Region &  region 
)
inline

Constructor.

Parameters
[in]propsFluid property object.
[in]regionForward region mapping. Often corresponds to the "FIPNUM" mapping of an ECLIPSE input deck.

Member Function Documentation

template<class Property, class Region>
template<class Input , class Coeff >
void Opm::RateConverter::SurfaceToReservoirVoidage< Property, Region >::calcCoeff ( const Input &  in,
const RegionId  r,
Coeff &  coeff 
) const
inline

Compute coefficients for surface-to-reservoir voidage conversion.

Template Parameters
InputType representing contiguous collection of component rates at surface conditions. Must support direct indexing through
operator[]()
.
CoeffType representing contiguous collection of surface-to-reservoir conversion coefficients. Must support direct indexing through
operator[]()
.
Parameters
[in]inSingle tuple of active component rates at surface conditions.
[in]rFluid-in-place region to which the component rates correspond.
[out]coeffSurface-to-reservoir conversion coefficients for all active phases, corresponding to input rates in in region r.
template<class Property, class Region>
void Opm::RateConverter::SurfaceToReservoirVoidage< Property, Region >::defineState ( const BlackoilState &  state)
inline

Compute average hydrocarbon pressure and maximum dissolution and evaporation at average hydrocarbon pressure in all regions in field.

Fluid properties are evaluated at average hydrocarbon pressure for purpose of conversion from surface rate to reservoir voidage rate.

Parameters
[in]stateDynamic reservoir state.

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