Professional Documents
Culture Documents
Introduction To EES (Engineering Equation Solver) : Windows Installation
Introduction To EES (Engineering Equation Solver) : Windows Installation
3
= 0.1945 [!
3
/kg] "
12
= -112.1 [kJ/kg] "
23
= 0 [kJ/kg] "
net
= -112.1 [kJ/kg] #
2
= 1
+nit#
- calculation of numbers may be mathematically correct, but it is meaningless without
the specification of units. 9nits corresponding to every variable in the Equations Window
must be defined, either e&plicitly (by the user), or implicitly (automatically determined by
EES). 'here are several ways to do this.
G
February, 2005
"ptions ./ 'nit S(stem. 'his unit system corresponds to variables in
thermodynamic property tables. E&le, in 'nit S(stem choose SI! ma## ba#i#!
,elciu#! -Pa! and -.. :ow, use the EES property database to find the internal
energy of water.
u8 A I:'E:E4@B(,-'E4, p A p8, ' A '8)
-ccording to the chosen system of units, the input variables of pressure and
temperature must be in !*a and +, respectively, and the output internal energy is
provided in !H/!g.
"ptions ./ #aria$le %n&o, units of each variable may be defined here
9nits may also be defined e&plicitly within the Equations Window, using I J.
*8 A 80 IbarJ
+onversions may also be specified e&plicitly. For *b in bar and *! in !*a.
*! A *b K 800 I!*a/barJ
+nit error#
9pon solving, EES indicates if units are consistent or not. If unit errors are detected.
+hec! #aria$le %n&o. -re all units specified and correctF
+hec! EES functions. -re input variables in units as specified in 'nit S(stemF
E%uation format L are units consistentF For e&le, if , A *8(v2 L v8), and * is
in bars, this will :#' result in units of !H for ,, and ,IDD cause a unit error.
P/v and ot&er intere#ting diagram#
+onstruct a *v diagram in EES showing each of the states found in our analysis. First,
create an -44-B (indicated by X3i45 for variable X at state i) of each of the variables
you desire to plotM P and ,, in this case. +ontinuing on with e&le 7.G, construct the
necessary arrays by adding several lines to those already in the Equations Window0
$%e&'ne arra() &*r +'agra!),
P[1] = P-1
P[2] = P-2
P[3] = P-3
[1] = -1
[2] = -2
[3] = -3
T[1] = T-1
T[2] = T-2
T[3] = T-3
P-3 = .re))ure/01T234 5=-34T=T-36
T-2 = te!.erature/01T234u=u-24=-26
-gain select Sol,e0 Initially in this case (before adding the last two lines, above), we find
that *37 has not been specified. -dd any additional e%uations that are re%uired for
additional variables. ,hen enough information is provided, an array table appears when
Sol,e is selected. If any values are still missing from array table, add additional e%uations
to the Equations Window to define values.
5
February, 2005
:e&t, construct a property plot by selecting Plots ./ Propert( Plots0 Select the substance
(water, in this e&le) and type of diagram (*v). -d$ust graph parameters if necessary.
For clarity in this e&le problem, it is recommended that you desele!t lines of constant
entropy, s. +lic! o* and a plot will appear.
Finally, place the states of your array on the *v diagram by selecting Plots ./ ",erla(
Plot to open a setup window0 9nder Ta$le, select Array# %able. +hoose the appropriate
variables for the Ea&is (vIiJ) and Ba&is (*IiJ). 5E S94E to activate S&o* array
indice#, to display the state labels on your diagram. Bou "9S' D-5ED your graphs?
-&is, units, states, significant temperatures and pressuresN..to name a few things. -d$ust
a&is to maintain a clear view of the plotted states. See Figure 8.
10
-3
10
-2
10
-1
10
0
10
1
10
1
10
2
10
3
10
4
10
5
v [m
3
/kg]
P
[
k
P
a
]
5007C
4007C
1807C
1507C
Water
1 2
3
10
-3
10
-2
10
-1
10
0
10
1
100
200
300
400
500
v [m
3
/kg]
T
[
C
]
1000 kPa
475 kPa
Water
1
2
3
"igure 0. P/v and %/v diagram#. Proce## 0/1 i# con#tant pre##ure! and 1/3 maintain# con#tant volume.
O
February, 2005
2i#cu##ion
'he water initially is in the superheated region. -s heat is transferred from the cylinder,
the steam (losing energy) is !ept at constant pressure by the piston and thus compresses.
,or! is input to the system at this time (negative), but more energy is lost through heat
(negative value) than is added to the system via wor!.
'he system reaches the point of saturation, on the edge of the vapor dome. -ny slight
disturbance would cause a drop of condensation to occur on the piston wall. -s heat
continues to leave the system and the temperature decreases, condensation indeed does
occur. 'he volume is held constant during this time (*rocess 27). -s heat is lost, more
water moves from the vapor phase to the li%uid phase. 'he pressure decreases during this
time because fewer and fewer molecules e&ist in the gas form to cause pressure against
the walls. 'he process stops at '7, and the amounts of li%uid and vapor present can be
determined by calculating the %uality at that location.
%able#
For further intriguing investigation of the pistoncylinder assembly, consider how the
initial temperature is related to the re%uired compression wor! and heat transfer.
"aintaining the same initial pressure, and final state, we will vary the initial temperature
and evaluate the compression wor! and heat loss. In EES, calculating and plotting the
results over a range of initial temperatures is made simple by creating a Parametri!
Ta$le. - Parametri! Ta$le allows you to vary one variable in a system of e%uations to
study the effect on other specified variables.
'o build a Parametri! Ta$le, first comment out parameter that is to be varied, ('
8
) with
brac!ets or %uotes in the Equations Window.
;'38 A G00<
0ater
/8tea!6
1
Q
W
Constant pressure
compression cooling
0ater
/8at.
a..6
2
Q
)aturate+ "ater
a.*r
Constant volume
cooling
(condensation occurs
0ater
/9'qu'+-5a.*r6
3
P
February, 2005
+lic! the New Parametri! Ta$le command under the Ta$les menu. - popup window
will appear where you can select the variables to be included in the table. +hoose T62,
w6net, and q6net. Select add and clic! "7. 'he number of cells can also be ad$usted in
this window but for this problem !eep the number of cells at the default value of 20. -
Parametri! Ta$le then appears listing all cells and selected variables. In the table, clic!
the blac! downarrow in the T62 cell (or rightclic! on the T62 cell and select 8lter
#alues). Enter the minimum and ma&imum values for T62 (labeled &irst and last)0 In this
e&le the temperature is varied from 200 to O00 Q+. Dastly, clic! the green sidearrow
in the upper lefthand corner of the table. 'his will generate the solution for each
variable.
Plot#
-fter generating a table, the results can be displayed graphically by creating a plot in
EES. 'o plot the results determined above, select New Plot Window under the Plots
menu. 'hen choose X19 Plot. In the popup window, select Parametri! Ta$le under the
%able setting. Select T62 for the X1a:is and w6net5 and q6net for the 91a:is. 'he style
and loo! of the plot can also be chosen here, however, this can be done after plot
generation as well. Bou can generate the plot by clic!ing "7 See Figure 2.
'he a&is, labels, and other loo!s of the plot can be modified by rightclic!ing on these
items. +omments and lines can be added to the plot using the small icon menu in the plot
window or by selecting 8dd Te:t or 8dd -ine under the Plot menu. -lso, you can copy
and paste plots using the Edit menu.
200 250 300 350 400 450 500 550 600
-2000
-1600
-1200
-800
-400
0
T
1
[C]
!
n
e
t
"
#
n
e
t
4
k
J
/
k
g
q
net
q
net
"
net
"
net
"igure 1. Initial #team temperature e$$ect on net &eat and *or- tran#$er.
2i#cu##ion
5oth wor! and heat transfer are negative %uantities here, thus wor! is input (done #: the
system) and heat is output (lost F4#" the system). -s the temperature gap increases
between the initial and final states, the heat loss increases as well. 'he wor! input also
increases, but to a lesser magnitude than the heat transfer change.
R
February, 2005
S-TE F9:??
%&i# document *a# prepared by
304 "ichael H. Sebert, 2epartment of "echanical Engineering, 9niversity of "innesota.
314 Sarah H. ,arthesen, 2epartment of "echanical Engineering, 9niversity of "innesota.
U