Macquarie University 20041 The Heat Equation and Diffusion PHYS220 2004 by Lesa Moore DEPARTMENT OF PHYSICS.

Slides:



Advertisements
Similar presentations
Partial Differential Equations
Advertisements

Wyndor Example; Enter data Organize the data for the model on the spreadsheet. Type in the coefficients of the constraints and the objective function.
Lecture 15: Capillary motion
Louisiana Tech University Ruston, LA Slide 1 Energy Balance Steven A. Jones BIEN 501 Wednesday, April 18, 2008.
Basic law of heat conduction --Fourier’s Law Degree Celsius.
Lecture 13 2 nd order partial differential equations Remember Phils Problems and your notes = everything Only.
Finite Element Method (FEM) Different from the finite difference method (FDM) described earlier, the FEM introduces approximated solutions of the variables.
Lecture 18 - Numerical Differentiation
UNSTEADY VISCOUS FLOW Viscous effects confined to within some finite area near the boundary → boundary layer In unsteady viscous flows at low Re the boundary.
Model 5:Telescope mirrors Reflecting telescopes use large mirrors to focus light. A standard Newtonian telescope design is depicted in figure 1: Light.
1 Model 4: Heat flow in an electrical conductor A copper conductor is sheathed in an insulator material. The insulator also stops heat from escaping. Imagine.
2. Solving Schrödinger’s Equation Superposition Given a few solutions of Schrödinger’s equation, we can make more of them Let  1 and  2 be two solutions.
4. The Postulates of Quantum Mechanics 4A. Revisiting Representations
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
Monte Carlo Methods in Partial Differential Equations.
CISE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM (Term 101) Section 04 Read & CISE301_Topic9.
CHAP 5 FINITE ELEMENTS FOR HEAT TRANSFER PROBLEMS
Solving System of Linear Equations. 1. Diagonal Form of a System of Equations 2. Elementary Row Operations 3. Elementary Row Operation 1 4. Elementary.
Boyce/DiPrima 10th ed, Ch 10.5: Separation of Variables; Heat Conduction in a Rod Elementary Differential Equations and Boundary Value Problems, 10th.
Louisiana Tech University Ruston, LA Slide 1 The Rectangular Channel Steven A. Jones BIEN 501 Friday, April 4th, 2008.
9.6 Other Heat Conduction Problems
Louisiana Tech University Ruston, LA Slide 1 Krogh Cylinder Steven A. Jones BIEN 501 Wednesday, May 7, 2008.
LINEAR REGRESSION Introduction Section 0 Lecture 1 Slide 1 Lecture 5 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall.
Skills for October Rounds
Scientific Computing Partial Differential Equations Introduction and
1 Preliminaries Precalculus Review I Precalculus Review II
The Hydrogen Atom Quantum Physics 2002 Recommended Reading: Harris Chapter 6, Sections 3,4 Spherical coordinate system The Coulomb Potential Angular Momentum.
Chapter 9 Numerical Integration Flow Charts, Loop Structures Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 16 Solving the Laplace equation in 2-D Remember Phils Problems and your notes = everything Only 6 lectures.
A b  R C I I t q RC 2 RC 0 CC C a b + --  R + I I RC Circuits q RC2RC 0 t CC
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 5a.
3-2 Solving Equations by Using Addition and Subtraction Objective: Students will be able to solve equations by using addition and subtraction.
The complex exponential function REVIEW. Hyperbolic functions.
SOLVING QUADRATIC EQUATIONS Unit 7. SQUARE ROOT PROPERTY IF THE QUADRATIC EQUATION DOES NOT HAVE A “X” TERM (THE B VALUE IS 0), THEN YOU SOLVE THE EQUATIONS.
Boyce/DiPrima 9 th ed, Ch 10.8: Laplace’s Equation Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and.
Solving Linear Systems of Equations - Addition Method Recall that to solve the linear system of equations in two variables... we need to find the values.
CEE 262A H YDRODYNAMICS Lecture 15 Unsteady solutions to the Navier-Stokes equation.
Elliptic PDEs and the Finite Difference Method
1 CHAPTER 4 TRANSIENT CONDUCTION Neglect spatial variation: Criterion for Neglecting Spatial Temperature Variation Cooling of wire by surface convection:
Lecture 15 Solving the time dependent Schrödinger equation
Lecture 17 Solving the Diffusion equation Remember Phils Problems and your notes = everything Only 5 lectures.
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Engineering Analysis – Computational Fluid Dynamics –
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 09: Partial Differential Equations and Fourier.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Physics 361 Principles of Modern Physics Lecture 13.
Assignment for the course: “Introduction to Statistical Thermodynamics of Soft and Biological Matter” Dima Lukatsky In the first.
Chapter 1 Partial Differential Equations
MA428 Class Project The Heat Equation Temperature Distribution in a Bar with Radiating Ends.
Copyright © Cengage Learning. All rights reserved. 4 Quadratic Functions.
Boyce/DiPrima 9 th ed, Ch 11.3: Non- Homogeneous Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
CHAPTER 2.3 PROBABILITY DISTRIBUTIONS. 2.3 GAUSSIAN OR NORMAL ERROR DISTRIBUTION  The Gaussian distribution is an approximation to the binomial distribution.
Multivariable linear systems.  The following system is said to be in row-echelon form, which means that it has a “stair-step” pattern with leading coefficients.
3-2: Solving Linear Systems. Solving Linear Systems There are two methods of solving a system of equations algebraically: Elimination Substitution.
Ch. 12 Partial Differential Equations
1 Variational and Weighted Residual Methods. 2 Introduction The Finite Element method can be used to solve various problems, including: Steady-state field.
Boyce/DiPrima 10th ed, Ch 10.8: Laplace’s Equation Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
Boyce/DiPrima 9th ed, Ch 10.8 Appendix A: Derivation of the Heat Conduction Equation Elementary Differential Equations and Boundary Value Problems, 9th.
thermal conductivity of a gas
The Heat Equation for Two-Dimensional Objects
4. The Postulates of Quantum Mechanics 4A. Revisiting Representations
Topic 3 Discretization of PDE
Systems of Equations and Inequalities
5.1 Introduction to Curve Fitting why do we fit data to a function?
Topic 3 Discretization of PDE
Steady-State Heat Transfer (Initial notes are designed by Dr
Further Topics on Random Variables: Derived Distributions
Further Topics on Random Variables: Derived Distributions
Further Topics on Random Variables: Derived Distributions
Topic 3 Discretization of PDE
Presentation transcript:

Macquarie University The Heat Equation and Diffusion PHYS by Lesa Moore DEPARTMENT OF PHYSICS

Macquarie University Diffusion of Heat The diffusion of heat through a material such as solid metal is governed by the heat equation. We will not try to derive this equation. We will compare results from the heat equation with our studies of the random walk.

Macquarie University Initial Temperature Distribution Consider diffusion in 1D (let a thin copper wire represent a one- dimensional lattice). Let u(t,x) be the heat at point x at time t, with x and t integers, u(t=0,x=0)=1 and u(t=0,x)=0 if x is not zero.

Macquarie University The Partial Differential Equation The heat equation is a partial differential equation (PDE): k is the diffusion coefficient. Assume the initial distribution is a spike at x=0 and is zero elsewhere.

Macquarie University Partial Derivatives For functions of more than one variable, the partial derivative is the rate of change with respect to one variable with the other variable(s) fixed. :

Macquarie University The PDE in full :

Macquarie University Converting to a Difference Equation Don’t take the limits as intervals approach zero. Take finite time steps (  t=1) and finite positions steps (  x=1).

Macquarie University Simplifying … 1 1 1

Macquarie University Rearranging … Want all t+1 terms on l.h.s. and everything else on r.h.s.

Macquarie University Modelling in Excel Columns are x-values. Rows are t-values. The difference equation relates each cell to three cells in the row above.

Macquarie University The Excel Spreadsheet The first row (t=0) is all zeros except for the initial spike: u(t=0,x=0) = 1. The same formula is entered in every cell from row 2 down: A1 holds the value of k (k = 0.1) AA3=$A$1*(Z2-2*AA2+AB2)+AA2

Macquarie University Filling the Spreadsheet In Excel, it is easiest to insert the formula in the top left cell of the range, select the range and use Ctrl+R, Ctrl+D to fill the range: -20 ≤ x ≤ 20; 0 ≤ t ≤ 60.

Macquarie University Boundary Conditions What happens at the boundaries? Setting columns at x=±21 equal to zero stops the spatial evolution of the model – is this a problem? Provided that values in neighbouring columns (x=±20) are still small at the end of the simulation, the choice of boundary conditions is not so important. u=0 is equivalent to an absorbing boundary.

Macquarie University Snapshots

Macquarie University Plotting the Heat Spread

Macquarie University Spreadsheet Results Conservation of heat can be demonstrated by adding the values in a row (a row is a time step). Values in a row should add to 1. Checking the sum in a row is good test of numerical accuracy. Heat diffusion looks like a Gaussian distribution.

Macquarie University The Distribution The simulation satisfies conservation of energy (total heat along a row = 1). Does the Gaussian distribution satisfy this condition too (area under curve = 1)? The initial spike can be thought of as a very sharp, very narrow Gaussian. For t>0, need to integrate the Gaussian. “Normalised” if integral yields unity.

Macquarie University Normalisation of the Gaussian Formula for Gaussian with  = 0. Use a trick for the integral:

Macquarie University  The integral becomes

Macquarie University  But using and

Macquarie University  Cancelling

Macquarie University  Then use the substitution:

Macquarie University  And finally:

Macquarie University The integral proves that the Gaussian is normalised to unity – the area under the curve is one. But the heat equation is a function of x and t, and uses a constant k. k and t must be included in the  term of the Gaussian if we are to say our model satisfies this distribution.

Macquarie University What is  ? From the Random Walk, we learned that   √t. Try a guess: The Gaussian becomes:

Macquarie University Derivatives of the Gaussian Space derivatives: The time derivative is left as an exercise …

Macquarie University The Gaussian satisfies the Heat Equation It can be shown that the heat equation is satisfied by our guess. The distribution integrates to unity (conservation of energy). The spread of heat is given by  of the Gaussian (normal) distribution.

Macquarie University Diffusion and the Random Walk The initial temperature spike grows into a Gaussian distribution according to the 1D heat equation. The width  grows in proportion to the square root of elapsed time. Heat and diffusion can be understood in terms of the “random walk”.

Macquarie University Other Conditions The initial condition may not be a spike, but could be some initial distribution: u(x,0)=g(x). The boundary conditions may not be absorbing, but could be continuous. The thermal diffusivity constant k may not be constant, but may vary with x or t.

Macquarie University Summary The heat equation is a PDE. By separating space and time variables, we see that a Gaussian that spreads as √t is a solution. We can model the differential equation as a difference equation in Excel and see the same effect. The spread of heat is a physical example of a random walk.

Macquarie University Acknowledgements This presentation was based on lecture material for PHYS220 presented by Prof. Barry Sanders, Additional Reference: Folland, Fourier Analysis and its Applications, 1992.