antioch-0.4.0
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
Antioch::NASA7CurveFit< CoeffType > Class Template Reference

#include <ascii_parser.h>

Inheritance diagram for Antioch::NASA7CurveFit< CoeffType >:
Antioch::NASACurveFitBase< CoeffType >

Public Member Functions

 NASA7CurveFit (const std::vector< CoeffType > &coeffs)
 
 NASA7CurveFit (const std::vector< CoeffType > &coeffs, const std::vector< CoeffType > &temp)
 
 ~NASA7CurveFit ()
 
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 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...
 

Detailed Description

template<typename CoeffType = double>
class Antioch::NASA7CurveFit< CoeffType >

Definition at line 65 of file ascii_parser.h.

Constructor & Destructor Documentation

template<typename CoeffType >
Antioch::NASA7CurveFit< CoeffType >::NASA7CurveFit ( const std::vector< CoeffType > &  coeffs)
inline

Definition at line 122 of file nasa7_curve_fit.h.

References Antioch::NASACurveFitBase< CoeffType >::_n_coeffs, Antioch::NASACurveFitBase< CoeffType >::_temp, Antioch::NASACurveFitBase< CoeffType >::check_coeff_size(), and Antioch::NASACurveFitBase< CoeffType >::check_temp_coeff_size_consistency().

123  : NASACurveFitBase<CoeffType>(coeffs,std::vector<CoeffType>())
124  {
125  this->_n_coeffs = 7;
126 
127  this->_temp.resize(3);
128  this->_temp[0] = 300.L;
129  this->_temp[1] = 1000.L;
130  this->_temp[2] = 5000.L;
131 
132  this->check_coeff_size();
134  }
void check_temp_coeff_size_consistency() const
std::vector< CoeffType > _temp
The temperatures.
unsigned int _n_coeffs
The number of coefficients in each interval.
template<typename CoeffType >
Antioch::NASA7CurveFit< CoeffType >::NASA7CurveFit ( const std::vector< CoeffType > &  coeffs,
const std::vector< CoeffType > &  temp 
)
inline

Definition at line 111 of file nasa7_curve_fit.h.

References Antioch::NASACurveFitBase< CoeffType >::_n_coeffs, Antioch::NASACurveFitBase< CoeffType >::check_coeff_size(), and Antioch::NASACurveFitBase< CoeffType >::check_temp_coeff_size_consistency().

112  : NASACurveFitBase<CoeffType>(coeffs,temp)
113  {
114  this->_n_coeffs = 7;
115 
116  this->check_coeff_size();
118  }
void check_temp_coeff_size_consistency() const
unsigned int _n_coeffs
The number of coefficients in each interval.
template<typename CoeffType = double>
Antioch::NASA7CurveFit< CoeffType >::~NASA7CurveFit ( )
inline

Definition at line 46 of file nasa7_curve_fit.h.

46 {};

Member Function Documentation

template<typename CoeffType >
void Antioch::NASACurveFitBase< CoeffType >::check_coeff_size ( ) const
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().

144  {
145  if( this->_coefficients.size()%this->_n_coeffs != 0 )
146  {
147  std::stringstream ncs;
148  ncs << this->_n_coeffs;
149 
150  std::stringstream css;
151  css << this->_coefficients.size()%this->_n_coeffs;
152 
153  std::string msg = "ERROR: coeffs size must be a multiple of "+ncs.str()+"\n";
154  msg += " Found "+css.str()+"\n";
155  antioch_error_msg(msg);
156  }
157  }
#define antioch_error_msg(errmsg)
unsigned int _n_coeffs
The number of coefficients in each interval.
std::vector< CoeffType > _coefficients
The coefficient data.
template<typename CoeffType >
void Antioch::NASACurveFitBase< CoeffType >::check_temp_coeff_size_consistency ( ) const
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().

162  {
163  if( this->_temp.size() != this->_coefficients.size()/this->_n_coeffs + 1 )
164  {
165  std::stringstream tss;
166  tss << this->_temp.size();
167 
168  std::stringstream css;
169  css << this->_coefficients.size();
170 
171  std::stringstream cssd;
172  cssd << this->_n_coeffs*(this->_temp.size()-1);
173 
174  std::string msg = "ERROR: Inconsistency in temp and coeff size.\n";
175  msg += " Found temp size of "+tss.str()+"\n";
176  msg += " Found coeff size of "+css.str()+"\n";
177  msg += " Expected coeff size of "+cssd.str()+"\n";
178  antioch_error_msg(msg);
179  }
180  }
std::vector< CoeffType > _temp
The temperatures.
#define antioch_error_msg(errmsg)
unsigned int _n_coeffs
The number of coefficients in each interval.
std::vector< CoeffType > _coefficients
The coefficient data.
template<typename CoeffType >
const CoeffType * Antioch::NASACurveFitBase< CoeffType >::coefficients ( const unsigned int  interval) const
inlineinherited

The ordering/packing of the coefficients will depend on the subclass.

Returns
a pointer to the coefficients in the interval specified.

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().

134  {
137 
139  }
#define antioch_assert_less(expr1, expr2)
#define antioch_assert_less_equal(expr1, expr2)
Antioch::rebind< StateType, unsigned int >::type interval(const StateType &T) const
The interval the input temperature lies in.
unsigned int n_intervals() const
The number of intervals for this NASA9 curve fit.
unsigned int _n_coeffs
The number of coefficients in each interval.
std::vector< CoeffType > _coefficients
The coefficient data.
template<typename CoeffType >
template<typename StateType >
const StateType Antioch::NASA7CurveFit< CoeffType >::cp_over_R ( const TempCache< StateType > &  cache) const
inline
Returns
the value $\frac{Cp}{\mathrm{R}}$

\[ \frac{Cp}{\mathrm{R}} = \frac{a_0}{T^2} + \frac{a_1}{T} + a_2 + a_3 T + a_4 T^2 + a_5 T^3 + a_6 T^4 \]

Definition at line 139 of file nasa7_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::NASA7CurveFitTest< long double >::test_cp().

140  {
141  typedef typename
143  const UIntType interval = this->interval(cache.T);
144  const unsigned int begin_interval = Antioch::min(interval);
145  const unsigned int end_interval = Antioch::max(interval)+1;
146 
147  // FIXME - this needs expression templates to be faster...
148 
149  StateType returnval = Antioch::zero_clone(cache.T);
150  for (unsigned int i=begin_interval; i != end_interval; ++i)
151  {
152  const CoeffType * const a =
153  this->coefficients(i);
154  returnval = Antioch::if_else
155  (interval == i,
156  StateType(a[0] + a[1]*cache.T + a[2]*cache.T2 + a[3]*cache.T3 + a[4]*cache.T4),
157  returnval);
158  }
159 
160  return returnval;
161  }
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type max(const T &in)
Definition: eigen_utils.h:88
const CoeffType * coefficients(const unsigned int interval) const
The ordering/packing of the coefficients will depend on the subclass.
Antioch::rebind< StateType, unsigned int >::type interval(const StateType &T) const
The interval the input temperature lies in.
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type min(const T &in)
Definition: eigen_utils.h:98
enable_if_c< is_eigen< T1 >::value &&is_eigen< T2 >::value, typename state_type< T1 >::type >::type if_else(const Condition &condition, const T1 &if_true, const T2 &if_false)
Definition: eigen_utils.h:250
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145
template<typename CoeffType >
template<typename StateType >
StateType Antioch::NASA7CurveFit< CoeffType >::dh_RT_minus_s_R_dT ( const TempCache< StateType > &  cache) const
inline
Returns
the value $\frac{\partial\left(\frac{g}{\mathrm{R}T}\right)}{\partial T} = \frac{\partial\left(\frac{h}{\mathrm{R}T} - \frac{s}{R}\right)}{\partial T}$

\[ \frac{g}{\mathrm{R}T} = - \frac{a_5}{T^2} - \frac{a_0}{T} - \frac{a_1}{2} - \frac{a_2}{3} T - \frac{a_3}{4} T^2 - \frac{a_4}{5} T^3 \]

Definition at line 253 of file nasa7_curve_fit.h.

References Antioch::if_else(), Antioch::max(), Antioch::min(), Antioch::TempCache< StateType >::T, Antioch::TempCache< StateType >::T2, Antioch::TempCache< StateType >::T3, and Antioch::zero_clone().

254  {
255  typedef typename
257  const UIntType interval = this->interval(cache.T);
258  const unsigned int begin_interval = Antioch::min(interval);
259  const unsigned int end_interval = Antioch::max(interval)+1;
260 
261  // FIXME - this needs expression templates to be faster...
262 
263  StateType returnval = Antioch::zero_clone(cache.T);
264 
265  /* h/RT = -a[0]/T2 + a[1]*lnT/T + a[2] + a[3]*T/2. + a[4]*T2/3. + a[5]*T3/4. + a[6]*T4/5. + a[8]/T,
266  s/R = -a[0]/T2/2. - a[1]/T + a[2]*lnT + a[3]*T + a[4]*T2/2. + a[5]*T3/3. + a[6]*T4/4. + a[9] */
267  for (unsigned int i=begin_interval; i != end_interval; ++i)
268  {
269  const CoeffType * const a =
270  this->coefficients(i);
271  returnval = Antioch::if_else
272  (interval == i,
273  StateType(- a[5]/cache.T2 - a[0]/cache.T
274  - a[1]/2.L - a[2]*cache.T/3.L
275  - a[3]*cache.T2/4.L - a[4]*cache.T3/5.L),
276  returnval);
277  }
278 
279  return returnval;
280 
281  }
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type max(const T &in)
Definition: eigen_utils.h:88
const CoeffType * coefficients(const unsigned int interval) const
The ordering/packing of the coefficients will depend on the subclass.
Antioch::rebind< StateType, unsigned int >::type interval(const StateType &T) const
The interval the input temperature lies in.
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type min(const T &in)
Definition: eigen_utils.h:98
enable_if_c< is_eigen< T1 >::value &&is_eigen< T2 >::value, typename state_type< T1 >::type >::type if_else(const Condition &condition, const T1 &if_true, const T2 &if_false)
Definition: eigen_utils.h:250
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145
template<typename CoeffType >
template<typename StateType >
StateType Antioch::NASA7CurveFit< CoeffType >::h_over_RT ( const TempCache< StateType > &  cache) const
inline
Returns
the value $\frac{h}{\mathrm{R}T}$

\[ \frac{h}{\mathrm{R}T} = a0 + \frac{a_1}{2} T + \frac{a_2}{3} T^2 + \frac{a_3}{4} T^3 + \frac{a_4}{5} T^4 + \frac{a_5}{T} \]

Definition at line 166 of file nasa7_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::NASA7CurveFitTest< long double >::test_h().

167  {
168  typedef typename
170  const UIntType interval = this->interval(cache.T);
171  const unsigned int begin_interval = Antioch::min(interval);
172  const unsigned int end_interval = Antioch::max(interval)+1;
173 
174  StateType returnval = Antioch::zero_clone(cache.T);
175 
176  for (unsigned int i=begin_interval; i != end_interval; ++i)
177  {
178  const CoeffType *a = this->coefficients(interval);
179 
180  /* h/RT = a0 + a1*T/2 + a2*T^2/3 + a3*T^3/4 + a4*T^4/5 + a5/T */
181  returnval = Antioch::if_else
182  ( interval == i,
183  StateType( a[0] +
184  a[1]*cache.T/2.0L + a[2]*cache.T2/3.0L + a[3]*cache.T3/4.0L +
185  a[4]*cache.T4/5.0L + a[5]/cache.T),
186  returnval);
187  }
188  return returnval;
189  }
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type max(const T &in)
Definition: eigen_utils.h:88
const CoeffType * coefficients(const unsigned int interval) const
The ordering/packing of the coefficients will depend on the subclass.
Antioch::rebind< StateType, unsigned int >::type interval(const StateType &T) const
The interval the input temperature lies in.
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type min(const T &in)
Definition: eigen_utils.h:98
enable_if_c< is_eigen< T1 >::value &&is_eigen< T2 >::value, typename state_type< T1 >::type >::type if_else(const Condition &condition, const T1 &if_true, const T2 &if_false)
Definition: eigen_utils.h:250
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145
template<typename CoeffType >
template<typename StateType >
StateType Antioch::NASA7CurveFit< CoeffType >::h_RT_minus_s_R ( const TempCache< StateType > &  cache) const
inline
Returns
the value $\frac{g}{\mathrm{R}T} = \frac{h}{\mathrm{R}T} - \frac{s}{R}$

\[ \frac{g}{\mathrm{R}T} = \frac{a_5}{T} - a0 \ln(T) + (a_0 - a_6) - \frac{a_1}{2} T - \frac{a_2}{6} T^2 - \frac{a_3}{12} T^3 - \frac{a_4}{20} T^4 \]

Definition at line 223 of file nasa7_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().

224  {
225  typedef typename
227  const UIntType interval = this->interval(cache.T);
228  const unsigned int begin_interval = Antioch::min(interval);
229  const unsigned int end_interval = Antioch::max(interval)+1;
230 
231  StateType returnval = Antioch::zero_clone(cache.T);
232 
233  for (unsigned int i=begin_interval; i != end_interval; ++i)
234  {
235  const CoeffType *a = this->coefficients(interval);
236 
237  /* h/RT = a[0] + a[1]*T/2. + a[2]*T2/3. + a[3]*T3/4. + a[4]*T4/5. + a[5]/T,
238  s/R = a[0]*lnT + a[1]*T + a[2]*T2/2. + a[3]*T3/3. + a[4]*T4/4. + a[6] */
239  returnval = Antioch::if_else
240  ( interval == i,
241  StateType(a[5]/cache.T - a[0]*cache.lnT
242  + a[0] - a[6]
243  - a[1]/2.L*cache.T - a[2]*cache.T2/6.L
244  - a[3]*cache.T3/12.L - a[4]*cache.T4/20.L),
245  returnval);
246  }
247  return returnval;
248  }
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type max(const T &in)
Definition: eigen_utils.h:88
const CoeffType * coefficients(const unsigned int interval) const
The ordering/packing of the coefficients will depend on the subclass.
Antioch::rebind< StateType, unsigned int >::type interval(const StateType &T) const
The interval the input temperature lies in.
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type min(const T &in)
Definition: eigen_utils.h:98
enable_if_c< is_eigen< T1 >::value &&is_eigen< T2 >::value, typename state_type< T1 >::type >::type if_else(const Condition &condition, const T1 &if_true, const T2 &if_false)
Definition: eigen_utils.h:250
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145
template<typename CoeffType = double>
template<typename StateType >
Antioch::rebind<StateType, unsigned int>::type Antioch::NASACurveFitBase< CoeffType >::interval ( const StateType &  T) const
inherited

The interval the input temperature lies in.

Returns
which curve fit interval the input temperature lies in.
template<typename CoeffType = double>
template<typename StateType >
Antioch::rebind<StateType, unsigned int>::type Antioch::NASACurveFitBase< CoeffType >::interval ( const StateType &  T) const
inlineinherited

Definition at line 113 of file nasa_curve_fit_base.h.

References Antioch::constant_clone(), Antioch::if_else(), and Antioch::zero_clone().

114  {
115  typedef typename
117  UIntType interval;
118  Antioch::zero_clone(interval, T);
119 
120  for(unsigned int i = 1; i < _temp.size(); ++i)
121  {
122  interval = Antioch::if_else
123  (T > _temp[i-1] && T < _temp[i],
124  Antioch::constant_clone(interval, i-1),
125  interval );
126  }
127 
128  return interval;
129  }
std::vector< CoeffType > _temp
The temperatures.
Antioch::rebind< StateType, unsigned int >::type interval(const StateType &T) const
The interval the input temperature lies in.
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > constant_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex, const Scalar &value)
Definition: eigen_utils.h:181
enable_if_c< is_eigen< T1 >::value &&is_eigen< T2 >::value, typename state_type< T1 >::type >::type if_else(const Condition &condition, const T1 &if_true, const T2 &if_false)
Definition: eigen_utils.h:250
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145
template<typename CoeffType >
unsigned int Antioch::NASACurveFitBase< CoeffType >::n_intervals ( ) const
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().

107  { return _coefficients.size() / _n_coeffs; }
unsigned int _n_coeffs
The number of coefficients in each interval.
std::vector< CoeffType > _coefficients
The coefficient data.
template<typename CoeffType >
template<typename StateType >
StateType Antioch::NASA7CurveFit< CoeffType >::s_over_R ( const TempCache< StateType > &  cache) const
inline
Returns
the value $\frac{s}{\mathrm{R}}$

\[ \frac{s}{\mathrm{R}} = a_0 \ln(T) + a_1 T + \frac{a_2}{2} T^2 + \frac{a_3}{3} T^3 + \frac{a_4}{4} T^4 + a_6 \]

Definition at line 194 of file nasa7_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::NASA7CurveFitTest< long double >::test_s().

195  {
196  typedef typename
198  const UIntType interval = this->interval(cache.T);
199  const unsigned int begin_interval = Antioch::min(interval);
200  const unsigned int end_interval = Antioch::max(interval)+1;
201 
202  StateType returnval = Antioch::zero_clone(cache.T);
203 
204  for (unsigned int i=begin_interval; i != end_interval; ++i)
205  {
206  const CoeffType *a = this->coefficients(interval);
207 
208  /* s/R = a0*lnT + a1*T + a2*T^2/2 + a3*T^3/3 + a4*T^4/4 + a6 */
209  returnval = Antioch::if_else
210  ( interval == i,
211  StateType( a[0]*cache.lnT
212  + a[1]*cache.T + a[2]*cache.T2/2.0L + a[3]*cache.T3/3.0L
213  + a[4]*cache.T4/4.0L + a[6]),
214  returnval);
215  }
216  return returnval;
217  }
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type max(const T &in)
Definition: eigen_utils.h:88
const CoeffType * coefficients(const unsigned int interval) const
The ordering/packing of the coefficients will depend on the subclass.
Antioch::rebind< StateType, unsigned int >::type interval(const StateType &T) const
The interval the input temperature lies in.
Antioch::enable_if_c< is_eigen< T >::value, typename value_type< T >::type >::type min(const T &in)
Definition: eigen_utils.h:98
enable_if_c< is_eigen< T1 >::value &&is_eigen< T2 >::value, typename state_type< T1 >::type >::type if_else(const Condition &condition, const T1 &if_true, const T2 &if_false)
Definition: eigen_utils.h:250
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145

Member Data Documentation

template<typename CoeffType = double>
std::vector<CoeffType> Antioch::NASACurveFitBase< CoeffType >::_coefficients
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().

template<typename CoeffType = double>
unsigned int Antioch::NASACurveFitBase< CoeffType >::_n_coeffs
protectedinherited
template<typename CoeffType = double>
std::vector<CoeffType> Antioch::NASACurveFitBase< CoeffType >::_temp
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().


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

Generated on Thu Jul 7 2016 11:09:49 for antioch-0.4.0 by  doxygen 1.8.8