The type of the fluid system's parameter cache.
More...
#include <Spe5FluidSystem.hpp>
|
void | updatePhase (const FluidState &fluidState, unsigned phaseIdx, int exceptQuantities=ParentType::None) |
|
void | updateSingleMoleFraction (const FluidState &fluidState, unsigned phaseIdx, unsigned compIdx) |
|
Evaluation | a (unsigned phaseIdx) const |
| The Peng-Robinson attractive parameter for a phase. More...
|
|
Evaluation | b (unsigned phaseIdx) const |
| The Peng-Robinson covolume for a phase. More...
|
|
Evaluation | aPure (unsigned phaseIdx, unsigned compIdx) const |
| The Peng-Robinson attractive parameter for a pure component given the same temperature and pressure of the phase. More...
|
|
Evaluation | bPure (unsigned phaseIdx, unsigned compIdx) const |
| The Peng-Robinson covolume for a pure component given the same temperature and pressure of the phase. More...
|
|
Evaluation | aCache (unsigned phaseIdx, unsigned compIdx, unsigned compJIdx) const |
| TODO. More...
|
|
Evaluation | molarVolume (unsigned phaseIdx) const |
| Returns the molar volume of a phase [m^3/mol]. More...
|
|
const OilPhaseParams & | oilPhaseParams () const |
| Returns the Peng-Robinson mixture parameters for the oil phase. More...
|
|
const GasPhaseParams & | gasPhaseParams () const |
| Returns the Peng-Robinson mixture parameters for the gas phase. More...
|
|
void | updateEosParams (const FluidState &fluidState, unsigned phaseIdx, int exceptQuantities=ParentType::None) |
| Update all parameters required by the equation of state to calculate some quantities for the phase. More...
|
|
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 | 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 | updatePure_ (const FluidState &fluidState, unsigned phaseIdx) |
| Update all parameters of a phase which only depend on temperature and/or pressure. More...
|
|
void | updateMix_ (const FluidState &fluidState, unsigned phaseIdx) |
| Update all parameters of a phase which depend on the fluid composition. It is assumed that updatePure() has been called before this method. More...
|
|
void | updateMolarVolume_ (const FluidState &fluidState, unsigned phaseIdx) |
|
template<class Scalar>
template<class Evaluation>
struct Opm::Spe5FluidSystem< 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.
◆ GasPhaseParams
The cached parameters for the gas phase.
◆ OilPhaseParams
The cached parameters for the oil phase.
◆ ExceptQuantities
Constants for ORing the quantities of the fluid state that have not changed since the last update.
◆ a()
The Peng-Robinson attractive parameter for a phase.
- Parameters
-
phaseIdx | The fluid phase of interest |
◆ aCache()
TODO.
- Parameters
-
phaseIdx | The fluid phase of interest |
compIdx | The component phase of interest |
compJIdx | Additional component index |
◆ aPure()
The Peng-Robinson attractive parameter for a pure component given the same temperature and pressure of the phase.
- Parameters
-
phaseIdx | The fluid phase of interest |
compIdx | The component phase of interest |
◆ assignPersistentData()
Copy the data which is not dependent on the type of the Scalars from another parameter cache.
◆ b()
The Peng-Robinson covolume for a phase.
- Parameters
-
phaseIdx | The fluid phase of interest |
◆ bPure()
The Peng-Robinson covolume for a pure component given the same temperature and pressure of the phase.
- Parameters
-
phaseIdx | The fluid phase of interest |
compIdx | The component phase of interest |
◆ gasPhaseParams()
Returns the Peng-Robinson mixture parameters for the gas phase.
◆ molarVolume()
Returns the molar volume of a phase [m^3/mol].
- Parameters
-
phaseIdx | The fluid phase of interest |
◆ oilPhaseParams()
Returns the Peng-Robinson mixture parameters for the oil phase.
◆ updateAll()
Update the quantities of the parameter cache for all phases.
- Parameters
-
fluidState | The representation of the thermodynamic system of interest. |
exceptQuantities | The quantities of the fluid state that have not changed since the last update. |
◆ updateAllPressures()
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
-
fluidState | The representation of the thermodynamic system of interest. |
◆ updateAllTemperatures()
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
-
fluidState | The representation of the thermodynamic system of interest. |
◆ updateComposition()
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
-
fluidState | The representation of the thermodynamic system of interest. |
phaseIdx | The index of the fluid phase of interest. |
◆ updateEosParams()
void Opm::Spe5ParameterCache< Evaluation , ThisType >::updateEosParams |
( |
const FluidState & |
fluidState, |
|
|
unsigned |
phaseIdx, |
|
|
int |
exceptQuantities = ParentType::None |
|
) |
| |
|
inlineinherited |
Update all parameters required by the equation of state to calculate some quantities for the phase.
- Parameters
-
fluidState | The representation of the thermodynamic system of interest. |
phaseIdx | The index of the fluid phase of interest. |
exceptQuantities | The quantities of the fluid state that have not changed since the last update. |
◆ updateMix_()
Update all parameters of a phase which depend on the fluid composition. It is assumed that updatePure() has been called before this method.
Here, the mixing rule kicks in.
◆ updateMolarVolume_()
◆ updatePhase()
void Opm::Spe5ParameterCache< Evaluation , ThisType >::updatePhase |
( |
const FluidState & |
fluidState, |
|
|
unsigned |
phaseIdx, |
|
|
int |
exceptQuantities = ParentType::None |
|
) |
| |
|
inlineinherited |
Update all cached parameters of a specific fluid phase.
- Parameters
-
fluidState | The representation of the thermodynamic system of interest. |
phaseIdx | The index of the fluid phase of interest. |
exceptQuantities | The quantities of the fluid state that have not changed since the last update. |
◆ updatePressure()
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
-
fluidState | The representation of the thermodynamic system of interest. |
phaseIdx | The index of the fluid phase of interest. |
◆ updatePure_()
Update all parameters of a phase which only depend on temperature and/or pressure.
This usually means the parameters for the pure components.
◆ updateSingleMoleFraction()
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
-
fluidState | The representation of the thermodynamic system of interest. |
phaseIdx | The index of the fluid phase of interest. |
compIdx | The component index of the component for which the mole fraction was modified in the fluid phase of interest. |
◆ updateTemperature()
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
-
fluidState | The representation of the thermodynamic system of interest. |
phaseIdx | The index of the fluid phase of interest. |
◆ gasPhaseParams_
◆ oilPhaseParams_
◆ Vm_
◆ VmUpToDate_
The documentation for this struct was generated from the following file:
|