Remark: foils with „black background“ could be skipped, they are aimed to the more advanced courses Rudolf Žitný, Ústav procesní a zpracovatelské techniky.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Computational Modeling for Engineering MECN 6040
Chapter 8 Elliptic Equation.
Momentum Heat Mass Transfer MHMT10 Multidimensional heat conduction problems. Fins and heat conduction with internal sources or sinks. Unsteady heat conduction.
Momentum Heat Mass Transfer
Numerical Integration of Partial Differential Equations (PDEs)
Introduction to numerical simulation of fluid flows
Chapter 3 Steady-State Conduction Multiple Dimensions
Coupled Fluid-Structural Solver CFD incompressible flow solver has been coupled with a FEA code to analyze dynamic fluid-structure coupling phenomena CFD.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
Atms 4320 Lab 2 Anthony R. Lupo. Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Recall that.
Introduction to Numerical Methods I
Numerical Methods for Partial Differential Equations
Types of Governing equations
CHAPTER 8 APPROXIMATE SOLUTIONS THE INTEGRAL METHOD
Numerical methods for PDEs PDEs are mathematical models for –Physical Phenomena Heat transfer Wave motion.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Momentum Heat Mass Transfer
Numerical Methods for Partial Differential Equations
Remark: foils with „black background“ could be skipped, they are aimed to the more advanced courses Rudolf Žitný, Ústav procesní a zpracovatelské techniky.
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Taylor-Galerkin Schemes
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
A conservative FE-discretisation of the Navier-Stokes equation JASS 2005, St. Petersburg Thomas Satzger.
Lecture Objectives: Analyze the unsteady-state heat transfer Conduction Introduce numerical calculation methods Explicit – Implicit methods.
Integration of 3-body encounter. Figure taken from
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
Elliptic PDEs and the Finite Difference Method
Chapter 5: Numerical Methods in Heat Transfer
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
Engineering Analysis – Computational Fluid Dynamics –
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
CIS888.11V/EE894R/ME894V A Case Study in Computational Science & Engineering We will apply several numerical methods to find a steady state solution of.
FALL 2015 Esra Sorgüven Öner
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
Partial Derivatives Example: Find If solution: Partial Derivatives Example: Find If solution: gradient grad(u) = gradient.
Lecture Objectives: Define 1) Reynolds stresses and
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
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.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
EEE 431 Computational Methods in Electrodynamics
Lecture 4: Numerical Stability
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Finite Difference Methods
Introduction to Numerical Methods I
Chapter 30.
ივანე ჯავახიშვილის სახელობის
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
Lecture 19 MA471 Fall 2003.
Convergence in Computational Science
21th Lecture - Advection - Diffusion
Finite Volume Method for Unsteady Flows
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Topic 3 Discretization of PDE
Objective Numerical methods Finite volume.
Investigators Tony Johnson, T. V. Hromadka II and Steve Horton
topic4: Implicit method, Stability, ADI method
topic4: Implicit method, Stability, ADI method
Topic 3 Discretization of PDE
topic4: Implicit method, Stability, ADI method
Comparison of CFEM and DG methods
topic4: Implicit method, Stability, ADI method
6th Lecture : Numerical Methods
Topic 3 Discretization of PDE
Presentation transcript:

Remark: foils with „black background“ could be skipped, they are aimed to the more advanced courses Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2013 Solvers, Approximation, Stability, Boundedness of Numerical schemes Computer Fluid Dynamics E CFD

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 SOLVERS CFD3 FEM, BEM, FVM, FD transfer PDE into system of algebraic equations for T j (nodal pressures, velocities, temperature, concentrations…) solved by  Finite methods (Gauss, SVD, LU decomposition, frontal methods) N 3 operations are required – suitable for smaller systems.SVDLU decompositionfrontal  Iterative methods (GS, multigrid, GMRES, conjugated gradients). Prevails at CFD calculations, characterized by number cells (nodes) of several millions and parallel processing (external as well as internal aerodynamics of cars requires up to 10 8 finite volumes, solved in clusters of e.g. 512 and more processors)GSmultigridGMRES Iterative methods are not so sensitive to round-off errors (that’s why they can be applied for such huge systems)

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Mathematical R equirements CFD3 Three Mathematical requirements  consistency (discretized equation for must be identical with PDE) order of accuracy (m-with respect time, n-with respect to spatial approximation)  stability (attenuation of round-off errors or glitches of initial conditions)  convergency. Lax theorem: consistent and stable numerical scheme converges to exact solution (but it holds only for linear systems)

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Physical R equirements CFD3 Three Physical requirements  Conservativeness. Balance of mass should hold exactly at an element level and globally. Fulfilled by FVM (Finite Volume Method). Not exactly satisfied fy FEM.  Boundedness. Solution should not exhibit local min/max in the absence of internal sources (of mass, momentum or heat). Solution should be bounded by boundary values. Min/max principle.  Transportivness. Numerical scheme should reflect directionality of information transfer (convection along streamlines)

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2013 Numerical method-analysis CFD3 Few examples, how to analyze order of accuracy and stability of suggested numerical schemes (FD methods) Benton

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Order of accuracy CFD3 Accurate for 3 rd order polynomials T=1,x,x 2,x 3 TiTi T i+1 T i-1 xx Taylor expansion Approximation of first derivative = = Accurate for 2 nd order polynomials T=1,x,x 2 Accurate for 1 nd order polynomials T=1,x = Approximation of second derivative Higher Order Terms

Therefore finite differences substituting derivatives at node x i are  First order  Second order  Third order Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Order of accuracy CFD3 TiTi T i+1 T i-1 xx

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example (explicit method) CFD3 j j+1 j-1 n n+1 ∆x ∆t Unsteady heat transfer (Fourier equation – parabolic) Finite difference method EXPLICIT (explicit means that unknown temperatures at a new time level can be expressed explicitly, without necessity to solve a system of algebraic equations). What is the order of accuracy? T-temperature, a-temperature diffusivity

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example (explicit method) CFD3 j j+1 j-1 n n+1 ∆x ∆t Residual of this PDE is therefore Scheme is consistent, linear with respect time, cubic with respect space.

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example (explicit method) CFD3 Rewrite the explicit formula to the following (explicit) form Rules:  Sum of coefficients must be the same on the left and on the right side (1=A+A+1-2A). Why? A constant solution must be fulfilled exactly!  All coefficients must be positive for bounded solution. Why?  Scarborough criterion (sum of absolute values of off-diagonal elements  diagonal element, criterion for convergency of iterative methods) Scarborough Unknown temperature at a new time level Known temperatures at “old” time level

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example (explicit method) CFD3 So why all coefficients must be positive for bounded solution? Resulting value T is calculated as a weighted average of values (sum of weighting coefficients must be 1). Let us assume only two values for simplicity and T 1 <T 2. The solution is bounded if T 1 <T<T 2. Let us assume, that the result is not bounded and T<T 1. Then For positive value (1-A)>0 it follows that T 1 >T 2 and this is contradiction.

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example of unbounded solution CFD3 Let us consider what would happen if A=1 (negative value 1-2A) Evolution of initial condition in node Initial condition is 0 in all nodes and only in one node is 1.

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example (explicit method) CFD3 Stability condition can be expressed as a restriction of time step Δx-distance of penetrated thermal pulse at a time Δt Interpretation in terms of penetration theory. Effective velocity of a thermal pulse Effective domain of dependency

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability (hyperbolic/parabolic eqs.) CFD3 Stability criterion CFL (Courant Friedrichs Levi) for hyperbolic equations was presented in the previous lecture as where c is the speed of sound or a transport velocity. This CFL criterion represents a linear restriction of the time step with the spatial step and seems to be quite different than the stability criterion for the diffusion driven phenomena. However, these criteria are almost the same, taking into account the penetration depth theory this is qualitatively the same result (up to a scale constant)

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example of wrong scheme CFD3 Richardson’s scheme for the solution of previous equation j j+1 j-1 n n+1 ∆x ∆t n-1 operates at 3 time levels, n-1,n,n+1 and has higher orders of accuracy However, the scheme is practically useless. WHY?

Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability example of wrong scheme CFD3 Because this coefficient is always negative j j+1 j-1 n n+1 ∆x ∆t n-1

j j+1 j-1 n n+1 ∆x ∆t n-1 and this solution will be bounded for A<1/2. Order of accuracy remains high. However: Consistency with Fourier equation is assured only if Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2010 Stability how to improve Richardson? CFD3 duFort Frankel scheme Richardson’s scheme otherwise the hyperbolic equation of heat transfer would be solved where.

j j+1 j-1 n n+1 ∆x ∆t n-1 Rudolf Žitný, Ústav procesní a zpracovatelské techniky ČVUT FS 2013 Stability hyperbolic equations CFD3. Always unstable (negative coefficient at T j+1 ) Lax Fridrichs (conditionally stable) Leap frog (conditionally stable - von Neumann analysis)

Stability Neumann CFD3 More precise (and more complicated) is the stability analysis suggested by von Neumann. It is based upon spectral decomposition of solution, i.e. at a time level n the spatial profile is substituted by Fourier expansion This Fourier component is substituted into differential equation and amplification factor G is evaluated. Numerical scheme is stable, as soon as the magnitude of identified amplification factor decreases. Gain factor G is generally a complex number. Real part is a measure of dumping error (artificial viscosity) and imaginary part is a measure of phase error (dispersion error).

CFD3 PDE stability analysis (von Neuman) A general Fourier term of solution of a linear partial differential equation k m =  m/L is wave number (discrete frequency). Arbitrary initial condition T(0,x) can be expressed by Fourier expansion and evolution of individual Fourier terms can be analysed (|exp( at)| >1 indicate growth - instability, | exp( a t)|<1 stability). Why is Euler formula unstable? Courant number CFL criterion (Courant-Fridrichs-Levi) Gain G –absolute value greater than 1 for any wave number