1 #ifndef MATERIAL_PROPERTIES_H
2 #define MATERIAL_PROPERTIES_H
42 inline double cp(
const material &
m,
const double t )
const;
43 inline double h(
const material &
m,
const double t )
const;
45 inline double hF(
const material &
m,
const double t )
const;
46 inline double s(
const material &
m,
const double t )
const;
47 inline double lnKp(
const material &
m,
const double t )
const;
49 inline double Kp(
const material &
m,
const double t )
const;
81 const double *
c = t<t0 ? &(
coeff[
m][0][0]) : &(
coeff[
m][1][0]);
82 return (c[0]+t*(c[1]+t*(c[2]+t*(c[3]+t*c[4]))))*
R;
90 int mt = t<t0 ? 0 : 1;
91 const double *
c = &(
coeff[
m][mt][0]);
92 return (h0[
m][mt] + t*(c[0]+t*(.5*c[1]+t*(c[2]/3.+t*(c[3]*.25+t*c[4]*.2)))))*
R;
100 return h(
m,t)-hRef[
m];
108 return h(
m,t)-hRef[
m]+deltaH[
m];
116 int mt = t<t0 ? 0 : 1;
117 const double *
c = &(
coeff[
m][mt][0]);
118 return (phi0[
m][mt] + log(t)*c[0]+t*(c[1]+t*(.5*c[2]+t*(c[3]/3.+t*c[4]*.25))))*
R;
132 return ( (t*
s(H2O,t)-
h(H2O,t)) - (t*
s(H2,t)-
h(H2,t)) - .5*(t*
s(
O2,t)-
h(
O2,t)) )/(
R*t);
142 const double *
c = &(lCoeff[
m][mt][0]);
143 return (c[0]+t*(c[1]+t*(c[2]+t*(c[3]+t*(c[4]+t*c[5])))))*
R/t;
147 return (t*
s(
m,t)-
h(
m,t))/(
R*t);
156 return lnKp(
m,t)*log10(exp(1.));
165 return exp(lnKp(
m,t));
189 printf(
"mw:ERROR: unknown material\n");