Assignment #3 - Calculating and Graphing with Excel


In this exercise you will learn how to manipulate a spreadsheet for calculations and to produce charts.

Pressure and Depth Within the Earth

Calculate the pressure within the Earth as a function of depth to 600 km. To do this, assume

You will need to integrate the equation for hydrostatic pressure P as a function of depth z, density rho and gravity g:

dP/dz = rho*g __________(1)

Assuming the pressure P is zero at the surface (z=0), we can write

P = Int_0^z{rho*g*dz} ___________(2)

You will need to make assumptions about the depth dependency of g.

Q1: Looking at Table 1, what can you assume about g?

Replace equation (2) by a finite difference equation in which the pressure p(i) at the base of layer (i) is related to the pressure at the base of the previous layer (i-1).

Q2: Write down this finite diference equation

2. Now go to Excel and open a new sheet; save it as assign5.xls

Q3: Write down the spreadsheet formula used in the column for pressure.

3. Enter the values for the pressure from Table 1 as a 4th column in your spreadsheet - these represent a more accurate seismological Earth model.

Q4: Between the surface and 600 km, what is the mean % difference between your rough integration for pressure and the values in Table 1?
[Hint: use the spreadsheet functions to get this].

4. Use the charting functions of Excel to make a plot of the density rho and your computed pressure P (a) between 0 and 600 km and (b) between 0 and 50 km.

Q5: Comment on the effect of the density changes on the pressure in plot 4(a) - how do the values differ from a straight line?

Send the two plots to the color printer. Hand in the plots and, on a separate sheet, the answers to the questions.

----- end of Assignment #3 ---------