




























































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!





























































































http://www.fchart.com/ email: [email protected]
The authors make no guarantee that the program is free from errors or that the results produced with it will be free of errors and assume no responsibility or liability for the accuracy of the program or for the results that may come from its use.
EES was compiled with DELPHI 5 by Borland
The three-dimensional plotting package is based on a modification of the public domain GLScene package (http://www.glscene.org/).
The genetic optimization method implemented in EES is derived from the public domain Pikaia optimization program (version 1.2, April 2002) written by Paul Charbonneau and Barry Knapp at National Center for Atmospheric Research (NCAR) (http://www.hao.ucar.edu/public/research/si/pikaia/pikaia.html).
V7.
EES (pronounced 'ease') is an acronym for Engineering Equation Solver. The basic function provided by EES is the solution of a set of algebraic equations. EES can also solve differential equations, equations with complex variables, do optimization, provide linear and non-linear regression, generate publication-quality plots, simplify uncertainty analyses and provide animations. EES has been developed to run under 32-bit Microsoft Windows operating systems, i.e., Windows 95/98/2000/XP. It can be run in Linux and on the Macintosh using emulation programs.
There are two major differences between EES and existing numerical equation-solving programs. First, EES automatically identifies and groups equations that must be solved simultaneously. This feature simplifies the process for the user and ensures that the solver will always operate at optimum efficiency. Second, EES provides many built-in mathematical and thermophysical property functions useful for engineering calculations. For example, the steam tables are implemented such that any thermodynamic property can be obtained from a built-in function call in terms of any two other properties. Similar capability is provided for most organic refrigerants (including some of the new blends), ammonia, methane, carbon dioxide and many other fluids. Air tables are built-in, as are psychrometric functions and JANAF table data for many common gases. Transport properties are also provided for most of these substances.
The library of mathematical and thermophysical property functions in EES is extensive, but it is not possible to anticipate every user's need. EES allows the user to enter his or her own functional relationships in three ways. First, a facility for entering and interpolating tabular data is provided so that tabular data can be directly used in the solution of the equation set. Second, the EES language supports user-written Functions and Procedures similar to those in Pascal and FORTRAN. EES also provides support for user-written routines, which are self-contained EES programs that can be accessed by other EES programs. The Functions, Procedures, Subprograms and Modules can be saved as library files which are automatically read in when EES is started. Third, external functions and procedures, written in a high- level language such as Pascal, C or FORTRAN, can be dynamically-linked into EES using the dynamic link library capability incorporated into the Windows operating system. These three methods of adding functional relationships provide very powerful means of extending the capabilities of EES.
The motivation for EES rose out of experience in teaching mechanical engineering thermodynamics and heat transfer. To learn the material in these courses, it is necessary for the student to work problems. However, much of the time and effort required to solve problems results from looking up property information and solving the appropriate equations. Once the student is familiar with the use of property tables, further use of the tables does not contribute to the student's grasp of the subject; nor does algebra. The time and effort required to do problems in the conventional manner may actually detract from learning of the subject matter by forcing the student to be concerned with the order in which the equations should be solved (which really does not matter) and by making parametric studies too laborious. Interesting practical problems that may have implicit solutions, such as those involving both thermodynamic and heat transfer considerations, are often not assigned because of their mathematical complexity. EES allows the user to concentrate more on design by freeing him or her from mundane chores.
EES is particularly useful for design problems in which the effects of one or more parameters need to be determined. The program provides this capability with its Parametric Table, which is similar to a spreadsheet. The user identifies the variables that are independent by entering their values in the table cells. EES will calculate the values of the dependent variables in the table. The relationship of the variables in the table can then be displayed in publication-quality plots. EES also provides capability to propagate the uncertainty of experimental data to provide uncertainty estimates of calculated variables. With EES, it is no more difficult to do design problems than it is to solve a problem for a fixed set of independent variables.
EES offers the advantages of a simple set of intuitive commands that a novice can quickly learn to use for solving any algebraic problems. However, the capabilities of this program are extensive and useful to an expert as well. The large data bank of thermodynamic and transport properties built into EES is helpful in solving problems in thermodynamics, fluid mechanics, and heat transfer. EES can be used for many engineering applications; it is ideally suited for instruction in mechanical engineering courses and for the practicing engineer faced with the need for solving practical problems.
The remainder of this manual is organized into seven chapters and three appendices. A new user should read Chapter 1 which illustrates the solution of a simple problem from start to finish. Chapter 2 provides specific information on the various functions and controls in each of the EES windows. The animation capabilities provided in the Diagram window are described in this chapter. Chapter 3 is a reference section that provides detailed information for each menu command. Chapter 4 describes the built-in mathematical and thermophysical property functions and the use of the Lookup Table for entering tabular data. Chapter 5 provides instructions for writing EES Functions, Procedures, Subprograms and Modules and
EES is distributed in a self-installing compressed form in a file called SETUP_EES.exe. To install EES, it is necessary execute the SETUP_EES installation program. If you are installing EES from a CD, the installation program will start automatically when the CD is placed in the drive. Alternatively, double-click on the SETUP_EES.exe file.
The installation program will provide a series of prompts which will lead you through the complete installation of the EES program. The default folder for the EES files is C:\EES32.
The default installation program will create a directory named C:\EES32 in which the EES files are placed. The EES program icon shown above will identify both the program and EES files. Double-clicking the left mouse button on the EES program or file icon will start the program. If you double-clicked on an EES file, that file will be automatically loaded.
Getting Started Chapter 1
EES commands are distributed among nine pull-down menus. (A tenth user-defined menu, used below for Examples, can be placed by the user to the right of the Help menu. See the discussion of the Load Textbook command File menu in Chapter 3.) A brief summary of their functions follows. Detailed descriptions of the commands appear in Chapter 3.
Note that a toolbar is provided below the menu bar. The toolbar contains small buttons which provide rapid access to many of the most frequently used EES menu commands. If you move the cursor over a button and wait for a few seconds, a few words will appear to explain the function of that button. The toolbar can be hidden, if you wish, with a control in the Preferences dialog (Options menu).
The System menu represented by the EES icon appears above the file menu. The System menu is not part of EES, but rather a feature of the Windows Operating System. It holds commands that allow window moving, resizing, and switching to other applications.
The File menu provides commands for loading, merging and saving work files and libraries, and printing.
The Edit menu provides the editing commands to cut, copy, and paste information.
The Search menu provides Find and Replace commands for use in the Equations window.
The Options menu provides commands for setting the guess values and bounds of variables, the unit system, default information, and program preferences. A command is also provided for displaying information on built-in and user-supplied functions.
The Calculate menu contains the commands to check, format and solve the equation set.
The Tables menu contains commands to set up and alter the contents of the Parametric and Lookup Tables and to do linear regression on the data in these tables. The Parametric Table, similar to a spreadsheet, allows the equation set to be solved repeatedly while varying the values of one or more variables. The Lookup table holds user-supplied data which can be interpolated and used in the solution of the equation set.
The Plot menu provides commands to modify an existing plot or prepare a new plot of data in the Parametric, Lookup, or Array tables. Curve-fitting capability is also provided.
The Windows menu provides a convenient method of bringing any of the EES windows to the front or to organize the windows.
The Help menu provides commands for accessing the online help documentation.
Chapter 1 Getting Started
The basic capability provided by EES is the solution of a set of non-linear algebraic equations. To demonstrate this capability, start EES and enter this simple example problem in the Equations window. Note that EES makes no distinction between upper and lower case letters and the ^ sign (or **) is used to signify raising to a power.
If you wish, you may view the equations in mathematical notation by selecting the Formatted Equations command from the Windows menu.
Select the Solve command from the Calculate menu. A dialog window will appear indicating the progress of the solution. When the calculations are completed, the button changes from Abort to Continue.
Click the Continue button. The solution to this equation set will then be displayed.
Chapter 1 Getting Started
have been made and the units in each equation are dimensionally consistent. The Check Units command (Calculate menu) initiates the unit checking capability manually.
From relationships between the properties of R134a:
v 1 (^) = v T ( 1 (^) , P 1 ) (6) h 1 (^) = h T ( 1 (^) , P 1 ) (7) v 2 (^) = v T ( 2 (^) , P 2 ) (8) h 2 (^) = h T ( 2 (^) , P 2 ) (9)
Ordinarily, the terms containing velocity are neglected, primarily because the kinetic energy effects are usually small and also because these terms make the problem difficult to solve. However, with EES, the computational difficulty is not a factor. The user can solve the problem with the kinetic energy terms and judge their importance.
The values of T 1 , P 1 , A 1 , Vel 1 1 and P 2 are known. There are nine unknowns: A 2 , m 1 , m 2 , Vel 2 , h 1 , v 1 , h 2 , v 2 , T 2. Since there are 9 equations, the solution to the problem is defined. It is now only necessary to solve the equations. This is where EES can help.
Start EES and select the New command from the File menu. A blank Equations window will appear. Before entering the equations, however, set the unit system for the built-in thermophysical properties functions. To view or change the unit system, select Unit System from the Options menu.
Getting Started Chapter 1
EES is initially configured to be in SI units with T in °C, P in kPa, energy units in kJ and specific property values in their customary units on a mass basis. These defaults may have been changed during a previous use. Click on the controls to set the units as shown above. Click the OK button (or press the Return key) to accept the unit system settings.
The equations can now be entered into the Equations window. Text is entered in the same manner as for any word processor. Formatting rules are as follows:
After entering the equations for this problem and (optionally) checking the syntax using the Check/Format command in the Calculate menu, the Equations window will appear as shown. Note that _1 and _2 were used in this example to designate states 1 and 2. Array variables with [1] and [2] could also have been used. Comments are normally displayed in blue on a color monitor. Other formatting options are set with the Preferences command in the Options menu. The $TabStops directive makes it easy to align the comments.
(^1) If a comma is selected as the Decimal Symbol in the Windows Regional Settings Control Panel, EES will
recognize the comma (rather than a decimal point) as a decimal separator, the semicolon (rather than the comma) as an argument separator, and the colon : (rather than the semicolon) as the equation separator.
Getting Started Chapter 1
Selecting the Variable Info menu item will bring up a small dialog in which the display format and units for the selected variable, m_dot_2 in this case, can be entered.
Note the use of the Convert function in energy balance to convert the units of the specific kinetic energy [m^2/s^2] to the units used for specific enthalpy [kJ/kg]. The Convert function is most useful in these problems. See Chapter 4 for a detailed description of its use.
The thermodynamic property functions, such as enthalpy and volume require a special format. The first argument of the function is the substance name, R134a in this case. The following arguments are the independent variables preceded by a single identifying letter and an equal sign. Allowable letters are T, P, H, U, S, V, and X, corresponding to temperature, pressure, specific enthalpy, specific internal energy, specific entropy, specific volume, and quality. (For psychrometric functions, additional allowable letters are W, R, D, and B, corresponding to humidity ratio, relative humidity, dewpoint temperature, and wetbulb temperature.)
An easy way to enter functions, without needing to recall the format, is to use the Function Information command in the Options menu. This command will bring up the dialog window shown below. Click on the ‘Thermophysical properties’ radio button. The list of built-in thermophysical property function will appear on the left with the list of substances on the right. Select the property function by clicking on its name, using the scroll bar, if necessary, to bring it into view. Select a substance in the same manner. An example of the function showing the format will appear in the Example rectangle at the bottom. The information in the rectangle may be changed, if needed. Clicking the Paste button will copy the Example into the Equations window at the cursor position. Additional information is available by clicking the Function Info and Fluid Info buttons.
Chapter 1 Getting Started
It is usually a good idea to set the guess values and (possibly) the lower and upper bounds for the variables before attempting to solve the equations. This is done with the Variable Information command in the Options menu. Before displaying the Variable Information dialog, EES checks syntax and compiles newly entered and/or changed equations, and then solves all equations with one unknown. The Variable Information dialog will then appear.
The Variable Information dialog contains a line for each variable appearing in the Equations window. By default, each variable has a guess value of 1.0 with lower and upper bounds of negative and positive infinity.