73 temperature = max(temperature, 1e-9);
74 temperature = min(temperature, 500.0);
75 pressure = max(pressure, 0.0);
76 pressure = min(pressure, 1e8);
81 const Scalar M_x = 1e3*Xylene::molarMass();
82 const Scalar M_w = 1e3*H2O::molarMass();
83 const Scalar Tb_x = 412.9;
84 const Scalar Tb_w = 373.15;
85 const Scalar V_B_w = 18.0;
86 const Scalar sigma_w = 1.18*pow(V_B_w, 0.333);
87 const Scalar T_scal_w = 1.15*Tb_w;
88 const Scalar V_B_x = 140.4;
89 const Scalar sigma_x = 1.18*pow(V_B_x, 0.333);
90 const Scalar sigma_wx = 0.5*(sigma_w + sigma_x);
91 const Scalar T_scal_x = 1.15*Tb_x;
92 const Scalar T_scal_wx = sqrt(T_scal_w*T_scal_x);
94 Scalar T_star = temperature/T_scal_wx;
95 T_star = max(T_star, 1e-5);
97 const Scalar Omega = 1.06036/pow(T_star, 0.1561) + 0.193/exp(T_star*0.47635)
98 + 1.03587/exp(T_star*1.52996) + 1.76474/exp(T_star*3.89411);
99 const Scalar B_ = 0.00217 - 0.0005*sqrt(1.0/M_w + 1.0/M_x);
100 const Scalar Mr = (M_w + M_x)/(M_w*M_x);
101 const Scalar D_wx = (B_*pow(temperature,1.6)*sqrt(Mr))
102 /(1e-5*pressure*pow(sigma_wx, 2.0)*Omega);