Problem1 - b

Plot \(\phi\) vs. \(x\) at \(t\) = 20, 30, 40 and compare the numerical solution using the three methods with the analytical solution.

All the test case shown here were done with single set of grid size, N = 4001, and time step, dt = 0.005.

Euler equation (Pure convection problem)

  • CASE1: Euler-Explicit (EE) method

    This case was NOT successfully done with stability. Any change of time step and grid resolution didn’t give stable solution because the Euler explicit for pure convection problem is unconditionally unstable.

  • CASE2: Euler-Implicit (EI) method

    ../../_images/EI000.png
  • CASE3: Crank-Nicolson (CR) method

    ../../_images/CR000.png

Burger’s equation (Convection + Diffusion)

  • CASE1: Euler-Explicit (EE) method

    ../../_images/EE001.png
  • CASE2: Euler-Implicit (EI) method

    ../../_images/EI001.png
  • CASE3: Crank-Nicolson (CR) method

    ../../_images/CR001.png