Project

Solving 2D Heat Conduction Equation using FD Schemes

AIM


The aim is to solve the 2D heat conduction equation using iterative schemes such as Alternating-Direction Implicit (ADI) Method, Alternating-Direction Explicit (ADE) Method, and Hopscotch Method and compare the result to get the most efficient scheme for this case.


Introduction

Consider a Rectangular plate of dimension a x b made up of some conductive material, the plate is kept in an atmosphere where all of its sides are exposed to some different temperature. To study the effect of these temperatures on the rectangular plate after a long time i.e. after a steady state reach is done using the 2D Heat conduction equation:

`(partialu)/(partialt)= knabla^2u` _ (1)

Where u is Temperature variable and k is material conductivity.

Fig1. Rectangular Plate of dimension a x b

Method

The domain considered in this experiment has a=w=1. And the Dirichlet boundary conditions are T1=100k, T2=200k, T3=300K and T4=400K. As shown in fig 2.

Fig 2. Domain & Boundary Conditions

The eq’n 1 is discretized using Finite difference schemes to solve the problem and to calculate the result computationally.

Finite Difference Schemes Used to solve the problem are:


Alternating-Direction Implicit (ADI) Method,

Alternating-Direction Explicit (ADE) Method and

Hopscotch Method

Each scheme is discussed in details below.

Alternating-Direction Implicit (ADI) Method

The ADI method only results in tridiagonal equations if it is applied along the dimension that is implicit. Thus, on the first step (a), it is applied along the one dimension and, on the second step (b), along another dimension as depicted in fig 3,

Fig 3. ADI Scheme

The discretized eq’n used is :

Alternating-Direction Explicit (ADE) Method

In this method, step 1 marches the solution from the left boundary to the right boundary. By marching in the direction, is always known, and consequently, can be determined “explicitly”. In a like manner, step 2 marches the solution from the right boundary to the left boundary, again resulting in an “explicit” formulation, since is always known

The above equation can be extended for 2-D also.

Hopscotch Method

It is an unconditionally stable explicit method. It also involves two steps. For step 1, is computed at each grid point (for which i+j+n is even) by the simple explicit scheme

For the second step, is computed at each grid point (for which i+j+n is odd) by the simple implicit scheme

Method

The above three Methods were used to compute the result using Python (For code see Appendix).

All the basic data is kept constant for all the three cases as mentioned below:

dx=dy=0.1 (unit)
dt=0.00001s
alpha=0.5
dt_stream = 0.002
epsilon_stream = 1.0e-2 ( For convergence)

Results & Discussion

Temperature Distribution and Compilation time

Fig 4. Temperature distribution using different schemes

As clearly seen there is no particular difference in the temperature distribution of all three schemes. All converge to the same result and hence in terms of temperature profile any of the one can be use.

But, the major difference in the scheme is of compilation time as shown in table 1:

Error Plots

Fig 5: Error per iteration graph of schemes

Fig 5 shows the plot of error/epsilon_stream plotted against the iteration, As seen all three are almost similar, and they are almost exponentially decreasing functions.

Conclusion

From the above results, it can be concluded that the ADE is the fastest scheme as it solves the equations in just 36.517s in this case and hence shows that the explicit scheme is faster than the implicit schemes. Whereas, as we know that explicit schemes become unstable at larger delta_t, implicit schemes are more useful in such cases, but for small delta_t explicit schemes are efficient
options.

Future Work

Comparison between more advance schemes can be done to get an efficient scheme even for larger delta_t.

Heat conduction with a crack in the domain can be done.

References

[1] Series in Computational and Physical Processes in Mechanics and Thermal Sciences by W.J. Minkowcycz and E.M. Sparrow

[2] Numerical Methods for Engineers by S.C. Chapra

[3] Dr. Gaurav Bhutani’s (Assistant Professor IIT Mandi) CFD Class notes.

Annex 1 ADE Method

Annex 2 ADI Method

Annex 3 Hopscotch Method

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.