Skip to content

Solving the transient heat equation using finite difference method in python

License

Notifications You must be signed in to change notification settings

subhamkd/heat_equation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heat_equation

Python script for solving the transient heat equation in 2D using finite difference method.
The script uses explicit forward euler time stepping with central differencing for space. The results are saved after a desired number of timesteps as .csv files in a new folder named 'Results'.
The saved results are used to make an animation of the transient behaviour, which is saved as a gif in the Gifs folder

Heated Square example

simulating the heat distribution in a 1x1 square domain initially at 300K, with the top and right boundry maintained at 100K.

Random heated square example

Simulating a square with different temperatures at different points (between 0 and 300), with insulated boundaries and letting the temperature distribution go towards equilibrium.

About

Solving the transient heat equation using finite difference method in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published