6 static std::complex <double> t1 ( 0.368017112855051e-1, 0.510878114959572e-1);
7 static std::complex <double> r1 ( 0.447050716285388e2, 0.656876847463481e2);
8 static std::complex <double> t2 ( 0.337315741065416, 0.335449415919309);
9 static std::complex <double> r20 (-0.725974574329220e2, -0.781008427112870e2);
10 static std::complex <double> r21 (-0.557107698030123e-4, 0.464578634580806e-4);
11 static std::complex <double> r22 ( 0.234801409215913e-10,-0.285651142904972e-10);
16 static double T_t=273.16,p_t=0.611657,p_0=101.325;
19 static double g00=-0.632020233449497e6;
20 static double g01= 0.655022213658955;
21 static double g02=-0.189369929326131e-7;
22 static double g03= 0.339746123271053e-14;
23 static double g04=-0.556464869058991e-21;
24 static double s0= -0.332733756492168e4;
39 double a[]={0,-0.212144006e2,0.273203819e2,-0.610598130e1};
40 double b[]={0,0.333333333e-2,0.120666667e1,0.170333333e1};
41 double summer=0,theta;
43 for (
int i=1;i<=3;i++)
45 summer+=a[i]*pow(theta,b[i]);
47 return p_t*exp(1/theta*summer);
56 std::complex<double> r2,term1,term2;
57 double g0,theta,pi,pi_0;
58 theta= T/T_t; pi=p/p_t; pi_0=p_0/p_t;
59 g0=g00*pow(pi-pi_0,0.0)+g01*pow(pi-pi_0,1.0)+g02*pow(pi-pi_0,2.0)+g03*pow(pi-pi_0,3.0)+g04*pow(pi-pi_0,4.0);
60 r2=r20*pow(pi-pi_0,0.0)+r21*pow(pi-pi_0,1.0)+r22*pow(pi-pi_0,2.0);
62 term1=r1*((t1-theta)*log(t1-theta)+(t1+theta)*log(t1+theta)-2.0*t1*log(t1)-theta*theta/t1);
63 term2=r2*((t2-theta)*log(t2-theta)+(t2+theta)*log(t2+theta)-2.0*t2*log(t2)-theta*theta/t2);
64 return g0-s0*T_t*theta+T_t*real(term1+term2);
73 std::complex<double> r2_p;
74 double g0_p,theta,pi,pi_0;
75 theta= T/T_t; pi=p/p_t; pi_0=p_0/p_t;
76 g0_p=g01*1.0/p_t*pow(pi-pi_0,1-1.0)+g02*2.0/p_t*pow(pi-pi_0,2-1.0)+g03*3.0/p_t*pow(pi-pi_0,3-1.0)+g04*4.0/p_t*pow(pi-pi_0,4-1.0);
77 r2_p=r21*1.0/p_t*pow(pi-pi_0,1-1.0)+r22*2.0/p_t*pow(pi-pi_0,2-1.0);
78 return g0_p+T_t*real(r2_p*((t2-theta)*log(t2-theta)+(t2+theta)*log(t2+theta)-2.0*t2*log(t2)-theta*theta/t2));
87 std::complex<double> r2_pp;
88 double g0_pp,theta,pi,pi_0;
89 theta= T/T_t; pi=p/p_t; pi_0=p_0/p_t;
90 g0_pp=g02*2.0*(2.0-1.0)/p_t/p_t*pow(pi-pi_0,2.0-2.0)+g03*3.0*(3.0-1.0)/p_t/p_t*pow(pi-pi_0,3.0-2.0)+g04*4.0*(4.0-1.0)/p_t/p_t*pow(pi-pi_0,4-2.0);
91 r2_pp=r22*2.0/p_t/p_t;
92 return g0_pp+T_t*real(r2_pp*((t2-theta)*log(t2-theta)+(t2+theta)*log(t2+theta)-2.0*t2*log(t2)-theta*theta/t2));
101 std::complex<double> r2,term1,term2;
102 double theta,pi,pi_0;
103 theta= T/T_t; pi=p/p_t; pi_0=p_0/p_t;
104 r2=r20*pow(pi-pi_0,0.0)+r21*pow(pi-pi_0,1.0)+r22*pow(pi-pi_0,2.0);
106 term1=r1*(-log(t1-theta)+log(t1+theta)-2.0*theta/t1);
107 term2=r2*(-log(t2-theta)+log(t2+theta)-2.0*theta/t2);
108 return -s0+real(term1+term2);
double h_Ice(double T, double p)
double dg_dT_Ice(double T, double p)
double rho_Ice(double T, double p)
double g_Ice(double T, double p)
double dg2_dp2_Ice(double T, double p)
double IsothermCompress_Ice(double T, double p)
double psub_Ice(double T)
double dg_dp_Ice(double T, double p)
double s_Ice(double T, double p)