Mathematical Methods for Engineers II/Lecture 1

From testwiki
Revision as of 11:35, 15 December 2022 by imported>MathXplore (added Category:Mathematics using HotCat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ordinary Differential Equations

Given initial values

  • u(t=0)

What is the equation associated with evolution?

  • There can be a large number of equations

Linear equation:

  • u=au
a - scalar
a=fu

N x N matrix

  • u=Au
  • Know all the constants
  • Symmetric matrices associated with real eigenvalues
  • Negative eigenvalues mean the solution decays

The constant a can be complex

  • Convection term may not be symmetric

Non-stiff Ordinary Differential Equations

  • u=4u
  • Equations relatively easy to solve
  • Use explicit methods
    • Compute un+1 directly from un and f(un,tn)
      • Calculate from formula
    • Fast methods of calculation
    • Types of methods
      • Euler
        • Minimum accuracy
        • First order
      • Families of methods
        • Adams-Bashforth
          • Multi-step method
        • Runga-Kutta
          • Half-steps to calculate un+1
          • ODE45 in Matlab
            • Fourth order Runga-Kutta
            • Varies δt based on behavior
            • The code uses internal checks to estimate the error
            • Relative accuracy of 103
            • Absolute accuracy of 106

Stiff

  • u(t)=et+e99t
    • et control u but e99t control δt
  • Stiff problems arise in process where there is a dynamic range in rates
  • Ill-conditioned
  • Implicit methods
    • Formula involves the previous value and slope
    • The equation can be non-linear
    • Methods are not as fast
    • Types of methods
      • Backward Euler
      • Families of Methods
        • Adams Moulton
        • Backward differences
          • ODE15s in Matlab
            • Varies δt

Trade-off of speed versus stability

Euler's method

  • Construction of method:

un+1unΔt=f(un,tn)=aun

un+1=(1+aΔt)un

un=(1+aΔt)nuo

  • Test of stability

|1+aΔt|1

Limit when aΔt=2

Too big a time step results in an estimated value with too great a difference

Backward Euler method

  • Construction of method:

un+1unΔt=f(un,tn+1)=aun+1

(1aΔt)un+1=un

un=(11aΔt)nuo

  • Test of stability

Absolutely stable

Growth factor is always less than one