You are on page 1of 11

11/1/2015

EES FOR
THERMODYNAMICS
A hands-on training.
Naveed ur Rehman
Assistant Professor
Mechanical Engineering Department,
NED University of Engineering Technology.
naveedurrehman@neduet.edu.pk
http://www.naveedurrehman.com/

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)

11/1/2015

Environment
Menu
Toolbar

Equations window

Remember, EES is case-insensitive


i.e. ABC = abc = AbC = Abc

Solving linear equation


Example:
X+3=5

To obtain solution:
[Menu] Calculate > Solve
or
Press F2 key

11/1/2015

Solving linear equation


Example:
X+3=5

Solution Window:

Solving polynomial
Example:

3*H^2 - 4*H - 5 = 0

Solution Window:

11/1/2015

Solving system of equations


Example:
X + Y = 10
X - 2*Y = 5
X + Z = 10 - Y
X - 2*Y = 5
X=4-Z

What about this?


X + Y + Z = 10
X+Y=0

ERROR!

Remember, number of variables = number of equations!

Solving system of equations


Example:
Calculate volume of cylinder where radius is 10 m and
)
height = 12 m (using
V = pi * (R^2) * H
R = 10
H = 12

Calculate radius of cylinder where height is 10 m and


volume = 3000 m3 (using
)
V = pi * (R^2) * H
H = 10
V = 3000

11/1/2015

Exercise
A piston cylinder device initially contains 0.4m3 of air at
100kPa and 80C. 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.
ln
V1 = 0.4
P1 = 100
T1 = 80
V2 = 0.1
Wb = (P1*V1)*ln(V2/V1)

10

Units and conversion


Convert statement is used to do unit conversion:
Convert ( from-unit , to-unit )
Try:

Right-click and
select Units list

A = 30*Convert(ft,m)
B = 10*Convert(MJ, kJ)
C = 100*Convert(kJ/kg,BTU/lbm)

Solution:

Note: Unit to each variable is automatically assigned.

11/1/2015

11

Exercise
Convert 3 bar/kW to kPa/J

ERROR!

a = 3*convert(bar/kW,kPa/J)

Remember, always convert into consistent units.

Convert 3 bar/kW to kPa.s/J


a = 3*convert(bar/kW,kPa*s/J)

12

Units and conversion: Temperature


ConvertTemp statement is used to do unit conversion
between degree centigrade (C) and Fahrenheit (F):
ConvertTEMP ( from-unit , to-unit, value)
Try:
TheF = ConvertTEMP(C,F,30)
TheC = ConvertTEMP(F,C,100)

"Convert 30 deg. C to deg. F"


"Convert 100 deg. F to deg. C"

Solution:

11/1/2015

13

Built-in Functions
To access built-in functions:
[Menu] Options > Function Info

14

Exercise
What is the
temperature of
water/steam at
11 MPa and
2920kJ/kg?

11/1/2015

15

Exercise
What is the enthalpy of water/steam at 100 Cand50kPa?
Solution:
,

Tw = 100
Pw = 50
hw = enthalpy(Steam,T=Tw,P=Pw)

hw = enthalpy(Steam,T=100,P=50)

16

Exercise
What is the specific volume of water/steam at 100 Cand50
kPa?
Solution:
,

v = volume(Steam,T=100,P=50)

11/1/2015

17

Exercise
A rigid tank contains 50 kg of saturated liquid water at 90
C.Determinepressureinthetankandvolumeoftank.
Pw=Pressure(Steam,T=90,x=0)
Vw = 50*Volume(Steam, T=90,x=0)

18

Exercise
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)

11/1/2015

19

Exercise: Rankine Cycle


Consider a steam power plant operating on a simple ideal
Rankine cycle. Steam enters the turbine at 3 MPa and
350C and is condensed in a condenser at a pressure of
75kPa. Determine the thermal efficiency of this cycle.

20

Exercise: Rankine Cycle


P1 = 75
T1 =TEMPERATURE(Steam,P=P1,x=0)
h1 = ENTHALPY(Steam,T=T1,P=P1)
v1 = VOLUME(Steam,P=P1,x=0)
P2 = 3*convert(MPa,kPa)
Wp = v1*(P2-P1)
h2 = h1 + Wp
P3 = P2
T3 = 350
h3 = ENTHALPY(Steam,T=T3,P=P3)
s3 = ENTROPY(Steam,T=T3,P=P3)

qin = h3 - h2
qout = h4 - h1
eta = 1-qout/qin

P4 = P1
s4 = s3
h4 = ENTHALPY(Steam,s=s4,P=P4)

10

11/1/2015

21

THANK YOU!
Naveed ur Rehman
Assistant Professor
Mechanical Engineering Department,
NED University of Engineering Technology.
naveedurrehman@neduet.edu.pk
http://www.naveedurrehman.com/

11

You might also like