27 #ifndef OPM_PARAMETER_CACHE_BASE_HPP
28 #define OPM_PARAMETER_CACHE_BASE_HPP
36 template <
class Implementation>
64 template <
class OtherCache>
74 template <
class Flu
idState>
77 for (
unsigned phaseIdx = 0; phaseIdx < FluidState::numPhases; ++phaseIdx)
78 asImp_().updatePhase(fluidState, phaseIdx);
90 template <
class Flu
idState>
103 template <
class Flu
idState>
106 for (
unsigned phaseIdx = 0; phaseIdx < FluidState::numPhases; ++phaseIdx)
107 asImp_().updatePhase(fluidState, phaseIdx);
118 template <
class Flu
idState>
133 template <
class Flu
idState>
136 asImp_().updatePhase(fluidState, phaseIdx);
150 template <
class Flu
idState>
153 asImp_().updatePhase(fluidState, phaseIdx);
167 template <
class Flu
idState>
186 template <
class Flu
idState>
191 asImp_().updateComposition(fluidState, phaseIdx);
195 Implementation& asImp_()
196 {
return *
static_cast<Implementation*
>(
this); }
The base class of the parameter caches of fluid systems.
Definition: ParameterCacheBase.hpp:38
void updateTemperature(const FluidState &fluidState, unsigned phaseIdx)
Update all cached parameters of a specific fluid phase which depend on temperature.
Definition: ParameterCacheBase.hpp:134
void assignPersistentData(const OtherCache &)
Copy the data which is not dependent on the type of the Scalars from another parameter cache.
Definition: ParameterCacheBase.hpp:65
void updateAllPressures(const FluidState &fluidState)
Update pressure dependent quantities of the parameter cache for all phases.
Definition: ParameterCacheBase.hpp:91
void updateAllTemperatures(const FluidState &fluidState)
Update temperature dependent quantities of the parameter cache for all phases.
Definition: ParameterCacheBase.hpp:104
void updateAll(const FluidState &fluidState, int=None)
Update the quantities of the parameter cache for all phases.
Definition: ParameterCacheBase.hpp:75
void updateSingleMoleFraction(const FluidState &fluidState, unsigned phaseIdx, unsigned)
Update all cached parameters of a specific fluid phase which depend on the mole fraction of a single ...
Definition: ParameterCacheBase.hpp:187
void updateComposition(const FluidState &fluidState, unsigned phaseIdx)
Update all cached parameters of a specific fluid phase which depend on composition.
Definition: ParameterCacheBase.hpp:168
void updatePressure(const FluidState &fluidState, unsigned phaseIdx)
Update all cached parameters of a specific fluid phase which depend on pressure.
Definition: ParameterCacheBase.hpp:151
ExceptQuantities
Constants for ORing the quantities of the fluid state that have not changed since the last update.
Definition: ParameterCacheBase.hpp:43
@ Temperature
The temperature has not been modified.
Definition: ParameterCacheBase.hpp:48
@ None
All quantities have been (potentially) modified.
Definition: ParameterCacheBase.hpp:45
@ Pressure
The pressures have not been modified.
Definition: ParameterCacheBase.hpp:51
@ Composition
The compositions have not been modified.
Definition: ParameterCacheBase.hpp:54
void updatePhase(const FluidState &, unsigned, int=None)
Update all cached parameters of a specific fluid phase.
Definition: ParameterCacheBase.hpp:119