teqp 0.22.0
Loading...
Searching...
No Matches
teqp::iteration::AlphaModel Class Reference

#include <iteration.hpp>

Public Member Functions

template<typename Z >
auto get_R (const Z &z) const
 
auto get_R (const std::vector< double > &z) const
 
template<typename Z >
Eigen::Array33d get_deriv_mat2 (double T, double rho, const Z &z) const
 
Eigen::Array33d get_deriv_mat2 (double T, double rho, const std::vector< double > &z) const
 
template<typename Z >
auto get_A00A10A01 (double T, double rho, const Z &z) const
 
template<typename Array >
auto get_vals (const std::vector< char > &vars, const double R, const double T, const double rho, const Array &z) const
 A convenience function for calculation of Jacobian terms of the form \( J_{i0} = \frac{\partial y}{\partial T} \) and \( J_{i1} = \frac{\partial y}{\partial \rho} \) where \(y\) is one of the thermodynamic variables in vars.
 

Public Attributes

std::shared_ptr< AbstractModelmodel_ideal_gas
 
std::shared_ptr< AbstractModelmodel_residual
 

Detailed Description

Definition at line 128 of file iteration.hpp.

Member Function Documentation

◆ get_A00A10A01()

template<typename Z >
auto teqp::iteration::AlphaModel::get_A00A10A01 ( double T,
double rho,
const Z & z ) const
inline

Definition at line 153 of file iteration.hpp.

◆ get_deriv_mat2() [1/2]

Eigen::Array33d teqp::iteration::AlphaModel::get_deriv_mat2 ( double T,
double rho,
const std::vector< double > & z ) const
inline

Definition at line 147 of file iteration.hpp.

◆ get_deriv_mat2() [2/2]

template<typename Z >
Eigen::Array33d teqp::iteration::AlphaModel::get_deriv_mat2 ( double T,
double rho,
const Z & z ) const
inline

Definition at line 143 of file iteration.hpp.

◆ get_R() [1/2]

auto teqp::iteration::AlphaModel::get_R ( const std::vector< double > & z) const
inline

Definition at line 137 of file iteration.hpp.

◆ get_R() [2/2]

template<typename Z >
auto teqp::iteration::AlphaModel::get_R ( const Z & z) const
inline

Definition at line 133 of file iteration.hpp.

◆ get_vals()

template<typename Array >
auto teqp::iteration::AlphaModel::get_vals ( const std::vector< char > & vars,
const double R,
const double T,
const double rho,
const Array & z ) const
inline

A convenience function for calculation of Jacobian terms of the form \( J_{i0} = \frac{\partial y}{\partial T} \) and \( J_{i1} = \frac{\partial y}{\partial \rho} \) where \(y\) is one of the thermodynamic variables in vars.

Parameters
varsA set of chars, allowed are 'H','S','U','P','T','D'
AThe matrix of derivatives of \(\alpha^{\rm ig} + \alpha^{\rm r}\), perhaps obtained from teqp::DerivativeHolderSquare, or via get_deriv_mat2 of the AbstractModel
RThe molar gas constant
TTemperature
rhoMolar density
zMole fractions

Definition at line 170 of file iteration.hpp.

Member Data Documentation

◆ model_ideal_gas

std::shared_ptr<AbstractModel> teqp::iteration::AlphaModel::model_ideal_gas

Definition at line 130 of file iteration.hpp.

◆ model_residual

std::shared_ptr<AbstractModel> teqp::iteration::AlphaModel::model_residual

Definition at line 130 of file iteration.hpp.


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