Refrigerant Library

Version 1.0

July 10, 1999, G. Reza Zakeri


Disclaimer
------------

This program comes on an "as is" basis without any warranty, expressed or implied. The entire risk as to its accuracy, quality and performance is with the user. So use it at your own risk. PLEASE BACK UP YOUR CALCULATOR'S MEMORY BEFORE INSTALLING THIS PROGRAM. I cannot be in any way held responsible for any loss of data or consequent damage(s) through use of this software.

Overview
--------------

The file REFLIBGX is a refrigerant library, written in hp's usr-RPL language. It is not very fast but it does the job. The user interface is based on the hp-48GX built-in INFORM and MSGBOX and therefore very user-friendly (It works only on hp48-G series). There is no needs for any particular instructions, just follow the different menus. 

The library is a demo version. You can choose among several refrigerants such as R12, R22, R134a, R717, R290 and a few others. In the demo, you can only calculate properties of R12 regardless of the refrigerant chosen (In full version all the refrigerants are included. It is also written in usr-RPL language.) You also can choose between two different reference point, ASHRAE and  IIR (Int. Inst. Of Refrigeration) in the beginning of the program. The program comes only in SI units (No English units at present). If the response is good, I may try to include English units.

Properties that are available include enthalpy, entropy, saturation pressure and temperature, dynamic viscosity, constant pressure specific heat, thermal conductivity and specific volume in both liquid and gas phase. You can also calculate vapour quality in two-phase region after a throttling process in addition to gas temperature after an isentropic (constant-enropy) compression process..

The formulation used, is based on a paper written by C.A. Cleland, published in International Journal of Refrigeration, Vol. 9 pp. 364-351, Nov. 1986. These formulations are in form of polynomials (curve-fitting) and NOT based on EOS (Equations Of State) which are commonly used in PC-based engineering software. There are therefore some limitations to the range of validity for these equations, which is not to be exceeded. Outside these ranges, the results are unpredictable. It is recommended that you compare the results with some other references. The software should produce better results than chart reading. I have also added some additional functions that I meant were complimentary. 


The applicable ranges for different refrigerants are as follows:

R12 (-60 ->60 (60));
R22 (-60 ->60 (60));
R114 (-20 ->100 (60));
R134a (-40 ->70 (60));
R152a (-60 ->60 (30));
R290, propane (-60 ->60 (30));
R502 (-60 ->60 (60));
R717, ammonia (-60 ->60 (100));

The first two numbers represent lower and upper limit for saturation temperature while the third number gives the maximum degree of vapour superheat in the gas region. THERE IS NO ERROR CHECKING. S MAKE SURE THE INPUT VALUES ARE REALISTIC.

If you need / like the program and you need a copy of the full version, send a cashier's check or money order for 130 Norwegian crown (about US$17) with your e-mail address (clearly written or preferably typed) to the following address:

G. Reza Zakeri
Post-box 6886
7433 Trondheim, Norway.

Actually the program itself costs only US$10. The rest (US$7) is what the bank charges for cashing in the money order. To save you and me both the extras/trouble, you can send me a US$10 bill in a "security" (not transparent) envelope. It has worked for me before but I can not gaurantee anything. I am open for suggestion (gzakeri@hotmail.com). You can also visit my home page at: 

"http://www.termo.unit.no/kkt/grzifk". 

There you can find a Javascript program doing psychrometric calculations in both SI and IP units. It is free and you can copy if you wish (follow the link "Javascript applications" in frame on the left side of my home page).


Installation
-----------

Both the demo and full version libraries come as an self-attaching library, LID number 1760, size 11094.5 Bytes, checksum # 47805d. 

I have tested the library on my own hp-48GX, ROM version R without any problem. Nevertheless, as a precaution again please back up you calculator before installing this library. To install the library:

1.	Transfer the library REFLIBGX to your HP48G/GX using Kermit/Xmodem/etc.
2.	Press the soft-key labelled REFLIBGX. You should then see on the display:
Library 1760: REFL.....
3.	Purge the REFLIBGX variable, leaving the library on the stack.
4.	Enter the port number you want to store the library into.
5.	Press STO.
6.	Turn the calculator off and then back on again.

To access the library, press right-shift-library (2), press NXT until you see "REFLI" and press the corresponding key.

To remove the library:
1.	Go to the home directory
2.	Enter :port#:1760 DUP
3.	Press left-shift-LIBRARY, then DETACH and finally PURGE.

If you have any question, comments or have found any bugs, do not hesitate to contact me at gzakeri@hotmail.com. I will try to reply as soon as possible. 


Some notes:
---------------

The program used the internal solver for finding the temperature after an isentropic compression. Depending on the available memory on your calculator, it may take a few seconds (be patient). In addition, a variable "dT" is created and purged by the program. So if you are running the program from a directory which contains a variable named "dT", it will be deleted. To avoid this, run the program from another directory which does not contain such variable. 

The same thing is true (although faster) for "constant pressure specific heat" which is calculated using an iterative method. It is calculated using its definition:

          dh                   h(T+dT)-h(T)
Cp= ------ =   Limit  ------------------
          dT       dT->0        dT


As a result, the inaccuracy of h (based on used polynomial curve-fitting) is propagated into the final result for Cp. It means that it can over-/underestimate the results depending on the region being used. In general, I recommend that you check the results with some reference such as ASHRAE, IIR etc. in order to get a feeling for the kind of results/accuracy that you can obtain using this software. 


At the end once again the "Disclaimer"

"No warranties are given, expressed or implied that this program is free of error, or is consistant with any particular standard of merchantibility. I disclaim all liability for direct or consequential damages resulting from your use of the program. So use it at your own risk!
