Basics on Numerical Methods for Hyperbolic Equations

Size: px
Start display at page:

Download "Basics on Numerical Methods for Hyperbolic Equations"

Transcription

1 Basics on Numerical Methods for Hyperbolic Equations Professor Dr. E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it October 8, 4 / 57

2 We introduce finite difference methods as applied to the linear advection equation in one space dimension We derive the most well-known schemes applicable to hyperbolic systems and highlight their basic features We reformulate some of these finite difference methods in conservative form, as applied to systems of hyperbolic equations / 57

3 Initial-Boundary Value Problem (IBVP) We consider the initial-boundary value problem (IBVP) for the linear advection equation PDE: t q + λ x q =, x [a, b], t >, IC: q(x, ) = h(x), x [a, b], t =, BCs: q(a, t) = b L (t) ; q(b, t) = b R (t), t. () [a, b] defines the spatial domain h(x) is the initial condition (IC) at the initial time t =, a prescribed function of x b L (t) and b R (t) are prescribed functions of time and define boundary conditions (BCs) at x = a (left) and at x = b (right) 3 / 57

4 Discretising the domain Partition of the spatial domain [a, b] into M + equidistant points x i = a + i x, i =,..., M +, x = b a M +. () See Fig.. M interior points: x, x,..., x M, and two boundary points: x = a and x M+ = b. Partition of the temporal domain [, T out ] into a set of time points, or time levels, t n = n t, n =,..., N out,.... (3) See Fig.. t = : initial time, T out = tn out, t: timestep. Assume fixed relationship between t and x of the form x = t K, K : constant 4 / 57

5 Fig.. Finite difference mesh. 5 / 57

6 Discrete values As a consequence of having replaced the continuous domain [a, b] [, ) by a mesh made up of a finite number of points (x i, t n ) we first need to replace the continuous distribution of the function q(x, t) by a finite number of discrete values q(x i, t n ) associated with these points. Then in order to solve the differential equation in this discrete setting we also need to represent in discrete form the partial derivatives t q(x, t) and x q(x, t) in (). Here we do so by finite difference approximations. In this manner the partial differential equation is represented by a difference equation, an expression that relates approximate discrete values of the solution at neighbouring points. The differential operator is replaced by a numerical operator, as we shall see. 6 / 57

7 Finite difference approximation to derivatives Fig.. Finite difference approximation to derivatives. Assume a smooth function g(z), a point z and all the derivatives g (k) (z ) at z. From Taylor s theorem we may find g(z + z) as g(z + z) = g(z )+ zg (z )+ z g () (z )+ 6 z3 g (3) (z )+O( z 4 ). Here O( z 4 ) is the asymptotic form of the truncating error. (4) 7 / 57

8 Then we make use of (4) for obtaing an approximation to the derivatives of g. For example we can write g(z + z) g(z ) = zg (z ) + z g () (z ) + 6 z3 g (3) (z ) + O( z 4 ) and on division through by z and rearranging we obtain g (z ) = g(z + z) g(z ) z + O( z). (5) By neglecting O( z) we obtain an approximation to g (z ) This approximation to g (z ) is a one-sided approximation, called forward approximation to the derivative Note the form of the error in the approximation (5), said to be of first order, as it involves a first power of the distance z. 8 / 57

9 An alternative to the forward approximation (5) results from using z and its left neighbour z z. From Taylor s theorem g(z z) = g(z ) zg (z )+ z g () (z ) 6 z3 g (3) (z )+O( z 4 ), from which we obtain g (z ) = g(z ) g(z z) z (6) + O( z). (7) This first-order one-sided approximation is called backward approximation to the derivative. A more accurate approximation to g (z ) can be obtained by substracting (6) from (5), performing some manipulations, leading to g (z ) = g(z + z) g(z z) z + O( z ). (8) which is a second-order approximation, called the centred approximation, as it uses information from the left and right of the centre point z. Fig. illustrates the true and approximate first derivatives of g(z). 9 / 57

10 Example: one-sided second order approximation Find a second-order approximation to the derivative g (z ) using the three equidistant points z z, z z and z. : Consider Taylor expansions at z z and z z g(z z) = g(z ) zg (z )+ ( z) g () (z ) 6 ( z)3 g (3) (z )+O( z 4 ) g(z z) = g(z ) zg (z )+ z g () (z ) 6 z3 g (3) (z )+O( z 4 ). () Multiplying () by 4 and substracting (9) gives g (z ) = 3g(z ) 4g(z z) + g(z z) z (9) + O( z ), () a second-order one-sided approximation to g (z ) at the point z. Exercise. Using (4) and (6) show that g (z ) = g(z + z) g(z ) + g(z z) z + O( z ). () / 57

11 The method of finite differences The finite difference method replaces the continuous domain of the problem by a finite number mesh of (x i, t n ), called the mesh The exact value q(x i, t n ) at the mesh point (x i, t n ) is approximated by qi n, that is qi n q(x i, t n ). (3) Subscript i in qi n denotes the spatial position and Supercript n (not an exponent) denotes the time level. The partial derivatives t q(x, t) and x q(x, t) in the PDE in () are then replaced by appropriate finite difference approximations, as seen in what follows. / 57

12 Consider the generic point (x i, t n ) of the mesh. The temporal partial derivative t q(x, t) can be approximated in a variety of ways, such as t q(x i, t n ) = q(x i, t n+ ) q(x i, t n ) + O( t), Forward, t q(x i, t n ) q(x i, t n ) + O( t), Backward, t q(x i, t n+ ) q(x i, t n ) + O( t ), Centred. t Analogously, for the spatial partial derivative x q(x, t) in () at the point (x i, t n ) we write x q(x i, t n ) = (4) q(x i+, t n ) q(x i, t n ) + O( x), Forward, x q(x i, t n ) q(x i, t n ) + O( x), Backward, x q(x i+, t n ) q(x i, t n ) + O( x ), Centred. x (5) / 57

13 The method of Godunov: finite difference version This method uses the following approximations to partial derivatives t q(x i, t n ) = q(x i, t n+ ) q(x i, t n ) + O( t) t q(x i, t n ) q(x i, t n ) + O( x) if λ > x q(x i, t n ) = x q(x i+, t n ) q(x i, t n ) + O( x) if λ < x (6) The time derivative is approximated forward-in-time The space derivate is approximated by a one-sided, upwind, space derivate discretisation, according to the sign of the speed For linear equations the method was first proposed Courant, Isaacson and Rees (95) Godunov (959) extended the upwind method in conservation form to solve non-linear equations 3 / 57

14 The differential operator in () is L e (q) t q(x, t) + λ x q(x, t) =, (7) which when applied to the point (x i, t n ) of the mesh, for λ >, becomes L e (q(x i, t n )) = t q(x i, t n ) + λ x q(x i, t n ) = q(x i, t n+ ) q(x i, t n ) t + O( t) +λ[ q(x i, t n ) q(x i, t n ) ] + O( x) x =. Suppressing O( t) + O( x) and replacing q(x i, t n ) by qi n qi n+ qi n ( q n + λ i q n ) i =. t x Solving for q n+ i we obtain the numerical scheme q n+ i = q n i λ t x gives (8) ( q n i qi n ). (9) 4 / 57

15 The Courant-Friedrichs-Lewy number, or the CFL number, or simply Courant number is defined as c = λ t x = λ x/ t. () This is a dimensionless quantity, it is the ratio of the speed λ in the PDE in () and the mesh speed x/ t. Then the upwind scheme becomes q n+ i = q n i c ( q n i q n i ). () n + n i i i+ Fig. 3. Stencil for Godunov s method for positive characteristic speed λ. 5 / 57

16 For negative speed, λ <, the upwind scheme resulting from (6) reads q n+ i = q n i c(q n i+ q n i ). () n + n i i i+ Fig. 4. Stencil for Godunov s upwind method for negative speed λ. The Godunov scheme is always upwind, as it always looks for information in the upwind direction, the direction from where the wind arrives. 6 / 57

17 A numerical example by hand In order to illustrate the Godunov finite difference method we apply it here to a specific example of an initial-boundary value problem PDE: t q + λ x q =, x [a, b], t >, IC: q(x, ) = h(x), x [a, b], t =, (3) BCs: q(a, t) = b L (t) ; q(b, t) = b R (t), t. We choose λ =, a = 5, b = 5, M = 9, x =. We choose CFL number c = so that the time step is t =. As initial condition we take if x, q(x, ) = h(x) = (4) if x >. 7 / 57

18 To simplify the problem, as boundary conditions we take q(, t) = b L (t) = t ; q(b, t) = b R (t) = t. (5) qi = qi c(q i q i ) = ( ) =, for i =,, 3, q4 = q4 c(q 4 q 3 ) = ( ) =, q5 = q5 c(q 5 q 4 ) = ( ) =, q6 = q6 c(q 6 q 5 ) = ( ) =, q 7 = q 7 c(q 7 q 6 ) = ( ) =, qi = qi c(q i q i ) = ( ) =, for i = 8, 9. (6) 8 / 57

19 t n q n q n q n q3 n q4 n q5 n q6 n q7 n q8 n q9 n q n Table. values q n i according to the Godunov scheme..8 t = t =.5 t = x Fig. 5 Numerical results for two time steps from Godunov s method. 9 / 57

20 Other well-known finite difference methods The FTCS method (Forward-in-Time Centred-in-Space) results from the following approximations to partial derivatives t q(x i, t n ) = q(x i, t n+ ) q(x i, t n ) + O( t), t (7) x q(x i, t n ) = q(x i+, t n ) q(x i, t n ) + O( x ). x Substitution into the PDE, having suppressed the errors, we obtain qi n+ qi n ( q n + λ i+ q n ) i =. (8) t x Solving for q n+ i we obtain the FTCS numerical scheme q n+ i = q n i c(qn i+ q n i ). (9) Fig. 5 shows the stencil. / 57

21 n + n i i i+ Fig. 6. Stencil for the FTCS method. Unfortunately, FTCS is useless; it is unconditionally unstable FTCS uses the same approximation to the time derivative as the Godunov method But the spatial derivative is approximated via a centred, second-order accurate, approximation Naively, one would have expected a better method than Godunov s method There are two ways to rescue FTCS. One modification results in the explicit Lax-Friedrichs scheme. The other way is to resort to an implicit version. / 57

22 The Lax-Friedrichs method results from replacing qi n in the approximation to the time derivative of FTCS by a mean value, that is q n i (qn i + q n i+). Then qi n+ (qn i + qn i+ ) ( q n + λ i+ q n ) i =, (3) t x yielding the Lax-Friedrichs scheme q n+ i = ( + c)qn i + ( c)qn i+. (3) n + n i i i+ Fig. 7. Stencil for the Lax-Friedrichs method. / 57

23 The Lax-Wendroff method (96) The solution at (x i, t n+ ) is expressed as a Taylor series in time q(x i, t n+ ) = q(x i, t n ) + t t q(x i, t n ) + t () t q(x i, t n ) + O( t 3 ). (3) By means of the Cauchy-Kowalewski (or Lax-Wendroff) procedure one uses the PDE in () to replace time derivatives by space derivatives t q(x, t) = λ x q(x, t), () t q(x, t) = λ () x q(x, t). (33) In fact, for any order k, one can prove (k) t q(x, t) = ( λ) k x (k) q(x, t). (34) By substituting (33) into (3) one obtains q(x i, t n+ ) = q(x i, t n ) tλ x q(x i, t n )+ t λ x () q(x i, t n )+O( t 3 ) (35) Here the only derivative present are spatial derivatives. The spatial derivatives are approximated by centred finite differences 3 / 57

24 Finite difference approximations: x q(x i, t n ) = q(x i+, t n ) q(x i, t n ) x + O( x ), () x q(x i, t n ) = q(x i+, t n ) q(x i, t n ) + q(x i, t n ) x + O( x ). Finally, by substituting (36) into (35), neglecting truncation errors and replacing exact values q(x i, t n ) by qi n one obtains (36) q n+ i = c( + c)qn i + ( c )q n i c( c)qn i+. (37) n + n i i i+ Fig. 8. Stencil for the Lax-Wendroff method. 4 / 57

25 The FORCE method (Toro, 996). The finite difference version of FORCE [4], [5] results from an arithmetic mean of the Lax-Friedrichs and Lax-Wendroff schemes, namely: q n+ i = + giving the FORCE scheme [ ( + c)qn i + ( c)qn i+] [ c( + c)qn i + ( c )qi n c( ] (38) c)qn i+, q n+ i = 4 ( + c) q n i + ( c )q n i + 4 ( c) q n i+. (39) n + n i i i+ Fig. 9. Stencil for the FORCE method. 5 / 57

26 Monotone Schemes ω Lax-Wendroff scheme Non Monotone Schemes Godunov scheme Force scheme Lax-Friedrichs scheme Fig.. Weighted-type FORCE methods as convex average of Lax-Wendroff and Lax-Friedrichs in c ω plane. Here c is Courant number and ω is weight. Consider convex average: q force,ω = ( ω)q LF + ωq LW The line ω = /( + c ) denotes the Godunov s upwind method Godunov separates monotone methods from non-monotone methods Numerical viscosity (error) grows linearly with decreasing ω Godunov has the smallest error in the family of monotone methods FORCE has the smallest error in family of constant ω, with ω = / Lax-Friedrichs is the least accurate method c 6 / 57

27 Implicit methods: an example Consider again the model IBVP () and Approximate the temporal partial derivative as in (7) Approximate the spatial derivative as follows x q(x i, t n ) = q(x i+, t n+ ) q(x i, t n+ ) + O( x ) (4) x using values at the future time level n + By substituting the finite difference approximations into the PDE in (), neglecting errors and substituting exact values by approximate values one obtains ( qi n+ qi n q n+ i+ + λ ) qn+ i =. (4) t x Then solving for q n+ i gives implicit the numerical scheme qi n+ = qi n c ( qi+ n+ qn+ i ). (4) 7 / 57

28 Scheme (4) can be written as cqn+ i + qn+ i + cqn+ i+ = qn i, i =,..., M. (43) For i = the value qi n+ on the left boundary results from enforcing boundary conditions Analogously, for i = M the value qi+ n+ results from enforcing boundary conditions on the right boundary Therefore we have the following linear algebraic system AX = B, (44) where A is the coefficient matrix, X is the vector on unknowns and the right-hand side vector B is a known vector. System (44) is a tri-diagonal linear algebraic system and can be solved using the Thomas algorithm. 8 / 57

29 Conservative methods. The scalar case Consider a general scalar conservation law t q(x, t) + x f(q(x, t)) =, (45) where f(q) is the physical flux. A conservative method to solve (45) is a method of the form qi n+ = qi n t ( ) f x i+ f i, (46) where f i+ called the numerical flux, expressed as f i+ = f i+ (qi l n,..., qn i, qi+, n..., qi+r) n, (47) is required to where l and r are two non-negative integers. The flux f i+ satisfy: Continuity: f i+ : R l+r R is a continuous real-valued function Consistency: when all arguments of f i+ are identical f i+ (ˆq,..., ˆq) = f(ˆq). (48) 9 / 57

30 For general scalar equation t q(x, t) + x f(q(x, t)) = with flux f(q), well-known fluxes are given as q LW i+ = (qn i + qn i+ ) t x [ f(q n i+ ) f(q n i )] Lax W endroff f i+ = f(q LW ) i+ q GodC i+ f GodunovCentred i+ = (qn i + qn i+ ) t [ x f(q n i+ ) f(qi n)] = f(q GodC ) i+ (49) Lax F riedrichs f i+ f F orce i+ = = [ f(q n i ) + f(qi+ n )] x t (qn i+ qn i ) [ f LF i+ ] + f LW i+ 3 / 57

31 For the linear advection equation the flux reads = β k (au n i+k ), (5) f i+ k= with coefficients β k for a range of schemes. β β β β LF c ( + c) c ( c) 4c force 4c ( c) GODu ( + sign(c)) ( sign(c)) GODc ( + c) ( c) LW ( + c) ( c) WB, a > ( c) (3 c) WB, a < (3 + c) ( + c) FR, a > 4 ( c) 4 ( c) FR, a < 4 ( + c) 4 ( + c) Coefficients β k in the expression for the intercell flux for various schemes. 3 / 57

32 General form of a scheme and monotonicity All explicit schemes studied so far can be written in the general form q n+ i = H(q n i l,..., qn i,..., q n i+r), (5) with l, r two non-negative integers and H(...) a real-valued function of l + r + arguments. Definition: monotone method. A numerical scheme of the form (5) is said to be monotone if H is an increasing (non-decreasing) function of all its arguments q n k H(q n i l, qn i l+,..., qn i,..., q n i+r), i l k i + r (5) Example: Godunov s method. q n+ i = H(q n i, q n i ) = cq n i + ( c)q n i. (53) 3 / 57

33 Proposition. If a three-point conservative scheme qi n+ = qi n t ( ) f x i+ f i (54) for a non-linear conservation law is monotone then f i+ (qi n, q n i+) and f i+ (qi n, qi+) n. (55) q n i q n i q n i+ Proof. First we recall the general form (5) of a scheme and then define H(qi, n qi n, qi+) n qi n t ( ) f x i+ (qi n, qi+) n f i (qi, n qi n ). (56) From the definition of monotonicity it is easily proved that q n i+ H(q n i, q n i, q n i+) q n i H(q n i, q n i, q n i+) q n i+ f i (qi, n qi n ). f i+ (qi n, qi+) n, Hence the flux is an increasing function of its first argument and a decreasing function of its second argument and the claimed result is proved. (57) 33 / 57

34 Conservative methods. Non-linear systems A conservative method to solve the system of conservation laws is a numerical scheme of the form in which F i+ Q n+ i t Q + x F(Q) =, (58) = Q n i t x ( F i+ F i is the numerical flux and has the form F i+ ), (59) = F i+ (Q n i l,..., Qn i, Q n i+,..., Q n i+r), (6) where l and r are two non-negative integers. As defined, scheme (59) is explicit In an implicit conservative scheme the flux function F i+ includes arguments at time level n + Finite volume schemes are, by construction, conservative methods. 34 / 57

35 Finite difference methods as conservative methods Some conventional finite difference methods can also be re-interpreted as conservative methods. Here we study some examples. The Lax-Friedrichs method. The finite difference Lax-Friedrichs scheme Q n+ i = ( Q n i + Q n t ( i+) F(Q n x i+ ) F(Q n i ) ) (6) can be rewritten as a conservative method (59) with numerical flux F LF i+ Q LW a i+ = = ( F(Q n i ) + F(Q n i+) ) x ( Q n t i+ Q n ) i. (6) Lax-Wendroff methods. A well-known version of the Lax-Wendroff method is the two-step scheme F LW a = F(Q LW a ), i+ i+ ( Q n i + Q n t i+) x [F(Qn i+) F(Q n i )]. (63) 35 / 57

36 Another version of the Lax-Wendroff method has numerical flux F LW b i+ = [F(Qn i ) + F(Q n i+)] t x A i+ [F(Q n i+) F(Q n i )]. (64) Two choices for the interface matrix are ( ( A i+ = A Q n i + Q n ) ) i+, A i+ = [A(Qn i ) + A(Q n i+)]. (65) Note that flux (64) can be written as F LW b = ( I + t ) i+ x A i+ F(Q n i ) + ( I t ) x A i+ F(Q n i+). (66) A third version of the Lax-Wendroff flux is F LW c i+ = [F(Qn i ) + F(Q n i+)] t x A i+ ( Q n i+ Q n ) i. (67) 36 / 57

37 The FORCE method The FORCE method has numerical flux ( F F O F LF i+ i+ = ) + F LW i+. (68) In the original derivation of the FORCE flux [4], [5] the Lax-Wendroff flux that entered the average was F LW a i+ One could also use the other versions F LW b i+ and F LW c. i+ For theoretical aspects of FORCE for one-dimensional systems see [] For recent developments for multidimensional systems on unstructured meshes see [6], [] and [3] The Lax-Friedrichs and FORCE schemes are first order accurate and also monotone (for the scalar case) The Lax-Wendroff scheme is second order accurate in space and time but not monotone All three schemes are called centred, or symmetric and are distinct from upwind schemes, such as Godunov s method 37 / 57

38 Telescopic property of conservative methods Summation applied to formula (59), premultiplied by x i, gives i=i Right xq n+ i = i=i Left i=i Right i=i Left xq n i t ( F Right+ F Left ). (69) Here i Left and i Right are the leftmost and rightmost cells F Left and F Right+ are leftmost and rightmost intercell boundaries fluxes (69) says that the total amount of Q changes only due to the fluxes through the end boundaries The telescopic property also holds in multiple space dimensions Shock waves and conservation. Shock waves are captured with the correct propagation speed by conservative methods (Lax and Wendroff, 96) Non-conservative methods will compute shock waves with the wrong speed (Hou and LeFloch, 994) 38 / 57

39 Time step t and the CFL condition The choice of t for explicit methods is constraint by a stability condition, called the CFL condition, or the Courant condition In general one chooses t as x t = C cfl Smax n (7) C cfl is a Courant or CFL coefficient, specified by the user, satisfying < C cfl C lim (7) C lim is the linearized stability limit of the scheme Smax n is an estimate for the largest wave speed present time level n. For systems with eigenvalues λ n k,i, k =,..., m in cell i at time n { } Smax n = max max λ n k,i (7) i k A practical choice for the coefficient C cfl is C cfl =.9 C lim (73) 39 / 57

40 Boundary conditions Add fictitious cells I and I M+ on left and right of domain, Fig. 8 Prescribe data values in I and I M+, adjacent to I and I M Boundary Riemann problems with data (Q n, Qn ) and (Qn M, Qn M+ ) are generated Corresponding numerical fluxes F and F M+ are computed, as done for the interior cells Boundary conditions are a physical issue and great care is required in their numerical implementation. For the Godunov method the concept of boundary Riemann problems helps. Left boundary Right boundary Left fictious cell Computational domain Right fictious cell a M b M + Fig. : Boundary conditions. Fictitious cells outside the computational domain are created. 4 / 57

41 Shallow water equations Transmissive boundary conditions: h n = h n ; u n = u n Left boundary h n M+ = h n M ; un M+ = u n M Left boundary (74) Reflective boundary conditions: h n = h n ; u n = u n + u LB Left boundary h n M+ = h n M ; un M+ = u n M + u RB Left boundary (75) u LB and u LB are prescribed velocities of left and right boundaries. 4 / 57

42 Blood flow equations Transmissive boundary conditions: A n = A n ; u n = u n Left boundary A n M+ = A n M ; un M+ = u n M Reflective boundary conditions: Left boundary (76) A n = A n ; u n = u n + u LB Left boundary A n M+ = A n M ; un M+ = u n M + u RB Left boundary (77) u LB and u LB are prescribed velocities of left and right boundaries. 4 / 57

43 A Case Study: Computational Example for the Linear Advection Equation 43 / 57

44 The problem We solve the initial-boundary value problem (IBVP) for the linear advection equation PDE: t q + λ x q =, x [a, b], t >, IC: q(x, ) = h(x), x [a, b], t =, (78) Periodic BCs: q(a, t) = q(b, t), t >, with λ =, a = 5, b = 5 and periodic boundary conditions We use 6 methods: Lax-Friedrichs, FORCE, Godunov, Lax-Wendroff, Warming-Beam and Fromm We solve one problem with smooth solution and another with discontinuous solution We compare results with the exact solution and discuss the performance of six methods used 44 / 57

45 We consider two types of initial conditions h(x), a smooth Gaussian profile q(x, ) = h(x) = αe βx, α =, β =, x [a, b] (79) and a (discontinous) square wave given as if a = 5 x <, q(x, ) = h(x) = if x, if < x b = 5. The mesh details are as as follows x = b a mesh spacing, M + M number of interior points, M + number of sub-intervals of [a, b], M + total number of finite difference points in [a, b], x = a first mesh point (lies on left boundary), x M+ = b last mesh point (lies on right boundary), x, x,..., x M interior mesh points (solution to be computed). (8) (8) 45 / 57

46 Implementation of periodic boundary conditions We proceed as follows: Set initial conditions at t = in the entire domain q i = h(x i ), for i =,,..., M, M +. (8) Apply periodic boundary conditions as follows Left boundary: q n = q n M+, q n = q n M, Right boundary: qm+ n = q n, qm+3 n = q n. (83) Note that from the periodic boundary conditions of the problem we enforce q n = qn M+ n >. 3 Compute the solution on points applying the numerical scheme. x, x,..., x M, x M+ (84) 46 / 57

47 Computational results and discussion We solve problem using: Lax-Friedrichs, FORCE, Godunov, Lax-Wendroff, Warming-Beam and Fromm. We C cfl =.9 and the time step is calculated as t = C cfl x λ. (85) We display results at the fixed output time T out = units, which corresponds to cycles for the periodic solution. For each method and each test results are shown for three meshes, M = 5, M = and M =. Results are displayed in Figs. to / 57

48 Comments on the results It is difficult to compute accurate solutions to this simple equation As the mesh is refined the numerical solution gets closer to the exact solution For Test, with smooth IC, second-order methods give more accurate results than first-order methods First-order methods have too much numerical viscosity and clipping of extrema is very severe For Test, with discontinuous IC, second-order methods produce large spurious oscillations, overshoots and undershoots In general, second-order methods are very inaccurate. The first-order methods used do not produce spurious oscillations involving new extrema, a property called monotonicity 48 / 57

49 Not all first-order methods are monotone First-order methods have inherent numerical viscosity that causes the discontinuities to spread as time evolves A technically monotone method can admit (internal) spurious oscillations, but with no new extrema. See the Lax-Friedrichs results of Fig. 8 The concept of resolution is used to describe the way a discontinuity is represented by the numerical method, that is, how large or small is the transition zone in the numerical solution This is determined by the number of points inside of the numerical solution that lie inside the transition zone Overall, the best first-order method is Godunov and the worst is Lax-Friedrichs. The best second-order method is Fromm and the worst is Warming-Beam From the results seen, we have not yet found the ideal numerical method. Better methods need to be constructed 49 / 57

50 Concluding Remarks We have introduced some basic concepts on numerical methods for hyperbolic equations using the model linear advection equation Most well-known finite difference methods have been considered Through a case study for the linear advection equation we have demonstrated the computational performance of all methods studied and have discussed their salient features In addition, we have formulated the basic finite difference methods as conservative methods, in terms of a numerical flux Conservative methods have been introduced both for scalar equations and as well as for non-linear systems Exercises are suggested on a separate document 5 / 57

51 Numerical (Lax Friedrichs) Numerical (Lax Friedrichs) Numerical (Lax Friedrichs) Fig.. Test. Results at time t = from the Lax-Friedrichs method (symbol) compared to the exact (line) solution for three meshes: M=5,,. Numerical (FORCE) Numerical (FORCE) Numerical (FORCE) Fig. 3. Test. Results at time t = from the FORCE method (symbol) compared to the exact (line) solution for three meshes: M=5,,. 5 / 57

52 Numerical (Godunov) Numerical (Godunov) Numerical (Godunov) Fig. 4. Test. Results at time t = from Godunov s method (symbol) compared to the exact (line) solution for three meshes: M=5,,. Numerical (Lax Wendroff) Numerical (Lax Wendroff) Numerical (Lax Wendroff) Fig. 5. Test. Results at time t = from the Lax-Wendroff method (symbol) compared to the exact (line) solution for three meshes: M=5,,. 5 / 57

53 Numerical (Warming Beam) Numerical (Warming Beam) Numerical (Warming Beam) Fig. 6. Test. Results at time t = from the Warming-Beam method (symbol) compared to the exact (line) solution for three meshes: M=5,,. Numerical (Fromm) Numerical (Fromm) Numerical (Fromm) Fig. 7. Test. Results at time t = from the Fromm method (symbol) compared to the exact (line) solution for three meshes: M=5,,. 53 / 57

54 Numerical (Lax Friedrichs) Numerical (Lax Friedrichs) Numerical (Lax Friedrichs) Fig. 8. Test. Results at time t = from the Lax-Friedrichs method (symbol) compared to the exact (line) solution for three meshes: M=5,,. Numerical (FORCE) Numerical (FORCE) Numerical (FORCE) Fig. 9. Test. Results at time t = from the FORCE method (symbol) compared to the exact (line) solution for three meshes: M=5,,. 54 / 57

55 Numerical (Godunov) Numerical (Godunov) Numerical (Godunov) Fig.. Test. Results at time t = from Godunov s method (symbol) compared to the exact (line) solution for three meshes: M=5,,. Numerical (Lax Wendroff) Numerical (Lax Wendroff) Numerical (Lax Wendroff) Fig.. Test. Results at time t = from the Lax-Wendroff method (symbol) compared to the exact (line) solution for three meshes: M=5,,. 55 / 57

56 Numerical (Warming Beam) Numerical (Warming Beam) Numerical (Warming Beam) Fig.. Test. Results at time t = from the Warming-Beam method (symbol) compared to the exact (line) solution for three meshes: M=5,,. Numerical (Fromm) Numerical (Fromm) Numerical (Fromm) Fig. 3. Test. Results at time t = from the Fromm method (symbol) compared to the exact (line) solution for three meshes: M=5,,. 56 / 57

57 G. Q. Chen and E. F. Toro. Centred Schemes for Non Linear Hyperbolic Equations. Journal of Hyperbolic Differential Equations, ():53 566, 4. Michael Dumbser, Manuel Castro, Carlos Parés, Eleuterio Toro, and Arturo Hidalgo. FORCE Schemes on Unstructured Meshes II: Non-conservative Hyperbolic Systems. Computer Methods in Applied Mechanics and Engineering, 99:65 647,. E. F. Toro. Riemann Solvers and Numerical Methods for Fluid Dynamics. A Practical Introduction. Third Edition. Springer Verlag, 9. E. F. Toro and S. J. Billett. Centred TVD Schemes for Hyperbolic Conservation Laws. Technical Report MMU 963, Department of Mathematics and Physics, Manchester Metropolitan University, UK, / 57

58 E. F. Toro and S. J. Billett. Centred TVD Schemes for Hyperbolic Conservation Laws. IMA J. Numerical Analysis, :47 79,. E. F. Toro, A. Hidalgo, and M. Dumbser. FORCE Schemes on Unstructured Meshes I: Conservative Hyperbolic Systems. J. Comput. Phys., 8: , / 57

59 Exercises for basics on numerical methods for hyperbolic equations 57 / 57

60 Problem : finite difference approximation to derivatives. Consider a smooth function g(x) and a point x in its domain. Consider in addition the sequence of equidistant points x x, x x, x, x + x, x + x, with x a fixed positive length. Using Taylor s theorem derive approximations to first and second derivatives of g(x) at the point x as follows: Find a one-sided second order approximation to the first derivative g (x ) using the points x x, x x, x. Find a one-sided second order approximation to the first derivative g (x ) using the points x, x + x, x + x. 3 Find a centred second order approximation to the second derivative g (x ) using the points x x, x, x + x. 4 Find a one-sided approximation to the second derivative g (x ) using the points x x, x x, x. 5 Find a one-sided approximation to the second derivative g (x ) using the points x, x + x, x + x. Problem : Warming-Beam method. Consider the Warming-Beam 57 / 57

61 scheme q n+ i = c(c )qn i + c( c)q n i + (c )(c )qn i+ (86) for the linear advection equation for λ >, where c is the Courant number. Note that this method is upwind biased, as it uses only upwind information, and is second order accurate in space and time. Derive the scheme through the following steps: Perform a time Taylor series expansion of the solution at (x i, t n+ ) following the same procedure as for the Law-Wendroff method. Obtain suitable one-sided approximations to the first and second spatial derivatives using the points (x i, t n ), (x i, t n ) and (x i, t n ). Problem 3: Warming-Beam scheme for negative speed. Derive the Warming-Beam scheme for the linear advection equation for λ <. Problem 4: Fromm method. Consider the Fromm scheme q n+ i = 4 ( c)cqn i + 4 (5 c)cqn i + 4 ( c)(4+c)qn i+ 4 ( c)cqn i+ (87) 57 / 57

62 for the linear advection equation for λ >. This method is upwind biased but it also uses downwind information; the scheme is second order accurate in space and time. Derive the Fromm scheme through the following steps: Perform a time Taylor series expansion of the solution at (x i, t n+ ) following the same procedure as for the Law-Wendroff method. Obtain suitable finite difference approximations to the first and second spatial derivatives using the points (x i, t n ), (x i, t n ), (x i, t n ) and (x i+, t n ). Problem 5: Fromm scheme for negative speed. Derive the Fromm scheme for the linear advection equation for λ <. Problem 6: calculation by hand. Consider the initial-boundary value problem in the case study for the linear advection equation. Solve the problem by hand for two time steps and display the results on a table using the following methods: The FTCS method. The Lax-Friedrichs method. 3 The FORCE method. 4 The Lax-Wendroff method. 57 / 57

63 5 The Warming-Beam method. 6 The Fromm method. Use the same computational parameters as for the case study for the linear advection equation. We remark that it is necessary to extend the computational domain by adding one extra, fictitious, point to the left and one right of the computational domain, in order to be able to apply the second-order methods. See the computational example of Section 6. Problem 7: implicit Godunov method. Assume the temporal partial derivative to be approximated by the explicit forward formula but the spatial derivative to be approximated by a backward finite difference approximation calculated at the future time level n +, that is x q(x i, t n ) = q(x i, t n+ ) q(x i, t n+ ) x + O( x) (88) L a (qi n ) qn+ i qi n t + λ ( q n+ i q n+ i x ) =, (89) 57 / 57

64 Solving for qi n+ we obtain the implicit numerical scheme qi n+ = qi n c ( qi n+ qi n+ ), (9) or cqn+ i + qn+ i + cqn+ i+ = qn i, for i =,..., M. (9) Write the problem as a linear system. Write down the coefficient matrix A, the vector X of unknowns and the vector B of known terms. Apply the implicit Godunov method by hand to solve problem 6 above for two time steps and display the results on a table. 3 Compare the results of the various explicit methods, the implicit FTCS and the implicit Godunov method, along with the exact solution. 57 / 57

Non-linear Methods for Scalar Equations

Non-linear Methods for Scalar Equations Non-linear Methods for Scalar Equations Professor Dr. E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro October 3, 04 / 56 Abstract

More information

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II Advection / Hyperbolic PDEs Notes In addition to the slides and code examples, my notes on PDEs with the finite-volume method are up online: https://github.com/open-astrophysics-bookshelf/numerical_exercises

More information

Non-linear Scalar Equations

Non-linear Scalar Equations Non-linear Scalar Equations Professor Dr. E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro August 24, 2014 1 / 44 Overview Here

More information

RESEARCH HIGHLIGHTS. WAF: Weighted Average Flux Method

RESEARCH HIGHLIGHTS. WAF: Weighted Average Flux Method RESEARCH HIGHLIGHTS (Last update: 3 rd April 2013) Here I briefly describe my contributions to research on numerical methods for hyperbolic balance laws that, in my view, have made an impact in the scientific

More information

VISCOUS FLUX LIMITERS

VISCOUS FLUX LIMITERS VISCOUS FLUX LIMITERS E. F. Toro Department of Aerospace Science College of Aeronautics Cranfield Institute of Technology Cranfield, Beds MK43 OAL England. Abstract We present Numerical Viscosity Functions,

More information

Simplified ADER schemes based on a time-reconstruction GRP solver

Simplified ADER schemes based on a time-reconstruction GRP solver Simplified ADER schemes based on a time-reconstruction GRP solver Eleuterio F. TORO Professor Emeritus Laboratory of Applied Mathematics University of Trento, Italy Email: eleuterio.toro@unitn.it Webpage:

More information

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement Romain Teyssier CEA Saclay Romain Teyssier 1 Outline - Euler equations, MHD, waves, hyperbolic

More information

Linear Hyperbolic Systems

Linear Hyperbolic Systems Linear Hyperbolic Systems Professor Dr E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro October 8, 2014 1 / 56 We study some basic

More information

ENO and WENO schemes. Further topics and time Integration

ENO and WENO schemes. Further topics and time Integration ENO and WENO schemes. Further topics and time Integration Tefa Kaisara CASA Seminar 29 November, 2006 Outline 1 Short review ENO/WENO 2 Further topics Subcell resolution Other building blocks 3 Time Integration

More information

Conservation Laws and Finite Volume Methods

Conservation Laws and Finite Volume Methods Conservation Laws and Finite Volume Methods AMath 574 Winter Quarter, 2017 Randall J. LeVeque Applied Mathematics University of Washington January 4, 2017 http://faculty.washington.edu/rjl/classes/am574w2017

More information

7 Hyperbolic Differential Equations

7 Hyperbolic Differential Equations Numerical Analysis of Differential Equations 243 7 Hyperbolic Differential Equations While parabolic equations model diffusion processes, hyperbolic equations model wave propagation and transport phenomena.

More information

DEVELOPMENT AND APPLICATION OF GENERALIZED MUSTA SCHEMES

DEVELOPMENT AND APPLICATION OF GENERALIZED MUSTA SCHEMES European Conference on Computational Fluid Dynamics ECCOMAS CFD 26 P. Wesseling, E. Oñate and J. Périaux (Eds) c TU Delft, The Netherlands, 26 DEVELOPMENT AND APPLICATION OF GENERALIZED MUSTA SCHEMES V.

More information

The RAMSES code and related techniques I. Hydro solvers

The RAMSES code and related techniques I. Hydro solvers The RAMSES code and related techniques I. Hydro solvers Outline - The Euler equations - Systems of conservation laws - The Riemann problem - The Godunov Method - Riemann solvers - 2D Godunov schemes -

More information

PDEs, part 3: Hyperbolic PDEs

PDEs, part 3: Hyperbolic PDEs PDEs, part 3: Hyperbolic PDEs Anna-Karin Tornberg Mathematical Models, Analysis and Simulation Fall semester, 2011 Hyperbolic equations (Sections 6.4 and 6.5 of Strang). Consider the model problem (the

More information

Numerical Methods for Hyperbolic Conservation Laws Lecture 4

Numerical Methods for Hyperbolic Conservation Laws Lecture 4 Numerical Methods for Hyperbolic Conservation Laws Lecture 4 Wen Shen Department of Mathematics, Penn State University Email: wxs7@psu.edu Oxford, Spring, 018 Lecture Notes online: http://personal.psu.edu/wxs7/notesnumcons/

More information

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes Math 660-Lecture 3: Gudonov s method and some theories for FVM schemes 1 The idea of FVM (You can refer to Chapter 4 in the book Finite volume methods for hyperbolic problems ) Consider the box [x 1/,

More information

Riemann Solvers and Numerical Methods for Fluid Dynamics

Riemann Solvers and Numerical Methods for Fluid Dynamics Eleuterio R Toro Riemann Solvers and Numerical Methods for Fluid Dynamics A Practical Introduction With 223 Figures Springer Table of Contents Preface V 1. The Equations of Fluid Dynamics 1 1.1 The Euler

More information

FDM for wave equations

FDM for wave equations FDM for wave equations Consider the second order wave equation Some properties Existence & Uniqueness Wave speed finite!!! Dependence region Analytical solution in 1D Finite difference discretization Finite

More information

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems Lecture Notes on Numerical Schemes for Flow and Transport Problems by Sri Redeki Pudaprasetya sr pudap@math.itb.ac.id Department of Mathematics Faculty of Mathematics and Natural Sciences Bandung Institute

More information

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows:

The one-dimensional equations for the fluid dynamics of a gas can be written in conservation form as follows: Topic 7 Fluid Dynamics Lecture The Riemann Problem and Shock Tube Problem A simple one dimensional model of a gas was introduced by G.A. Sod, J. Computational Physics 7, 1 (1978), to test various algorithms

More information

Ordinary Differential Equations

Ordinary Differential Equations Ordinary Differential Equations Professor Dr. E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro September 19, 2014 1 / 55 Motivation

More information

Conservation Laws and Finite Volume Methods

Conservation Laws and Finite Volume Methods Conservation Laws and Finite Volume Methods AMath 574 Winter Quarter, 2011 Randall J. LeVeque Applied Mathematics University of Washington January 3, 2011 R.J. LeVeque, University of Washington AMath 574,

More information

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few:

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few: .. Methods for Obtaining FD Expressions There are several methods, and we will look at a few: ) Taylor series expansion the most common, but purely mathematical. ) Polynomial fitting or interpolation the

More information

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems Lecture Notes on Numerical Schemes for Flow and Transport Problems by Sri Redeki Pudaprasetya sr pudap@math.itb.ac.id Department of Mathematics Faculty of Mathematics and Natural Sciences Bandung Institute

More information

3.4. Monotonicity of Advection Schemes

3.4. Monotonicity of Advection Schemes 3.4. Monotonicity of Advection Schemes 3.4.1. Concept of Monotonicity When numerical schemes are used to advect a monotonic function, e.g., a monotonically decreasing function of x, the numerical solutions

More information

AMath 574 February 11, 2011

AMath 574 February 11, 2011 AMath 574 February 11, 2011 Today: Entropy conditions and functions Lax-Wendroff theorem Wednesday February 23: Nonlinear systems Reading: Chapter 13 R.J. LeVeque, University of Washington AMath 574, February

More information

Finite Volume Schemes: an introduction

Finite Volume Schemes: an introduction Finite Volume Schemes: an introduction First lecture Annamaria Mazzia Dipartimento di Metodi e Modelli Matematici per le Scienze Applicate Università di Padova mazzia@dmsa.unipd.it Scuola di dottorato

More information

A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws

A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws A. A. I. Peer a,, A. Gopaul a, M. Z. Dauhoo a, M. Bhuruth a, a Department of Mathematics, University of Mauritius, Reduit,

More information

Chapter 10 Exercises

Chapter 10 Exercises Chapter 10 Exercises From: Finite Difference Methods for Ordinary and Partial Differential Equations by R. J. LeVeque, SIAM, 2007. http://www.amath.washington.edu/ rl/fdmbook Exercise 10.1 (One-sided and

More information

ADER Schemes on Adaptive Triangular Meshes for Scalar Conservation Laws

ADER Schemes on Adaptive Triangular Meshes for Scalar Conservation Laws ADER Schemes on Adaptive Triangular Meshes for Scalar Conservation Laws Martin Käser and Armin Iske Abstract. ADER schemes are recent finite volume methods for hyperbolic conservation laws, which can be

More information

Tutorial 2. Introduction to numerical schemes

Tutorial 2. Introduction to numerical schemes 236861 Numerical Geometry of Images Tutorial 2 Introduction to numerical schemes c 2012 Classifying PDEs Looking at the PDE Au xx + 2Bu xy + Cu yy + Du x + Eu y + Fu +.. = 0, and its discriminant, B 2

More information

Part 1. The diffusion equation

Part 1. The diffusion equation Differential Equations FMNN10 Graded Project #3 c G Söderlind 2016 2017 Published 2017-11-27. Instruction in computer lab 2017-11-30/2017-12-06/07. Project due date: Monday 2017-12-11 at 12:00:00. Goals.

More information

A numerical study of SSP time integration methods for hyperbolic conservation laws

A numerical study of SSP time integration methods for hyperbolic conservation laws MATHEMATICAL COMMUNICATIONS 613 Math. Commun., Vol. 15, No., pp. 613-633 (010) A numerical study of SSP time integration methods for hyperbolic conservation laws Nelida Črnjarić Žic1,, Bojan Crnković 1

More information

Basic Aspects of Discretization

Basic Aspects of Discretization Basic Aspects of Discretization Solution Methods Singularity Methods Panel method and VLM Simple, very powerful, can be used on PC Nonlinear flow effects were excluded Direct numerical Methods (Field Methods)

More information

SMOOTHNESS INDICATORS FOR WENO SCHEME USING UNDIVIDED DIFFERENCES

SMOOTHNESS INDICATORS FOR WENO SCHEME USING UNDIVIDED DIFFERENCES Proceedings of ALGORITMY 2016 pp. 155 164 SMOOTHNESS INDICATORS FOR WENO SCHEME USING UNDIVIDED DIFFERENCES TAMER H. M. A. KASEM AND FRANÇOIS G. SCHMITT Abstract. The weighted essentially non-oscillatory

More information

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13 REVIEW Lecture 12: Spring 2015 Lecture 13 Grid-Refinement and Error estimation Estimation of the order of convergence and of the discretization error Richardson s extrapolation and Iterative improvements

More information

Introduction to Partial Differential Equations

Introduction to Partial Differential Equations Introduction to Partial Differential Equations Partial differential equations arise in a number of physical problems, such as fluid flow, heat transfer, solid mechanics and biological processes. These

More information

MIT (Spring 2014)

MIT (Spring 2014) 18.311 MIT (Spring 014) Rodolfo R. Rosales May 6, 014. Problem Set # 08. Due: Last day of lectures. IMPORTANT: Turn in the regular and the special problems stapled in two SEPARATE packages. Print your

More information

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation Chapter 3. Finite Difference Methods for Hyperbolic Equations 3.1. Introduction Most hyperbolic problems involve the transport of fluid properties. In the equations of motion, the term describing the transport

More information

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS JOHN A. TRANGENSTEIN Department of Mathematics, Duke University Durham, NC 27708-0320 Ш CAMBRIDGE ЩР UNIVERSITY PRESS Contents 1 Introduction

More information

ME Computational Fluid Mechanics Lecture 5

ME Computational Fluid Mechanics Lecture 5 ME - 733 Computational Fluid Mechanics Lecture 5 Dr./ Ahmed Nagib Elmekawy Dec. 20, 2018 Elliptic PDEs: Finite Difference Formulation Using central difference formulation, the so called five-point formula

More information

A Higher-Order Finite Volume Method for Non-Conservative Equations on 2D Unstructured Quadrilateral Grids

A Higher-Order Finite Volume Method for Non-Conservative Equations on 2D Unstructured Quadrilateral Grids Diese Arbeit wurde vorgelegt am Lehrstuhl für Mathematik (MathCCES) A Higher-Order Finite Volume Method for Non-Conservative Equations on 2D Unstructured Quadrilateral Grids CES Seminar Computational Engineering

More information

Comparison of Approximate Riemann Solvers

Comparison of Approximate Riemann Solvers Comparison of Approximate Riemann Solvers Charlotte Kong May 0 Department of Mathematics University of Reading Supervisor: Dr P Sweby A dissertation submitted in partial fulfilment of the requirement for

More information

Finite Difference Method for PDE. Y V S S Sanyasiraju Professor, Department of Mathematics IIT Madras, Chennai 36

Finite Difference Method for PDE. Y V S S Sanyasiraju Professor, Department of Mathematics IIT Madras, Chennai 36 Finite Difference Method for PDE Y V S S Sanyasiraju Professor, Department of Mathematics IIT Madras, Chennai 36 1 Classification of the Partial Differential Equations Consider a scalar second order partial

More information

Sung-Ik Sohn and Jun Yong Shin

Sung-Ik Sohn and Jun Yong Shin Commun. Korean Math. Soc. 17 (2002), No. 1, pp. 103 120 A SECOND ORDER UPWIND METHOD FOR LINEAR HYPERBOLIC SYSTEMS Sung-Ik Sohn and Jun Yong Shin Abstract. A second order upwind method for linear hyperbolic

More information

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic Applied Mathematics 205 Unit III: Numerical Calculus Lecturer: Dr. David Knezevic Unit III: Numerical Calculus Chapter III.3: Boundary Value Problems and PDEs 2 / 96 ODE Boundary Value Problems 3 / 96

More information

Two-waves PVM-WAF method for non-conservative systems

Two-waves PVM-WAF method for non-conservative systems Two-waves PVM-WAF method for non-conservative systems Manuel J. Castro Díaz 1, E.D Fernández Nieto, Gladys Narbona Reina and Marc de la Asunción 1 1 Departamento de Análisis Matemático University of Málaga

More information

Notes: Outline. Shock formation. Notes: Notes: Shocks in traffic flow

Notes: Outline. Shock formation. Notes: Notes: Shocks in traffic flow Outline Scalar nonlinear conservation laws Traffic flow Shocks and rarefaction waves Burgers equation Rankine-Hugoniot conditions Importance of conservation form Weak solutions Reading: Chapter, 2 R.J.

More information

A parametrized maximum principle preserving flux limiter for finite difference RK-WENO schemes with applications in incompressible flows.

A parametrized maximum principle preserving flux limiter for finite difference RK-WENO schemes with applications in incompressible flows. A parametrized maximum principle preserving flux limiter for finite difference RK-WENO schemes with applications in incompressible flows Tao Xiong Jing-ei Qiu Zhengfu Xu 3 Abstract In Xu [] a class of

More information

Numerical methods Revised March 2001

Numerical methods Revised March 2001 Revised March 00 By R. W. Riddaway (revised by M. Hortal) Table of contents. Some introductory ideas. Introduction. Classification of PDE's.3 Existence and uniqueness.4 Discretization.5 Convergence, consistency

More information

Basics of Discretization Methods

Basics of Discretization Methods Basics of Discretization Methods In the finite difference approach, the continuous problem domain is discretized, so that the dependent variables are considered to exist only at discrete points. Derivatives

More information

A Multi-Dimensional Limiter for Hybrid Grid

A Multi-Dimensional Limiter for Hybrid Grid APCOM & ISCM 11-14 th December, 2013, Singapore A Multi-Dimensional Limiter for Hybrid Grid * H. W. Zheng ¹ 1 State Key Laboratory of High Temperature Gas Dynamics, Institute of Mechanics, Chinese Academy

More information

Dissipation and Dispersion

Dissipation and Dispersion Consider the problem with periodic boundary conditions Dissipation and Dispersion u t = au x 0 < x < 1, t > 0 u 0 = sin 40 πx u(0, t) = u(1, t) t > 0 If a > 0 then the wave is moving to the left and if

More information

Weighted Essentially Non-Oscillatory limiters for Runge-Kutta Discontinuous Galerkin Methods

Weighted Essentially Non-Oscillatory limiters for Runge-Kutta Discontinuous Galerkin Methods Weighted Essentially Non-Oscillatory limiters for Runge-Kutta Discontinuous Galerkin Methods Jianxian Qiu School of Mathematical Science Xiamen University jxqiu@xmu.edu.cn http://ccam.xmu.edu.cn/teacher/jxqiu

More information

1D Heat equation and a finite-difference solver

1D Heat equation and a finite-difference solver 1D Heat equation and a finite-difference solver Guillaume Riflet MARETEC IST 1 The advection-diffusion equation The original concept applied to a property within a control volume from which is derived

More information

Solution Methods. Steady State Diffusion Equation. Lecture 04

Solution Methods. Steady State Diffusion Equation. Lecture 04 Solution Methods Steady State Diffusion Equation Lecture 04 1 Solution methods Focus on finite volume method. Background of finite volume method. Discretization example. General solution method. Convergence.

More information

College of Aeronatics Report No.8907 June 1989

College of Aeronatics Report No.8907 June 1989 Cranfield College of Aeronatics Report No.8907 June 989 TVD regions for the weighted average flux (WAF) method as applied to a model hyperbolic conservation law E F Toro College of Aeronautics Cranfield

More information

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2 Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer ringhofer@asu.edu, C2 b 2 2 h2 x u http://math.la.asu.edu/ chris Last update: Jan 24, 2006 1 LITERATURE 1. Numerical Methods for Conservation

More information

Relevant self-assessment exercises: [LIST SELF-ASSESSMENT EXERCISES HERE]

Relevant self-assessment exercises: [LIST SELF-ASSESSMENT EXERCISES HERE] Chapter 6 Finite Volume Methods In the previous chapter we have discussed finite difference methods for the discretization of PDEs. In developing finite difference methods we started from the differential

More information

Time stepping methods

Time stepping methods Time stepping methods ATHENS course: Introduction into Finite Elements Delft Institute of Applied Mathematics, TU Delft Matthias Möller (m.moller@tudelft.nl) 19 November 2014 M. Möller (DIAM@TUDelft) Time

More information

On the Comparison of the Finite Volume and Discontinuous Galerkin Methods

On the Comparison of the Finite Volume and Discontinuous Galerkin Methods Diploma Thesis Institute for Numerical Simulation, TUHH On the Comparison of the Finite Volume and Discontinuous Galerkin Methods Corrected version Katja Baumbach August 17, 2006 Supervisor: Prof. Dr.

More information

Finite Differences: Consistency, Stability and Convergence

Finite Differences: Consistency, Stability and Convergence Finite Differences: Consistency, Stability and Convergence Varun Shankar March, 06 Introduction Now that we have tackled our first space-time PDE, we will take a quick detour from presenting new FD methods,

More information

Method of Lines. Received April 20, 2009; accepted July 9, 2009

Method of Lines. Received April 20, 2009; accepted July 9, 2009 Method of Lines Samir Hamdi, William E. Schiesser and Graham W. Griffiths * Ecole Polytechnique, France; Lehigh University, USA; City University,UK. Received April 20, 2009; accepted July 9, 2009 The method

More information

Hyperbolic Partial Differential Equations

Hyperbolic Partial Differential Equations Chapter 1 Hyperbolic Partial Differential Equations We begin our study of finite difference methods for partial differential equations by considering the important class of partial differential equations

More information

Large Time Step Scheme Behaviour with Different Entropy Fix

Large Time Step Scheme Behaviour with Different Entropy Fix Proceedings of the Paistan Academy of Sciences: A. Physical and Computational Sciences 53 (): 13 4 (016) Copyright Paistan Academy of Sciences ISSN: 0377-969 (print), 306-1448 (online) Paistan Academy

More information

Finite difference methods for the diffusion equation

Finite difference methods for the diffusion equation Finite difference methods for the diffusion equation D150, Tillämpade numeriska metoder II Olof Runborg May 0, 003 These notes summarize a part of the material in Chapter 13 of Iserles. They are based

More information

Cranfield ^91. College of Aeronautics Report No.9007 March The Dry-Bed Problem in Shallow-Water Flows. E F Toro

Cranfield ^91. College of Aeronautics Report No.9007 March The Dry-Bed Problem in Shallow-Water Flows. E F Toro Cranfield ^91 College of Aeronautics Report No.9007 March 1990 The Dry-Bed Problem in Shallow-Water Flows E F Toro College of Aeronautics Cranfield Institute of Technology Cranfield. Bedford MK43 OAL.

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 11 Partial Differential Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002.

More information

The Center for Astrophysical Thermonuclear Flashes. FLASH Hydrodynamics

The Center for Astrophysical Thermonuclear Flashes. FLASH Hydrodynamics The Center for Astrophysical Thermonuclear Flashes FLASH Hydrodynamics Jonathan Dursi (CITA), Alan Calder (FLASH) B. Fryxell, T. Linde, A. Mignone, G. Wiers Many others! Mar 23, 2005 An Advanced Simulation

More information

HIGH ORDER FINITE VOLUME SCHEMES BASED ON RECONSTRUCTION OF STATES FOR SOLVING HYPERBOLIC SYSTEMS WITH NONCONSERVATIVE PRODUCTS

HIGH ORDER FINITE VOLUME SCHEMES BASED ON RECONSTRUCTION OF STATES FOR SOLVING HYPERBOLIC SYSTEMS WITH NONCONSERVATIVE PRODUCTS MATHEMATICS OF COMPUTATION Volume 75, Number 255, July 26, Pages 113 1134 S 25-5718(6)1851-5 Article electronically published on March 21, 26 HIGH ORDER FINITE VOLUME SCHEMES BASED ON RECONSTRUCTION OF

More information

Entropy stable schemes for degenerate convection-diffusion equations

Entropy stable schemes for degenerate convection-diffusion equations Entropy stable schemes for degenerate convection-diffusion equations Silvia Jerez 1 Carlos Parés 2 ModCompShock, Paris 6-8 Decmber 216 1 CIMAT, Guanajuato, Mexico. 2 University of Malaga, Málaga, Spain.

More information

International Engineering Research Journal

International Engineering Research Journal Special Edition PGCON-MECH-7 Development of high resolution methods for solving D Euler equation Ms.Dipti A. Bendale, Dr.Prof. Jayant H. Bhangale and Dr.Prof. Milind P. Ray ϯ Mechanical Department, SavitribaiPhule

More information

TOTAL VARIATION DIMINISHING RUNGE-KUTTA SCHEMES

TOTAL VARIATION DIMINISHING RUNGE-KUTTA SCHEMES MATHEMATICS OF COMPUTATION Volume 67 Number 221 January 1998 Pages 73 85 S 0025-5718(98)00913-2 TOTAL VARIATION DIMINISHING RUNGE-KUTTA SCHEMES SIGAL GOTTLIEB AND CHI-WANG SHU Abstract. In this paper we

More information

ALGEBRAIC FLUX CORRECTION FOR FINITE ELEMENT DISCRETIZATIONS OF COUPLED SYSTEMS

ALGEBRAIC FLUX CORRECTION FOR FINITE ELEMENT DISCRETIZATIONS OF COUPLED SYSTEMS Int. Conf. on Computational Methods for Coupled Problems in Science and Engineering COUPLED PROBLEMS 2007 M. Papadrakakis, E. Oñate and B. Schrefler (Eds) c CIMNE, Barcelona, 2007 ALGEBRAIC FLUX CORRECTION

More information

HIGH ORDER LAX-WENDROFF-TYPE SCHEMES FOR LINEAR WAVE PROPAGATION

HIGH ORDER LAX-WENDROFF-TYPE SCHEMES FOR LINEAR WAVE PROPAGATION European Conference on Computational Fluid Dynamics ECCOMAS CFD 2006 P. Wesseling, E. Oñate and J. Périaux (Eds) c TU Delft, The Netherlands, 2006 HIGH ORDER LAX-WENDROFF-TYPE SCHEMES FOR LINEAR WAVE PROPAGATION

More information

Strong Stability-Preserving (SSP) High-Order Time Discretization Methods

Strong Stability-Preserving (SSP) High-Order Time Discretization Methods Strong Stability-Preserving (SSP) High-Order Time Discretization Methods Xinghui Zhong 12/09/ 2009 Outline 1 Introduction Why SSP methods Idea History/main reference 2 Explicit SSP Runge-Kutta Methods

More information

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011 MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS 02139 2.29 NUMERICAL FLUID MECHANICS FALL 2011 QUIZ 2 The goals of this quiz 2 are to: (i) ask some general

More information

Implicit schemes of Lax-Friedrichs type for systems with source terms

Implicit schemes of Lax-Friedrichs type for systems with source terms Implicit schemes of Lax-Friedrichs type for systems with source terms A. J. Forestier 1, P. González-Rodelas 2 1 DEN/DSNI/Réacteurs C.E.A. Saclay (France 2 Department of Applied Mathematics, Universidad

More information

Multi-Factor Finite Differences

Multi-Factor Finite Differences February 17, 2017 Aims and outline Finite differences for more than one direction The θ-method, explicit, implicit, Crank-Nicolson Iterative solution of discretised equations Alternating directions implicit

More information

Finite difference method for elliptic problems: I

Finite difference method for elliptic problems: I Finite difference method for elliptic problems: I Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore 560065 http://math.tifrbng.res.in/~praveen

More information

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends

AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends AMS 529: Finite Element Methods: Fundamentals, Applications, and New Trends Lecture 25: Introduction to Discontinuous Galerkin Methods Xiangmin Jiao SUNY Stony Brook Xiangmin Jiao Finite Element Methods

More information

Finite volume method for conservation laws V

Finite volume method for conservation laws V Finite volume method for conservation laws V Schemes satisfying entropy condition Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore

More information

Introduction to numerical schemes

Introduction to numerical schemes 236861 Numerical Geometry of Images Tutorial 2 Introduction to numerical schemes Heat equation The simple parabolic PDE with the initial values u t = K 2 u 2 x u(0, x) = u 0 (x) and some boundary conditions

More information

Generalised Summation-by-Parts Operators and Variable Coefficients

Generalised Summation-by-Parts Operators and Variable Coefficients Institute Computational Mathematics Generalised Summation-by-Parts Operators and Variable Coefficients arxiv:1705.10541v [math.na] 16 Feb 018 Hendrik Ranocha 14th November 017 High-order methods for conservation

More information

Numerically Solving Partial Differential Equations

Numerically Solving Partial Differential Equations Numerically Solving Partial Differential Equations Michael Lavell Department of Applied Mathematics and Statistics Abstract The physics describing the fundamental principles of fluid dynamics can be written

More information

The Riemann problem. The Riemann problem Rarefaction waves and shock waves

The Riemann problem. The Riemann problem Rarefaction waves and shock waves The Riemann problem Rarefaction waves and shock waves 1. An illuminating example A Heaviside function as initial datum Solving the Riemann problem for the Hopf equation consists in describing the solutions

More information

Bound-preserving high order schemes in computational fluid dynamics Chi-Wang Shu

Bound-preserving high order schemes in computational fluid dynamics Chi-Wang Shu Bound-preserving high order schemes in computational fluid dynamics Chi-Wang Shu Division of Applied Mathematics Brown University Outline Introduction Maximum-principle-preserving for scalar conservation

More information

Scientific Computing I

Scientific Computing I Scientific Computing I Module 10: Case Study Computational Fluid Dynamics Michael Bader Winter 2012/2013 Module 10: Case Study Computational Fluid Dynamics, Winter 2012/2013 1 Fluid mechanics as a Discipline

More information

arxiv: v1 [physics.comp-ph] 22 Feb 2013

arxiv: v1 [physics.comp-ph] 22 Feb 2013 Numerical Methods and Causality in Physics Muhammad Adeel Ajaib 1 University of Delaware, Newark, DE 19716, USA arxiv:1302.5601v1 [physics.comp-ph] 22 Feb 2013 Abstract We discuss physical implications

More information

Universität des Saarlandes. Fachrichtung 6.1 Mathematik

Universität des Saarlandes. Fachrichtung 6.1 Mathematik Universität des Saarlandes U N I V E R S I T A S S A R A V I E N I S S Fachrichtung 6.1 Mathematik Preprint Nr. 253 Monotonicity of Implicit Finite Difference Methods for Hyperbolic Conservation Laws Michael

More information

Positivity-preserving high order schemes for convection dominated equations

Positivity-preserving high order schemes for convection dominated equations Positivity-preserving high order schemes for convection dominated equations Chi-Wang Shu Division of Applied Mathematics Brown University Joint work with Xiangxiong Zhang; Yinhua Xia; Yulong Xing; Cheng

More information

Advanced numerical methods for nonlinear advectiondiffusion-reaction. Peter Frolkovič, University of Heidelberg

Advanced numerical methods for nonlinear advectiondiffusion-reaction. Peter Frolkovič, University of Heidelberg Advanced numerical methods for nonlinear advectiondiffusion-reaction equations Peter Frolkovič, University of Heidelberg Content Motivation and background R 3 T Numerical modelling advection advection

More information

Francis X. Giraldo,

Francis X. Giraldo, 1 Time-Integrators Francis X. Giraldo, giraldo@nrlmry.navy.mil, www.nrlmry.navy.mil/~giraldo/projects/nseam.html 1.1 Introduction Roughly speaking, there are 2 classes of TIs: 1. EulerianMethods(fixed-frame-e.g.,arockatthebottomofaflowing

More information

ECE539 - Advanced Theory of Semiconductors and Semiconductor Devices. Numerical Methods and Simulation / Umberto Ravaioli

ECE539 - Advanced Theory of Semiconductors and Semiconductor Devices. Numerical Methods and Simulation / Umberto Ravaioli ECE539 - Advanced Theory of Semiconductors and Semiconductor Devices 1 General concepts Numerical Methods and Simulation / Umberto Ravaioli Introduction to the Numerical Solution of Partial Differential

More information

Numerical Solution Techniques in Mechanical and Aerospace Engineering

Numerical Solution Techniques in Mechanical and Aerospace Engineering Numerical Solution Techniques in Mechanical and Aerospace Engineering Chunlei Liang LECTURE 3 Solvers of linear algebraic equations 3.1. Outline of Lecture Finite-difference method for a 2D elliptic PDE

More information

AM 205: lecture 14. Last time: Boundary value problems Today: Numerical solution of PDEs

AM 205: lecture 14. Last time: Boundary value problems Today: Numerical solution of PDEs AM 205: lecture 14 Last time: Boundary value problems Today: Numerical solution of PDEs ODE BVPs A more general approach is to formulate a coupled system of equations for the BVP based on a finite difference

More information

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS Victor S. Ryaben'kii Semyon V. Tsynkov Chapman &. Hall/CRC Taylor & Francis Group Boca Raton London New York Chapman & Hall/CRC is an imprint of the Taylor

More information

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics Diffusion / Parabolic Equations Summary of PDEs (so far...) Hyperbolic Think: advection Real, finite speed(s) at which information propagates carries changes in the solution Second-order explicit methods

More information

Flood Routing by the Non-Linear Muskingum Model: Conservation of Mass and Momentum

Flood Routing by the Non-Linear Muskingum Model: Conservation of Mass and Momentum Archives of Hydro-Engineering and Environmental Mechanics Vol. 56 (29), No. 3 4, pp. 121 137 IBW PAN, ISSN 1231 3726 Flood Routing by the Non-Linear Muskingum Model: Conservation of Mass and Momentum Dariusz

More information

Notes: Outline. Diffusive flux. Notes: Notes: Advection-diffusion

Notes: Outline. Diffusive flux. Notes: Notes: Advection-diffusion Outline This lecture Diffusion and advection-diffusion Riemann problem for advection Diagonalization of hyperbolic system, reduction to advection equations Characteristics and Riemann problem for acoustics

More information