Convert component rates at surface conditions to phase (voidage) rates at reservoir conditions.
More...
|
| | SurfaceToReservoirVoidage (const Region ®ion) |
| | Constructor.
|
| template<typename ElementContext, class Simulator> |
| void | defineState (const Simulator &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.
|
|
template<class Coeff, class Rates> |
| void | calcCoeff (const RegionId r, const int pvtRegionIdx, const Rates &surface_rates, Coeff &coeff) const |
|
template<class Coeff> |
| void | calcCoeff (const int pvtRegionIdx, const Scalar p, const Scalar rs, const Scalar rv, const Scalar rsw, const Scalar rvw, const Scalar T, const Scalar saltConcentration, Coeff &coeff) const |
|
template<class Coeff> |
| void | calcInjCoeff (const RegionId r, const int pvtRegionIdx, Coeff &coeff) const |
| template<class Rates> |
| void | calcReservoirVoidageRates (const RegionId r, const int pvtRegionIdx, const Rates &surface_rates, Rates &voidage_rates) const |
| | Convert surface volume flow rates to reservoir voidage flow rates.
|
| template<typename SurfaceRates, typename VoidageRates> |
| void | calcReservoirVoidageRates (const int pvtRegionIdx, const Scalar p, const Scalar rs, const Scalar rv, const Scalar rsw, const Scalar rvw, const Scalar T, const Scalar saltConcentration, const SurfaceRates &surface_rates, VoidageRates &voidage_rates) const |
| | Convert surface volume flow rates to reservoir voidage flow rates.
|
|
template<class Rates> |
| std::pair< Scalar, Scalar > | inferDissolvedVaporisedRatio (const Scalar rsMax, const Scalar rvMax, const Rates &surface_rates) const |
| template<class SolventModule> |
| void | calcCoeffSolvent (const RegionId r, const int pvtRegionIdx, Scalar &coeff) const |
| | Compute coefficients for surface-to-reservoir voidage conversion for solvent.
|
|
template<class Rates> |
| std::pair< typename FluidSystem::Scalar, typename FluidSystem::Scalar > | inferDissolvedVaporisedRatio (const Scalar rsMax, const Scalar rvMax, const Rates &surface_rates) const |
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 as well as inner types value_type, size_type, and const_iterator. Typically . |
template<class FluidSystem, class Region>
template<typename SurfaceRates, typename VoidageRates>
| void Opm::RateConverter::SurfaceToReservoirVoidage< FluidSystem, Region >::calcReservoirVoidageRates |
( |
const int | pvtRegionIdx, |
|
|
const Scalar | p, |
|
|
const Scalar | rs, |
|
|
const Scalar | rv, |
|
|
const Scalar | rsw, |
|
|
const Scalar | rvw, |
|
|
const Scalar | T, |
|
|
const Scalar | saltConcentration, |
|
|
const SurfaceRates & | surface_rates, |
|
|
VoidageRates & | voidage_rates ) const |
Convert surface volume flow rates to reservoir voidage flow rates.
State independent version.
- Template Parameters
-
| Rates | Type representing contiguous collection of surface flow rates. Must support direct indexing through . |
- Parameters
-
| [in] | pvtRegionIdx | PVT region. |
| [in] | p | Fluid pressure. |
| [in] | rs | Dissolved gas/oil ratio. |
| [in] | rv | Vaporised oil/gas ratio. |
| [in] | rsw | Dissolved gas/water ratio. |
| [in] | rvw | Vaporised water/gas ratio. |
| [in] | T | Temperature. Unused in non-thermal simulation runs. |
| [in] | saltConcentration | Salt concentration. Unused in simulation runs without salt precipitation. |
| [in] | surface_rates | Surface volume flow rates for all active phases. |
| [out] | voidage_rates | Reservoir volume flow rates for all active phases. |