You are on page 1of 3

EES Tutorial ME 414/514 HVAC Systems

1. Download your copy of EES from the text and software link of the class Internet site into a temporary folder on your PC. Download all three items (the manual pdf file, the zipped software folder, and the dft file). a) b) c) d) 2. 3. 4. a) Right click on the zipped software file and select extract all Double click on setup_ees.exe and follow through on the setup process. The setup wizard guides you. It will ask you where you want to put the files: give it a path and name, for example, C:\EES-2010 Be sure to locate the dft file in the same directory where you have your EES application. This is a license file that is required for EES to load and to run.

To run EES: click on the EES application icon You will see some startup stuff, and it will leave you in the middle of an equations window. Lets start by doing a couple of easy problems. Solving easy simultaneous algebraic equations: i) ii) iii) iv) click on File: New type in the following: y^2 + 2*x = 5 x^2 + 5*y = 29 click on Calculate: Check/Format-----the program will check your syntax and count up your equations and unknowns. click on Calculate: Solve. The program will solve the problem and let you know how long it takes, plus the residual error in your numbers. Hit continue and check your answers. Now take a look at several features: a) Click on Options: Variable Info a table will pop up with your variables listed (x and y in this case), as well as the limits on the variables that it used when it calculated the solution. On the Variable Info table, click on Update. This will update the guesses on x and y to the answers that were calculated when you ran the solution. This table is where you can set to use exponential notation (under the Display section), and also give your variables units. Give x and y both units of kg/s, and make them fixed decimal with three places. You can also print this table from here. Hit OK to close the table.

v)

b)

c)

There are a lot of choices under the Options heading. (1) Options: FunctionIinfo will give you a list of all the functions (such as ARCCOS, LN, etc.) what they are and how to call them. It also lists all the thermophysical properties (such as h, Cp, etc.) that are available, and tells you how to call them!!! You can also deal with units, or change the limits on the numerical convergence criteria. (i.e., you can make it either come closer to the actual answer, or make it converge more quickly or more easily. Go to Options: Stop Criteria and make the Change in Variables less than 10-10. Run the program again and see if the answers are the same as the first time. You can customize the appearance, etc. by using Options: Preferences

(2)

(3) 5.

Now lets look at doing a min/max problem: delete the equations that you have typed, and type in the following: You are to find how often you want to buy a new car. You want to minimize the costs over 20 years. (Note (20/n) is the number of cars you will own in the 20year period.) Assume that the equations that you can use are the following (n is the number of years you will own the car): Cost = (20/n)*Initial + Maint - Salvage Initial = 20000 Maint = (20/n) * 0.5* (n-1)*500*n Salvage = (Initial/(n+1))*(20/n) a) Click on Calculate: Solve Since you have 5 variables (Cost, n, Initial, Maint, and Salvage) and only 4 equations, it wont be able to solve it and will tell you so. So what we will do instead is let n vary to get our minimum cost over the 20 years. b) Click on Calculate: Min/max a box will pop up asking whether you want to minimize or maximize (tell it min), what you want to minimize, (tell it Cost) and what you what to be your independent variable (tell it n). (You can play with the Search method if you want, but I usually dont bother unless I have trouble getting a solution.)

The box will also require you to set the bounds of your independent variable (n in this case) before it will run a minimization. Click on the Bounds box. Give it a guess for n of 2, a minimum of 1, and a maximum of 20 (you want to buy at least one car, and you dont want to buy one more than once a year). Click on OK to close this box. c) Once you have completed the bounds description, click on OK and it will calculate the minimum for you. You should get a minimum Cost for n = 7.9, and your cost over the 20 years will be $79443. 6. As mentioned in (4) EES has a useful capability (for HVAC analysis and design) to obtain thermodynamics properties. Here is a brief tutorial on this function. Open a new EES equation sheet. Type two equations into the sheet: T1=20 and P1=101. Click on Options: Function Info. Select the Fluid Properties option. Select air as the fluid. Select density as the first property and then click on the Paste button to paste the density equation into the equation sheet. Now click on Calculate: Solve to solve to display the air density at 20oC and 101 kPa. Also find the sound speed and the specific heat in this way. Do the values agree with what you expect for air at standard conditions? Heres a file that'll help with Topic 3 problems (psychrometrics) and give you an opportunity to learn EES a) Download the file adiab-mix.EES from the Problem set 0 area of the class Internet site. (This is the adiabatic mixing problem that we will do in class.) i) ii) See if you can run it. Change some of the state conditions and see how the answer changes. Click on Windows: Equations. You can now change some of the temperature values. Then click on Calculate: Solve to solve for the new mixed state. Note how to get moist-air properties from EES function calls (go to Windows: Equations), and how to overlay a plot on an EES psychart (go to Windows: Plot Windows). Note that the psychart will not update as you change conditions. If you want a psychart with the new conditions you would need to create a new chart. Go to Windows: Residuals and see how the program rearranges the equations for you before it solves them. Imagine how you can cut and paste from this file to solve your homework, or to create a custom psychart

7.

iii)

iv) v)

You might also like