Specifies the parameter cache used by the SPE-5 fluid system.
More...
#include <Spe5ParameterCache.hpp>
|
| Spe5ParameterCache () |
|
template<class FluidState > |
void | updatePhase (const FluidState &fluidState, unsigned phaseIdx, int exceptQuantities=ParentType::None) |
| Update all cached parameters of a specific fluid phase. More...
|
|
template<class FluidState > |
void | updateSingleMoleFraction (const FluidState &fluidState, unsigned phaseIdx, unsigned compIdx) |
| Update all cached parameters of a specific fluid phase which depend on the mole fraction of a single component. More...
|
|
Scalar | a (unsigned phaseIdx) const |
| The Peng-Robinson attractive parameter for a phase. More...
|
|
Scalar | b (unsigned phaseIdx) const |
| The Peng-Robinson covolume for a phase. More...
|
|
Scalar | 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...
|
|
Scalar | bPure (unsigned phaseIdx, unsigned compIdx) const |
| The Peng-Robinson covolume for a pure component given the same temperature and pressure of the phase. More...
|
|
Scalar | 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...
|
|
template<class FluidState > |
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 | 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...
|
|
|
template<class FluidState > |
void | updatePure_ (const FluidState &fluidState, unsigned phaseIdx) |
| Update all parameters of a phase which only depend on temperature and/or pressure. More...
|
|
template<class FluidState > |
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...
|
|
template<class FluidState > |
void | updateMolarVolume_ (const FluidState &fluidState, unsigned phaseIdx) |
|
template<class Scalar, class FluidSystem>
class Opm::Spe5ParameterCache< Scalar, FluidSystem >
Specifies the parameter cache used by the SPE-5 fluid system.
template<class Scalar , class FluidSystem >
The cached parameters for the gas phase.
template<class Scalar , class FluidSystem >
The cached parameters for the oil phase.
Constants for ORing the quantities of the fluid state that have not changed since the last update.
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
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. |
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. |
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. |
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. |
template<class Scalar , class FluidSystem >
template<class FluidState >
template<class Scalar , class FluidSystem >
template<class FluidState >
void Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateMix_ |
( |
const FluidState & |
fluidState, |
|
|
unsigned |
phaseIdx |
|
) |
| |
|
inlineprotected |
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.
References Valgrind::CheckDefined(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::gasPhaseParams_, Opm::Spe5ParameterCache< Scalar, FluidSystem >::oilPhaseParams_, and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateMix().
Referenced by Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateEosParams().
template<class Scalar , class FluidSystem >
template<class FluidState >
void Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateMolarVolume_ |
( |
const FluidState & |
fluidState, |
|
|
unsigned |
phaseIdx |
|
) |
| |
|
inlineprotected |
template<class Scalar , class FluidSystem >
template<class FluidState >
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. |
template<class Scalar , class FluidSystem >
template<class FluidState >
void Opm::Spe5ParameterCache< Scalar, FluidSystem >::updatePure_ |
( |
const FluidState & |
fluidState, |
|
|
unsigned |
phaseIdx |
|
) |
| |
|
inlineprotected |
template<class Scalar , class FluidSystem >
template<class FluidState >
void Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateSingleMoleFraction |
( |
const FluidState & |
fluidState, |
|
|
unsigned |
phaseIdx, |
|
|
unsigned |
compIdx |
|
) |
| |
|
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
-
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. |
References Opm::Spe5ParameterCache< Scalar, FluidSystem >::gasPhaseParams_, Opm::Spe5ParameterCache< Scalar, FluidSystem >::oilPhaseParams_, Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateMolarVolume_(), and Opm::PengRobinsonParamsMixture< Scalar, FluidSystem, phaseIdx, useSpe5Relations >::updateSingleMoleFraction().
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. |
template<class Scalar , class FluidSystem >
Referenced by Opm::Spe5ParameterCache< Scalar, FluidSystem >::a(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::aPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::b(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::bPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::gasPhaseParams(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateMix_(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::updatePure_(), and Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateSingleMoleFraction().
template<class Scalar , class FluidSystem >
Referenced by Opm::Spe5ParameterCache< Scalar, FluidSystem >::a(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::aPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::b(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::bPure(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::oilPhaseParams(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateMix_(), Opm::Spe5ParameterCache< Scalar, FluidSystem >::updatePure_(), and Opm::Spe5ParameterCache< Scalar, FluidSystem >::updateSingleMoleFraction().
template<class Scalar , class FluidSystem >
template<class Scalar , class FluidSystem >
The documentation for this class was generated from the following file:
|