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, unsigned numPhases, class Implementation>
class Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >

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

Constructor & Destructor Documentation

◆ FluidStateExplicitDensityModule()

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

Member Function Documentation

◆ asImp_()

template<class Scalar , unsigned numPhases, class Implementation >
const Implementation & Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::asImp_ ( ) const
inlineprotected

◆ assign()

template<class Scalar , unsigned 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.

References Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::density_.

◆ checkDefined()

template<class Scalar , unsigned 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.

References Opm::Valgrind::CheckDefined(), and Opm::FluidStateExplicitDensityModule< Scalar, numPhases, Implementation >::density_.

◆ density()

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

◆ molarDensity()

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

◆ molarVolume()

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

◆ setDensity()

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

Member Data Documentation

◆ density_


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