HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState > Class Template Reference

This is a fluid state which makes sure that only the quantities allowed are accessed. More...

#include <checkFluidSystem.hpp>

Inheritance diagram for HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >:
Inheritance graph

Public Types

enum  { numPhases = FluidSystem::numPhases }
 
enum  { numComponents = FluidSystem::numComponents }
 
typedef ScalarT Scalar
 

Public Member Functions

 HairSplittingFluidState ()
 
void allowTemperature (bool yesno)
 
void allowPressure (bool yesno)
 
void allowComposition (bool yesno)
 
void allowDensity (bool yesno)
 
void restrictToPhase (int phaseIdx)
 
BaseFluidState & base ()
 
const BaseFluidState & base () const
 
auto temperature (unsigned phaseIdx) const -> decltype(this->base().temperature(phaseIdx))
 
auto pressure (unsigned phaseIdx) const -> decltype(this->base().pressure(phaseIdx))
 
auto moleFraction (unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().moleFraction(phaseIdx, compIdx))
 
auto massFraction (unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().massFraction(phaseIdx, compIdx))
 
auto averageMolarMass (unsigned phaseIdx) const -> decltype(this->base().averageMolarMass(phaseIdx))
 
auto molarity (unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().molarity(phaseIdx, compIdx))
 
auto molarDensity (unsigned phaseIdx) const -> decltype(this->base().molarDensity(phaseIdx))
 
auto molarVolume (unsigned phaseIdx) const -> decltype(this->base().molarVolume(phaseIdx))
 
auto density (unsigned phaseIdx) const -> decltype(this->base().density(phaseIdx))
 
auto saturation (unsigned phaseIdx) const -> decltype(this->base().saturation(phaseIdx))
 
auto fugacity (unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().fugacity(phaseIdx, compIdx))
 
auto fugacityCoefficient (unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().fugacityCoefficient(phaseIdx, compIdx))
 
auto enthalpy (unsigned phaseIdx) const -> decltype(this->base().enthalpy(phaseIdx))
 
auto internalEnergy (unsigned phaseIdx) const -> decltype(this->base().internalEnergy(phaseIdx))
 
auto viscosity (unsigned phaseIdx) const -> decltype(this->base().viscosity(phaseIdx))
 

Detailed Description

template<class ScalarT, class FluidSystem, class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
class HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >

This is a fluid state which makes sure that only the quantities allowed are accessed.

Member Typedef Documentation

◆ Scalar

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
typedef ScalarT HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::Scalar

Member Enumeration Documentation

◆ anonymous enum

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
anonymous enum
Enumerator
numPhases 

◆ anonymous enum

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
anonymous enum
Enumerator
numComponents 

Constructor & Destructor Documentation

◆ HairSplittingFluidState()

Member Function Documentation

◆ allowComposition()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
void HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::allowComposition ( bool  yesno)
inline

◆ allowDensity()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
void HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::allowDensity ( bool  yesno)
inline

◆ allowPressure()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
void HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::allowPressure ( bool  yesno)
inline

◆ allowTemperature()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
void HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::allowTemperature ( bool  yesno)
inline

◆ averageMolarMass()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::averageMolarMass ( unsigned  phaseIdx) const -> decltype(this->base().averageMolarMass(phaseIdx))
inline

◆ base() [1/2]

◆ base() [2/2]

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
const BaseFluidState & HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::base ( ) const
inline

◆ density()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::density ( unsigned  phaseIdx) const -> decltype(this->base().density(phaseIdx))
inline

◆ enthalpy()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::enthalpy ( unsigned  phaseIdx) const -> decltype(this->base().enthalpy(phaseIdx))
inline

◆ fugacity()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::fugacity ( unsigned  phaseIdx,
unsigned  compIdx 
) const -> decltype(this->base().fugacity(phaseIdx, compIdx))
inline

◆ fugacityCoefficient()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::fugacityCoefficient ( unsigned  phaseIdx,
unsigned  compIdx 
) const -> decltype(this->base().fugacityCoefficient(phaseIdx, compIdx))
inline

◆ internalEnergy()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::internalEnergy ( unsigned  phaseIdx) const -> decltype(this->base().internalEnergy(phaseIdx))
inline

◆ massFraction()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::massFraction ( unsigned  phaseIdx,
unsigned  compIdx 
) const -> decltype(this->base().massFraction(phaseIdx, compIdx))
inline

◆ molarDensity()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::molarDensity ( unsigned  phaseIdx) const -> decltype(this->base().molarDensity(phaseIdx))
inline

◆ molarity()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::molarity ( unsigned  phaseIdx,
unsigned  compIdx 
) const -> decltype(this->base().molarity(phaseIdx, compIdx))
inline

◆ molarVolume()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::molarVolume ( unsigned  phaseIdx) const -> decltype(this->base().molarVolume(phaseIdx))
inline

◆ moleFraction()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::moleFraction ( unsigned  phaseIdx,
unsigned  compIdx 
) const -> decltype(this->base().moleFraction(phaseIdx, compIdx))
inline

◆ pressure()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::pressure ( unsigned  phaseIdx) const -> decltype(this->base().pressure(phaseIdx))
inline

◆ restrictToPhase()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
void HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::restrictToPhase ( int  phaseIdx)
inline

◆ saturation()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::saturation ( unsigned  phaseIdx) const -> decltype(this->base().saturation(phaseIdx))
inline

◆ temperature()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::temperature ( unsigned  phaseIdx) const -> decltype(this->base().temperature(phaseIdx))
inline

◆ viscosity()

template<class ScalarT , class FluidSystem , class BaseFluidState = Opm::CompositionalFluidState<ScalarT, FluidSystem>>
auto HairSplittingFluidState< ScalarT, FluidSystem, BaseFluidState >::viscosity ( unsigned  phaseIdx) const -> decltype(this->base().viscosity(phaseIdx))
inline

The documentation for this class was generated from the following file: