Heat equation examples



Similar documents
An Introduction to Partial Differential Equations

Reaction diffusion systems and pattern formation

Application of Fourier Transform to PDE (I) Fourier Sine Transform (application to PDEs defined on a semi-infinite domain)

CONSERVATION LAWS. See Figures 2 and 1.

Experiment 12E LIQUID-VAPOR EQUILIBRIUM OF WATER 1

The Heat Equation. Lectures INF2320 p. 1/88

Section 1.4. Difference Equations

Convection in water (an almost-incompressible fluid)

Lecture 3 Fluid Dynamics and Balance Equa6ons for Reac6ng Flows

Second Order Linear Partial Differential Equations. Part I

MATH 425, PRACTICE FINAL EXAM SOLUTIONS.

Global Seasonal Phase Lag between Solar Heating and Surface Temperature

Particular Solutions. y = Ae 4x and y = 3 at x = 0 3 = Ae = A y = 3e 4x

The one dimensional heat equation: Neumann and Robin boundary conditions

Section 4-7 Exponential and Logarithmic Equations. Solving an Exponential Equation. log log 5. log

1 The 1-D Heat Equation

8. Time Series and Prediction

N 1. (q k+1 q k ) 2 + α 3. k=0

4.1 INTRODUCTION TO THE FAMILY OF EXPONENTIAL FUNCTIONS

1 Error in Euler s Method

Numerical Analysis Lecture Notes

5.4 The Heat Equation and Convection-Diffusion

Student name: Earlham College. Fall 2011 December 15, 2011

Chapter 2: Linear Equations and Inequalities Lecture notes Math 1010

Numerical Methods for Differential Equations

Parabolic Equations. Chapter 5. Contents Well-Posed Initial-Boundary Value Problem Time Irreversibility of the Heat Equation

Week 2: Exponential Functions

Cooling and Euler's Method

1 Finite difference example: 1D implicit heat equation

Math 120 Final Exam Practice Problems, Form: A

Chapter 9 Partial Differential Equations

Introduction To Materials Science FOR ENGINEERS, Ch. 5. Diffusion. MSE 201 Callister Chapter 5

MAT12X Intermediate Algebra

The two dimensional heat equation

Microeconomic Theory: Basic Math Concepts

College of the Holy Cross, Spring 2009 Math 373, Partial Differential Equations Midterm 1 Practice Questions

Heat Transfer and Energy

Steady Heat Conduction

Algebra II EOC Practice Test

39th International Physics Olympiad - Hanoi - Vietnam Theoretical Problem No. 3

POISSON AND LAPLACE EQUATIONS. Charles R. O Neill. School of Mechanical and Aerospace Engineering. Oklahoma State University. Stillwater, OK 74078

How To Understand Algebraic Equations

Chapter 5: Diffusion. 5.1 Steady-State Diffusion

1. Then f has a relative maximum at x = c if f(c) f(x) for all values of x in some

Lecture 2. Marginal Functions, Average Functions, Elasticity, the Marginal Principle, and Constrained Optimization

EXISTENCE AND NON-EXISTENCE RESULTS FOR A NONLINEAR HEAT EQUATION

MATH 31B: MIDTERM 1 REVIEW. 1. Inverses. yx 3y = 1. x = 1 + 3y y 4( 1) + 32 = 1

3. Reaction Diffusion Equations Consider the following ODE model for population growth

MATH 10: Elementary Statistics and Probability Chapter 5: Continuous Random Variables

Feed a Fever..., or How long should I leave a thermometer in my mouth to take my body temperature accurately?

MIT Manufacturing Processes and Systems. Homework 6 Solutions. Casting. October 15, Figure 1: Casting defects

3.2 Sources, Sinks, Saddles, and Spirals

List the elements of the given set that are natural numbers, integers, rational numbers, and irrational numbers. (Enter your answers as commaseparated

Two-Dimensional Conduction: Shape Factors and Dimensionless Conduction Heat Rates

CHAPTER FIVE. Solutions for Section 5.1. Skill Refresher. Exercises

Fixed Point Theorems

Heat Transfer Prof. Dr. Aloke Kumar Ghosal Department of Chemical Engineering Indian Institute of Technology, Guwahati

1 Completeness of a Set of Eigenfunctions. Lecturer: Naoki Saito Scribe: Alexander Sheynis/Allen Xue. May 3, The Neumann Boundary Condition

DETERMINATION OF THE HEAT STORAGE CAPACITY OF PCM AND PCM-OBJECTS AS A FUNCTION OF TEMPERATURE. E. Günther, S. Hiebler, H. Mehling

19.7. Applications of Differential Equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

Practical Applications of Freezing by Boiling Process

1. (from Stewart, page 586) Solve the initial value problem.

Lecture 9, Thermal Notes, 3.054

Carbon Cable. Sergio Rubio Carles Paul Albert Monte

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

Module 1 : Conduction. Lecture 5 : 1D conduction example problems. 2D conduction

Math Practice exam 2 - solutions

3. Diffusion of an Instantaneous Point Source

arxiv:physics/ v1 [physics.ed-ph] 14 Apr 2000

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

2008 AP Calculus AB Multiple Choice Exam

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

Second Order Systems

PRACTICE FINAL. Problem 1. Find the dimensions of the isosceles triangle with largest area that can be inscribed in a circle of radius 10cm.

CFD SIMULATION OF SDHW STORAGE TANK WITH AND WITHOUT HEATER

Logarithmic and Exponential Equations

Scholars Research Library

Lateral Acceleration. Chris Garner

The integrating factor method (Sect. 2.1).

Ch 8 Potential energy and Conservation of Energy. Question: 2, 3, 8, 9 Problems: 3, 9, 15, 21, 24, 25, 31, 32, 35, 41, 43, 47, 49, 53, 55, 63

SIXTY STUDY QUESTIONS TO THE COURSE NUMERISK BEHANDLING AV DIFFERENTIALEKVATIONER I

6.4 Logarithmic Equations and Inequalities

Module 1, Lesson 3 Temperature vs. resistance characteristics of a thermistor. Teacher. 45 minutes

Algebra EOC Practice Test #2

Numerical Solution of Differential Equations

Understanding Poles and Zeros

Objectives. Materials

TCOM 370 NOTES 99-4 BANDWIDTH, FREQUENCY RESPONSE, AND CAPACITY OF COMMUNICATION LINKS

Make sure you look at the reminders or examples before each set of problems to jog your memory! Solve

Review of Fundamental Mathematics

FINAL EXAM SECTIONS AND OBJECTIVES FOR COLLEGE ALGEBRA

Graphing calculators Transparencies (optional)

. Address the following issues in your solution:

FLUID DYNAMICS. Intrinsic properties of fluids. Fluids behavior under various conditions

Lecture 7: Continuous Random Variables

EXIT TIME PROBLEMS AND ESCAPE FROM A POTENTIAL WELL

Mixing Warm and Cold Water

DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents

Math Numerical Analysis Homework #2 Solutions

Chapter Outline. Diffusion - how do atoms move through solids?

Transcription:

Heat equation examples The Heat equation is discussed in depth in http://tutorial.math.lamar.edu/classes/de/intropde.aspx, starting on page 6. You may recall Newton s Law of Cooling from Calculus. Just kidding. In case you don t, here goes: An object changes temperature at a rate proportional to the difference between its temperature and the temperature of the surrounding medium. As an equation: dy kt ( 0 y) dt for an object with temperature y(t) in a medium of constant temperature T 0 and thermal constant k. And in case you don t recall how to solve this, you might want to seek help from a professional (hint: better be a professional math teacher, because ln is involved). This N s LoC treats the object as a point body (aren t all Newtonian objects point bodies?) immersed in a uniform medium (aren t all media uniform?) What s different about the heat equation we write as a PDE? The temperature function u(x, t) (or u(x, y, t) in two spatial dimensions) is the temperature within an object as a function of both position and time. Heat flows within an object in a process known as conduction, in response to an internal temperature gradient, which we represent in one dimension by du/dx and in two dimensions as some combination of du/dx and du/dy: Let q(x, t) be the heat flow function (aka heat flux) within the object: In one u dimension, we have the flux equation qxt (, ) for a constant. x Heat flows down the temperature gradient: When the gradient is +, temperature increases with increasing x position and heat flows to the left (towards decreasing x). When the gradient is negative, temperature decreases with increasing x and heat flows to the right.

This gives rise to Fourier s Law of Conduction, which states that the time rate of change in the temperature function u is proportional to the negative gradient of the heat flow, -dq/dx. Putting it all together, we obtain the Heat Equation: uxt (, ) q u k x x or u t = - ku xx. See http://www.math.duke.edu/education/ccp/materials/engin/pdeintro/pde1.html and subsequent pages (accessed from the intro page with the button). Be sure you look through all 4 parts of the exercise; answer the two questions in the summary. In more general terms, the function u(x,t) is a solution to the heat equation if it satisfies u the PDE k q( x, t). The constant k is the thermal diffusivity and the function x q(x, t) represents any external heat source (positive for heat in) or sink (negative for heat out). The function u(x,t) describes the temperature distribution in the one-dimensional material as functions of position and time. Here is a Mathematica expression for solving the one dimensional heat equation for a rod of length 1 over a time interval of 5 sec. In this expression, the initial condition is the temperature function at t = 0, f[x]. A heat supply/sink function q[x,t] (positive for heat flow in, negative for heat flow out) can be specified outside NDSolve[ ]. The thermal diffusivity constant is arbitrarily set at 0.01. The ends of the rod are kept at temperature = 0, as specified by the twin BCs u[0,t] == 0 and u[len,t] == 0. Sample output (q[x] = 0): To produce this output, the initial temperature function f[x] was a half cycle of a sinusoid with a peak temperature of 100 o at x = 0.5. Note how the time-decaying exponential takes over and the temperature

function flattens out. Note the snazzy color scheme. You can also try a different looking color scheme by specifying We can obtain the exponential decay rate, even though u[x, t] is an output of NDSolve[ ]: FindFit[ ] neatly generates the required exponential decay with time, using the temperatures at x =.5, providing a value for the exponent b. Now suppose there is a nonzero q[x] external source function. Let s put a gentle flame at the middle of the bar: Here is the resulting 3D plot of the solution: Not surprisingly, the heat source in the center kept the central temperature from decreasing as rapidly as above. 3

And here our center heat source is turned into a sink, representing heat flow out of the onedimensional system: The temperature now rapidly cools to well below 0! Make sure you see that this is one dimensional (x only) as a function of time! Problems 1. Try a similar heat flow model (cold boundaries, hot middle) for a variety of thermal diffusivities (it was 0.01 in the above).. Investigate different initial temperature distributions with no external heat flow. 3. What happens if there are nonzero q functions? Start with a hot middle and allow positive heat flow. Try one side with positive heat flow, the other side with negative heat flow. Note that we also can produce slices of temperature vs. time: 4

Samples shown; the actual result of GraphicsRow would be three temp vs time graphs, side-by-side. Here is a slice at a constant time: temp as a function of x This is a good place for Animate[ ]. See the worked examples 1-5 on pages 9-44 in Dawkins PDE chapter. Heat equation with a varying boundary condition Evaluate and plot the following pair of two heat equations, paying particular attention to the behavior of solutions u(t, x) at x = 0. sol1= NDSolve[{D[u[t,x],t]==D[u[t,x],{x,}], u[0,x]==0, u[t,0]==sin[t], u[t,5]==0}, u[t,x],{t,0,10},{x,0,5}]//flatten sol=ndsolve[{d[u[t,x],t]==d[u[t,x],{x,}], u[0,x]==1, u[t,0]==cos[t], u[t,5]==1}, u[t,x],{t,0,10},{x,0,5}]//flatten 5

Diffusion The same PDE is also known as the diffusion relationship, governing the rate of spread of a substance throughout a medium: Mixtures of different chemicals, osmosis, as well as the spread of biological characteristics in otherwise stable populations. u D, where D is the diffusivity constant and u(x,t) is the concentration of the x diffusing substance. Note that if the concentration increases in time ( 0 ), the concentration gradient ( x ) must also be increasing ( u ( ) 0). At steady state x x x u (equilibrium), 0 0 const x x Diffusion is usually a smoother-out-er: if you add salt to water, the salt diffuses throughout the water until equilibrium is reached. Coupled diffusion models or How the leopard got its spots (ok, they re giraffes, not leopards) In a two-chemical system, diffusion can produce feedback, leading to unstable systems (or the evolutionary development of zebra stripes or spots on leopards or patches on giraffes). These are known as stimulator-inhibitor models, which have common characteristics: Suppose chemical U 1 produces melanin in the skin and chemical U inhibits it; excess of stimulator also stimulates production of inhibitor; diffusion rates for the two chemicals differ. Let the concentrations of stimulator and inhibitor be given by u 1 = u 1e + 1, u = u e +, where the subscript e represents equilibrium concentration (when 1 = = 0 and 1 0 ). In a linear model, we could specify that for small deviations from 1 equilibrium, au1 bu, cu1 du (for constants a, b, c, d), but this neglects 6

the effect of diffusion. To include differences in diffusion, we have two additional constants and the stimulator-inhibitor diffusion relationship: u u u u x x 1 1 au1 bu D1, cu 1 du D These kinds of equations were first described by Alan Turing (the Alan Turing if you don t know the name, rent a copy of Enigma or go see The Imitation Game) and elaborated by J. Maynard Smith. See http://www.genetics.org/cgi/content/full/168/3/1105. An interesting case occurs when all of the following conditions exist: a > 0 and c > 0: As stimulator concentration rises above equilibrium, the rates of production of both stimulator and inhibitor also increase; b < 0: As inhibitor concentration rises, the rate of production of stimulator decreases; and D > D 1 : Inhibitor diffuses faster than stimulator. Given the right parameters, a small change from equilibrium will lead to pronounced peaks and troughs in the concentrations that do not smooth out with time. Hence: spots on a giraffe! But the solutions of these coupled systems have to wait for finite difference techniques.. 7