Fit the equilibrium constant values read from a databse at specified temperature values with a Maier-Kelly type function for the equilibrium constant. More...
#include <EquilibriumConstantFit.h>
Public Member Functions | |
| EquilibriumConstantFit (const std::vector< Real > &temperature, const std::vector< Real > &logk) | |
| virtual Real | sample (Real T) override |
| virtual void | generate () |
| unsigned int | getSampleSize () |
| const std::vector< Real > & | getCoefficients () |
| void | setVariables (const std::vector< Real > &x, const std::vector< Real > &y) |
Protected Member Functions | |
| virtual void | fillMatrix () override |
| void | doLeastSquares () |
Protected Attributes | |
| std::vector< Real > | _x |
| std::vector< Real > | _y |
| std::vector< Real > | _matrix |
| std::vector< Real > | _coeffs |
| unsigned int | _num_coeff |
Fit the equilibrium constant values read from a databse at specified temperature values with a Maier-Kelly type function for the equilibrium constant.
log(K)= a_0 ln(T) + a_1 + a_2 T + a_3 / T + a_4 / T^2
where T is the temperature in Kelvin.
Note: at least five data points must be provided to generate a fit
Definition at line 26 of file EquilibriumConstantFit.h.
| EquilibriumConstantFit::EquilibriumConstantFit | ( | const std::vector< Real > & | temperature, |
| const std::vector< Real > & | logk | ||
| ) |
Definition at line 13 of file EquilibriumConstantFit.C.
|
overrideprotectedvirtual |
Implements LeastSquaresFitBase.
Definition at line 30 of file EquilibriumConstantFit.C.
Implements LeastSquaresFitBase.
Definition at line 47 of file EquilibriumConstantFit.C.
Referenced by TEST().
1.8.14