Maths Y2 Flashcards

(29 cards)

1
Q

Laplace Equation

A

∇²φ = 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Poisson Equation

A

∇²φ = f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Diffusion Equation

A

∇²φ - k ∂φ/∂t = 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Wave Equation

A

∇²φ - 1/C² ∂²φ/∂t² = 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Finite Difference for Laplace (Elliptic), uxx(x,y)

A

uxx(x,y) ≈ 1/h² ( u(x+h, y) - 2u(x, y) + u(x-h, y) )

(Do this for xx and yy then substitute into PDE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Jacobi Method

A
  • Set up simultaneous equation matrix
  • Rearrange to get expressions for each unknown, u
  • Start with an initial guess for each unknown
  • Iterate, using the previous iteration values of each u to find a new value for each u
  • Repeat until within desired tolerance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Gauss-Seidel Method
(or Liebmann’s Method)

A
  • Set up simultaneous equation matrix
  • Rearrange to get expressions for each unknown, u
  • Start with an initial guess for each unknown
  • Find new u values, using the previous iteration values of a u that has an index after the u being found currently, but u values from the same iteration if they have already been found in that iteration
  • Repeat until within desired tolerance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Iterative Methods accuracy criterion

A

( unew) - uold ) / unew | < ε

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Finite difference (explicit) method for Diffusion Equation (Parabolic)

A

1/k ( u(x, t+k) - u(x, t) ) - 1/h² ( u(x+h, t) - 2u(x, t) + u(x-h, t) ) = 0
- k is timestep
- h is space-step
- r = k/h²
- 2k ≤ h²
u(x, t+k) = r( u(x+h, t) + u(x-h, t) ) + (1-2r) u(x, t)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Crank Nicholson (Implicit) method for Parabolic Equation

A

1/k ( u(x, t+k) - u(x, t) ) = 1/2h² ( u(x+h, t) - 2u(x, t) + u(x-h, t) ) + 1/2h² ( u(x+h, t+k) - 2u(x, t+k) + u(x-h, t+k) )
- Same as Explicit method, but the uxx part is averaged over 2 time steps
- Timestep k no longer restricted
- Can sometimes cancel out terms on either side if r = k/h² = 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Newton Raphson for coupled Equations

A

xn+1 = xn - J-1n fn

  • x = (x1, x2)T
  • J = Jacobian with derivatives of f
  • f = Matrix of defining functions equal to 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to solve coupled 2nd Order ODEs

A
  • y1= y
  • y2 = dy/dt
  • Make a matrix transforming (y1, y2) into d/dt(y1, y2)
  • Find Eigenvalues of that matrix
  • Make an eigenvalue matrix for the equation w’i = λi wi
  • Use standard forward Euler with w instead of y
  • w converges if |1+λh| < |1|
  • if w converges, then y converges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Binomial Coefficient Function nCr

A

nCr = n! / ( r! (n-r)! )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Euler Cromer Method

A

For coupled ODEs:
Rearrange system to make one variable solve explicitly (FWD Euler)
And one variable solved implicitly (BWD Euler, use gradient for n+1)
e.g. y(n+1) = y(n) + hy’(n)
or y(n+1) = y(n) + hy’(n+1)
To solve you can sub the explicit into the implicit and make a matrix with that and the regular explicit
(A semi-implicit method)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Lagrange Interpolation

A

Making a polynomial that has the exact correct value for each node specifically, by making all the other terms 0
(x - x1)/(x0 - x1) = 0 for x = x1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Newton’s divided difference interpolation

A

Just use the formula book, it’s got the differencey things
Remember for backwards, n is negative, so values are y0, y-1, y-2 etc. And y0 is the one that has all the higher order divided differences

16
Q

Cubic spline interpolation

A

Use the formula book notes for the equations, just find all the missing variables

17
Q

Bilinear interpolation

A

The one with the 4 points in a rectangle, and a simultaneous matrix for all of them
Can do without matrix if you solve generally for two vertical lines, then interpolate the vertical lines

18
Q

Barycentric Interpolation

A

Just use the formula book for the equations for finding λ
Can use matrix form A λ = r
- Where r is the interpolated point cartesian coordinates
- A is a matrix where each column is one of the triangular points
- λ is a vector of the 3 barycentric coordinate values

19
Q

Simpson’s Rule

A

Used for numerical integration
Requires an even number of subintervals, odd number of nodes

20
Q

Gauss Quadrature

A

Used for numerical integration
Use a substitution, sub in expression in t from formula book
Calculate f(t) where f is the original function, but with t subbed in
Compute the nodes & weightings and sum them up
A and B are the integration limits

21
Q

Forward Euler Method

A

Solve ODEs that are initial value problems
simply y(n+1) = y(n) + h y’(n)
f(y,t) often used to mean the derivative, y’

22
Q

Heun’s Method

A

Improved forward Euler used for ODEs
- Predicts next y, y(n+1) using FWD euler
- Finds gradient at y(n+1)*
- Averages with gradient at y(n)
- Uses this average as the gradient used in FWD euler to get y(n+1)

23
Q

Runge-Kutta Methods

A

Like Heun but with as many steps as you want, avergaing many gradients basically

24
Multistep Methods
Use multiple initial values of y to get going
25
4th Order Adam's Bashford
A multistep method for solving ODEs Derived from averaging multiple backwards divided differences
26
Adam's Moulton Method
Same as Adam's Bashford but Implicit (using future y values) Uses forwards divided difference instead of backwards uses f(n+1), f(n+2) etc values
27
Finite difference (explicit) for wave equation
set up uxx = 1/h²(...... etc also set up utt = 1/k²(.... etc Replace both into normal PDE uxx = utt r = k²/r² r <= 1 is stable Known initial velocity allows for t = 0-k to be found using finite central difference between 0+k and 0-k
28
Numerical Method is consistent when
lim(h→0) (εlocal/h) = 0