Open iurisegtovich opened 3 years ago
shown in the README: https://github.com/zmeri/PC-SAFT/tree/b43bf568c4dc1907316422d5c3f7b809e9725848
py version said "Residual Helmholtz energy (J mol^{-1})" calculated actually "A/RT, dimensionless"
cpp version says nothing but it is clearly still A/RT dimensionless, as seen by usage in the gres method
double pcsaft_gres_cpp(double t, double rho, vector<double> x, add_args &cppargs) {
/**
Calculate the residual Gibbs energy for one phase of the system.
*/
double ares = pcsaft_ares_cpp(t, rho, x, cppargs);
double Z = pcsaft_Z_cpp(t, rho, x, cppargs);
double gres = (ares + (Z - 1) - log(Z))*kb*N_AV*t; // Equation A.50 from Gross and Sadowski 2001
return gres;
}
last known pure python commit