#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

properties that can be calculated

Enumerator
cp_ 

specific heat

h_ 

enthalpy

s_ 

entropy

g_ 

Gibbs free energy.

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
xminlower temperature limit for the validity of the properties
xmaxupper temperature limit for the validity of the properties
Aheat of formation
Bentropy contribution coefficient
Cnegative of the specific heat at the reference temperature
Dlinear term for the specific heat
Equadratic term for the specific heat
Fcubic term for the specific heat
Grational quadratic term for the specific heat
Hrational cubic term for the specific heat

Member Function Documentation

◆ calculate_()

Active ParameterBkk::calculate_ ( enum property  p,
Active  x 
) const

return property p at temperature x within temperature limits

Parameters
pproperty to calculate
xtemperature in K

◆ extrapolatedx_()

Active ParameterBkk::extrapolatedx_ ( enum property  p,
Active  x 
) const

returns linearly extrapolated property p at temperature x more than higher limit, based on the slope at the higher temperature limit

Parameters
pproperty to calculate
xtemperature in K

◆ extrapolatesx_()

Active ParameterBkk::extrapolatesx_ ( enum property  p,
Active  x 
) const

returns linearly extrapolated property p at temperature x less than lower limit, based on the slope at the lower temperature limit

Parameters
pproperty to calculate
xtemperature 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 class biomassComponent
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const ParameterBkk bp 
)
friend

print temperature limits and parameter set to os stream

Member Data Documentation

◆ Zero

ParameterBkk ParameterBkk::Zero
static

set h = rational cubic term for the specific heat


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