Opm::ParameterCacheBase< Implementation > Class Template Reference

The base class of the parameter caches of fluid systems. More...

#include <ParameterCacheBase.hpp>

Inheritance diagram for Opm::ParameterCacheBase< Implementation >:
Inheritance graph

Public Types

enum  ExceptQuantities { None = 0 , Temperature = 1 , Pressure = 2 , Composition = 4 }
 Constants for ORing the quantities of the fluid state that have not changed since the last update. More...
 

Public Member Functions

 ParameterCacheBase ()
 
template<class OtherCache >
void assignPersistentData (const OtherCache &)
 Copy the data which is not dependent on the type of the Scalars from another parameter cache. More...
 
template<class FluidState >
void updateAll (const FluidState &fluidState, int=None)
 Update the quantities of the parameter cache for all phases. More...
 
template<class FluidState >
void updateAllPressures (const FluidState &fluidState)
 Update pressure dependent quantities of the parameter cache for all phases. More...
 
template<class FluidState >
void updateAllTemperatures (const FluidState &fluidState)
 Update temperature dependent quantities of the parameter cache for all phases. More...
 
template<class FluidState >
void updatePhase (const FluidState &, unsigned, int=None)
 Update all cached parameters of a specific fluid phase. More...
 
template<class FluidState >
void updateTemperature (const FluidState &fluidState, unsigned phaseIdx)
 Update all cached parameters of a specific fluid phase which depend on temperature. More...
 
template<class FluidState >
void updatePressure (const FluidState &fluidState, unsigned phaseIdx)
 Update all cached parameters of a specific fluid phase which depend on pressure. More...
 
template<class FluidState >
void updateComposition (const FluidState &fluidState, unsigned phaseIdx)
 Update all cached parameters of a specific fluid phase which depend on composition. More...
 
template<class FluidState >
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 component. More...
 

Detailed Description

template<class Implementation>
class Opm::ParameterCacheBase< Implementation >

The base class of the parameter caches of fluid systems.

Member Enumeration Documentation

◆ ExceptQuantities

template<class Implementation >
enum Opm::ParameterCacheBase::ExceptQuantities

Constants for ORing the quantities of the fluid state that have not changed since the last update.

Enumerator
None 

All quantities have been (potentially) modified.

Temperature 

The temperature has not been modified.

Pressure 

The pressures have not been modified.

Composition 

The compositions have not been modified.

Constructor & Destructor Documentation

◆ ParameterCacheBase()

template<class Implementation >
Opm::ParameterCacheBase< Implementation >::ParameterCacheBase ( )
inline

Member Function Documentation

◆ assignPersistentData()

template<class Implementation >
template<class OtherCache >
void Opm::ParameterCacheBase< Implementation >::assignPersistentData ( const OtherCache &  )
inline

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

◆ updateAll()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updateAll ( const FluidState &  fluidState,
int  = None 
)
inline

Update the quantities of the parameter cache for all phases.

Parameters
fluidStateThe representation of the thermodynamic system of interest.
exceptQuantitiesThe quantities of the fluid state that have not changed since the last update.

◆ updateAllPressures()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updateAllPressures ( const FluidState &  fluidState)
inline

Update pressure dependent quantities of the parameter cache for all phases.

This method should be called if only the phase pressures changed since the last call to an update() method.

Parameters
fluidStateThe representation of the thermodynamic system of interest.

References Opm::ParameterCacheBase< Implementation >::Composition, and Opm::ParameterCacheBase< Implementation >::Temperature.

◆ updateAllTemperatures()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updateAllTemperatures ( const FluidState &  fluidState)
inline

Update temperature dependent quantities of the parameter cache for all phases.

This method should be called if only the phase temperatures changed since the last call to an update() method.

Parameters
fluidStateThe representation of the thermodynamic system of interest.

◆ updateComposition()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updateComposition ( const FluidState &  fluidState,
unsigned  phaseIdx 
)
inline

Update all cached parameters of a specific fluid phase which depend on composition.

Only use this method if neither the pressure nor the temperature of the phase changed between two update*() calls. If more changed, call updatePhase()!

Parameters
fluidStateThe representation of the thermodynamic system of interest.
phaseIdxThe index of the fluid phase of interest.

References Opm::ParameterCacheBase< Implementation >::Pressure, and Opm::ParameterCacheBase< Implementation >::Temperature.

◆ updatePhase()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updatePhase ( const FluidState &  ,
unsigned  ,
int  = None 
)
inline

Update all cached parameters of a specific fluid phase.

Parameters
fluidStateThe representation of the thermodynamic system of interest.
phaseIdxThe index of the fluid phase of interest.
exceptQuantitiesThe quantities of the fluid state that have not changed since the last update.

◆ updatePressure()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updatePressure ( const FluidState &  fluidState,
unsigned  phaseIdx 
)
inline

Update all cached parameters of a specific fluid phase which depend on pressure.

Only use this method if only the pressure of a phase changed between two update*() calls. If more changed, call updatePhase()!

Parameters
fluidStateThe representation of the thermodynamic system of interest.
phaseIdxThe index of the fluid phase of interest.

◆ updateSingleMoleFraction()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updateSingleMoleFraction ( const FluidState &  fluidState,
unsigned  phaseIdx,
unsigned   
)
inline

Update all cached parameters of a specific fluid phase which depend on the mole fraction of a single component.

Only use this method if just a single component's concentration changed between two update*() calls. If more than one concentration changed, call updatePhaseComposition() of updatePhase()!

Parameters
fluidStateThe representation of the thermodynamic system of interest.
phaseIdxThe index of the fluid phase of interest.
compIdxThe component index of the component for which the mole fraction was modified in the fluid phase of interest.

◆ updateTemperature()

template<class Implementation >
template<class FluidState >
void Opm::ParameterCacheBase< Implementation >::updateTemperature ( const FluidState &  fluidState,
unsigned  phaseIdx 
)
inline

Update all cached parameters of a specific fluid phase which depend on temperature.

Only use this method if only the temperature of a phase changed between two update*() calls. If more changed, call updatePhase()!

Parameters
fluidStateThe representation of the thermodynamic system of interest.
phaseIdxThe index of the fluid phase of interest.

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