One-Dimensional Stefan Problem

Similar documents
Transactions on Engineering Sciences vol 5, 1994 WIT Press, ISSN

AIMS Exercise Set # 1

The Solution of Linear Systems AX = B

Chapter 2. Solving Systems of Equations. 2.1 Gaussian elimination

Appendix C: Recapitulation of Numerical schemes

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004

Determinants of 2 2 Matrices

Computational project: Modelling a simple quadrupole mass spectrometer

Ordinary Differential Equations

Theory, Solution Techniques and Applications of Singular Boundary Value Problems

30.3. LU Decomposition. Introduction. Prerequisites. Learning Outcomes

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

Section Partitioned Matrices and LU Factorization

Numerical Solution of Integral Equations in Solidification and Melting with Spherical Symmetry

9.6 Predictor-Corrector Methods

Math 471 (Numerical methods) Chapter 3 (second half). System of equations

The Plan. Initial value problems (ivps) for ordinary differential equations (odes) Review of basic methods You are here: Hamiltonian systems

Sequential Decision Problems

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

Example: x 10-2 = ( since 10 2 = 100 and [ 10 2 ] -1 = 1 which 100 means divided by 100)

TAU Solver Improvement [Implicit methods]

Final year project. Methods for solving differential equations

Scientific Computing: An Introductory Survey

arxiv: v1 [cond-mat.mtrl-sci] 24 Sep 2014

Gaussian Elimination and Back Substitution

CS 124 Math Review Section January 29, 2018

Finite Difference and Finite Element Methods

Jim Lambers MAT 610 Summer Session Lecture 2 Notes

2 Voltage Potential Due to an Arbitrary Charge Distribution

M.SC. PHYSICS - II YEAR

Getting Started with Communications Engineering

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

ANALYTICAL SOLUTIONS OF HEAT CONDUCTION PROBLEMS A THESIS SUBMITTED IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE DEGREE OF

Ordinary differential equations - Initial value problems

LAB 8: INTEGRATION. Figure 1. Approximating volume: the left by cubes, the right by cylinders

Physics 115/242 Comparison of methods for integrating the simple harmonic oscillator.

CS227-Scientific Computing. Lecture 4: A Crash Course in Linear Algebra

7.3 The Jacobi and Gauss-Siedel Iterative Techniques. Problem: To solve Ax = b for A R n n. Methodology: Iteratively approximate solution x. No GEPP.

Advanced Protein Models again: adding regulation

Lecture 9: Elementary Matrices

Exact and Approximate Numbers:

Ordinary Differential Equations II

Numerov s Method for Approximating Solutions to Poisson s Equation

Table of Contents. Foreword... Introduction...

The Chemical Kinetics Time Step a detailed lecture. Andrew Conley ACOM Division

Lecture 3 Numerical Solutions to the Transport Equation

30.5. Iterative Methods for Systems of Equations. Introduction. Prerequisites. Learning Outcomes

Ph 22.1 Return of the ODEs: higher-order methods

Grade 8 Chapter 7: Rational and Irrational Numbers

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Chapter 9b: Numerical Methods for Calculus and Differential Equations. Initial-Value Problems Euler Method Time-Step Independence MATLAB ODE Solvers

Chapter 11 ORDINARY DIFFERENTIAL EQUATIONS

12/1/2015 LINEAR ALGEBRA PRE-MID ASSIGNMENT ASSIGNED BY: PROF. SULEMAN SUBMITTED BY: M. REHAN ASGHAR BSSE 4 ROLL NO: 15126

A numerical study of SSP time integration methods for hyperbolic conservation laws

Homework and Computer Problems for Math*2130 (W17).

The Darcy-Weisbach Jacobian and avoiding zero flow failures in the Global Gradient Algorithm for the water network equations

Lecture 4: Numerical solution of ordinary differential equations

Numerical method for approximating the solution of an IVP. Euler Algorithm (the simplest approximation method)

Math 123, Week 2: Matrix Operations, Inverses

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF SCIENCE & HUMANITIES STATISTICS & NUMERICAL METHODS TWO MARKS

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Determinants and Scalar Multiplication

Solving Linear Systems of Equations

1 GSW Sets of Systems

Matrix Reduction Techniques for Ordinary Differential Equations in Chemical Systems

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

Flow of Particle-Laden Thin Films

Introduction to Chemical Engineering Computing, 2 nd edition, Bruce A. Finlayson, Wiley (2012)

Numerical Methods for Differential Equations

Numerical Methods. King Saud University

Exam 2, Solution 4. Jordan Paschke

1. Consider the initial value problem: find y(t) such that. y = y 2 t, y(0) = 1.

Lecture - 1 Motivation with Few Examples

A Hypothesis about Infinite Series, of the minimally centered variety. By Sidharth Ghoshal May 17, 2012

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Parallel Methods for ODEs

CS 257: Numerical Methods

Notes: Pythagorean Triples

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Lecture 12 (Tue, Mar 5) Gaussian elimination and LU factorization (II)

Quantitative Understanding in Biology Module IV: ODEs Lecture I: Introduction to ODEs

Math 252 Fall 2002 Supplement on Euler s Method

Polynomials; Add/Subtract

ENGINEERING MATHEMATICS I. CODE: 10 MAT 11 IA Marks: 25 Hrs/Week: 04 Exam Hrs: 03 PART-A

Numerical Linear Algebra

Problem 1: Toolbox (25 pts) For all of the parts of this problem, you are limited to the following sets of tools:

Honours Advanced Algebra Unit 2: Polynomial Functions What s Your Identity? Learning Task (Task 8) Date: Period:

Three-Tank Experiment

An Introduction to NeRDS (Nearly Rank Deficient Systems)

My Favorite Problems HAROLD B. REITER. Mu Alpha Theta Annual Convention Denver, Colorado. Visit my website:

Initial value problems for ordinary differential equations

Review Questions REVIEW QUESTIONS 71

CHAPTER 11. SEQUENCES AND SERIES 114. a 2 = 2 p 3 a 3 = 3 p 4 a 4 = 4 p 5 a 5 = 5 p 6. n +1. 2n p 2n +1

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Conceptual Explanations: Simultaneous Equations Distance, rate, and time

Introduction to PDEs and Numerical Methods Tutorial 5. Finite difference methods equilibrium equation and iterative solvers

ABE Math Review Package

Transcription:

One-Dimensional Stefan Problem Tracy Backes May 5, 2007 1 Introduction Working with systems that involve moving boundaries can be a very difficult task. Not only do we have to solve the equations describing the system, but we also have to find the region the system occupies at each step. One of the common moving-boundary classes, Stefan problems are systems of diffusion or heat-conduction where the boundaries between the different phases in the system change over time. For example, the solidification of water into ice can be formulated as a Stefan problem. Unfortunately, because Stefan problems can become so difficult to handle, there is often no way to analytically solve the system. Therefore, mathematicians have spent a lot of time exploring which numerical methods are most practical for working with these problems. As we shall soon see, even the case of freezing water can quickly become tricky to deal with. Therefore, for my project I focused on the very simplified case of a freezing liquid. I decided to focus on a very symmetric problem so that I could essentially describe the system one-dimensionally. In order to solve this system I based my work off of a paper by researchers Cauldwell and Chiu. 2 Background Consider a solid pipe of radius a running through an infinite volume of liquid. If the liquid is initially at freezing temperature T f and the pipe is maintained at some colder temperature T s, the liquid will begin to solidify around the pipe. A freezing front moves progressively through the liquid such that behind the front the material is in the solid phase, while ahead of the front the material remains in the liquid phase. We further assume that the solid pipe maintains constant temperature T s, while the material ahead of the front maintains constant temperature T f ; however, we allow Newton heat loss at the freezing front. As illustrated in Figure 1, the system is radially symmetric, so the distance to the freezing front can be described as R(t), the radial distance from the center of the cylinder. For the purposes of this paper, we are interested in determining the motion of this front. 1

The moving-boundary problem for this system becomes T t = T κ 2 r 2 + κ T, a < r < R(t), t > 0 (1) r r T (r, t) = T f, r R(t), t > 0 (2) T (r, t) = T s, r = a, t 0 () ( ) T K = Lρ dr(t) (4) r dt R(t) where T (r, t) is the temperature of the solid layer at depth r and time t, κ is the thermal diffusivity, K is the conductivity, ρ is the density and L is the latent heat of freezing for the liquid. To make the numerical methods easier, we non-dimensionalize the variables using the following substitutions z = r/a, tau = κt/a 2, α = L/c(T f T s ), (5) U = (T T s )/(T f T s ), (6) where α is what is commonly referred to as the Stefan number. Using (5) and (6), our new boundary value problem becomes U τ = 2 U z 2 + 1 U, 1 < z < Z(t), τ > 0 (7) z z U(z, τ) = 1, z Z(τ), τ > 0 (8) U(z, τ) = 0, z = 1, τ 0 (9) ( ) U = α dz(τ), Z(0) = 1. (10) z dτ Z(τ) In order to determine the behavior of the freezing front, Z(τ), we must solve this movingboundary system. Choosing a Method In order to solve the moving boundary system (7)-(10) I turned to literature on the cylindrical freezing problem. In 1958 Goodman established a method based on satisfying the integral form of the heat conduction equation (Hill, 106). This heat balance integral method (HBIM) has since been widely adopted in literature. Although it has some hangups (especially when it comes to approximating a temperature profile for the system), it is overall a very useful approach. While researching the HBIM I came across a paper by Caldwell and Chiu that extended Goodman s original method to also include spatial sub-divisions. I decided to explore the approach they outlined in their paper because it seemed like I could apply many of the concepts we had seen earlier in class. 4 Extended Heat Balance Integral Method The basic idea behind the HBIM is to integrate the heat flow equation and substitute in an approximate temperature profile. Solving this system yields an estimate for the 2

Figure 1: Diagram of Cylindrical System

motion of the freezing front. However, as I mentioned earlier, choosing an appropriate temperature profile can be a little tricky. After reviewing extensions to the HBIM by several other groups, Caldwell and Chiu propose performing HBIM with a linear temperature profile while also including spatial subdivisions. Upon applying spatial subdivisions, the problem becomes a system of first-order, non-linear differential equations. Solving this new system eventually yields the location of our freezing front Z(τ). In order to implement these spatial divisions, we first divide the temperature into n equal intervals and assume that U = i n + z Z i n(z i+1 Z i ), Z i < U < Z i+1. (11) Then, following the general idea of the HBIM, we integrate over each subrange Z i, Z i+1, and replace U with the temperature profile we assumed in (11). For the cylindrical case this results in the following n heat balance equations, d Z i+1 Zi dτ Z i+1 Z i d dτ Z n Z n1 Z n Z n1 + αnz 2 n Z i = 6 Z i+1 Z i Z i+1 Z i+2 Z i+1 Z n1 = 6, Z n Z n1, i = 0, 1,..., n 2 where Z 0 (τ) = 1 for all τ. This system can in turn be rearranged to get a system of first-order differential equations which describe the depth of the freezing front, Z i ( 1 6 Ż 1 = 2Z 1 + 1 Z 1 1 6Z ) 1 (12) Z 2 Z 1 ( ) 1 Ż i = 6Zi1 2Z i +Z i1 Z i Z i1 6Z i Z i+1 Z i (Z i + 2Z i1 )Żi 1, (1) 1 Ż n = 2(1 + αn)z n + Z n1 i = 2,,..., n 1 ( 6Zn1 Z n Z n1 (Z n + 2Z n1 )Żn1 ). (14) This system of differential equations can be easily solved using Euler s method, which is how I implemented it in my own program. The Caldwell and Chiu paper mentions using Euler s method, but they only publish the results they found using a fourth-order Runge-Kutta method. I decided to first try using Euler s method and then compare my results to theirs to see how well my program matched up. 5 Small Time Approximation In order to use Euler s Method (or even a Runge-Kutta method), it is necessary to have some starting approximation of Z i. However, there is a singularity at τ = 0, so we cannot start at exactly Z(0) and must instead approximate Z at some time τ close to 0. I decided to follow the same approximations used by Caldwell and Chiu to begin 4

started on my own implementation. For their small time approximation, they used the first four terms from a solution first given by Poots in 1962 Z i (τ) 1 + µ i,0 τ 1/2 + µ i,1 τ + µ i,2 τ /2. (15) However, Caldwell and Chiu advocate calculating each µ i,j by their new method instead of the derivation published by Poots. In order to do this, we must plug the small time approximation (15) into the system of equations (12)-(14). From here we can simplify to obtain a system of n non-linear equations for each set of the coefficients µ i,0, µ i,1 and µ i,2. These resulting systems of equations follow in Appendix A. Fortunately, we can exploit the nature of this system of non-linear equations to help us solve for the coefficients. It turns out that the Jacobian matrix J of each set of equations is tridiagonal J = f 1 f 1 µ 1,j µ 2,j 0......... 0 f 2 µ 1,j f 2 µ 2,j f 2 µ,j 0...... 0 0... f f µ 2,j µ,j... 0.............................. 0......... 0... f n2 0......... 0 µ n2,j f n2 µ n1,j 0 f n1 f n1 f n1 µ n2,j µ n1,j µ n,j f n f n µ n1,j µ n,j. (16) Therefore, it makes sense to use Newton s method to solve our non-linear systems. We rewrite our system in terms of the linear system J(µ (k) )µ (k+1) µ (k) = f(µ (k) ) (17) and repeatedly solve the system until the approximate solution is as accurate as desired; in other words, we iterate until µ (k+1) µ (k) is less than some ɛ. In order to use Newton s method, we need to actually find the Jacobian, which we can approximate using a finite forward-difference formula of order O(h). Furthermore, since the Jacobian is tridiagonal, we can solve (17) quickly using LU-factorization. In my implementation, I used Matlab s built in function to factor J into the product of lower- and upper-triangle matrices L and U. The benefit of doing this is that (17) can then be quickly solved through forward and backward substitution. First using left division by L, we solve for Uµ LU µ = f, (18) Uµ = y, (19) Ly = f (20) which Matlab does by forward substitution since L is a lower-triangular matrix. Next we use left division to solve equation (19) for µ. Matlab uses backwards substitution since U is an upper-diagonal matrix. 5

Unfortunately, the systems of equations for each set of coefficients µ i,0, µ i,1 and µ i,2 are dependent on eachother. Therefore we actually need to solve for µ i,0 before solving for µ i,1 and we need to solve for µ i,2 before solving for µ i,1. Therefore, we have to implement Newton s method and LU-factorization three separate times in order to calculate all of the coefficients. 6 Results The first part of the code that I ran was my calculation of the coefficients for the small time approximation. I used the same value for α as the Cauldwell and Chiu paper so that I could compare results. My coefficients agreed up to the eighth decimal place with those that Cauldwell and Chiu published. My coefficients for n = 1 through 8 division follow in Table 1. Table 1: The coefficients I calculated for the small time equation, where n is the number of subdivisions. i µ i,0 µ i,1 µ i,2 (n = 1) 1 1.1547 0054-0.950 617 0.79 0962 (n = 2) 1 0.5671 1246-0.2768 077 0.220 4798 2 1.188 0996-0.2866 4148 0.2180 5279 (n = 4) 1 0.2796 2749-0.1592 4187 0.157 0464 2 0.5648 008-0.2505 6275 0.198 6550 0.868 0502-0.281 9427 0.2154 866 4 1.2088 0228-0.2451 47 0.182 9656 (n = 8) 1 0.186 149-0.0850 7646 0.077 1180 2 0.2778 9601-0.1524 282 0.1264 258 0.4192 280-0.204 1228 0.169 1618 4 0.5641 297-0.2418 497 0.1892 2724 5 0.714 857-0.2650 222 0.204 8651 6 0.8722 1745-0.2725 8662 0.2061 4177 7 1.0405 9242-0.261 2254 0.1948 7497 8 1.227 1166-0.2247 2875 0.1651 966 The second part of the code that I ran was for determining the location of the freezing front. Because I implemented Euler s method instead of a fourth-order Runge-Kutta I expected a few more discrepancies between my results and the results published by Cauldwell and Chiu. However, my implementation yielded surprisingly similar results. As can be seem in Table 2, I found that my values agreed with their results up until about the fifth significant digit. 6

Table 2: Z(τ) for n = 8, α = 1, and a stepsize of 0.000025. τ Cauldwell and Chiu Euler s Method Error (Our Implementation) 0.010 1.1202 8907 1.1202 8907 0.0000 0000 0.015 1.1467 8814 1.1468 0076 0.0000 1262 0.020 1.1689 887 1.1690 0700 0.0000 186 0.025 1.1884 460 1.1884 6827 0.0000 2197 0.00 1.2059 5868 1.2059 8267 0.0000 299 0.05 1.2219 9850 1.2220 276 0.0000 2526 0.040 1.268 778 1.268 9987 0.0000 2609 0.045 1.2507 98 1.2508 2497 0.0000 2664 0.050 1.269 2779 1.269 5477 0.0000 2698 0.055 1.276 7954 1.2764 0674 0.0000 2720 0.060 1.2882 4476 1.2882 7208 0.0000 272 0.065 1.2995 9591 1.2996 229 0.0000 278 0.070 1.104 9172 1.105 1910 0.0000 278 0.075 1.209 8055 1.210 0791 0.0000 276 0.080 1.11 0282 1.11 011 0.0000 2729 0.085 1.408 2680 1.409 1989 0.0000 909 0.090 1.50 79 1.504 0644 0.0000 2711 0.095 1.595 879 1.596 149 0.0000 2700 0.100 1.685 408 1.685 6726 0.0000 2688 7 Conclusion Overall, I was satisfied with the way my model turned out. I began by reading about some of the most basic Stefan problems and the difficulties associated with them. It was really interesting to then go to a recent paper and read how Cauldwell and Chiu had handled the specific case of cylindrical freezing. I also found it really rewarding that I was able to engage with their paper on a deep level. Before I took this class, I would not have understood several of the finer points of the paper, and I doubt that I would have been able to implement my program. I also liked that this problem involved several different concepts we had learned in class since numerical methods were needed for both the overall solution and the calculation of the small time coefficients. 8 Appendix A: Small Time Coefficients In order to find the system of equations, we must plug the small time approximation (15) into the system of equations (12)-(14). From here we can simplify to obtain a system of n non-linear equations for each set of the coefficients µ i,0, µ i,1 and µ i,2. These equations follow below. I ve written them in the form f i = f(µ i,j ) = 0, (and f(µ i,j ) is the function we take the Jacobian of in the small time approximation section). 7

In the case where n = 1 f 0 = 2 1 + 2α µ 1,0 f 1 = 8 (1 + α) 9 (1 + 2α) 2 µ 1,1 f 2 = 80 (1 + α) 2 81 (1 + 2α) 7/2 µ 1, When n > 1, there are separate systems. The coefficient µ i,0 is defined by f 0 (i) = 4 4 µ 1,0 4 4 µ i,0 µ i1,0 the coefficient µ i,1 is defined by µ 2,0 µ 1,0 µ 1,0, i = 1 µ i+1,0 µ i,0 µ i1,0 µ i1,0, i = 2,..., n 1 4 µ n,0 µ n1,0 µ n1,0 (1 + 2αn)µ n,0, i = n µ2,1 µ 1,1 f 1 (1) = 6 (µ 2,0 µ 1,0 ) 2 µ 1,0 f 1 (i) = 12 µ 2,0 µ 1,0 µ 1,1 µ 1,0 µ i1,0 µ i,0 µ i1,0 µ i,1µ i1,1 (µ i,0 µ i1,0 ) 2 µ 2 1,0 µ 1,1 µ i,0 µ i+1,0 µ i,0 + µ i+1,1µ i,1 (µ i+1,0 µ i,0 ) 2... 6(µ i,1 + µ i1,1 ) µ i,0 (2µ i,0 + µi 1, 0) + µ i1 (µ i,0 + 2µ i1,0 ) f 1 (n) = µ 12 n1,0 µ n,0 µ n1,0 µ n,1µ n1,1 (µ n,0 µ n1,0 (6 + 12αn)µ ) 2 n,1 6µ n1,1... µ n,0 (2 + 6αn)µ n,0 + µ n1,0 µ n1,1 (µ n,0 + 2µ n1,0 ) and the coefficient µ i,2 is defined by 8

f 2 (1) = f 2 (i) = f 2 (n) = µ 4 2,2 µ 1,2 (µ 2,0 µ 1,0 + µ 1,0(µ 2,1 µ 1,1 ) ) 2 (µ 2,0 µ 1,0 (µ 2,1µ 1,1 ) 2 ) 2 (µ 2,0 µ 1,0 µ 1,1 ) µ 2,0 µ 1,0 + µ2 1,1 µ 1,0 µ 1,2 µ 2 1,0... 2µ 1,0 µ 1,1 µ 1,2 µ 12 i1,1 µ i,0 µ i1,0 µ i1,0(µ i,1 µ i1,1 ) (µ i,0 µ i1,0 + (µ i,1µ i1,1 ) 2 ) 2 (µ i,0 µ i1,0 µ i,2µ i1,2 ) (µ i,0 µ i1,0 µ i,1 ) 2 µ i+1 µ i,0 +... µ i,0 (µ i+1,1 µ i,1 ) (µ i+1 µ i,0 ) 2 (µ i+1,1µ i,1 ) 2 (µ i+1 µ i,0 ) + µ i+1,2µ i,2 (µ i+1 µ i,0 ) 2... 9(µ i,2 + µ i1,2 ) µ i,0 (2µ i,1 + µ i1,1 ) µ i1,1 (µ i,1 + 2µ i1,1 )... 2µ i1,1 (2µ i,0 + µ i1,0 ) 2µ i1,1 (µ i,0 + 2µ i1,0 ) µ 12 n1,0 µ n,0 µ n1,0 µ n1,0(µ n,1 µ n1,1 ) (µ n,0 µ n1,0 + (µ n,1µ n1,1 ) 2 ) 2 (µ n,0 µ n1,0 µ n,2µ n1,2 ) (µ n,0 µ n1,0... ) 2 (9 + 18αn)µ n,2 9µ n1,2 2µ n,0 (2 + 6αn)µ n,0 + µ n1,0 2µ n1,1 (µ n,0 + 2µ n1,0 )... µ n,0 (2 + 6αn)µ n,1 + µ n1,1 µ n1,0 (µ n,1 + 2µ n1,1 ) where i = 2,..., n 1 References C C Caldwell J, Chiu CK. Numerical solution of one-phase Stefan problems by the heat balance integral method, Part I cylindrical and spherical geometries. Communications in Numerical Methods In Engineering 2000; 16:569-58. Caldwell J, Chiu CK. Numerical solution of one-phase Stefan problems by the heat balance integral method, Part II special small time starting procedure. Communications in Numerical Methods In Engineering 2000; 16:585-59. H Heath MT. Scientific Computing: an Introductory Survey, WCB/McGraw-Hill, 1997. H Hill JM. One-dimensional Stefan Problems: an Introduction, Longman: London, 1987. 9