0% found this document useful (0 votes)
141 views2 pages

EES Lecture 3 and 4 Assignment

The document provides instructions for an EES assignment to demonstrate using lookup tables and functions to determine densities of different gases at various temperatures. It involves: 1) Creating two parametric tables with temperature and density variables for air, helium, neon, nitrogen, and carbon dioxide between 0-200C and 0-100C. 2) Using lookup and interpolate functions to obtain densities from the tables and a lookup file at different temperatures. 3) Plotting density vs temperature curves for the gases from different sources on a single plot with labels and formatting. 4) Writing a short report on observations of gas densities.

Uploaded by

Marcelo Guerra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
141 views2 pages

EES Lecture 3 and 4 Assignment

The document provides instructions for an EES assignment to demonstrate using lookup tables and functions to determine densities of different gases at various temperatures. It involves: 1) Creating two parametric tables with temperature and density variables for air, helium, neon, nitrogen, and carbon dioxide between 0-200C and 0-100C. 2) Using lookup and interpolate functions to obtain densities from the tables and a lookup file at different temperatures. 3) Plotting density vs temperature curves for the gases from different sources on a single plot with labels and formatting. 4) Writing a short report on observations of gas densities.

Uploaded by

Marcelo Guerra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

EES Lecture 3 & 4 Assignment

Aim The aim of the assignment is to demonstrate the use of the lookup tables (both the EES spreadsheet-like table as well as a lookup file) with the Lookup and Interpolate functions. Furthermore, the student will plot graphs of density as a function of temperature from different data sources. Task The densities of different gasses is to be determined from lookup tables, lookup files as well as EESs built-in fluid property library. The following variables must be defined: T rho_air rho_He rho_Ne rho_N rho_CO2 (Temperature) (The air density) (Helium) (Neon) (Nitrogen (Carbon dioxide)

Create two parametric tables that have the above variables in that order from left to right and have 21 rows. The tables are named: Density vs Temp Lookup Density vs Temp Interpolate The first table specifies the temperature T from 0 to 200 [C], whilst the second table specifies T from 0 to 100 [C]. The reason for this is so that the second tables temperatures fall alternatively on the lookup table rows and between the rows so that the Interpolate function can be seen in real action. Use the accompanying spreadsheet to create a lookup table titled Density vs Temp for the 5 fluids listed above between 0 and 200 [C]. Create an equivalent lookup file titled Density vs Temp.txt Obtain the densities of the different fluids as follows when running the first parametric table from the following statements: P = 100 [kPa] row = LookupRow('Density vs Temp', 'T', T) rho_air= Lookup(from the lookup table for the given row) rho_He = Lookup(from the lookup table for the given row) rho_Ne = Lookup(from the lookup file for the given row) rho_N = Lookup(from the lookup file for the given row) rho_CO2 = using EESs built-in property function for the given P and T

Now obtain the densities of the different fluids as follows when running the second parametric table from the following statements: rho_air= Interpolate(from the lookup table for the given T) rho_He = Interpolate(from the lookup table for the given T) rho_Ne = Interpolate(from the lookup file for the given T) rho_N = Interpolate(from the lookup file for the given T) rho_CO2 using EESs built-in property function for the given P and T Use named-directives ($If) around each of the above code blocks to enable only the first code block when running parametric table Density vs Temp Lookup and only the second code block when running the second parametric table. This is necessary otherwise the second code block will generate errors as it redefines the same 5 variables. You should now be able to generate all the data for both tables. The last step is to plot the curves for each gas. To gain experience in plotting, we will plot them from different sources. Create a single plot titled Density vs Temp and plot the curves as follows: rho_air from the first parametric table rho_HE from the first parametric table rho_Ne from the second parametric table rho_N from the second parametric table rho_CO2 from the lookup table The curves should have markers, colours and legend items. The plot should have a title Gas Density vs Temperature in 20 pt Arial font with bold and underline. Place the title above the plot area (on the grey area) and ensure that the title background is not opaque so that it does not have a white box around it.The y-axis of the plot is to be titled precisely Density [kg/m3] by editing the original y-axis title. Write a short report in the report window about your observations on the densities of the different gasses. Make sure you use the standard EES assignment template. Dont forget to set the unit system.

You might also like