Opm::FluidStateNullCompositionModule< Scalar > Class Template Reference

Module for the modular fluid state which does not store the compositions but throws std::logic_error instead. More...

#include <FluidStateCompositionModules.hpp>

Public Types

enum  { numComponents = 0 }
 

Public Member Functions

 FluidStateNullCompositionModule ()=default
 
Scalar moleFraction (unsigned, unsigned) const
 The mole fraction of a component in a phase []. More...
 
Scalar massFraction (unsigned, unsigned) const
 The mass fraction of a component in a phase []. More...
 
Scalar averageMolarMass (unsigned) const
 The mean molar mass of a fluid phase [kg/mol]. More...
 
Scalar molarity (unsigned, unsigned) const
 The concentration of a component in a phase [mol/m^3]. More...
 
void checkDefined () const
 Make sure that all attributes are defined. More...
 

Detailed Description

template<class Scalar>
class Opm::FluidStateNullCompositionModule< Scalar >

Module for the modular fluid state which does not store the compositions but throws std::logic_error instead.

Member Enumeration Documentation

◆ anonymous enum

template<class Scalar >
anonymous enum
Enumerator
numComponents 

Constructor & Destructor Documentation

◆ FluidStateNullCompositionModule()

template<class Scalar >
Opm::FluidStateNullCompositionModule< Scalar >::FluidStateNullCompositionModule ( )
default

Member Function Documentation

◆ averageMolarMass()

template<class Scalar >
Scalar Opm::FluidStateNullCompositionModule< Scalar >::averageMolarMass ( unsigned  ) const
inline

The mean molar mass of a fluid phase [kg/mol].

The average mass is the mean molar mass of a molecule of the fluid at current composition. It is defined as the sum of the component's molar masses weighted by the current mole fraction:

\[ \bar M_\alpha = \sum_\kappa M^\kappa x_\alpha^\kappa \]

◆ checkDefined()

template<class Scalar >
void Opm::FluidStateNullCompositionModule< Scalar >::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.

◆ massFraction()

template<class Scalar >
Scalar Opm::FluidStateNullCompositionModule< Scalar >::massFraction ( unsigned  ,
unsigned   
) const
inline

The mass fraction of a component in a phase [].

◆ molarity()

template<class Scalar >
Scalar Opm::FluidStateNullCompositionModule< Scalar >::molarity ( unsigned  ,
unsigned   
) const
inline

The concentration of a component in a phase [mol/m^3].

This quantity is often called "molar concentration" or just "concentration", but there are many other (though less common) measures for concentration.

http://en.wikipedia.org/wiki/Concentration

◆ moleFraction()

template<class Scalar >
Scalar Opm::FluidStateNullCompositionModule< Scalar >::moleFraction ( unsigned  ,
unsigned   
) const
inline

The mole fraction of a component in a phase [].


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