My Project
|
The type of the fluid system's parameter cache. More...
#include <BlackOilFluidSystem.hpp>
Public Types | |
using | Evaluation = EvaluationT |
![]() | |
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 | |
ParameterCache (Scalar maxOilSat=1.0, unsigned regionIdx=0) | |
template<class OtherCache > | |
void | assignPersistentData (const OtherCache &other) |
Copy the data which is not dependent on the type of the Scalars from another parameter cache. | |
unsigned | regionIndex () const |
Return the index of the region which should be used to determine the thermodynamic properties. | |
void | setRegionIndex (unsigned val) |
Set the index of the region which should be used to determine the thermodynamic properties. | |
const Evaluation & | maxOilSat () const |
void | setMaxOilSat (const Evaluation &val) |
![]() | |
template<class OtherCache > | |
void | assignPersistentData (const OtherCache &) |
Copy the data which is not dependent on the type of the Scalars from another parameter cache. | |
template<class FluidState > | |
void | updateAll (const FluidState &fluidState, int=None) |
Update the quantities of the parameter cache for all phases. | |
template<class FluidState > | |
void | updateAllPressures (const FluidState &fluidState) |
Update pressure dependent quantities of the parameter cache for all phases. | |
template<class FluidState > | |
void | updateAllTemperatures (const FluidState &fluidState) |
Update temperature dependent quantities of the parameter cache for all phases. | |
template<class FluidState > | |
void | updatePhase (const FluidState &, unsigned, int=None) |
Update all cached parameters of a specific fluid phase. | |
template<class FluidState > | |
void | updateTemperature (const FluidState &fluidState, unsigned phaseIdx) |
Update all cached parameters of a specific fluid phase which depend on temperature. | |
template<class FluidState > | |
void | updatePressure (const FluidState &fluidState, unsigned phaseIdx) |
Update all cached parameters of a specific fluid phase which depend on pressure. | |
template<class FluidState > | |
void | updateComposition (const FluidState &fluidState, unsigned phaseIdx) |
Update all cached parameters of a specific fluid phase which depend on composition. | |
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. | |
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.
|
inline |
Copy the data which is not dependent on the type of the Scalars from another parameter cache.
For the black-oil parameter cache this means that the region index must be copied.
|
inline |
Return the index of the region which should be used to determine the thermodynamic properties.
This is only required because "oil" and "gas" are pseudo-components, i.e. for more comprehensive equations of state there would only be one "region".
|
inline |
Set the index of the region which should be used to determine the thermodynamic properties.
This is only required because "oil" and "gas" are pseudo-components, i.e. for more comprehensive equations of state there would only be one "region".