#include <BlackOilFluidSystem.hpp>
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) |
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.
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 > >.
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".
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".