Compresibility factor, residual entropy and residual enthalpy calculator.

01032019, 11:32 AM
(This post was last modified: 01042019 07:17 AM by DevilGladiator.)
Post: #1




Compresibility factor, residual entropy and residual enthalpy calculator.
Hi, I'm an aeronautical engeering student in spain. Today I would like to share with you the program that I've just created, it's a compresibility factor, residual entropy and residual enthalpy calculator using the Leee Kesler method.
How it works: I'm tired of looking for the values of the compresibility factor and residual entropy/enthalpy in tables/charts. For this reason I copied the data from the tables of my textbook using an OCR scanner into the HP Prime and made a little program that interpolates the values if they fall between two data points. By the way the tables that I've copied are shared among many books like Advanced Thermodynamics For Engineers McGrawHill and are extracted from this paper: http://dns2.asia.edu.tw/~ysho/YSHOEngli...%20510.pdf. The calculation of the compresibility factor is done as follows: Z = Z0 + w*Z1 (H*H)/(R*Tc) = H0 + w*H1 (S*S)/(R) = S0 + w*S1 Where Z0, Z1, S0, S1, H0 and H1 are looked in the table and w, the accentric factor, is provided by the user. Usage: The program comes with three four functions, all of them have the same inputs Inputs: Pr: Reducced pressure of the gas (P/Pr): Tr: Reducced temperature of the gas (T/Tr): w: Accentric factor of the gas
NOTES: Many textbooks provide charts for Z, (H*H)/(R*Tc) and (S*S)/(R) instead of tables, you should notice that these charts are independent of the accentric factor. I know that this is not scientific at all but I've found out that if you input the value of w=0.175 (If for some reason a student from my university, ETSIAE is reading this with that value of 'w' you will get enough precission in the exam) you get a result that is really close to the one obtained from the charts. If someone with a true knowledge on the matter knows how to calculate 'w' to get the same results as on the charts please tell share your knowledge. Limitations/Potential improvements:
Licence: You are free to use, modify and share the program as long as you keep it free, don't modify the licence and reference me and any other contributor as the original authors. 

« Next Oldest  Next Newest »

Messages In This Thread 
Compresibility factor, residual entropy and residual enthalpy calculator.  DevilGladiator  01032019 11:32 AM

User(s) browsing this thread: 1 Guest(s)