21th Lecture - Advection - Diffusion

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

2ª aula Evolution Equation. The Finite Volume Method.
Roundoff and truncation errors
Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
Numerical Uncertainty Assessment Reference: P.J. Roache, Verification and Validation in Computational Science and Engineering, Hermosa Press, Albuquerque.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
REVIEW. What processes are represented in the governing equation that we use to represent solute transport through porous media? Advection, dispersion,
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
1 Lecture 11: Unsteady Conduction Error Analysis.
Introduction to Numerical Methods I
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Lecture Objectives: Review discretization methods for advection diffusion equation Accuracy Numerical Stability Unsteady-state CFD Explicit vs. Implicit.
P. Ackerer, IMFS, Barcelona About Discontinuous Galerkin Finite Elements P. Ackerer, A. Younès Institut de Mécanique des Fluides et des Solides,
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
© Arturo S. Leon, BSU, Spring 2010
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
Lecture 3.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Integration of 3-body encounter. Figure taken from
Algebra 2: Unit 8 Roots and Radicals. Radicals (also called roots) are directly related to exponents. Roots and Radicals.
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Engineering Analysis – Computational Fluid Dynamics –
Engineering Analysis – Computational Fluid Dynamics –
An Introduction to Heat Transfer Morteza Heydari.
HW2 Due date Next Tuesday (October 14). Lecture Objectives: Unsteady-state heat transfer - conduction Solve unsteady state heat transfer equation for.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Aula Teórica 9&10 Equação de Evolução. Exemplos. Caso 1D.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Lecture 8 Control Volume & Fluxes. Eulerian and Lagrangian Formulations.
Lecture Objectives: Review discretization methods for advection diffusion equation –Accuracy –Numerical Stability Unsteady-state CFD –Explicit vs. Implicit.
SCIENTIFIC NOTATION RULES. Rules for converting to Scientific Notation One non-zero number before the decimal One digit after the decimal If you are making.
1 LECTURE 6 Stability of Parabolic PDEs. 2 Aim of Lecture Last week we discussed Parabolic PDEs –Looked at Explicit and Implicit Methods –Advantages and.
Lecture Objectives: - Numerics. Finite Volume Method - Conservation of  for the finite volume w e w e l h n s P E W xx xx xx - Finite volume.
Lecture 15 Advection – Diffusion Equation and its numerical resolution.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
The Finite-Difference Method Taylor Series Expansion Suppose we have a continuous function f(x), its value in the vicinity of can be approximately expressed.
1 Week 11 Numerical methods for ODEs 1.The basics: finite differences, meshes 2.The Euler method.
Lecture 11 Alessandra Nardi
EEE 431 Computational Methods in Electrodynamics
High Accuracy Differentiation Formulas
Finite Difference Methods
Introduction to Numerical Methods I
Convection-Dominated Problems
Chapter 30.
Modeling of Traffic Flow Problems
Spatial treatment in 1D Slab Discrete Ordinates
Exercises. Introduction to Fins
Expressions & Equations Part 1
Linearized Block Implicit (LBI) Method applied to Quasi-1D Flow
Convergence in Computational Science
TEM – Lecture 2 Basic concepts of heat transfer:
Advection – Diffusion Equation
Continuum Mechanics for Hillslopes: Part IV
Objective Review Reynolds Navier Stokes Equations (RANS)
SCIENTIFIC NOTATION.
Advection – Diffusion Equation
Finite Volume Method for Unsteady Flows
Chapter 27.
Topic 3 Discretization of PDE
Objective Numerical methods Finite volume.
Finite Volume Method Philip Mocz.
topic4: Implicit method, Stability, ADI method
Topic 3 Discretization of PDE
6th Lecture : Numerical Methods
Measurements and Calculations
Basic concepts of heat transfer: Heat Conduction
Topic 3 Discretization of PDE
Presentation transcript:

21th Lecture - Advection - Diffusion Séries de Taylor Series to obtain the algebraic equations.

Equation Forms The rate of accumulation is equal to what flow in minus what flow out plus production minus consumption: Written as the flux divergence: Where the 1st term of the 2nd member is the symetric of the flux divergence, i.e. what is entering minus what is leaving. In the conventional form:

Taylor Series They are the basis of the finite – difference methods that are of the same family as the finite-volumes. The finite Elements/boundary elements are the other big family of numerical methods.

What is a Taylor Series representing? c Δc 1st Derivative: Δc/ Δt t1 t1+Δt Others derivatives Δt Δc

How to use Taylor series to compute derivatives? Explicit Method: The derivative is computed at the left “at t” having 1st order accuracy. This means that ignored derivatives are multiplied by To be computed at the left means “at the left of the time interval, i.e. at time “t”. As a consequence all the derivatives (i.e. all equation terms) are calculated at time “t”. The truncation error is proportional to meaning that the truncation error increase linearly with the time step (in fact to the time step divided by the period being simulated).

If the calculation was done at the right of the time step Others derivatives 1st Derivative: Δc/ Δt t c Implicit Method: In this case the derivative is computed at “t+dt” and has also 1st order truncation error . Explicit and implicit method have the same truncation error, although the latter is more stable.

To compute the derivative at the centre of the time interval, one can compute the values at the extremes as a function of that: Subtracting one from the other: This method has second order truncation error. It means that it would generate the exact solution in a parabolic evolution. Ignored derivatives are multiplied by

What does a Taylor series represent? c Explicit method Implicit method Central Difference Method t1 t1+Δt Other Derivatives Δt Δc 1st Derivative: Δc/ Δt

Spatial Derivatives Derivative at the right, downwind Method, if the velocity is positive In this method the spatial derivative at a point is computed using information at the computing point and at its right. We will see further down that this method is fine when the velocity is negative, but it creates problems when the velocity is positive because it violates the transportive property of advection.

Spatial Derivatives Derivative at the left: “upwind method” if velocity is positive and downwind is it is negative. This method respects the transportive property when the velocity is positive but tot when it is negative. The best combination is to use this method when the velocity is positive and the derivative at the right when the velocity is negative.

Subtracting one equation from the other one gets: Central Differences

2ª Derivative Adding:

Algebraic Equations. Truncation error, Initial Conditions And Boundary Conditions.

Algebraic Equations They are Obtained subtracting the derivatives by the algebraic approximations: Explicit, central differences. 2nd order accuracy in space first in time. Semi-implicit (Crank-Nicholson) spatial central differences. 2nd order accuracy in space and time. What do we pay for second order accuracy in time?

How to obtain values at time (t+Δt/2) ? Calculating the average….. Adding the equations! Replacing in the previous equations, one gets the equations to be solved.

Explicit Upwind 1st order accuracy in space and time for advection. Second for diffusion in space. This equation can re reorganized as:

Generic Form of the Equation K=1=> implicit. K=0 => Explicit, k=0.5=> Crank-Nicholson: Explicit, upwind: Courant and Diffusion numbers

About calculation accuracy In implicit and explicit methods, derivatives are calculated at the extremes of the time interval. As a consequence these methods ignore all derivatives but the first and consequently they are first order accurate. The Taylor series terms ignored are multiplied by When the derivative is computed at the centre of the time interval, the second derivative is still accounted and the method is second order accurate. The ignored derivatives are multiplied by But and thus it seems that the higher is the accuracy, the larger is the coefficient multiplying the terms ignored. Why is this so?

Why does accuracy increase with the exponent of ? Because the terms ignored are of the form: The denominator of the derivative is proportional to the time step with exponent “n” and the coefficient multiplying the derivative is proportional to half of the time step with exponent (n-1). As a consequence the whole term is proportional to The higher is “n” smaller is the term neglected. This result is consistent with the idea that derivatives loose importance as their order increases.

Boundary and initial conditions Initial conditions are often not importante because natural systems are dissipative and open, i.e. they Exchange through open boundaries. For the same reason boundary conditions are very importante. How do they appear? Ci Ci-1 Ci+1

Boundary Conditions Diffusion: Advecction: The calculation of the diffusive terms across a surface require the knowledge of diffusivity over the surface and of the value on the other side of the surface. When they are not know, the best solution is usually to consider null flux. Diffusion involves a second derivative and thus requires a boundary condition all over the boundary. Advecction: When the flow enters into the domain it is imperative to know the properties being advected. If not known the simulation can make sense only if the source/sink terms inside the domain are the main responsible for the values of the properties. Because it involves a 1st derivative advection requires only one boundary condition (at the entrance) if upwind discretization is used.

Heat Transport In case of heat, bottom fluxes are usually less important than fluxes across the free surface and across the open boundaries and can be neglected. Fluxes across the free surface control the eat budget and have to be computed (radiation, sensitive and latent heat).