1 #ifndef SRC_SNAP_THERMODYNAMICS_VAPORS_METHANE_VAPORS_HPP_
2 #define SRC_SNAP_THERMODYNAMICS_VAPORS_METHANE_VAPORS_HPP_
7 inline double svpch4(
double t,
double p,
double beta,
double gamma) {
8 return p * exp((1. - 1. / t) * beta - gamma * log(t));
12 double betal = 10.15, gammal = 2.1;
13 double betas = 10.41, gammas = 0.9;
14 double tr = 90.67, pr = 11690.;
16 return T > tr ?
svpch4(T / tr, pr, betal, gammal)
17 :
svpch4(T / tr, pr, betas, gammas);
25 double result = pow(10,
A - B / (T + C));
double sat_vapor_p_CH4_Ideal(double T)
double sat_vapor_p_CH4_Antoine(double T)
double svpch4(double t, double p, double beta, double gamma)