Loading...
Searching...
No Matches
BlackOilFluidSystem.hpp File Reference

A fluid system which uses the black-oil model assumptions to calculate termodynamically meaningful quantities. More...

`#include "BlackOilDefaultIndexTraits.hpp"`
`#include "blackoilpvt/OilPvtMultiplexer.hpp"`
`#include "blackoilpvt/GasPvtMultiplexer.hpp"`
`#include "blackoilpvt/WaterPvtMultiplexer.hpp"`
`#include <opm/common/TimingMacros.hpp>`
`#include <opm/material/fluidsystems/BaseFluidSystem.hpp>`
`#include <opm/material/Constants.hpp>`
`#include <opm/material/common/MathToolbox.hpp>`
`#include <opm/material/common/Valgrind.hpp>`
`#include <opm/material/common/HasMemberGeneratorMacros.hpp>`
`#include <opm/material/fluidsystems/NullParameterCache.hpp>`
`#include <array>`
`#include <cstddef>`
`#include <memory>`
`#include <stdexcept>`
`#include <string_view>`
`#include <vector>`

Go to the source code of this file.

## Classes

class | Opm::BlackOilFluidSystem< Scalar, IndexTraits >
| A fluid system which uses the black-oil model assumptions to calculate termodynamically meaningful quantities. More...
struct | Opm::BlackOilFluidSystem< Scalar, IndexTraits >::ParameterCache< EvaluationT >
| The type of the fluid system's parameter cache. More...

## Namespaces

namespace | Opm
| This class implements a small container which holds the transmissibility mulitpliers for all the faces in the grid.

## Macros

#define | DECLARE_INSTANCE(T)

## Typedefs

template<typename T >
using | Opm::BOFS = BlackOilFluidSystem< T, BlackOilDefaultIndexTraits >

## Functions

template<class FluidSystem , class FluidState , class LhsEval >
LhsEval | Opm::BlackOil::getRs_ (typename std::enable_if<!HasMember_Rs< FluidState >::value, const FluidState & >::type fluidState, unsigned regionIdx)
template<class FluidSystem , class FluidState , class LhsEval >
auto | Opm::BlackOil::getRs_ (typename std::enable_if< HasMember_Rs< FluidState >::value, const FluidState & >::type fluidState, unsigned) -> decltype(decay< LhsEval >(fluidState.Rs()))
template<class FluidSystem , class FluidState , class LhsEval >
LhsEval | Opm::BlackOil::getRv_ (typename std::enable_if<!HasMember_Rv< FluidState >::value, const FluidState & >::type fluidState, unsigned regionIdx)
template<class FluidSystem , class FluidState , class LhsEval >
auto | Opm::BlackOil::getRv_ (typename std::enable_if< HasMember_Rv< FluidState >::value, const FluidState & >::type fluidState, unsigned) -> decltype(decay< LhsEval >(fluidState.Rv()))
template<class FluidSystem , class FluidState , class LhsEval >
LhsEval | Opm::BlackOil::getRvw_ (typename std::enable_if<!HasMember_Rvw< FluidState >::value, const FluidState & >::type fluidState, unsigned regionIdx)
template<class FluidSystem , class FluidState , class LhsEval >
auto | Opm::BlackOil::getRvw_ (typename std::enable_if< HasMember_Rvw< FluidState >::value, const FluidState & >::type fluidState, unsigned) -> decltype(decay< LhsEval >(fluidState.Rvw()))
template<class FluidSystem , class FluidState , class LhsEval >
LhsEval | Opm::BlackOil::getRsw_ (typename std::enable_if<!HasMember_Rsw< FluidState >::value, const FluidState & >::type fluidState, unsigned regionIdx)
template<class FluidSystem , class FluidState , class LhsEval >
auto | Opm::BlackOil::getRsw_ (typename std::enable_if< HasMember_Rsw< FluidState >::value, const FluidState & >::type fluidState, unsigned) -> decltype(decay< LhsEval >(fluidState.Rsw()))
template<class FluidSystem , class FluidState , class LhsEval >
LhsEval | Opm::BlackOil::getSaltConcentration_ (typename std::enable_if<!HasMember_saltConcentration< FluidState >::value, const FluidState & >::type, unsigned)
template<class FluidSystem , class FluidState , class LhsEval >
auto | Opm::BlackOil::getSaltConcentration_ (typename std::enable_if< HasMember_saltConcentration< FluidState >::value, const FluidState & >::type fluidState, unsigned) -> decltype(decay< LhsEval >(fluidState.saltConcentration()))
template<class FluidSystem , class FluidState , class LhsEval >
LhsEval | Opm::BlackOil::getSaltSaturation_ (typename std::enable_if<!HasMember_saltSaturation< FluidState >::value, const FluidState & >::type, unsigned)
template<class FluidSystem , class FluidState , class LhsEval >
auto | Opm::BlackOil::getSaltSaturation_ (typename std::enable_if< HasMember_saltSaturation< FluidState >::value, const FluidState & >::type fluidState, unsigned) -> decltype(decay< LhsEval >(fluidState.saltSaturation()))

## Detailed Description

A fluid system which uses the black-oil model assumptions to calculate termodynamically meaningful quantities.

Template Parameters

  Scalar | The type used for scalar floating point values

## Macro Definition Documentation

## DECLARE_INSTANCE

#define DECLARE_INSTANCE | ( |  | T | ) |

Value:
template<> unsigned char BOFS<T>::numActivePhases_; \
template<> std::array<bool, BOFS<T>::numPhases> BOFS<T>::phaseIsActive_; \
template<> std::array<short, BOFS<T>::numPhases> BOFS<T>::activeToCanonicalPhaseIdx_; \
template<> std::array<short, BOFS<T>::numPhases> BOFS<T>::canonicalToActivePhaseIdx_; \
template<> T BOFS<T>::surfaceTemperature; \
template<> T BOFS<T>::surfacePressure; \
template<> T BOFS<T>::reservoirTemperature_; \
template<> bool BOFS<T>::enableDissolvedGas_; \
template<> bool BOFS<T>::enableDissolvedGasInWater_; \
template<> bool BOFS<T>::enableVaporizedOil_; \
template<> bool BOFS<T>::enableVaporizedWater_; \
template<> bool BOFS<T>::enableDiffusion_; \
template<> std::shared_ptr<OilPvtMultiplexer<T>> BOFS<T>::oilPvt_; \
template<> std::shared_ptr<GasPvtMultiplexer<T>> BOFS<T>::gasPvt_; \
template<> std::shared_ptr<WaterPvtMultiplexer<T>> BOFS<T>::waterPvt_; \
template<> std::vector<std::array<T, 3>> BOFS<T>::referenceDensity_; \
template<> std::vector<std::array<T, 3>> BOFS<T>::molarMass_; \
template<> std::vector<std::array<T, 9>> BOFS<T>::diffusionCoefficients_; \
template<> bool BOFS<T>::isInitialized_; \
template<> bool BOFS<T>::useSaturatedTables_;