1 #ifndef SRC_SNAP_THERMODYNAMICS_VAPORS_WATER_VAPORS_HPP_
2 #define SRC_SNAP_THERMODYNAMICS_VAPORS_WATER_VAPORS_HPP_
6 inline double svph2o(
double t,
double p,
double beta,
double gamma) {
7 return p * exp((1. - 1. / t) * beta - gamma * log(t));
11 double x = -2445.5646 / T + 8.2312 * log10(T) - 0.01677006 * T +
12 1.20514e-05 * T * T - 6.757169;
13 return pow(10.0, x) * 1.E5 / 760.;
21 result = pow(10., 5.40221 - (1838.675 / (T - 31.737)));
23 result = pow(10., 5.20389 - (1733.926 / (T - 39.485)));
25 result = pow(10., 5.0768 - (1659.793 / (T - 45.854)));
27 result = pow(10., 5.08354 - (1663.125 / (T - 45.622)));
39 double x =
A + B / T + C * log10(T) + D * T;
45 double a[7], x, pt, Tt, tr;
50 a[0] = 20.9969665107897;
51 a[1] = 3.72437478271362;
52 a[2] = -13.9205483215524;
53 a[3] = 29.6988765013566;
54 a[4] = -40.1972392635944;
55 a[5] = 29.7880481050215;
56 a[6] = -9.13050963547721;
58 for (
int i = 0; i < 7; i++) x = x +
a[i] * pow(tr, i);
59 return 1.E5 * pt * exp(1.5 * log(tr) + (1 - 1 / tr) * x);
74 a[4] = -1.3844344e-01;
77 x =
a[1] / T +
a[2] +
a[3] * log(T) +
a[4] * T +
a[5] * pow(T, 2);
83 result = 612.2 * exp(17.67 * (T - 273.15) / (T - 29.65));
89 result = 100. * exp(23.33086 - 6111.72784 / T + 0.15215 * log(T));
94 double betal = 24.845, gammal = 4.986009, betas = 22.98, gammas = 0.52,
95 tr = 273.16, pr = 611.7;
96 return T > tr ?
svph2o(T / tr, pr, betal, gammal)
97 :
svph2o(T / tr, pr, betas, gammas);
101 double betal = 24.845, gammal = 4.986009, tr = 273.16, pr = 611.7;
102 return svph2o(T / tr, pr, betal, gammal);
106 double betas = 22.98, gammas = 0.52, tr = 273.16, pr = 611.7;
107 return svph2o(T / tr, pr, betas, gammas);
double sat_vapor_p_H2O_Fray(double T)
double sat_vapor_p_H2O_UMich(double T)
double sat_vapor_p_H2O_Antoine(double T)
double sat_vapor_p_H2O_Smithsonian(double T)
double svph2o(double t, double p, double beta, double gamma)
double sat_vapor_p_H2O_Hubner(double T)
double sat_vapor_p_H2O_liquid_Ideal(double T)
double sat_vapor_p_H2O_BriggsS(double T)
double sat_vapor_p_H2O_Ideal(double T)
double sat_vapor_p_H2O_solid_Ideal(double T)
double sat_vapor_p_H2O_Bolton(double T)