About the Hampson-Linde cycle
This macros helps you to calculate the points of Hampson-Linde cycle.
P1 - higher pressure of the cycle [Pa]
P2 - lower pressure of the cycle [Pa]
Tamb - ambient temperature in the cycle [K]
dT - underheating at hot end of exchanger [K]
T1..T5 - temperatures of the cycle points [K]
h1..h5 - enthalpies of the points [kJ/kg]
v2,v3 - vapour fractions of the points
qex - specific heat of the exchanger [kJ/kg]
kL - liquefaction coefficient of the cycle
Macros (refrigerator)
Macros ( liquefier )
V3=1-kL
how to use macros in Thermodroid HD
Step 1. Open notepad and copy the text above into the editor.
Step 2. Save this text file to your device sdcard at folder "thermodroid".
Step 3. Run Thermodroid HD
Step 4. Press button "Macro"
Step 5. Press button "Open"
Step 6. Choose at the list our text file.
Step 7. Press button "OK"
Step 8. Press button "Run"
Step 9. Analyze results
This macros helps you to calculate the points of Hampson-Linde cycle.
Fig.1 Hampson-Linde cycle and T-S diagram with the points
Table of symbolsP1 - higher pressure of the cycle [Pa]
P2 - lower pressure of the cycle [Pa]
Tamb - ambient temperature in the cycle [K]
dT - underheating at hot end of exchanger [K]
T1..T5 - temperatures of the cycle points [K]
h1..h5 - enthalpies of the points [kJ/kg]
v2,v3 - vapour fractions of the points
qex - specific heat of the exchanger [kJ/kg]
kL - liquefaction coefficient of the cycle
Macros (refrigerator)
P2=100000
P1=3000000
Tamb=303
dT=10
newfluid(0, methane)
mw=fluid0.molarweight()
fluid0.pvflash(P2,1)
h4=fluid0.massenthalpy()
T4=fluid0.t()
fluid0.ptflash(P2,Tamb-dT)
h5=fluid0.massenthalpy()
T5=fluid0.t()
fluid0.ptflash(P1,Tamb)
h1=fluid0.massenthalpy()
T1=fluid0.t()
qex=h5-h4
fluid0.phflash(P1,(h1-qex)*mw)
h2=fluid0.massenthalpy()
T2=fluid0.t()
V2=fluid0.v()
fluid0.phflash(P2,(h2)*mw)
h3=fluid0.massenthalpy()
T3=fluid0.t()
V3=fluid0.v()
kL=1-V3Macros ( liquefier )
P2=100000
P1=20000000
Tamb=303
dT=10
newfluid(0, methane)
mw=fluid0.molarweight()
fluid0.pvflash(P2,1)
h4=fluid0.massenthalpy()
T4=fluid0.t()
fluid0.ptflash(P2,Tamb-dT)
h5=fluid0.massenthalpy()
T5=fluid0.t()
qex=h5-h4
fluid0.ptflash(P1,Tamb)
qex=h5-h4
fluid0.ptflash(P1,Tamb)
h1=fluid0.massenthalpy()
T1=fluid0.t()
fluid0.pvflash(P2,0)
hL=fluid0.massenthalpy()
kL=abs((h1-h5)/(hL-h5))V3=1-kL
fluid0.pvflash(P2,V3)
h3=fluid0.massenthalpy()
T3=fluid0.t()
fluid0.phflash(P1,(h3)*mw)
h2=fluid0.massenthalpy()
T2=fluid0.t()
V2=fluid0.v()
how to use macros in Thermodroid HD
Step 1. Open notepad and copy the text above into the editor.
Step 2. Save this text file to your device sdcard at folder "thermodroid".
Step 3. Run Thermodroid HD
Step 4. Press button "Macro"
Step 5. Press button "Open"
Step 6. Choose at the list our text file.
Step 7. Press button "OK"
Step 8. Press button "Run"
Step 9. Analyze results
Комментариев нет:
Отправить комментарий