Skip to content

ashish-kp/Diff_sims

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Diff_sims

Visualizations of some specific solutions of different differential equations.

Heat Equation in 1 Dimension

(A very beautiful and elegant explanation for the heat equation and its solution is given here

  • The heat diffusion equation gives us the temperature at every part of a conducting 1 dimensional material (specific to the current discussion), given we specify the initial condition, and the boundary conditions.
  • The thing to be noted here is that the differential equation has a doble derivative with respect to position and a single derivative with respect to time.
  • Hence, one can say that the curvature of the position function and the slope of the time function (of course, assuming one is able to write the solution as independent functions of position and time, which we can) are the key playing factors which determine how the temperature gets diffused, so to speak.
  • The co-efficient D is the thermal diffusivity constant, and here, can be thought of to be some positive constant. (Let's henceforth assume D = 1)

heat_eqn

The Gaussian

  • If the initial temperature distribution were to be in the form of a gaussian:

gauss

This function looks like a bell shaped curve centred at the origin. In other words, it tells us that at the very centre of the rod, the temperature is the highest, and as we move along in either direction it decreases very fast, and some distance from the centre, the temperature is almost zero. This ditribustion might be due to a source which is in contact with the conductor initially, exactly at the centre.

Laying off rigor (we haven't discussed about the boundary conditions here, but a gaussian converges rather rapidly as the magnitude of x increases, so essentially we can assume that the function tends to zero at its boundaries), the solution can be written in the following manner (setting certain constats to 1):

Soln

The denominator in the exponential part, actually tells us how much spread out the bell shape is, the higher it's value, more spread out it will be. The factor multiplied in the beginning is a normalizing factor, which makes sure that the energy remains constant at all times.

Hence, intuitively, we can see that as time increases, the temperature function smooths out.

  • The above solution is by no means accurate but it helps us understand the behavior.

  • One more thing to be noted, is that as the heat starts spreading, it takes more and more time for it to move farther. This is because temperature is an axponentially decaying function of time. Link to simulation here

About

Visualizations of some specific solutions of different differential equations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages