
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solutions to homework 4 in the amath-math 586/atm s 581 course for the nondimensional traffic flow equation. It includes the rescaled equation, the characteristic form, and the determination of the solution using the asselin-filtered leapfrog/centered-in-space method, lax-wendroff method, and mc method. The document also mentions the presence of spurious overshoots and errors in the solutions.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Amath-Math 586/Atm S 581 Spring 2005
Homework 4 Solutions
0 = QT + C Q Q ( ) (^) X = ( C / A q ) (^) t + ( U B 0 / A )(1 − 2 q / AQ 0 (^) ) q (^) x , 0 < x < BL.
The desired form can be obtained by setting A = 1/ Q 0 , B = 1/ L , and C = U 0 B = U 0 / L.
0 dq dt
= on ( ) 1 2 dx c q q dt
implies
If τ > 0, the left boundary condition tells us the value q ( ) τ = 0.12sin^2 πτ along Γτ. If τ < 0,
this together with (*’)determines the solution for all 0 ≤ x ≤ 1, t ≥ 0 and in particular at x = 1. This is implemented and plotted as part of the Matlab script hw4p234.m (Fig. 1).
The Asselin-filtered leapfrog/centered-in-space method is implemented in hw4p234.m. The method qualitatively tracks the exact solution, but a spurious overshoot is visible for t slightly larger than 2 and an erroneous ‘shoulder’ appears for t near 2.4. Its max-norm error is 0.0591.
The Lax-Wendroff (LW) and MC methods are also implemented with the specified ∆ x and ∆ t in hw4p234.m The LW method also produces a spurious overshoot, but smaller than the leapfrog method, and has a max-norm error of 0.0445. The MC method, as expected, removes the undershoot and has the smallest max-norm error of 0.0258.
0 1 2 3
0
t
q(1,t)
Exact Leap LW MC
Fig. 1. The exact and finite volume solutions to the traffic flow problem at the right boundary.