Docsity

Practice Exam for Final | Computational Methods | MCEN 3030, Exams of Mechanical Engineering

Toggle sidebar
bg1
1
MCEN 3030: Practice exam for final (100pts)
You can use your notes, books, calculators, computers but not a colleague...
1. ODE: Runge-Kutta methods
A) Consider the following Butcher tableaux and classify them (ERK,DIRK,IRK)
1. 1 1
1
2. 0 0
2/3 1/3 1/3
1/4 3/4
B) For both methods show what is the order of the method (local truncation
error) show all your calculations.
2. ODE: Linear-multistep methods (LMM)
A) There is something wrong with this LMM:
yn+2 =โˆ’4yn+1 + 5yn+h(4f(xn+1, yn+1)+2f(xn, yn))
Find out and show what is the problem.
B) Consider the BDF method
yn+1 =ynโˆ’1+ 2hf(xn, yn)
which is obtained by using a centered difference formula on dy
dx |n.
1. Find the order of this method (or local truncation error).
2. Show that the method is 0-stable.
3. Rewrite the method as a one step method using zk= (yk, ykโˆ’1)
3. Iterative methods for linear systems
Consider the following linear system:
๎˜”2โˆ’1
โˆ’1 2 ๎˜•๎˜” u1
u2๎˜•=๎˜”1
1๎˜•
pf2

Partial preview of the text

Download Practice Exam for Final | Computational Methods | MCEN 3030 and more Exams Mechanical Engineering in PDF only on Docsity!

MCEN 3030: Practice exam for final (100pts)

You can use your notes, books, calculators, computers but not a colleague...

1. ODE: Runge-Kutta methods

A) Consider the following Butcher tableaux and classify them (ERK,DIRK,IRK)

B) For both methods show what is the order of the method (local truncation error) show all your calculations.

2. ODE: Linear-multistep methods (LMM)

A) There is something wrong with this LMM:

yn+2 = โˆ’ 4 yn+1 + 5yn + h(4f (xn+1, yn+1) + 2f (xn, yn))

Find out and show what is the problem.

B) Consider the BDF method

yn+1 = ynโˆ’ 1 + 2hf (xn, yn)

which is obtained by using a centered difference formula on dydx |n.

  1. Find the order of this method (or local truncation error).
  2. Show that the method is 0-stable.
  3. Rewrite the method as a one step method using zk = (yk, ykโˆ’ 1 )

3. Iterative methods for linear systems

Consider the following linear system: [ 2 โˆ’ 1 โˆ’ 1 2

] [

u 1 u 2

]

[

]

A) Show that A is SPD.

B) Split A into L + D + U and apply 2 Jacobi iterations using u(0)^ = (0, 0)T^ as a starting vector.

C) Apply 2 iterations of the CG algorithm using u(0)^ = (0, 0)T^ as a starting vector.

4. Parabolic PDEs

For the PDE โˆ‚u โˆ‚t

โˆ‚^2 u โˆ‚x^2 discretize using implicit Euler in time and centered finite difference in space. A) Find the order of this method in space and time(Taylor ...).

B) Study the stability of the overall problem.

C) If you take a very big โˆ†t (because you can) why will this not be a very good approach to solve your problem?

D) From A and B what can you infer about the global convergence of this method?

NOTES:

Runge-Kutta (s stages solving dydx = f (x, y(x))):

Yi = yn + h

โˆ‘^ s

j=

aij kj ,

ki = f (xn + cih, Yi),

yn+1 = yn + h

โˆ‘^ s

i=

biki (1)

Linear-Multistep methods (k steps)

โˆ‘^ k

i=

ฮฑiyn+i = h

โˆ‘^ k

i=

ฮฒif (xn+i, yn+i) (2)

Useful lemma: For all matrix A โˆˆ Rnร—n^ and any  > 0 exists a norm || ยท || such that ฯ(A) < ||A|| < ฯ(A) +  holds. (ฯ(A) = max 1 โ‰คiโ‰คn |ฮปi| where the ฮปi are the eigenvalues of A).