Opm::NcpRateVector< TypeTag > Class Template Reference

Implements a vector representing mass, molar or volumetric rates. More...

#include <ncpratevector.hh>

Inheritance diagram for Opm::NcpRateVector< TypeTag >:
Inheritance graph

Public Member Functions

 NcpRateVector ()
 
 NcpRateVector (const Evaluation &value)
 
 NcpRateVector (const NcpRateVector &value)
 
void setMassRate (const ParentType &value)
 Set a mass rate of the conservation quantities. More...
 
void setMolarRate (const ParentType &value)
 Set a molar rate of the conservation quantities. More...
 
template<class RhsEval >
void setEnthalpyRate (const RhsEval &rate)
 Set an enthalpy rate [J/As] where $A \in \{m^2, m^3\}$. More...
 
template<class FluidState , class RhsEval >
void setVolumetricRate (const FluidState &fluidState, unsigned phaseIdx, const RhsEval &volume)
 Set a volumetric rate of a phase. More...
 
template<class RhsEval >
NcpRateVectoroperator= (const RhsEval &value)
 Assignment operator from a scalar or a function evaluation. More...
 
NcpRateVectoroperator= (const NcpRateVector &other)
 Assignment operator from another rate vector. More...
 

Detailed Description

template<class TypeTag>
class Opm::NcpRateVector< TypeTag >

Implements a vector representing mass, molar or volumetric rates.

This class is basically a Dune::FieldVector which can be set using either mass, molar or volumetric rates.

Constructor & Destructor Documentation

◆ NcpRateVector() [1/3]

template<class TypeTag >
Opm::NcpRateVector< TypeTag >::NcpRateVector ( )
inline

◆ NcpRateVector() [2/3]

template<class TypeTag >
Opm::NcpRateVector< TypeTag >::NcpRateVector ( const Evaluation &  value)
inline

◆ NcpRateVector() [3/3]

template<class TypeTag >
Opm::NcpRateVector< TypeTag >::NcpRateVector ( const NcpRateVector< TypeTag > &  value)
inline

Member Function Documentation

◆ operator=() [1/2]

template<class TypeTag >
NcpRateVector & Opm::NcpRateVector< TypeTag >::operator= ( const NcpRateVector< TypeTag > &  other)
inline

Assignment operator from another rate vector.

◆ operator=() [2/2]

template<class TypeTag >
template<class RhsEval >
NcpRateVector & Opm::NcpRateVector< TypeTag >::operator= ( const RhsEval &  value)
inline

Assignment operator from a scalar or a function evaluation.

◆ setEnthalpyRate()

template<class TypeTag >
template<class RhsEval >
void Opm::NcpRateVector< TypeTag >::setEnthalpyRate ( const RhsEval &  rate)
inline

Set an enthalpy rate [J/As] where $A \in \{m^2, m^3\}$.

If the energy equation is not enabled, this method is a no-op.

Parameters
rateThe enthalpy rate in $[J/(m^2\,s)]$

◆ setMassRate()

template<class TypeTag >
void Opm::NcpRateVector< TypeTag >::setMassRate ( const ParentType &  value)
inline

Set a mass rate of the conservation quantities.

Enthalpy is not taken into account seperately here. This means that it must be set to the desired value in the parameter.

Parameters
valueThe mass rate in $[kg/(m^2\,s)]$ (unit for areal fluxes)

References Opm::NcpRateVector< TypeTag >::setMolarRate().

◆ setMolarRate()

template<class TypeTag >
void Opm::NcpRateVector< TypeTag >::setMolarRate ( const ParentType &  value)
inline

Set a molar rate of the conservation quantities.

Enthalpy is not taken into account seperately here. This means that it must be set to the desired value in the parameter.

Parameters
valueThe new molar rate in $[mol/(m^2\,s)]$

Referenced by Opm::NcpRateVector< TypeTag >::setMassRate().

◆ setVolumetricRate()

template<class TypeTag >
template<class FluidState , class RhsEval >
void Opm::NcpRateVector< TypeTag >::setVolumetricRate ( const FluidState &  fluidState,
unsigned  phaseIdx,
const RhsEval &  volume 
)
inline

Set a volumetric rate of a phase.

The enthalpy transported into the domain is taken into account by this method.

Parameters
fluidStateThe thermodynamic state of the fluids which should be considered. The density and the composition of the considered phase must be specified before calling this method.
phaseIdxThe index of the fluid phase for which the given amount of volume should be specified.
volumeThe volumetric rate of the fluid phase in $[m^3/(m^2\,s)]$ (unit for areal fluxes)

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