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

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

#include <RateConverter.hpp>

List of all members.

Classes

struct  Attributes
 Derived property attributes for each active region.

Public Types

typedef RegionMapping< Region >
::RegionId 
RegionId
 Region identifier.

Public Member Functions

 SurfaceToReservoirVoidage (const PhaseUsage &phaseUsage, const Region &region)
 Constructor.
void defineState (const BlackoilState &state, const boost::any &info=boost::any())
 Compute average hydrocarbon pressure and maximum dissolution and evaporation at average hydrocarbon pressure in all regions in field.
template<typename ElementContext , class EbosSimulator >
void defineState (const EbosSimulator &simulator)
 Compute pore volume averaged hydrocarbon state pressure, rs and rv.
template<class Coeff >
void calcCoeff (const RegionId r, const int pvtRegionIdx, Coeff &coeff) const
 Compute coefficients for surface-to-reservoir voidage conversion.

Detailed Description

template<class FluidSystem, class Region>
class Opm::RateConverter::SurfaceToReservoirVoidage< FluidSystem, 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:
FluidSystem Fluid system class. Expected to be a BlackOilFluidSystem
Region Type 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 FluidSystem, class Region>
typedef RegionMapping<Region>::RegionId Opm::RateConverter::SurfaceToReservoirVoidage< FluidSystem, Region >::RegionId

Region identifier.

Integral type.


Constructor & Destructor Documentation

template<class FluidSystem, class Region>
Opm::RateConverter::SurfaceToReservoirVoidage< FluidSystem, Region >::SurfaceToReservoirVoidage ( const PhaseUsage &  phaseUsage,
const Region &  region 
) [inline]

Constructor.

Parameters:
[in] region Forward region mapping. Often corresponds to the "FIPNUM" mapping of an ECLIPSE input deck.

Member Function Documentation

template<class FluidSystem, class Region>
template<class Coeff >
void Opm::RateConverter::SurfaceToReservoirVoidage< FluidSystem, Region >::calcCoeff ( const RegionId  r,
const int  pvtRegionIdx,
Coeff &  coeff 
) const [inline]

Compute coefficients for surface-to-reservoir voidage conversion.

Template Parameters:
Input Type representing contiguous collection of component rates at surface conditions. Must support direct indexing through

 operator[]()

.

Coeff Type representing contiguous collection of surface-to-reservoir conversion coefficients. Must support direct indexing through

 operator[]()

.

Parameters:
[in] r Fluid-in-place region of the well
[in] pvtRegionIdx PVT region of the well
[out] coeff Surface-to-reservoir conversion coefficients for all active phases.
template<class FluidSystem, class Region>
template<typename ElementContext , class EbosSimulator >
void Opm::RateConverter::SurfaceToReservoirVoidage< FluidSystem, Region >::defineState ( const EbosSimulator &  simulator  )  [inline]

Compute pore volume averaged hydrocarbon state pressure, rs and rv.

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

template<class FluidSystem, class Region>
void Opm::RateConverter::SurfaceToReservoirVoidage< FluidSystem, Region >::defineState ( const BlackoilState &  state,
const boost::any &  info = boost::any() 
) [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] state Dynamic reservoir state.
[in] any The information and communication utilities about/of the parallelization. in any parallel it wraps a ParallelISTLInformation. Parameter is optional.

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

Generated on 26 Mar 2018 by  doxygen 1.6.1