hw1 - For the first time step use an Euler(1 st order time...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Numerical Methods for Coastal and Oceanographic Engineering Slinn Spring 2004 Home Work Problem # 1. Due January 27, 2004. Solve the one way wave equation, 0 = + x u C t u , using second and fourth order explicit methods. A. Use second order Leap Frog time difference and central spatial differences on the domain, 0 < x < 10 m, on the time interval, 0 < t < 6 s, with C = 1 m s -1 , with initial conditions u . Let x = 0.1 m (101 grid points). 2 ) 2 ( 5 3 ) 0 , ( = x e x The exact result should look like u . Plot this together with your solution for C 2 ) 8 ( 5 3 ) 6 , ( = x e x fl = 0.1, 0.99, and 1.2. For boundary conditions use u = 0 at x = 0, 10 m at all times.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: For the first time step, use an Euler (1 st order) time step. B. Repeat using ∆ x = 0.01 and 0.5 m, with C fl = 0.99. C. Compare the solutions for the L-F method at t = 6 s and t = 6 - ∆ t s for C fl = 0.99. D. Repeat using 4 th order central spatial differences with ∆ x = 0.1 and 0.01 m, C fl = 0.5 and 0.99 (at least one of these should be unstable). E. Use 1 st order Euler time step instead of L-F with C fl =0.5, ∆ x = 0.1 m, to see if an instability is present. Plot the results (e.g. ., with Tecplot). See the example Code distributed by email....
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern