Introduction To Computational Method
Introduction To Computational Method
Page 2
Page 3
Learning objectives
At the end of this part of the course, you should be able to use MATLAB to
perform numerical integration in more than one dimension on nontrivial integration domains;
Page 4
Topic
10
10
2 x 2 (Spring term)
The most efficient way to learn about this material is to apply it to practical
problems. For this reason the grade is based on coursework only. There is
no exam.
Page 5
You will have access to all lecture notes and the tutorial solutions during
the in-class coursework exercise;
However, the volume of work is only doable within the time given with
sufficient practice.
Therefore: keep up with the tutorials and really try to do them yourself:
you only learn what works from looking through worked solutions (and not
the most important thing: what does NOT work).
Page 6
Go to www.imperial.ac.uk/ict
Follow the instructions for students (involves filling out a form and sending it
to ICT)
Page 7
Page 8
Ren Magritte
1898-1967
Page 9
Mathematical model
Assumptions
Simplifications
dv
= F
dt
x
m
y
Correspondence
Fg=mg
Disagreement
A model will contain artefacts that have no corresponding pattern in the real
world.
Page 10
dv
= mg
dt
dv = g dt
v v0 = gt
dy
=v
dt
dy = (v
+ gt )dt
y y0 = v0t + 12 gt 2
y = y0 + v0t + 12 gt 2
Page 11
Arbitrary function
Quadratic friction
[nonlinear term]
dv
= mg c v v F ( y )
dt
Prevents explicit
analytical solutions
for the
mathematical model
Page 12
Numerical models
Computers are very good with calculations, but cannot deal with continuous
functions. Convert to the function to a discrete series:
v
v2
v1
vn
v0
vn+1
t
tn
Approximate slope:
tn+1
dv vn +1 vn
dt
t
Page 13
Numerical models
Advantages:
can obtain numerical answers to any problem, no matter how difficult
(nonlinearities, geometry, arbitrary forcing);
Flexible easy to add new physics;
Disadvantages:
How accurate are the answers?
Am I looking at a numerical artefact or is this real?
Can only study one initial condition and parameter setting at the
time. Need to run several simulations to get dependencies.
Page 14
Real world
Continuous
Correspondence
Disagreement
dv
= F
dt
y
Fg=mg
Numerical model
Discrete
vn+1 = vn + f(yn, vn)t
CI2-221
Page 15
General remarks
This course builds up; doing the first tutorials thoroughly will save you
significant amounts of time later on.
Page 16
Page 17