You are on page 1of 2

Exercise 1 - Gas Density Calculation.

The task is to reproduce the spreadsheet shown in the lecture and printed out below.
This can be broken down into several stages. It is probably a good idea to work
through the example in the manual before starting this exercise if you are not familiar
with Excel.
The purpose of your spreadsheet is to calculate the density of an ideal gas given its
molecular weight for a range of temperatures at a given pressure. The user should be
able to specify the molecular weight, the pressure in bar and the temperature range in
°C.
Your Spreadsheet must have the following features:
1. A title in a font which is different from the rest of the sheet.
2. A short summary of the purpose of the spreadsheet and what it does.
3. An easily identifiable area where variables and constants are entered, as opposed
to quantities that are calculated. This area should include anything you might want
to change as well as any constants.
4. An area where calculated quantities are displayed.

Gas Density Calculation
The density of a gas is calculated using PV=nRT
Density =Mn/V=MP/RT
P is given, T varies between Tmin and Tmax
Variables and Constants
Pressure
R
Tmin
Tmax
Mol wt

1 bara
8.314 kJ/kmolK
800 C
1200 C
29 kg/kmol

Temperature C Temperature K Density kg/m3
800
840
880
920
960

1073
1113
1153
1193
1233

0.325
0.313
0.303
0.292
0.283

1000
1040
1080
1120
1160
1200

1273
1313
1353
1393
1433
1473

0.274
0.266
0.258
0.250
0.243
0.237