version 3.9
Dumux::ShomateMethod< Scalar, intervals > Class Template Reference

The Shomate method to compute enthalpy and heat capacity. More...

#include <dumux/material/components/shomate.hh>

Description

template<class Scalar, int intervals = -1>
class Dumux::ShomateMethod< Scalar, intervals >
Template Parameters
Scalarthe type of the scalar values
intervalsthe static number of intervals for the temperature range, each interval has its own set of coefficients. If -1 the number of intervals is dynamic.

Public Types

using CoefficientSet = { Scalar A, B, C, D, E, F, G, H
 
using Temperatures = std::conditional_t< intervals==-1, std::vector< Scalar >, std::array< Scalar, std::size_t(intervals+1)> >
 
using Coefficients = std::conditional_t< intervals==-1, std::vector< CoefficientSet >, std::array< CoefficientSet, std::size_t(intervals)> >
 

Public Member Functions

constexpr ShomateMethod (const Temperatures &temperatures, const Coefficients &coeffs)
 Constructor for Shomate method class. More...
 
Scalar enthalpy (const Scalar temperature) const
 Return enthalpy in kJ/mol. More...
 
Scalar heatCapacity (const Scalar temperature) const
 Return heat capacity in J/(mol*K) More...
 

Member Typedef Documentation

◆ Coefficients

template<class Scalar , int intervals = -1>
using Dumux::ShomateMethod< Scalar, intervals >::Coefficients = std::conditional_t<intervals == -1, std::vector<CoefficientSet>, std::array<CoefficientSet, std::size_t(intervals)> >

◆ CoefficientSet

template<class Scalar , int intervals = -1>
using Dumux::ShomateMethod< Scalar, intervals >::CoefficientSet = { Scalar A, B, C, D, E, F, G, H

◆ Temperatures

template<class Scalar , int intervals = -1>
using Dumux::ShomateMethod< Scalar, intervals >::Temperatures = std::conditional_t<intervals == -1, std::vector<Scalar>, std::array<Scalar, std::size_t(intervals+1)> >

Constructor & Destructor Documentation

◆ ShomateMethod()

template<class Scalar , int intervals = -1>
constexpr Dumux::ShomateMethod< Scalar, intervals >::ShomateMethod ( const Temperatures temperatures,
const Coefficients coeffs 
)
inlineconstexpr
Parameters
temperatureslower bound of the temperature intervals plus the upper bound of the last interval
coeffscontains the sets of coefficients for each temperature interval bounded by the entries of temperatures

Member Function Documentation

◆ enthalpy()

template<class Scalar , int intervals = -1>
Scalar Dumux::ShomateMethod< Scalar, intervals >::enthalpy ( const Scalar  temperature) const
inline
Parameters
temperaturein K
Returns
Scalar

◆ heatCapacity()

template<class Scalar , int intervals = -1>
Scalar Dumux::ShomateMethod< Scalar, intervals >::heatCapacity ( const Scalar  temperature) const
inline
Parameters
temperaturein K
Returns
Scalar

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