Closed defencedog closed 1 year ago
Use H3N instead of NH3 for ammonia.
import chemics as cm
mu = cm.mu_gas('H3N', 900)
print('mu is', mu)
This prints the following:
mu is 319.14247215113517
Thanks, So Chemical names are alphabetically arranged? Should I write ClH
instead of HCl
?
Yes, it looks like most of the chemical formulas in the Yaw's data are alphabetically listed. So for HCl you should use cm.mu_gas('ClH', 900)
. You can look up formulas in PubChem to see their alternate spelling. Another approach is to use the CAS number, but chemics only uses this if there are similar formulas in the database. I should fix it such that if the CAS number is given, then it overrides the formula. That way you could just provide the CAS number without the formula.
The gas viscosity is also pressure dependant but the function only takes temperature as input. Please elaborate.
The mu_gas()
function is only temperature dependent because it is calculated from coefficients in Yaws’ Critical Property Data for Chemical Engineers and Chemists. See the Chemics documentation for more information about the function.
chemic_gasrho.zip Need to update database I suppose