The Shomate method to compute enthalpy and heat capacity. More...
#include <dumux/material/components/shomate.hh>
Scalar | the type of the scalar values |
intervals | the 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 = struct { 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. | |
Scalar | enthalpy (const Scalar temperature) const |
Return enthalpy in kJ/mol. | |
Scalar | heatCapacity (const Scalar temperature) const |
Return heat capacity in J/(mol*K) | |
using Dumux::ShomateMethod< Scalar, intervals >::Coefficients = std::conditional_t<intervals == -1, std::vector<CoefficientSet>, std::array<CoefficientSet, std::size_t(intervals)>> |
using Dumux::ShomateMethod< Scalar, intervals >::CoefficientSet = struct { Scalar A, B, C, D, E, F, G, H; } |
using Dumux::ShomateMethod< Scalar, intervals >::Temperatures = std::conditional_t<intervals == -1, std::vector<Scalar>, std::array<Scalar, std::size_t(intervals+1)>> |
|
inlineconstexpr |
temperatures | lower bound of the temperature intervals plus the upper bound of the last interval |
coeffs | contains the sets of coefficients for each temperature interval bounded by the entries of temperatures |
|
inline |
temperature | in K |
|
inline |
temperature | in K |