#include <ParameterBkk.h>
Public Types | |
enum | property { cp_ , h_ , s_ , g_ } |
properties that can be calculated More... | |
Public Member Functions | |
ParameterBkk (double xmin, double xmax, double A, double B, double C, double D, double E, double F, double G, double H) | |
double | operator[] (int i) const |
return the i-th parameter More... | |
Active | calculate_ (enum property p, Active x) const |
Active | extrapolatesx_ (enum property p, Active x) const |
Active | extrapolatedx_ (enum property p, Active x) const |
double | xmin (void) const |
return lower temperature limit in K More... | |
double | xmax (void) const |
return upper temperature limit in K More... | |
bool | operator!= (const ParameterBkk &rhs) const |
nonequality More... | |
double | get_a (void) |
void | setA (double a_) |
return current value of a parameter More... | |
void | setB (double b_) |
set a = heat of formation More... | |
void | setC (double c_) |
set b = entropy contribution coefficient More... | |
void | setD (double d_) |
set c = negative of the specific heat at the reference temperature More... | |
void | setE (double e_) |
set d = linear term for the specific heat More... | |
void | setF (double f_) |
set e = quadratic term for the specific heat More... | |
void | setG (double g_) |
set f = cubic term for the specific heat More... | |
void | setH (double h_) |
set g = rational quadratic term for the specific heat More... | |
Static Public Attributes | |
static ParameterBkk | Zero |
set h = rational cubic term for the specific heat More... | |
Friends | |
class | biomassComponent |
std::ostream & | operator<< (std::ostream &os, const ParameterBkk &bp) |
print temperature limits and parameter set to os stream More... | |
Detailed Description
Barin-Knacke-Kubachewski single parameter set for pure component single phase enthalpy properties according to I.Barin O.Knacke O.Kubachewski "Thermodynamical properties of inorganic substances" Berlin 1977 cp(T) = -c - 2*d*T - 6*e*T^2 - 12*f*T^3 - 2*g/T^2 - 6*h/T^3 J/kmol-K h(T) = a + integrate(cp(T), T) J/kmol s(T) = -(b + c) + integrate(cp(T)/T, T) J/kmol-K g(T) = h(T) - T * s(T) = a + integrate(cp(T), T) - T * (-(b + c) + integrate(cp(T)/T, T)) J/kmol
#include <libpf/components/ParameterBkk.h>
- Remarks
- Warning
- Thread safe:
- Extendable:
- Platform dependencies:
Member Enumeration Documentation
◆ property
Constructor & Destructor Documentation
◆ ParameterBkk()
ParameterBkk::ParameterBkk | ( | double | xmin, |
double | xmax, | ||
double | A, | ||
double | B, | ||
double | C, | ||
double | D, | ||
double | E, | ||
double | F, | ||
double | G, | ||
double | H | ||
) |
constructor: checks and initializes limits, initializes parameter vector, sets properties and temperature derivatives of the properties at the limits
- Parameters
-
xmin lower temperature limit for the validity of the properties xmax upper temperature limit for the validity of the properties A heat of formation B entropy contribution coefficient C negative of the specific heat at the reference temperature D linear term for the specific heat E quadratic term for the specific heat F cubic term for the specific heat G rational quadratic term for the specific heat H rational cubic term for the specific heat
Member Function Documentation
◆ calculate_()
return property p at temperature x within temperature limits
- Parameters
-
p property to calculate x temperature in K
◆ extrapolatedx_()
returns linearly extrapolated property p at temperature x more than higher limit, based on the slope at the higher temperature limit
- Parameters
-
p property to calculate x temperature in K
◆ extrapolatesx_()
returns linearly extrapolated property p at temperature x less than lower limit, based on the slope at the lower temperature limit
- Parameters
-
p property to calculate x temperature in K
◆ get_a()
double ParameterBkk::get_a | ( | void | ) |
◆ operator!=()
bool ParameterBkk::operator!= | ( | const ParameterBkk & | rhs | ) | const |
nonequality
◆ operator[]()
double ParameterBkk::operator[] | ( | int | i | ) | const |
return the i-th parameter
◆ setA()
void ParameterBkk::setA | ( | double | a_ | ) |
return current value of a parameter
◆ setB()
void ParameterBkk::setB | ( | double | b_ | ) |
set a = heat of formation
◆ setC()
void ParameterBkk::setC | ( | double | c_ | ) |
set b = entropy contribution coefficient
◆ setD()
void ParameterBkk::setD | ( | double | d_ | ) |
set c = negative of the specific heat at the reference temperature
◆ setE()
void ParameterBkk::setE | ( | double | e_ | ) |
set d = linear term for the specific heat
◆ setF()
void ParameterBkk::setF | ( | double | f_ | ) |
set e = quadratic term for the specific heat
◆ setG()
void ParameterBkk::setG | ( | double | g_ | ) |
set f = cubic term for the specific heat
◆ setH()
void ParameterBkk::setH | ( | double | h_ | ) |
set g = rational quadratic term for the specific heat
◆ xmax()
double ParameterBkk::xmax | ( | void | ) | const |
return upper temperature limit in K
◆ xmin()
double ParameterBkk::xmin | ( | void | ) | const |
return lower temperature limit in K
Friends And Related Function Documentation
◆ biomassComponent
|
friend |
◆ operator<<
|
friend |
print temperature limits and parameter set to os stream
Member Data Documentation
◆ Zero
|
static |
set h = rational cubic term for the specific heat
The documentation for this class was generated from the following file: