Advection in two dimensions

Similar documents
3.4. Monotonicity of Advection Schemes

Chapter 10 Exercises

Open boundary conditions in numerical simulations of unsteady incompressible flow

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems

3.3. Phase and Amplitude Errors of 1-D Advection Equation

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

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

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q

PDE Solvers for Fluid Flow

Divergence Formulation of Source Term

Fluid Dynamics. Part 2. Massimo Ricotti. University of Maryland. Fluid Dynamics p.1/17

Second Order Positive Schemes by means of Flux Limiters for the Advection Equation

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

A Study on Numerical Solution to the Incompressible Navier-Stokes Equation

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

Finite Difference Methods for Boundary Value Problems

Lecture: Wave-induced Momentum Fluxes: Radiation Stresses

1 Introduction to MATLAB

Functions of Several Variables

7 Hyperbolic Differential Equations

Fluid Animation. Christopher Batty November 17, 2011

1 Upwind scheme for advection equation with variable. 2 Modified equations: numerical dissipation and dispersion

ME Computational Fluid Mechanics Lecture 5

30 crete maximum principle, which all imply the bound-preserving property. But most

Block-Structured Adaptive Mesh Refinement

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

n i,j+1/2 q i,j * qi+1,j * S i+1/2,j

EULERIAN DERIVATIONS OF NON-INERTIAL NAVIER-STOKES EQUATIONS

Finite difference methods for the diffusion equation

A Third Order Fast Sweeping Method with Linear Computational Complexity for Eikonal Equations

Math 46, Applied Math (Spring 2008): Final

Hq = f + ψ is the absolute vorticity. If we further assume a flat bottom then we can re-write the equations as

MAT389 Fall 2016, Problem Set 4

Numerical Methods for PDEs

Daniel J. Jacob, Models of Atmospheric Transport and Chemistry, 2007.

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan

3D-Transport of Precipitation

Intro Vectors 2D implicit curves 2D parametric curves. Graphics 2012/2013, 4th quarter. Lecture 2: vectors, curves, and surfaces

What is a flux? The Things We Does Know

Solution Methods. Steady convection-diffusion equation. Lecture 05

Chapter 17. Finite Volume Method The partial differential equation

Lattice Boltzmann Method for Moving Boundaries

Analysis Methods in Atmospheric and Oceanic Science

Lecture 4.5 Schemes for Parabolic Type Equations

MATH 0350 PRACTICE FINAL FALL 2017 SAMUEL S. WATSON. a c. b c.

Two Posts to Fill On School Board

Numerical Solution Techniques in Mechanical and Aerospace Engineering

Lecture 17: Initial value problems

Computational Fluid Dynamics Prof. Dr. Suman Chakraborty Department of Mechanical Engineering Indian Institute of Technology, Kharagpur

Sung-Ik Sohn and Jun Yong Shin

Lecture 1. Taylor series and finite differences. 1.1 Representation of functions

Lecture Administration. 7.2 Continuity equation. 7.3 Boussinesq approximation

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS

Thermal Analysis Contents - 1

Tensor Visualization. CSC 7443: Scientific Information Visualization

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 9

AT760 Global Carbon Cycle. Assignment #3 Due Friday, May 4, 2007 Atmospheric Transport and Inverse Modeling of CO 2

Getting started: CFD notation

Computational Astrophysics

Numerical methods Revised March 2001

Lecture 3: 1. Lecture 3.

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

Macroscopic theory Rock as 'elastic continuum'

On simplifying incremental remap -based transport schemes

The Convergence of Mimetic Discretization

Commissariat à l Energie Atomique - Saclay Department of Nuclear Energy Fluid Modeling and Simulation. MIT, November 3rd, 2008

An Overview of Fluid Animation. Christopher Batty March 11, 2014

Last time: Diffusion - Numerical scheme (FD) Heat equation is dissipative, so why not try Forward Euler:

Numerical Hydraulics

Split explicit methods

Vortex stretching in incompressible and compressible fluids

The behaviour of high Reynolds flows in a driven cavity

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

. p.1/31. Department Mathematics and Statistics Arizona State University. Don Jones

Analysis of wind and radiant environment in street canyons for production of urban climate maps at district scale

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

A Basis for Discretizations

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Engineering. Spring Department of Fluid Mechanics, Budapest University of Technology and Economics. Large-Eddy Simulation in Mechanical

Ideas from Vector Calculus Kurt Bryan

Second year master programme

M E 320 Professor John M. Cimbala Lecture 10

Finite Difference Methods (FDMs) 1

Chapter 6: Momentum Analysis of Flow Systems

A Two-Level Time-Stepping Method for Layered Ocean Circulation Models: Further Development and Testing

Finite Volume Method for Scalar Advection in 2D

Chapter 13. Eddy Diffusivity

Uniformity of the Universe

Lecture 13: Implementation and Applications of 2D Transforms

Tutorial 2. Introduction to numerical schemes

Lecture 4.2 Finite Difference Approximation

Mass Conserving Courant Number Independent Eulerian Advection of the Moisture Quantities for the LMK

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

Finite Difference Methods for

MIT (Spring 2014)

OWELL WEEKLY JOURNAL

WATER VAPOR FLUXES OVER EQUATORIAL CENTRAL AFRICA

Transcription:

Lecture 0 Advection in two dimensions 6. Stability of multiple terms (in multiple dimensions) When we analyzed the stability of time-stepping methods we tended to consider either a single damping term or a single oscillatory term. Since the forward method is easy to analyze and stable for damping terms, consider the two-dimensional equation: t = κ + κ xx + κ yy The second order space, forward in time difference equation is: κ κ δ n n+/ = κ + δ ii + δ y jj x As before, to do the stability analysis, we substitute in a solution of the form i(kx ωt) λt e. The response function for the spatial operators are: k x R(δ i δ i ) = (i sin ) = 4s k R(δ j δ j ) = (i sin l y ) = 4s l where s k = sin k x and s l = sin l y are convenient short-hand. The amplifi cation equation then is: e λ t = tκ 4κ t 4κ t s k s y l x 83

.950 Atmospheric and Oceanic Modeling, Spring 04 84 so that for stability we must satisfy: 4κ t 4κ t tκ + + x y Each term contributes to the numerical stability additively. The consequence is that two-dimensional problems typically have a smaller stability threshold than one-dimensional problems and similarly three-dimensional problems more so. This effect is generally true when ever the terms are treated uniformly by the time-stepping scheme. Schemes that treat some terms differently (say implicitly) can avoid this additive effect of stability criteria. In the following sections we ll see how to avoid this effect for the forward advection schemes. 6. First order upwind in two dimensions Let s apply the FTUS scheme to advection in two dimensions by constant flow (u, v). Without any other considerations the resulting scheme is: ( ( v ( n+ u i,j i,j n + i,j n + n i,j = 0 (6.) t i n,j i,j x y n where we have assumed the flow, u and v, to be in the positive x and y directions respectively. A stability analysis shows the scheme to be conditionally stable: u t v t u t v t 0 and 0 and + x y x y but notice that the condition is on sum of the Courant number in each direction. The modified equation corresponding to 6. can be found by first reexpressing the scheme in terms of centered differences: n u i v (δ n + δ nn ) + (δ i δ ii ) + (δ j j δ jj ) = 0 t x y which is a second order approximation of u x u t v y v t t + u x + v y = ( ) xx + ( ) yy uv t xy x y

.950 Atmospheric and Oceanic Modeling, Spring 04 85 The last term is an an-isotropic term; it looks different along different directions. In fact, it leads to diffusion in the direction tangential to the flow and anti-diffusion in the direction of flow. The effect of this term leads to the shape distortion which is apparent in the solution shown in Fig. 6.a. Fig. 6.a visualizes the fluxes implied by the two-dimensional FTUS scheme. Each flux is normal to a coordinate line (cell boundary) and sweeps out a length tu or tv so that the area (shaded regions) transported through the cell wall is tu y and tv x for the x and y directions respectively. The western and southern fluxes are self explanatory. However, the northern and eastern flux appear to overlap in the area that is swept out (indicated by shaded region 3). The scheme is conservative because the sum of regions and minus the double counted region 3 is equal to x y. However, the lack of dependence on the cell to the south-west mean the scheme can not represent the characteristic properties of diagonal flow. 6.3 Corner transport upstream The CTU algorithm can be derived by various means but the most intuitive is based on the same principles as used in the finite volume method. Consider the Galilean translation of the fluid parcels resulting from constant flows (u, v). Following the location of the grid at time level n + back in time along the characteristics we arrive at the picture indicated in Fig. 6.b where the translated cell overlaps with the three upstream cells. The area of intersections represent the weights to attribute to the tracer on the original grid but at the previous time-level, n. The resulting scheme is then: n+ n = ( C i,j + C u ( C v ) i,j + ( C u)c v n u )( C v ) n i,j + C n uc v i i,j,j where C u = u t/ x and C u = u t/ x are the Courant numbers in the x and y directions. Stability is conditional: 0 C u and 0 C v which is the same as satisfying the stability of FTUS in each direction allows a much longer time-step than using the two-dimensional FTUS. The CTU method can be written flux form with a contribution to the x and y fluxes from the corners. This is awkward to visualize and introduces

.950 Atmospheric and Oceanic Modeling, Spring 04 86 st order upwind st order corner transport 0.8 0.8 0.6 0.6 0.4 0.4 0. 0. 0. 0.4 0.6 0.8 0. 0.4 0.6 0.8 nd order Van Leer flux limiter True solution 0.8 0.8 0.6 0.6 0.4 0.4 0. 0. 0. 0.4 0.6 0.8 0. 0.4 0.6 0.8 Figure 6.: Advection by a uniform diagonal flow (u = v) using a) the FTUS applied in each direction, b) the two dimensional upstream corner transport method, c) the multi-dimensional second order Van Leer flux limiter and d) the true solution.

.950 Atmospheric and Oceanic Modeling, Spring 04 87 a) C u Δ x b) C u Δ x 3 C v C v 3 Δ x Δ x Figure 6.: A schematic of the volumes swept out by the fluxes in a) scheme 6., the simple two-dimensional upwind method, and b) the corner transport method. wider stencils for each flux than the simple FTUS flux. Another way to write the CTU method is via an intermediate step: i,j = ( C u ) i,j n + C n u i,j i,j n+ = ( C v ) i,j v i,j which is exactly equivalent to previous form. This last form can be interpreted as applying FTUS successively in each direction, using the latest values at each stage. We can see here why the stability depends simply on the stability in each direction since both stages must be independently stable. 6.4 Multi-dimensional algorithm As a rule, the forward advection methods (Lax-Wendroff, flux limiters,...) will all need a similar treatment to that that rendered the FTUS into the CTU method. A general approach is as follows: n+/m t t = n δ i F x (u, n ) + n δ i u x x n+/m t t = n+/m δ j F y (v, n+/m ) + n δ j u y y

.950 Atmospheric and Oceanic Modeling, Spring 04 88. ( ) n+ = n+m/m + n t x δ iu + t y δ iv +... where F x (u, ) is a general form of the advective flux. This scheme reproduces the CTU method for constant flow if F x is the upwind flux. The last term in each equation account for the apparent divergence of the flow when treating each direction separately. This multi-dimensional method is a form of operator splitting. We should emphasize that it is not as necessary to consider multi-dimensional truncation errors when the time-difference is centered in time (e.g. using leapfrog) since the erroneous cross terms that appeared in the two-dimensional FTUS scheme appeared from the O( t) truncation term of the forward time difference. Such terms do appear in the modified equations of centered time difference but don t generally take a diffusive form and can only appear at order O( t ).