Solving the heat equation using ADI method

Slides:



Advertisements
Similar presentations
Partial Differential Equations
Advertisements

Chapter 8 Elliptic Equation.
Parabolic Partial Differential Equations
ECE602 BME I Partial Differential Equations in Biomedical Engineering.
Radiative Transfer with Predictor-Corrector Methods ABSTRACT TITLE : Radiative Transfer with Predictor-Corrector Methods OBJECTIVE: To increase efficiency,
Parabolic PDEs Generally involve change of quantity in space and time Equivalent to our previous example - heat conduction.
Thomas algorithm to solve tridiagonal matrices
PDEs & Parabolic problems Jacob Y. Kazakia © Partial Differential Equations Linear in two variables: Usual classification at a given point (x,y):
Computational Fluid Dynamics I PIW Numerical Methods for Parabolic Equations Instructor: Hong G. Im University of Michigan Fall 2005.
Chapter 13 Finite Difference Methods: Outline Solving ordinary and partial differential equations Finite difference methods (FDM) vs Finite Element Methods.
CISE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM (Term 101) Section 04 Read & CISE301_Topic9.
Matrices Write and Augmented Matrix of a system of Linear Equations Write the system from the augmented matrix Solve Systems of Linear Equations using.
Solving Systems of Equations and Inequalities
Reduced Row Echelon Form Matrices and the Calculator.
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Section 3.6 – Solving Systems Using Matrices
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Parallel Programming in C with MPI and OpenMP Michael J. Quinn.
1 Discretizing The Concentration Equation Mike Grimm Math 1110 March 11, 2002.
Matrix Multiplication The inner dimensions must be the same (or the number of columns in the first matrix is equal to the number of rows in the second.
Lecture 3.
Using a Graphing Calculator to Tame the EOCE. ADVICE * Go to bed early Monday night. * Eat a good breakfast Tuesday morning. * Be careful on the test.
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
Elliptic PDEs and the Finite Difference Method
Class Opener:. Identifying Matrices Student Check:
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 8 - Chapter 29.
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
WORKSHOP ON LONG-WAVE RUNUP MODELS Khairil Irfan Sitanggang and Patrick Lynett Dept of Civil & Ocean Engineering, Texas A&M University.
Engineering Analysis – Computational Fluid Dynamics –
8.2 Operations With Matrices
3.6 Solving Systems Using Matrices You can use a matrix to represent and solve a system of equations without writing the variables. A matrix is a rectangular.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 271 Boundary-Value.
What is Matrix Multiplication? Matrix multiplication is the process of multiplying two matrices together to get another matrix. It differs from scalar.
MA.912.A.7.1: Graph quadratic equations with and without graphing technology. Which of the following equations represents the graph shown? A.y = −x 2.
Marching Solver for Poisson Equation 大氣四 簡睦樺. Outline A brief review for Poisson equation and marching method Parallel algorithm and consideration for.
1.1 The row picture of a linear system with 3 variables.
Evan Selin & Terrance Hess.  Find temperature at points throughout a square plate subject to several types of boundary conditions  Boundary Conditions:
Solving Partial Differential Equation Numerically Pertemuan 13 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
LESSON 3-2 ANGLES AND PARALLEL LINES. Concept Example 1 Use Corresponding Angles Postulate A. In the figure, m  11 = 51. Find m  15.
Implicit approximation can be solved using: Point iteration (G/S, SOR) Direct (matrix) solution Combination of matrix soln and iteration (used in MODFLOW)
EOC Practice #17 SPI EOC Practice #17 Determine the equation of a line and/or graph a linear equation.
12-4: Matrix Methods for Square Systems
Part 8 - Chapter 29.
EEE 431 Computational Methods in Electrodynamics
Xing Cai University of Oslo
High Altitude Low Opening?
Christopher Crawford PHY
Chapter 30.
Review Problems Matrices
Algebra 2 Chapter 3 Section 3 Cramer’s Rule
Solving Systems Using Matrices
Lecture 19 MA471 Fall 2003.
PDEs and Examples of Phenomena Modeled
Partial Differential Equations
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Thermal-ADI: a Linear-Time Chip-Level Dynamic Thermal Simulation Algorithm Based on Alternating-Direction-Implicit(ADI) Method Good afternoon! The topic.
Problem-1 A two member frame is supported by the two pin supports at A and D as shown. The beam AB is subjected to a load of 4 kN at its free end. Draw.
Lecture Objectives: Analysis of unsteady state heat transfer HW3.
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
One dimensional Poisson equation
Simultaneous Equations
CS6068 Applications: Numerical Methods
topic4: Implicit method, Stability, ADI method
topic16_cylinder_flow_relaxation
topic4: Implicit method, Stability, ADI method
PARTIAL DIFFERENTIAL EQUATIONS
topic11_shocktube_problem
3.6 Multiply Matrices.
topic4: Implicit method, Stability, ADI method
Wei Choon Tay and Eng Leong Tan
Modeling Debye Dispersive Media Using Efficient ADI-FDTD Method
Presentation transcript:

Solving the heat equation using ADI method

ADI Method ADI is Alternating Direction Implicit Method. It is finite difference method to solve the parabolic ,hyperbolic, elliptical PDE’s. It splits the finite difference equations into two, one with the x-derivative taken implicitly and the next with the y-derivative taken implicitly.

ADI Method to Heat equation Solve Step 1: y-direction fixed Step 2: x-direction fixed α α

ADI Method to Heat equation Step 1: Step 2:

Step 1(Predictor) Predicted solutions are shown in red and corrected solutions are in black

Step 2(Corrector) Predicted solutions are shown in red and corrected solutions are in black

ADI Method to Heat equation Step 1: [Ax].Ujn+1/2 = Rxi,j where Ax = I + Cx Cx = a. Ujn+1/2 = Rxi,j = Uj at the time step n+1/2 is solved by the tridiagonal algorithms with the unknowns ordered by rows I = 1 to M-1.

ADI Method to Heat equation Step 2: [Ay].Uin+1 = Ryi,j where Ay = I + Cy Cy = b. Uin+1 = Ryi,j = Ui at the time step n+1 is solved by columns j =1 to N-1.

Peaceman-Rachford scheme Splitting step 1 and 2 equations using Peaceman- Rachford scheme Where F0x=(alpha*dt)/(2*dx*dx) F0y=(alpha*dt)/(2*dy*dy)

By Simplifying those equations

Algorithm An outline of numerical algorithm is: Compute Ax_m, Ax_p, Ay_m, and Ay_p. Solve Ax_m.Un+1/2 = Ay_p.Un and Ay_m.Un+1 = Ax_p. Un+1/2 . Update U for all interior grid points.

Sequential Implementation Initialize variables NX, NY, dt, Time, Lx, Ly and Alpha. Calculate dx, dy, 𝑓 𝑜𝑥 , 𝑓 𝑜𝑦 Assign initial temperatures. Calculate matrices Ax_m, Ax_p, Ay_m and Ay_p. Use LU factorization for Ax_m, Ay_m matrices For each time step Solve Ax_m . 𝑈 𝑛+1/2 =Ay_p . 𝑈 𝑛 Solve Ay_m . 𝑈 𝑛+1 =Ax_p . 𝑈 𝑛+1/2 dt is time step, Time is end of time evolving, Lx,Ly are domain length and width, alpha. dx=Lx/(Nx-1),dy=Ly/(Ny-1);

Libraries Used Numerical libraries (Open Source) TNT (Template Numerical Toolkit) JAMA (Java Matrix Package) Time taken for this implementation: 2 sec (appox.) including Ax_m, Ax_p, Ay_m, Ay_p calculation with Nx=100, Ny=50, Lx=1.0, Ly=1.0, alpha=0.2 and Time = 0.55 with dt=0.015.

Results The grid size is n = 100. The top boundary has temperature of 20.0 at the ends and 100.0 in the middle. The bottom, left and right boundaries have a temperature of 20.0 at the ends and 0.0 inside the room.

Parallel Implementation cuSPARSE library. 3 Kernel functions Matrix calculation (Ax_m, Ax_p, Ay_m, Ay_p). Solving step 1 and step 2 equations. Update U.

Thank you.

Questions?? & Suggestions