Specifies the parameters required by the SPE5 problem which are despondent on the thermodynamic state. More...
#include <dumux/material/fluidsystems/spe5parametercache.hh>
Specifies the parameters required by the SPE5 problem which are despondent on the thermodynamic state.
Public Types | |
using | OilPhaseParams = PengRobinsonParamsMixture< Scalar, FluidSystem, oPhaseIdx, true > |
using | GasPhaseParams = PengRobinsonParamsMixture< Scalar, FluidSystem, gPhaseIdx, true > |
enum | ExceptQuantities |
Public Member Functions | |
Spe5ParameterCache () | |
The constructor. More... | |
template<class FluidState > | |
void | updatePhase (const FluidState &fs, int phaseIdx, int except=ParentType::None) |
Update all parameters required by the fluid system to calculate some quantities for the phase. More... | |
template<class FluidState > | |
void | updateSingleMoleFraction (const FluidState &fs, int phaseIdx, int compIdx) |
Update all cached parameters of a specific fluid phase which depend on the mole fraction of a single component. More... | |
Scalar | a (int phaseIdx) const |
The Peng-Robinson attractive parameter for a phase. More... | |
Scalar | b (int phaseIdx) const |
The Peng-Robinson co-volume for a phase. More... | |
Scalar | aPure (int phaseIdx, int compIdx) const |
The Peng-Robinson attractive parameter for a pure component given the same temperature and pressure of the phase. More... | |
Scalar | bPure (int phaseIdx, int compIdx) const |
The Peng-Robinson co-volume for a pure component given the same temperature and pressure of the phase. More... | |
Scalar | molarVolume (int phaseIdx) const |
Returns the molar volume of a phase \mathrm{[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 &fs, int 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 &fs, int exceptQuantities=None) |
Update all cached quantities for all phases. More... | |
void | updateAllPressures (const FluidState &fs) |
Update all cached quantities which depend on the pressure of any fluid phase. More... | |
void | updateAllTemperatures (const FluidState &fs) |
Update all cached quantities which depend on the temperature of any fluid phase. More... | |
void | updateTemperature (const FluidState &fs, int phaseIdx) |
Update all cached parameters of a specific fluid phase which depend on temperature. More... | |
void | updatePressure (const FluidState &fs, int phaseIdx) |
Update all cached parameters of a specific fluid phase which depend on pressure. More... | |
void | updateComposition (const FluidState &fs, int phaseIdx) |
Update all cached parameters of a specific fluid phase which depend on composition. More... | |
Protected Member Functions | |
template<class FluidState > | |
void | updatePure_ (const FluidState &fs, int phaseIdx) |
Update all parameters of a phase which only depend on temperature and/or pressure. More... | |
template<class FluidState > | |
void | updateMix_ (const FluidState &fs, int 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 &fs, int phaseIdx) |
Protected Attributes | |
bool | VmUpToDate_ [numPhases] |
Scalar | Vm_ [numPhases] |
OilPhaseParams | oilPhaseParams_ |
GasPhaseParams | gasPhaseParams_ |
using Dumux::Spe5ParameterCache< Scalar, FluidSystem >::GasPhaseParams = PengRobinsonParamsMixture<Scalar, FluidSystem, gPhaseIdx, true> |
using Dumux::Spe5ParameterCache< Scalar, FluidSystem >::OilPhaseParams = PengRobinsonParamsMixture<Scalar, FluidSystem, oPhaseIdx, true> |
|
inherited |
|
inline |
The constructor.
|
inline |
The Peng-Robinson attractive parameter for a phase.
phaseIdx | The index of the fluid phase to consider |
|
inline |
The Peng-Robinson attractive parameter for a pure component given the same temperature and pressure of the phase.
compIdx | The index of the component to consider |
phaseIdx | The index of the fluid phase to consider |
|
inline |
The Peng-Robinson co-volume for a phase.
phaseIdx | The index of the fluid phase to consider |
|
inline |
The Peng-Robinson co-volume for a pure component given the same temperature and pressure of the phase.
compIdx | The index of the component to consider |
phaseIdx | The index of the fluid phase to consider |
|
inline |
Returns the Peng-Robinson mixture parameters for the gas phase.
|
inline |
Returns the molar volume of a phase \mathrm{[m^3/mol]}.
phaseIdx | The index of the fluid phase to consider |
|
inline |
Returns the Peng-Robinson mixture parameters for the oil phase.
|
inlineinherited |
Update all cached quantities for all phases.
The except
argument contains a bit field of the quantities which have not been modified since the last call to an update()
method.
|
inlineinherited |
Update all cached quantities which depend on the pressure of any fluid phase.
|
inlineinherited |
Update all cached quantities which depend on the temperature of any fluid phase.
|
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()!
|
inline |
Update all parameters required by the equation of state to calculate some quantities for the phase.
|
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.
|
inlineprotected |
|
inline |
Update all parameters required by the fluid system to calculate some quantities for the phase.
fs | An arbitrary fluid state |
phaseIdx | The index of the fluid phase to consider |
except | The except quantity |
|
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()!
|
inlineprotected |
Update all parameters of a phase which only depend on temperature and/or pressure.
This usually means the parameters for the pure components.
|
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()!
fs | An arbitrary fluid state |
compIdx | The index of the component to consider |
phaseIdx | The index of the fluid phase to consider |
|
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()!
|
protected |
|
protected |
|
protected |
|
protected |