teqp 0.22.0
Loading...
Searching...
No Matches
teqp::VirialDerivatives< Model, Scalar, VectorType > Struct Template Reference

#include <derivs.hpp>

Static Public Member Functions

static auto get_B2vir (const Model &model, const Scalar &T, const VectorType &molefrac)
 
template<int Nderiv, ADBackends be = ADBackends::autodiff>
static auto get_Bnvir (const Model &model, const Scalar &T, const VectorType &molefrac)
 
template<ADBackends be = ADBackends::autodiff>
static auto get_Bnvir_runtime (const int Nderiv, const Model &model, const Scalar &T, const VectorType &molefrac)
 
template<int Nderiv, int NTderiv, ADBackends be = ADBackends::autodiff>
static auto get_dmBnvirdTm (const Model &model, const Scalar &T, const VectorType &molefrac)
 Temperature derivatives of a virial coefficient.
 
template<ADBackends be = ADBackends::autodiff>
static auto get_dmBnvirdTm_runtime (const int Nderiv, const int NTderiv, const Model &model, const Scalar &T, const VectorType &molefrac)
 
static auto get_B12vir (const Model &model, const Scalar &T, const VectorType &molefrac)
 Calculate the cross-virial coefficient \(B_{12}\).
 

Detailed Description

template<typename Model, typename Scalar = double, typename VectorType = Eigen::ArrayXd>
struct teqp::VirialDerivatives< Model, Scalar, VectorType >

Definition at line 694 of file derivs.hpp.

Member Function Documentation

◆ get_B12vir()

template<typename Model , typename Scalar = double, typename VectorType = Eigen::ArrayXd>
static auto teqp::VirialDerivatives< Model, Scalar, VectorType >::get_B12vir ( const Model & model,
const Scalar & T,
const VectorType & molefrac )
inlinestatic

Calculate the cross-virial coefficient \(B_{12}\).

Parameters
modelThe model to use
Ttemperature
molefracmole fractions

Definition at line 856 of file derivs.hpp.

◆ get_B2vir()

template<typename Model , typename Scalar = double, typename VectorType = Eigen::ArrayXd>
static auto teqp::VirialDerivatives< Model, Scalar, VectorType >::get_B2vir ( const Model & model,
const Scalar & T,
const VectorType & molefrac )
inlinestatic

Definition at line 696 of file derivs.hpp.

◆ get_Bnvir()

template<typename Model , typename Scalar = double, typename VectorType = Eigen::ArrayXd>
template<int Nderiv, ADBackends be = ADBackends::autodiff>
static auto teqp::VirialDerivatives< Model, Scalar, VectorType >::get_Bnvir ( const Model & model,
const Scalar & T,
const VectorType & molefrac )
inlinestatic

\( B_n = \frac{1}{(n-2)!} \lim_{\rho\to 0} \left(\frac{\partial ^{n-1}\alpha^{\rm r}}{\partial \rho^{n-1}}\right)_{T,z} \)

Template Parameters
NderivThe maximum virial coefficient to return; e.g. 5: B_2, B_3, ..., B_5
Parameters
modelThe model providing the alphar function
TTemperature
molefracThe mole fractions

Definition at line 714 of file derivs.hpp.

◆ get_Bnvir_runtime()

template<typename Model , typename Scalar = double, typename VectorType = Eigen::ArrayXd>
template<ADBackends be = ADBackends::autodiff>
static auto teqp::VirialDerivatives< Model, Scalar, VectorType >::get_Bnvir_runtime ( const int Nderiv,
const Model & model,
const Scalar & T,
const VectorType & molefrac )
inlinestatic

This version of the get_Bnvir takes the maximum number of derivatives as a runtime argument and then forwards all arguments to the corresponding templated function

Definition at line 757 of file derivs.hpp.

◆ get_dmBnvirdTm()

template<typename Model , typename Scalar = double, typename VectorType = Eigen::ArrayXd>
template<int Nderiv, int NTderiv, ADBackends be = ADBackends::autodiff>
static auto teqp::VirialDerivatives< Model, Scalar, VectorType >::get_dmBnvirdTm ( const Model & model,
const Scalar & T,
const VectorType & molefrac )
inlinestatic

Temperature derivatives of a virial coefficient.

\( \left(\frac{\partial^m{B_n}}{\partial T^m}\right) = \frac{1}{(n-2)!} \lim_{\rho\to 0} \left(\frac{\partial ^{(n-1)+m}\alpha^{\rm r}}{\partial T^m \partial \rho^{n-1}}\right)_{T, z} \)

Template Parameters
NderivThe virial coefficient to return; e.g. 5: B_5
NTderivThe number of temperature derivatives to calculate
Parameters
modelThe model providing the alphar function
TTemperature
molefracThe mole fractions

Definition at line 784 of file derivs.hpp.

◆ get_dmBnvirdTm_runtime()

template<typename Model , typename Scalar = double, typename VectorType = Eigen::ArrayXd>
template<ADBackends be = ADBackends::autodiff>
static auto teqp::VirialDerivatives< Model, Scalar, VectorType >::get_dmBnvirdTm_runtime ( const int Nderiv,
const int NTderiv,
const Model & model,
const Scalar & T,
const VectorType & molefrac )
inlinestatic

This version of the get_dmBnvirdTm takes the maximum number of derivatives as runtime arguments and then forwards all arguments to the templated function

Definition at line 817 of file derivs.hpp.


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