Post Reply 
Thermodynamics
05-02-2014, 03:18 AM
Post: #2
RE: Thermodynamics
Do you know anything about programming the HP 50g? It would be relatively easy to create a table of R134a properties program. You could start with the CASE ... END structure. The test-clause would use temperature as an argument.

<<
CASE -40 ==
THEN {-40 51.2 0.0007054 0.3611 -0.04 207.37 0.00 225.86 225.86
0.0000 0.9687 0.9687} END
.
.
.
END
>>

So now you have, for example, {-40 51.2 0.0007054 0.3611 -0.04 207.37 0.00 225.86 225.86 0.0000 0.9687 0.9687} in stack level one. The program will
return
{"deg C=" "kPa=" "vf=" "vg=" "uf=" "ug=" "hf=" "hfg=" "hg=" "sf=" "sfg="
"sg="} to stack level one, which will push the previous argument to stack level two. So now you have

2: {-40 51.2 0.0007054 0.3611 -0.04 207.37 0.00 225.86 225.86 0.0000 0.9687 0.9687}
1: {"deg C=" "kPa=" "vf=" "vg=" "uf=" "ug=" "hf=" "hfg=" "hg=" "sf=" "sfg="
"sg="}

Use the ADD command to concatenate the two lists. You could then have the program break open the list onto the stack. With a little work you could figure out a more aesthetically pleasing way of displaying your data. Check out the DISP and FREEZE commands.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Thermodynamics - Ale777 - 04-28-2014, 07:05 PM
RE: Thermodynamics - MNH - 05-02-2014 03:18 AM
RE: Thermodynamics - Software49g - 05-16-2014, 03:00 PM
RE: Thermodynamics - Vagn Anderssen - 05-17-2014, 08:27 PM



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