@@ -32,12 +32,12 @@ def switchUnits():
32
32
'''Function to switch between unit systems'''
33
33
global englishUnits
34
34
englishUnits = not englishUnits
35
- print ("Using English units" ) if englishUnits else print ("Using SI Units" )
35
+ _ = print ("Using English units" ) if englishUnits else print ("Using SI Units" )
36
36
37
37
def Tsat_p (pressure ):
38
38
'''
39
39
Saturation temperature given pressure
40
-
40
+
41
41
Args:
42
42
pressure (float): pressure in kPa or psi
43
43
@@ -54,7 +54,7 @@ def Tsat_p(pressure):
54
54
def Tsat_s (entropy ):
55
55
'''
56
56
Saturation temperature given entropy
57
-
57
+
58
58
Args:
59
59
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
60
60
@@ -72,7 +72,7 @@ def Tsat_s(entropy):
72
72
def T_ph (pressure , enthalpy ):
73
73
'''
74
74
Temperature given pressure and enthalpy
75
-
75
+
76
76
Args:
77
77
pressure (float): pressure in kPa or psi
78
78
enthalpy (float): enthalpy in kJ/kg or Btu/lb
@@ -104,13 +104,13 @@ def T_ph(pressure, enthalpy):
104
104
def T_ps (pressure , entropy ):
105
105
'''
106
106
Temperature given pressure and entropy
107
-
107
+
108
108
Args:
109
109
pressure (float): pressure in kPa or psi
110
110
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
111
111
112
112
Returns:
113
- float: Temperature in °C or °F
113
+ float: Temperature in °C or °F
114
114
'''
115
115
pressure = Convert .toSIUnit (float (pressure ), 'pressure' , englishUnits = englishUnits )
116
116
entropy = float (entropy )
@@ -142,7 +142,7 @@ def T_hs(enthalpy, entropy):
142
142
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
143
143
144
144
Returns:
145
- float: Temperature in °C or °F
145
+ float: Temperature in °C or °F
146
146
'''
147
147
enthalpy , entropy = float (enthalpy ), float (entropy )
148
148
if englishUnits :
@@ -212,7 +212,7 @@ def P_hs(enthalpy, entropy):
212
212
entropy (float): entropy in kJ/(kg*K) or btu/(lb*°F)
213
213
214
214
Returns:
215
- float: pressure in kPa or psi
215
+ float: pressure in kPa or psi
216
216
'''
217
217
enthalpy , entropy = float (enthalpy ), float (entropy )
218
218
if englishUnits :
0 commit comments