Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation > Class Template Reference

Module for the modular fluid state which stores the densities explicitly. More...

#include <FluidStateDensityModules.hpp>

Inheritance diagram for Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >:
Inheritance graph

Public Member Functions

 FluidStateExplicitDensityModule ()
 
const Scalar & density (unsigned phaseIdx) const
 The density of a fluid phase [kg/m^3]. More...
 
Scalar molarDensity (unsigned phaseIdx) const
 The molar density of a fluid phase [mol/m^3]. More...
 
Scalar molarVolume (unsigned phaseIdx) const
 The molar volume of a fluid phase [m^3/mol]. More...
 
void setDensity (unsigned phaseIdx, const Scalar &value)
 Set the density of a phase [kg/m^3]. More...
 
template<class FluidState >
void assign (const FluidState &fs)
 Retrieve all parameters from an arbitrary fluid state. More...
 
void checkDefined () const
 Make sure that all attributes are defined. More...
 

Protected Member Functions

const Implementation & asImp_ () const
 

Protected Attributes

Scalar density_ [numPhases]
 

Detailed Description

template<class Scalar, int numPhases, class Implementation>
class Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >

Module for the modular fluid state which stores the densities explicitly.

Constructor & Destructor Documentation

template<class Scalar, int numPhases, class Implementation>
Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::FluidStateExplicitDensityModule ( )
inline

Member Function Documentation

template<class Scalar, int numPhases, class Implementation>
const Implementation& Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::asImp_ ( ) const
inlineprotected
template<class Scalar, int numPhases, class Implementation>
template<class FluidState >
void Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::assign ( const FluidState &  fs)
inline

Retrieve all parameters from an arbitrary fluid state.

template<class Scalar, int numPhases, class Implementation>
void Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::checkDefined ( ) const
inline

Make sure that all attributes are defined.

This method does not do anything if the program is not run under valgrind. If it is, then valgrind will print an error message if some attributes of the object have not been properly defined.

template<class Scalar, int numPhases, class Implementation>
const Scalar& Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::density ( unsigned  phaseIdx) const
inline

The density of a fluid phase [kg/m^3].

template<class Scalar, int numPhases, class Implementation>
Scalar Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::molarDensity ( unsigned  phaseIdx) const
inline
template<class Scalar, int numPhases, class Implementation>
Scalar Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::molarVolume ( unsigned  phaseIdx) const
inline

The molar volume of a fluid phase [m^3/mol].

template<class Scalar, int numPhases, class Implementation>
void Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::setDensity ( unsigned  phaseIdx,
const Scalar &  value 
)
inline

Set the density of a phase [kg/m^3].

Member Data Documentation


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