Topic 3 Discretization of PDE

Slides:



Advertisements
Similar presentations
Computational Modeling for Engineering MECN 6040
Advertisements

Chapter 8 Elliptic Equation.
Parabolic Partial Differential Equations
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Lecture 18 - Numerical Differentiation
Chapter 3 Steady-State Conduction Multiple Dimensions
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac Professor of Aerospace Engineering.
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.
Numerical Methods for Partial Differential Equations
Types of Governing equations
CISE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM (Term 101) Section 04 Read & CISE301_Topic9.
SE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM Read & CISE301_Topic9 KFUPM.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
The Finite Difference Method This section presents a quick overview bout the finite difference method. This method can be used to solve any partial differential.
ME 231 Thermofluid Mechanics I Navier-Stokes Equations.
Scientific Computing Partial Differential Equations Introduction and
Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Numerical Solution of the Diffusivity Equation. FAQReferencesSummaryInfo Learning Objectives Introduction Discrete Systems Taylor Series Approximation.
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 –
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac Professor of Aerospace Engineering Introduction and Scope.
HEAT TRANSFER FINITE ELEMENT FORMULATION
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
Solving Partial Differential Equation Numerically Pertemuan 13 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
1 Variational and Weighted Residual Methods. 2 Introduction The Finite Element method can be used to solve various problems, including: Steady-state field.
Advanced Numerical Techniques Mccormack Technique CFD Dr. Ugur GUVEN.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Solution to Homework 1 qi h1 h2 q1 qo a1 a2 v1 v2
Finite Difference Methods
Chapter 30.
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic1_ODE
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 11/13/2018
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 11/15/2018
Finite Volume Method for Unsteady Flows
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Topic 6 FluidFlowEquations_Introduction
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 12/3/2018
topic13_grid_generation
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac
topic8_NS_vectorForm_F02
topic13_grid_generation
topic13_grid_generation
topic4: Implicit method, Stability, ADI method
topic4: Implicit method, Stability, ADI method
Topic 3 Discretization of PDE
topic16_cylinder_flow_relaxation
Topic 5 NavierStokes Equations
topic11_shocktube_problem
topic4: Implicit method, Stability, ADI method
Topic 6 NavierStokes Equations
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 2/28/2019
Topic9_Pressure_Correction
topic8_NS_vectorForm_F02
topic11_shocktube_problem
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 4/30/2019
Topic 8 Pressure Correction
topic4: Implicit method, Stability, ADI method
6th Lecture : Numerical Methods
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac 7/24/2019
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac July 25, 2019
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac
Topic 3 Discretization of PDE
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac
Presentation transcript:

Topic 3 Discretization of PDE ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic3_PDE 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Dicretization of Partial Differential Equations (CLW: 7.2, 7.3) We will follow a procedure similar to the one used in the previous class We consider the unsteady vorticity transport equation, noting that the equation is non-linear. 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Vorticity vector: = Is a measure of rotational effects. where is the local angular velocity of a fluid element. 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR For 2-D incompressible flow, the vorticity transport equation is given by (1) n - kinematic viscosity 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR As in the case of ODE ,the partial derivatives can be discretized Using Taylor series (2) 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR (3) We can expand in Taylor series for the 8 neighboring points of (i,j) using (i,j) as the central point. 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR (4) (5) 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Here etc. Note: all derivatives are evaluated at (i,j) Rearranging the equations yield the following finite difference formulas for the derivatives at (i,j). (6) 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR (7) (8) (9) 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Eq.(6) is known as the forward difference formula. Eq.(7) is known as the backward difference formula. Eq.(8) and (9) are known as central difference formulas. Compact notation: (10) 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR The Heat conduction problem (ID) x x+Dx Dx Consider unit area in the direction normal to x. Energy balance for a CV of cross section of area 1 and length Dx: Volume of CV, dV = 1 Dx 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Change in temperature during time interval Dt, = DT Increase in energy of CV : This should be equal to the net heat transfer across the two faces 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Equating the two and canceling Dt Dx gives Note: higher order tems (HOT) have been dropped. If we assume k=constant, we get 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Or is the thermal diffusivity. Where Letting x = x/L, and t = at/L2, the above equation becomes 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR The above is a Parabolic Partial Differential Equation. (11) 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Physical problem A rod insulated on the sides with a given temperature distribution at time t = 0 . Rod ends are maintained at specified temperature at all time. Solution u(x,t) will provide temperature distribution along the rod At any time t > 0. 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR IC: (12) BC: (13) 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Difference Equation Solution involves establishing a network of Grid points as shown in the figure in the next slide. Grid spacing: 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR M,N are integer values chosen based on required accuracy and available computational resources. Explicit form of the difference equation (14) Define 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Then (15) Circles indicate grid points involved in space difference Crosses indicate grid points involved in time difference. 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Note: At time t=0 all values are known (IC). In eq.(15) if all are known at time level tn, can be calculated explicitly. Thus all the values at a time level (n+1) must be calculated before advancing to the next time level. Note: If all IC and BC do not match at (0,0) and , it should be handled in the numerical procedure. Select one or the other for the numerical calculation. There will be a small error present because of this inconsistency. 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR Convergence of Explicit Form. Remember that the finite difference form is an approximation. The solution also will be an approximation. The error introduced due to only a finite number of terms in the Taylor series is known as truncation error, e. The solution is said to converge if when Error is also introduced because variables are represented by a finite number of digits in the computer.This is known as round- off error. 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Computational Fluid Dynamics (AE/ME 339) K. M. Isaac MAEEM Dept., UMR For the explicit method, the truncation error, e is The convergence criterion for the explicit method is as follows: where 12/7/2018 Topic 3 Discretization of PDE

Topic 3 Discretization of PDE Program Completed University of Missouri-Rolla Copyright 2002 Curators of University of Missouri 12/7/2018 Topic 3 Discretization of PDE