antioch-0.4.0
|
This class only differs from NASA9CurveFit in the construction. More...
#include <ascii_parser.h>
Public Member Functions | |
CEACurveFit (const std::vector< CoeffType > &coeffs) | |
CEACurveFit (const std::vector< CoeffType > &coeffs, const std::vector< CoeffType > &temps) | |
~CEACurveFit () | |
template<typename StateType > | |
const StateType | cp_over_R (const TempCache< StateType > &cache) const |
template<typename StateType > | |
StateType | h_over_RT (const TempCache< StateType > &cache) const |
template<typename StateType > | |
StateType | s_over_R (const TempCache< StateType > &cache) const |
template<typename StateType > | |
StateType | h_RT_minus_s_R (const TempCache< StateType > &cache) const |
template<typename StateType > | |
StateType | dh_RT_minus_s_R_dT (const TempCache< StateType > &cache) const |
unsigned int | n_intervals () const |
The number of intervals for this NASA9 curve fit. More... | |
template<typename StateType > | |
Antioch::rebind< StateType, unsigned int >::type | interval (const StateType &T) const |
The interval the input temperature lies in. More... | |
template<typename StateType > | |
Antioch::rebind< StateType, unsigned int >::type | interval (const StateType &T) const |
const CoeffType * | coefficients (const unsigned int interval) const |
The ordering/packing of the coefficients will depend on the subclass. More... | |
Protected Member Functions | |
void | init_nasa9_temps (const std::vector< CoeffType > &coeffs, unsigned n_coeffs) |
void | check_coeff_size () const |
void | check_temp_coeff_size_consistency () const |
Protected Attributes | |
unsigned int | _n_coeffs |
The number of coefficients in each interval. More... | |
std::vector< CoeffType > | _coefficients |
The coefficient data. More... | |
std::vector< CoeffType > | _temp |
The temperatures. More... | |
Private Member Functions | |
void | remap_coeffs (const std::vector< CoeffType > &coeffs) |
This class only differs from NASA9CurveFit in the construction.
Here, we assume that there are 10 coefficients, with the 7th being zero. This is exactly the format output from NASA's CEA program and, hence, this class was build to enable this compatiblity. Internally, the coefficients are remapped to 9 coefficients and is then functionally identical to NASA9CurveFit.
Definition at line 72 of file ascii_parser.h.
|
inline |
Definition at line 61 of file cea_curve_fit.h.
References Antioch::NASACurveFitBase< CoeffType >::_coefficients, Antioch::NASACurveFitBase< CoeffType >::_n_coeffs, antioch_error_msg, Antioch::NASACurveFitBase< CoeffType >::check_coeff_size(), Antioch::NASACurveFitBase< CoeffType >::check_temp_coeff_size_consistency(), Antioch::NASA9CurveFit< CoeffType >::init_nasa9_temps(), and Antioch::CEACurveFit< CoeffType >::remap_coeffs().
|
inline |
Definition at line 81 of file cea_curve_fit.h.
References Antioch::NASACurveFitBase< CoeffType >::_coefficients, Antioch::NASACurveFitBase< CoeffType >::_n_coeffs, Antioch::NASACurveFitBase< CoeffType >::_temp, antioch_error_msg, Antioch::NASACurveFitBase< CoeffType >::check_coeff_size(), Antioch::NASACurveFitBase< CoeffType >::check_temp_coeff_size_consistency(), and Antioch::CEACurveFit< CoeffType >::remap_coeffs().
|
inline |
Definition at line 51 of file cea_curve_fit.h.
|
inlineprotectedinherited |
Definition at line 143 of file nasa_curve_fit_base.h.
References antioch_error_msg.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit(), Antioch::NASA7CurveFit< CoeffType >::NASA7CurveFit(), and Antioch::NASA9CurveFit< CoeffType >::NASA9CurveFit().
|
inlineprotectedinherited |
Definition at line 161 of file nasa_curve_fit_base.h.
References antioch_error_msg.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit(), Antioch::NASA7CurveFit< CoeffType >::NASA7CurveFit(), and Antioch::NASA9CurveFit< CoeffType >::NASA9CurveFit().
|
inlineinherited |
The ordering/packing of the coefficients will depend on the subclass.
Definition at line 133 of file nasa_curve_fit_base.h.
References antioch_assert_less, and antioch_assert_less_equal.
Referenced by AntiochTesting::NASA7XMLParsingTest< long double >::check_curve_fits(), and AntiochTesting::NASA9XMLParsingTest< long double >::test_supplied_species().
|
inlineinherited |
Definition at line 199 of file nasa9_curve_fit.h.
References Antioch::if_else(), Antioch::max(), Antioch::min(), Antioch::TempCache< StateType >::T, Antioch::TempCache< StateType >::T2, Antioch::TempCache< StateType >::T3, Antioch::TempCache< StateType >::T4, and Antioch::zero_clone().
Referenced by AntiochTesting::NASA9CurveFitTest< long double >::test_cp().
|
inlineinherited |
Definition at line 317 of file nasa9_curve_fit.h.
References Antioch::if_else(), Antioch::TempCache< StateType >::lnT, Antioch::max(), Antioch::min(), Antioch::TempCache< StateType >::T, Antioch::TempCache< StateType >::T2, Antioch::TempCache< StateType >::T3, and Antioch::zero_clone().
|
inlineinherited |
Definition at line 229 of file nasa9_curve_fit.h.
References Antioch::if_else(), Antioch::TempCache< StateType >::lnT, Antioch::max(), Antioch::min(), Antioch::TempCache< StateType >::T, Antioch::TempCache< StateType >::T2, Antioch::TempCache< StateType >::T3, Antioch::TempCache< StateType >::T4, and Antioch::zero_clone().
Referenced by AntiochTesting::NASA9CurveFitTest< long double >::test_h().
|
inlineinherited |
Definition at line 286 of file nasa9_curve_fit.h.
References Antioch::if_else(), Antioch::TempCache< StateType >::lnT, Antioch::max(), Antioch::min(), Antioch::TempCache< StateType >::T, Antioch::TempCache< StateType >::T2, Antioch::TempCache< StateType >::T3, Antioch::TempCache< StateType >::T4, and Antioch::zero_clone().
|
inlineprotectedinherited |
Definition at line 182 of file nasa9_curve_fit.h.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit(), and Antioch::NASA9CurveFit< CoeffType >::NASA9CurveFit().
|
inherited |
The interval the input temperature lies in.
|
inlineinherited |
Definition at line 113 of file nasa_curve_fit_base.h.
References Antioch::constant_clone(), Antioch::if_else(), and Antioch::zero_clone().
|
inlineinherited |
The number of intervals for this NASA9 curve fit.
Definition at line 106 of file nasa_curve_fit_base.h.
Referenced by AntiochTesting::NASA7XMLParsingTest< long double >::check_curve_fits(), and AntiochTesting::NASA9XMLParsingTest< long double >::test_supplied_species().
|
inlineprivate |
Definition at line 100 of file cea_curve_fit.h.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit().
|
inlineinherited |
Definition at line 257 of file nasa9_curve_fit.h.
References Antioch::if_else(), Antioch::TempCache< StateType >::lnT, Antioch::max(), Antioch::min(), Antioch::TempCache< StateType >::T, Antioch::TempCache< StateType >::T2, Antioch::TempCache< StateType >::T3, Antioch::TempCache< StateType >::T4, and Antioch::zero_clone().
Referenced by AntiochTesting::NASA9CurveFitTest< long double >::test_s().
|
protectedinherited |
The coefficient data.
The coeffcients are packed in linear ordering. That is, a0-a9 for the first interval, a0-a9 for the second interval, and so on.
Definition at line 85 of file nasa_curve_fit_base.h.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit().
|
protectedinherited |
The number of coefficients in each interval.
Definition at line 77 of file nasa_curve_fit_base.h.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit(), Antioch::NASA7CurveFit< CoeffType >::NASA7CurveFit(), and Antioch::NASA9CurveFit< CoeffType >::NASA9CurveFit().
|
protectedinherited |
The temperatures.
The temperature defining the intervals
Definition at line 91 of file nasa_curve_fit_base.h.
Referenced by Antioch::CEACurveFit< CoeffType >::CEACurveFit(), and Antioch::NASA7CurveFit< CoeffType >::NASA7CurveFit().