Characteristics for IBVP. Notes: Notes: Periodic boundary conditions. Boundary conditions. Notes: In x t plane for the case u > 0: Solution:

Similar documents
Conservation Laws and Finite Volume Methods

Conservation Laws and Finite Volume Methods

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

Notes: Outline. Shallow water equations. Notes: Shallow water equations. Notes:

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

AMath 574 February 11, 2011

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

Clawpack Tutorial Part I

Scientific Computing I

Linear Hyperbolic Systems

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract

d Wave Equation. Rectangular membrane.

7 Hyperbolic Differential Equations

Lecture 2 Supplementary Notes: Derivation of the Phase Equation

PDE and Boundary-Value Problems Winter Term 2014/2015

Salmon: Lectures on partial differential equations

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

0.3.4 Burgers Equation and Nonlinear Wave

Waves in a Shock Tube

Constrained Transport Method for the Finite Volume Evolution Galerkin Schemes with Application in Astrophysics

Webster s horn model on Bernoulli flow

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

Math 124A October 11, 2011

PDEs, part 3: Hyperbolic PDEs

Contents of lecture 2b. Lectures 2a & 2b. Physical vs. computational coordinates [2] Physical vs. computational coordinates [1]

The second-order 1D wave equation

(V.C) Complex eigenvalues and other topics

CS205B / CME306 Homework 3. R n+1 = R n + tω R n. (b) Show that the updated rotation matrix computed from this update is not orthogonal.

Final: Solutions Math 118A, Fall 2013

Lecture 5.7 Compressible Euler Equations

DUHAMEL S PRINCIPLE FOR THE WAVE EQUATION HEAT EQUATION WITH EXPONENTIAL GROWTH or DECAY COOLING OF A SPHERE DIFFUSION IN A DISK SUMMARY of PDEs

Wave propagation methods for hyperbolic problems on mapped grids

Deforming Composite Grids for Fluid Structure Interactions

A generalized method for advective-diffusive computations in engineering

ADAPTIVE MESH REFINEMENT USING WAVE-PROPAGATION ALGORITHMS FOR HYPERBOLIC SYSTEMS

Homogeneous Linear Systems of Differential Equations with Constant Coefficients

Method of Separation of Variables

Finite Volume Schemes: an introduction

Numerical Analysis of Differential Equations Numerical Solution of Parabolic Equations

Multi-D MHD and B = 0

Finite Difference Method

Chapter 10: Partial Differential Equations

The Euler Equation of Gas-Dynamics

MATH-UA 263 Partial Differential Equations Recitation Summary

Oblique derivative problems for elliptic and parabolic equations, Lecture II

BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES

25 Self-Assessment. 26 Eigenvalue Stability for a Linear ODE. Chapter 7 Eigenvalue Stability

A review of stability and dynamical behaviors of differential equations:

Discretely Nonreflecting Boundary Conditions for Linear Hyperbolic Systems 1

Magnetized Target Fusion: Insights from Mathematical Modelling

235 Final exam review questions

PEAT SEISMOLOGY Lecture 2: Continuum mechanics

Sung-Ik Sohn and Jun Yong Shin

HW3 - Due 02/06. Each answer must be mathematically justified. Don t forget your name. 1 2, A = 2 2

High-resolution finite volume methods for hyperbolic PDEs on manifolds

Traffic Flow Problems

A Very Brief Introduction to Conservation Laws

Before we look at numerical methods, it is important to understand the types of equations we will be dealing with.

Finite volume approximation of the relativistic Burgers equation on a Schwarzschild (anti-)de Sitter spacetime

NUMERICAL SOLUTION OF THE LINEARIZED EULER EQUATIONS USING HIGH ORDER FINITE DIFFERENCE OPERATORS WITH THE SUMMATION BY PARTS PROPERTY

Lecture Notes on PDEs

Introduction to Physical Acoustics

1.6: 16, 20, 24, 27, 28

A method for avoiding the acoustic time step restriction in compressible flow

AMATH 353 Lecture 9. Weston Barger. How to classify PDEs as linear/nonlinear, order, homogeneous or non-homogeneous.

Eigenvalues and Eigenvectors

Spotlight on Laplace s Equation

Solving linear and nonlinear partial differential equations by the method of characteristics

Mathématiques appliquées (MATH0504-1) B. Dewals, Ch. Geuzaine

c2 2 x2. (1) t = c2 2 u, (2) 2 = 2 x x 2, (3)

Finite volume schemes for multidimensional hyperbolic systems based on the use of bicharacteristics

Previously Monte Carlo Integration

Preliminary Examination, Numerical Analysis, August 2016

Advection, Conservation, Conserved Physical Quantities, Wave Equations

Streamline calculations. Lecture note 2

Clawpack Tutorial Part I

Problem set 3: Solutions Math 207B, Winter Suppose that u(x) is a non-zero solution of the eigenvalue problem. (u ) 2 dx, u 2 dx.

Brownian Motion. 1 Definition Brownian Motion Wiener measure... 3

Linear Algebra Review (Course Notes for Math 308H - Spring 2016)

Diffusion Processes. Lectures INF2320 p. 1/72

MATH 220: Problem Set 3 Solutions

Solving the Euler Equations!

PH.D. PRELIMINARY EXAMINATION MATHEMATICS

v(x, 0) = g(x) where g(x) = f(x) U(x). The solution is where b n = 2 g(x) sin(nπx) dx. (c) As t, we have v(x, t) 0 and u(x, t) U(x).

Math 250B Final Exam Review Session Spring 2015 SOLUTIONS

Midterm 2: Sample solutions Math 118A, Fall 2013

Eigenmode Analysis of Boundary Conditions for the One-dimensional Preconditioned Euler Equations

2.4 Eigenvalue problems

Numerical Simulation of Rarefied Gases using Hyperbolic Moment Equations in Partially-Conservative Form

Solving the Heat Equation (Sect. 10.5).

Introduction to Partial Differential Equations

Linear Algebra, part 2 Eigenvalues, eigenvectors and least squares solutions

Various lecture notes for

Magnetohydrodynamic Waves

Midterm Solution

Applying Asymptotic Approximations to the Full Two-Fluid Plasma System to Study Reduced Fluid Models

Integrodifferential Hyperbolic Equations and its Application for 2-D Rotational Fluid Flows

11.2 Basic First-order System Methods

3 2 6 Solve the initial value problem u ( t) 3. a- If A has eigenvalues λ =, λ = 1 and corresponding eigenvectors 1

1 Separation of Variables

Transcription:

AMath 574 January 3, 20 Today: Boundary conditions Multi-dimensional Wednesday and Friday: More multi-dimensional Reading: Chapters 8, 9, 20 R.J. LeVeque, University of Washington AMath 574, January 3, 20 R.J. LeVeque, University of Washington AMath 574, January 3, 20 Boundary conditions and ghost cells In each time step, the data in cells to N is used to define ghost cell values in cells outside the physical domain. The wave-propagation algorithm is then applied on the expanded computational domain, solving Riemann problems at all interfaces. Q Q0 Q Q2... QN QN+ QN+2 x/2 x = a xn+/2 x = b The data is extended depending on the physical boundary conditons. Initial boundary value problem (IBVP) for advection Advection equation on finite D domain: q t + uq x = 0 a < x < b, t 0, with initial data q(x, 0) = η(x) a < x < b. and boundary data at the inflow boundary: If u > 0, need data at x = a: q(a, t) = g(t), t 0, If u < 0, need data at x = b: q(b, t) = g(t), t 0, R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2. R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2.

Characteristics for IBVP In x t plane for the case u > 0: Solution: q(x, t) = { η(x ut) if a x ut b, g((x a)/u) otherwise. R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2. R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2. Periodic boundary conditions q(a, t) = q(b, t), t 0. In x t plane for the case u > 0: Solution: q(x, t) = η(x 0 (x, t)), where X 0 (x, t) = a + mod(x ut a, b a). R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2. R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2. Boundary conditions Q Q0 Q Q2... QN QN+ QN+2 Periodic: x/2 x = a xn+/2 x = b Q n = Q n N, Q n 0 = Q n N, Q n N+ = Q n, Q n N+2 = Q n 2 Extrapolation (outflow): Q n = Q n, Q n 0 = Q n, Q n N+ = Q n N, Q n N+2 = Q n N Solid wall: For Q 0 : p 0 = p, u 0 = u, For Q : p = p 2, u = u 2.

Extrapolation boundary conditions If we set Q 0 = Q then the Riemann problem at x /2 has zero strength waves: Q Q 0 = W /2 + W2 /2 So in particular the incoming wave W 2 has strength 0. The outgoing wave perhaps should have nonzero magnitude, but it doesn t matter since it would only update ghost cell. Ghost cell value is reset at the start of each time step by extrapolation. In 2D or 3D, extrapolation in normal direction is not perfect but works quite well, e.g. Figure 2.7. Solution by tracing back on characteristics The general solution for acoustics: q(x, t) = w (x λ t, 0)r + w 2 (x λ 2 t, 0)r 2 q(x, t) w 2 constant w constant w 2 (x λ 2 t, 0) = l 2 q(x λ 2 t, 0) w (x λ t, 0) = l q(x λ t, 0) R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 3.5 R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 3.5 Linear acoustics characteristics q(x, t) = w (x + ct, 0)r + w 2 (x ct, 0)r 2 = p [ 0(x + ct) Z + p [ 0(x ct) Z. 2Z 2Z For IBVP on a < x < b, must specify one incoming boundary condition at each side: w 2 (a, t) and w (b, t) R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2.8 R.J. LeVeque, University of Washington AMath 574, January 3, 20 [FVMHP Sec. 2.8

Acoustics boundary conditions Non-reflecting boundary conditions: w 2 (a, t) = 0, w (b, t) = 0. Periodic boundary conditions: w 2 (a, t) = w 2 (b, t), w (b, t) = w (a, t), or simply q(a, t) = q(b, t). Solid wall (reflecting) boundary conditions: u(a, t) = 0, u(b, t) = 0. which can be written in terms of characteristic variables as: w 2 (a, t) = w (a, t), w (b, t) = w 2 (a, t) since u = w + w 2. Zero velocity (solid wall) boundary condition For acoustics q = (p, u) or Euler with q = (ρ, ρu, E). To obtain u(0, t) = 0, set u 0 = u, and extrapolate other values, e.g. p 0 = p Then Riemann solution is a similarity solution q(x, t) = Q (x/t) and u(0) = 0 (i.e., middle state has u m = 0 for acoustics). Incoming wave train Acoustics with right-going wave train coming from x =. p(0, t) = p sin(kt), u(0, t) = ( p/z) sin(kt) If wave reflects in domain then there will also be an outgoing wave. We want the BC to give this incoming BC and be non-reflecting. We need to specify [ Q n p( x/2, tn ) 0 = u( x/2, t n ) [ [ = w Z + w 2 Z ( x/2, t n ) = w [ Z + w 2 (0, t n + x/(2c)) [ Z

Incoming wave train [ Q n p( x/2, tn ) 0 = u( x/2, t n ) = w [ Z + w 2 (0, t n + x/(2c)) The first term is eliminated by setting w = 0 (doesn t matter what it is since ghost cell reset). Since w 2 = 2Z (p + Zu) we are left with Similarly, Q 0 = p sin(k(t n + x/(2c)) [ /Z [ Q = p sin(k(t n + 3 x/(2c)) /Z [ Z.. First order hyperbolic PDE in 2 space dimensions Advection equation: q t + uq x + vq y = 0 First-order system: q t + Aq x + Bq y = 0 where q lr m and A, B lr m m. Hyperbolic if cos(θ)a + sin(θ)b is diagonalizable with real eigenvalues, for all angles θ. This is required so that plane-wave data gives a d hyperbolic problem: q(x, y, 0) = q(x cos θ + y sin θ) (\breve q) implies contours of q in x y plane are orthogonal to θ direction. Plane wave solutions Suppose q(x, y, t) = q(x cos θ + y sin θ, t) = q(ξ, t). Then: q x (x, y, t) = cos θ q ξ (ξ, t) q y (x, y, t) = sin θ q ξ (ξ, t) so q t + Aq x + Bq y = q t + (A cos θ + B sin θ) q ξ and the 2d problem reduces to the d hyperbolic equation q t (ξ, t) + (A cos θ + B sin θ) q ξ (ξ, t) = 0.

Advection in 2 dimensions Constant coefficient: q t + uq x + vq y = 0 In this case solution for arbitrary initial data is easy: q(x, y, t) = q(x ut, y vt, 0). Data simply shifts at constant velocity (u, v) in x-y plane. Variable coefficient: Conservation form: q t + (u(x, y, t)q) x + (v(x, y, t)q) y = 0 Advective form (color eqn): q t + u(x, y, t)q x + v(x, y, t)q y = 0 Equivalent only if flow is divergence-free (incompressible): u = u x (x, y, t) + v y (x, y, t) = 0 t 0. Advection in 2 dimensions: characteristics The characteristic curve (X(t), Y (t)) starting at some (x 0, y 0 ) is determined by solving the ODEs X (t) = u(x(t), Y (t), t), X(0) = x 0 Y (t) = v(x(t), Y (t), t), Y (0) = y 0. How does q vary along this curve? t q(x(t), Y (t), t) = X (t)q x ( ) + Y (t)q y ( ) + q t ( ) For color equation: q t + u(x, y, t)q x + v(x, y, t)q y = 0 q is constant along characterisitic (color is advected). Advection in 2 dimensions: characteristics For conservative equation: q t + (u(x, y, t)q) x + (v(x, y, t)q) y = 0 Can rewrite as q t + u(x, y, t)q x + v(x, y, t)q y = (u x + v y )q Along characteristic q varies because of source term: t q(x(t), Y (t), t) = X (t)q x ( ) + Y (t)q y ( ) + q t ( ) = ( u)q. Conservative form models density of conserved quantity. Mass in region advecting with the flow varies stays constant but density increases if volume of region decreases, or density decreases if volume of region increases.

Acoustics in 2 dimensions p t + K(u x + v y ) = 0 ρu t + p x = 0 ρv t + p y = 0 Note: pressure responds to compression or expansion and so p t is proportional to divergence of velocity. Second and third equations are F = ma. Gives hyperbolic system q t + Aq x + Bq y = 0 with q = p u, A = v 0 K 0 /ρ 0 0, B = 0 0 K /ρ 0 0. Acoustics in 2 dimensions q = p u, A = v 0 K 0 /ρ 0 0, B = 0 0 K /ρ 0 0. Plane waves: A cos θ + B sin θ = 0 K cos θ K sin θ cos θ/ρ 0 0 sin θ/ρ 0 0. Eigenvalues: λ = c, λ 2 = 0, λ 3 = +c where c = K/ρ Independent of angle θ. Isotropic: sound propagates at same speed in any direction. Note: Zero wave speed for shear wave with variation only in velocity in direction ( sin θ, cos θ). (Fig 8.) Diagonalization 2 dimensions Can we diagonalize system q t + Aq x + Bq y = 0? Only if A and B have the same eigenvectors! If A = RΛR and B = RMR, then let w = R q and w t + Λw x + Mw y = 0 This decouples into scalar advection equations for each component of w: w p t + λp w p x + µ p w p y = 0 = w p (x, y, t) = w p (x λ p t, y µ p t, 0). Note: In this case information propagates only in a finite number of directions (λ p, µ p ) for p =,..., m. This is not true for most coupled systems, e.g. acoustics.