2. EES – A software
• EES (pronounced ’ease’): “Engineering Equation Solver”
• Licensed and distributed by F-Chart software
(http://fchart.com)
• Demo version can be acquired free from
http://fchart.com/ees/demo.php
• Licensing and ordering information can obtained from
http://fchart.com/ees/ and http://fchart.com/ees/order.php
• Single user license fee: $600-$1200
• Download software and presentation from
https://goo.gl/U9s8Ud (Disconnect internet while using EES)
2naveedurrehman.com
7. Solving system of equations
Example:
X + Y = 10
X - 2*Y = 5
7
X + Z = 10 - Y
X - 2*Y = 5
X = 4 - Z
X + Y + Z = 10
X + Y = 0
What about this?
Remember, number of variables = number of equations!
ERROR!
naveedurrehman.com
8. Solving system of equations
Example:
V = pi * (R^2) * H
R = 10
H = 12
8
Calculate volume of cylinder where radius is 10 m and
height = 12 m (using 𝑉 = 𝜋𝑅2 𝐻)
Calculate radius of cylinder where height is 10 m and
volume = 3000 m3 (using 𝑉 = 𝜋𝑅2 𝐻)
V = pi * (R^2) * H
H = 10
V = 3000
𝑅 = Τ𝑉 𝜋𝐻
naveedurrehman.com
9. Exercise
9
A piston cylinder device initially contains 0.4m3 of air at
100kPa and 80°C. The air is now compressed to 0.1m3 in
such a way that the temperature inside the cylinder
remains constant. Determine the work done during this
process.
𝑊𝑖𝑠𝑜𝑡ℎ𝑒𝑟𝑚𝑎𝑙 = 𝑃1 𝑉1 ln
𝑉2
𝑉1
V1 = 0.4
P1 = 100
T1 = 80
V2 = 0.1
Wb = (P1*V1)*ln(V2/V1)
naveedurrehman.com
10. Units and conversion
Try:
A = 30*Convert(ft,m)
B = 10*Convert(MJ, kJ)
C = 100*Convert(kJ/kg,BTU/lbm)
10
Solution:
Note: Unit to each variable is automatically assigned.
Convert statement is used to do unit conversion:
Convert ( from-unit , to-unit )
Right-click and
select “Units list”
naveedurrehman.com
11. Exercise
a = 3*convert(bar/kW,kPa/J)
11
Convert 3 bar/kW to kPa/J
Convert 3 bar/kW to kPa.s/J
a = 3*convert(bar/kW,kPa*s/J)
ERROR!
Remember, always convert into consistent units.
naveedurrehman.com
12. Units and conversion: Temperature
Try:
TheF = ConvertTEMP(C,F,30) "Convert 30 deg. C to deg. F"
TheC = ConvertTEMP(F,C,100) "Convert 100 deg. F to deg. C"
12
Solution:
ConvertTemp statement is used to do unit conversion
between degree centigrade (°C) and Fahrenheit (°F):
ConvertTEMP ( from-unit , to-unit, value)
naveedurrehman.com
15. Exercise
15
What is the enthalpy of water/steam at 100 ⁰C and 50 kPa?
Solution:
ℎ 𝑤𝑎𝑡𝑒𝑟 = ℎ 𝑇=100℃,𝑃=50𝑘𝑃𝑎
Tw = 100
Pw = 50
hw = enthalpy(Steam,T=Tw,P=Pw)
hw = enthalpy(Steam,T=100,P=50)
naveedurrehman.com
16. Exercise
16
What is the specific volume of water/steam at 100 ⁰C and 50
kPa?
Solution:
𝑣 𝑤𝑎𝑡𝑒𝑟 = 𝑣 𝑇=100℃,𝑃=50𝑘𝑃𝑎
v = volume(Steam,T=100,P=50)
naveedurrehman.com
17. Exercise
17
A rigid tank contains 50 kg of saturated liquid water at 90
⁰C. Determine pressure in the tank and volume of tank.
Pw=Pressure(Steam,T=90,x=0)
Vw = 50*Volume(Steam, T=90,x=0)
naveedurrehman.com
18. Exercise
18
A mass of 200 gm of saturated liquid water is completely
vaporized at a constant pressure of 100 kPa. Determine
the volume change and the amount of energy added to
water.
m = 200/1000
x1 = 0
x2 = 1
Pw = 100
V1 = volume(Steam, P=Pw, x=x1)
V2 = volume(Steam, P=Pw, x=x2)
V = m*(V2-V1)
h1 = enthalpy(Steam, P=Pw, x=x1)
h2 = enthalpy(Steam, P=Pw, x=x2)
H = m*(h2-h1)
naveedurrehman.com
19. Exercise: Rankine Cycle
19
Consider a steam power plant operating on a simple ideal
Rankine cycle. Steam enters the turbine at 3 MPa and
350⁰C and is condensed in a condenser at a pressure of
75kPa. Determine the thermal efficiency of this cycle.
naveedurrehman.com