EES for Thermodynamics

naveedurrehman85 9,161 views 21 slides May 29, 2017
Slide 1
Slide 1 of 21
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21

About This Presentation

A hands-on short training on using Engineering Equation Solver (EES) for solving thermodynamics problems.


Slide Content

EESFOR
THERMODYNAMICS
A hands-on training.
Naveed ur Rehman
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)
2naveedurrehman.com

Environment
“Equations window”
“Menu”
“Toolbar”
Remember, EESis case-insensitive
i.e. ABC = abc= AbC= Abc…
3naveedurrehman.com

Solving linear equation
X + 3 = 5
Example:
To obtain solution:
[Menu] Calculate > Solve
or
Press “F2” key
4naveedurrehman.com

Solving linear equation
X + 3 = 5
Example:
Solution Window:
5naveedurrehman.com

Solving polynomial
3*H^2 -4*H -5 = 0
Example:
Solution Window:
6
3??????
2
−4??????−5=0
naveedurrehman.com

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

Solving system of equations
Example:
V = pi * (R^2) * H
R = 10
H = 12
8
Calculatevolumeofcylinderwhereradiusis10mand
height=12m(using�=????????????
2
??????)
Calculateradiusofcylinderwhereheightis10mand
volume=3000m
3
(using�=????????????
2
??????)
V = pi * (R^2) * H
H= 10
V = 3000
??????=Τ�????????????
naveedurrehman.com

Exercise
9
Apistoncylinderdeviceinitiallycontains0.4m
3
ofairat
100kPaand80°C.Theairisnowcompressedto0.1m
3
in
suchawaythatthetemperatureinsidethecylinder
remainsconstant.Determinetheworkdoneduringthis
process.
�
??????�??????�ℎ??????��??????�=??????
1�
1ln
�
2
�
1
V1 = 0.4
P1 = 100
T1 = 80
V2 = 0.1
Wb= (P1*V1)*ln(V2/V1)
naveedurrehman.com

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

Exercise
a = 3*convert(bar/kW,kPa/J)
11
Convert3bar/kWtokPa/J
Convert3bar/kWtokPa.s/J
a = 3*convert(bar/kW,kPa*s/J)
ERROR!
Remember, always convert into consistent units.
naveedurrehman.com

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:
ConvertTempstatement is used to do unit conversion
between degree centigrade (°C) and Fahrenheit (°F):
ConvertTEMP ( from-unit , to-unit, value)
naveedurrehman.com

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

Exercise
14
What is the
temperature of
water/steam at
11 MPaand
internal energy
of 2920 kJ/kg?
naveedurrehman.com

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

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

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

Exercise
18
A mass of 200 gmof 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

Exercise: RankineCycle
19
Considerasteampowerplantoperatingonasimpleideal
Rankinecycle.Steamenterstheturbineat3MPaand
350⁰Candiscondensedinacondenseratapressureof
75kPa.Determinethethermalefficiencyofthiscycle.
naveedurrehman.com

Exercise: RankineCycle
20
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)
P4 = P1
s4 = s3
h4 = ENTHALPY(Steam,s=s4,P=P4)
qin = h3 -h2
qout = h4 -h1
eta = 1-qout/qin
naveedurrehman.com

THANK YOU!
Naveed ur Rehman
http://www.naveedurrehman.com/
21naveedurrehman.com