20
General review & continuation of Chapter 2 computer lab efforts tom.h.wilson [email protected] .edu Department of Geology and Geography West Virginia University Morgantown, WV

General review & continuation of Chapter 2 computer lab efforts tom.h.wilson [email protected] Department of Geology and Geography West Virginia

Embed Size (px)

Citation preview

Page 1: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

General review & continuation of Chapter 2 computer lab

effortstom.h.wilson

[email protected]

Department of Geology and GeographyWest Virginia University

Morgantown, WV

Page 2: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Problems 1-20

Tom Wilson, Department of Geology and Geography

Don’t forget to hand in problems 1-20 before leaving today

Page 3: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Objectives for the day

Tom Wilson, Department of Geology and Geography

• Look over the list of mathematical models used to represent geological relationships

•Introduce another class of mathematical functions used to represent geological and other observations in mathematical form.

• Continue using computer to visualize mathematical models, develop comprehensive solutions and help gain a broader understanding of our data and their implications.

Page 4: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Mathematical models we’ve reviewed

Tom Wilson, Department of Geology and Geography

• Linear

• Quadratic

• General polynomial (order n)

• Power laws

• Exponential (or allometric)

• Logarithmic

These mathematical functions allow us to represent a variety of geological data in mathematical form.

These models allow us to quantify our observations and make predictions about future behaviors.

Page 5: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Using sines and cosines to represent arbitrary functions. The Fourier series: a weighted sum of sines and cosines

• Periodic functions and signals may be expanded into a series of sine and cosine functions

0 1 1

2 2

3 3

( ) cos sin

cos 2 sin 2

cos3 sin 3

... +...

f t a a t b t

a t b t

a t b t

Page 6: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Note that the Fourier series shares some similarity to the order-n polynomial

Tom Wilson, Department of Geology and Geography

0 1 1

2 2

3 3

( ) cos sin

cos 2 sin 2

cos3 sin 3

... +...

cos sinn n

f t a a t b t

a t b t

a t b t

a n t b n t

20 1 2( ) ... n

nf t a a t a t a t

Page 7: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Simulate the step using a sum of sines and cosines. An impossible task?

Tom Wilson, Department of Geology and Geography

Page 8: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Fourier series• Try the excel file step2.xls (see link on class page)

01

( ) cos sinn nn

f t a a n t b n t

Page 9: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

The step function is defined by the Fourier series shown below

Tom Wilson, Department of Geology and Geography

1 1 1 ( ) sin( ) sin(3 ) sin(5 ) sin(7 ) ....3 5 7the step function f t t t t t

Function of t , x, or other independent

variable.

Page 10: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

This applet is fun to play with & educational too.

Experiment with http://www.falstad.com/fourier/

Page 11: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Fourier series

• The Fourier series can be expressed more compactly using summation notation

01

( ) cos sinn nn

f t a a n t b n t

You’ve seen from the forgoing example that right angle turns, drops, increases in the value of a function

can be simulated using the curvaceous sinusoids.

Another function to add to your tool kit.

Page 12: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Problem 2.11 – questions?Due Tuesday

Tom Wilson, Department of Geology and Geography

Page 13: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Problem 2.12 – Questions/Review?

Tom Wilson, Department of Geology and Geography

A quick look ..

Calculate the concentration of an element at 50% crystallization: i.e. F=0.5 (the liquid fraction).

In the excel solution we compute C for values of F ranging from 0 to 1 in intervals of 0.05.

Page 14: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Text problems 2.11 and 2.12

Tom Wilson, Department of Geology and Geography

The computer analysis and questions associated with problems 2.11 and 2.12 include answers to the text questions associated with these two problems (page 40 of text). Nothing additional should be required.

Page 15: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Before continuing, let’s take a look at a couple additional problems (turn in before leaving)

Tom Wilson, Department of Geology and Geography

Page 16: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Finish up the day with a look at problem 2-13 using Excel

Tom Wilson, Department of Geology and Geography

Page 17: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

A couple questions for general discussion

Tom Wilson, Department of Geology and Geography

2. Solve the above for a.

Page 18: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Let’s get started on problem 2.13

Tom Wilson, Department of Geology and Geography

Value of a at time =0 using the formula =a0*EXP(-lam*A2)

Assign variable names lam and a0 for these two constants.

Calculate ln(a) (column B, cell B2) as =LN(a0)-lam*A2

Page 19: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

Problem 2.13

Tom Wilson, Department of Geology and Geography

See page 39 of the lab guide for detailed check list.

•Statement of problem•Submit two excel plots•Label plots showing values in question•Present calculations of t(a=100) as a cross check on your computer work•State result

Page 20: General review & continuation of Chapter 2 computer lab efforts tom.h.wilson tom.wilson@mail.wvu.edu Department of Geology and Geography West Virginia

•Finish up computer problems 2.11 and 2.12. Due next Tuesday

•Continue working through the computer lab problem 2.13

• Bring questions to class on Tuesday

• Hand in the group problems before leaving (i.e determine the intercept and Co)

• Again - Excel problems 2.11 and 2.12 are due next time - See page 26 of lab guide (and reminder handout) for presentation format.

To do list …