Opm::H2ON2LiquidPhaseFluidSystem< Scalar >::ParameterCache< Evaluation > Struct Template Reference

The type of the fluid system's parameter cache. More...

#include <H2ON2LiquidPhaseFluidSystem.hpp>

Inheritance diagram for Opm::H2ON2LiquidPhaseFluidSystem< Scalar >::ParameterCache< Evaluation >:
Inheritance graph

Public Types

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

Public Member Functions

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

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 Enumeration Documentation

◆ ExceptQuantities

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

Member Function Documentation

◆ assignPersistentData()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::assignPersistentData ( const OtherCache &  )
inlineinherited

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

◆ updateAll()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updateAll ( const FluidState &  fluidState,
int  = None 
)
inlineinherited

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()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updateAllPressures ( const FluidState &  fluidState)
inlineinherited

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.

◆ updateAllTemperatures()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updateAllTemperatures ( const FluidState &  fluidState)
inlineinherited

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()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updateComposition ( const FluidState &  fluidState,
unsigned  phaseIdx 
)
inlineinherited

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.

◆ updatePhase()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updatePhase ( const FluidState &  ,
unsigned  ,
int  = None 
)
inlineinherited

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()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updatePressure ( const FluidState &  fluidState,
unsigned  phaseIdx 
)
inlineinherited

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()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updateSingleMoleFraction ( const FluidState &  fluidState,
unsigned  phaseIdx,
unsigned   
)
inlineinherited

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()

void Opm::ParameterCacheBase< NullParameterCache< Evaluation > >::updateTemperature ( const FluidState &  fluidState,
unsigned  phaseIdx 
)
inlineinherited

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 struct was generated from the following file: