Opm::FluidSystems::BlackOil< Scalar >::ParameterCache< EvaluationT > Struct Template Reference

#include <BlackOilFluidSystem.hpp>

Inheritance diagram for Opm::FluidSystems::BlackOil< Scalar >::ParameterCache< EvaluationT >:
Opm::NullParameterCache< EvaluationT > Opm::ParameterCacheBase< NullParameterCache< EvaluationT > >

List of all members.

Public Types

typedef EvaluationT Evaluation

Public Member Functions

 ParameterCache (Scalar maxOilSat=1.0, unsigned regionIdx=0)
template<class OtherCache >
void assignPersistentData (const OtherCache &other)
 Copy the data which is not dependent on the type of the Scalars from another parameter cache.
unsigned regionIndex () const
 Return the index of the region which should be used to determine the thermodynamic properties.
void setRegionIndex (unsigned val)
 Set the index of the region which should be used to determine the thermodynamic properties.
const Scalar maxOilSat () const
void setMaxOilSat (Scalar val)

Detailed Description

template<class Scalar>
template<class EvaluationT>
struct Opm::FluidSystems::BlackOil< Scalar >::ParameterCache< EvaluationT >

The type of the fluid system's parameter cache. The parameter cache can be used to avoid re-calculating expensive parameters for multiple quantities. Be aware that what the parameter cache actually does is specific for each fluid system and that it is opaque outside the fluid system.


Member Function Documentation

template<class Scalar >
template<class EvaluationT>
template<class OtherCache >
void Opm::FluidSystems::BlackOil< Scalar >::ParameterCache< EvaluationT >::assignPersistentData ( const OtherCache &  other  )  [inline]

Copy the data which is not dependent on the type of the Scalars from another parameter cache.

For the black-oil parameter cache this means that the region index must be copied.

Reimplemented from Opm::ParameterCacheBase< NullParameterCache< EvaluationT > >.

template<class Scalar >
template<class EvaluationT>
unsigned Opm::FluidSystems::BlackOil< Scalar >::ParameterCache< EvaluationT >::regionIndex (  )  const [inline]

Return the index of the region which should be used to determine the thermodynamic properties.

This is only required because "oil" and "gas" are pseudo-components, i.e. for more comprehensive equations of state there would only be one "region".

template<class Scalar >
template<class EvaluationT>
void Opm::FluidSystems::BlackOil< Scalar >::ParameterCache< EvaluationT >::setRegionIndex ( unsigned  val  )  [inline]

Set the index of the region which should be used to determine the thermodynamic properties.

This is only required because "oil" and "gas" are pseudo-components, i.e. for more comprehensive equations of state there would only be one "region".


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

Generated on 25 Mar 2018 by  doxygen 1.6.1