Skip to content

Python code to solve Transient Heat conduction (1D unsteady Heat conduction) | Explicit + Implicit + Crank Nicolson Scheme

License

Notifications You must be signed in to change notification settings

yahya-ansariii/TRANSIENT-1D-Unsteady-State-Diffusion-solver-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRANSIENT-1D-Unsteady State Diffusion solver

Python code for Transient 1 Dimension Unsteady State Heat Conduction

Read Transient.pdf in the repository to understand the Transient 1D unsteady state diffusion. The time step dt should be selected as per the condition mentioned in the notes Transient.pdf --> page 4 for Explicit, page 6 for Crank Nicolson.

Click on the following link to checkout the video to easily use this python code.

The governing equation used in the python code is

governing equation

The python code has all the necessary comments to understand the solver.

Note : In this solver cross sectional area is not required as we deal in one dimension only, so we measure unsteady heat conduction across the length only.

Motivation

To learn Python programming and use python packages.

Dependencies

Output

User input data :

input

Solution which is printed in tabular form :

table

Export result to output folder :

Note : Previous saved result will be overwritten so copy the previous result to some other folder.

export

License

Apache License 2.0

Author

Yahya Ansari

About

Python code to solve Transient Heat conduction (1D unsteady Heat conduction) | Explicit + Implicit + Crank Nicolson Scheme

Topics

Resources

License

Stars

Watchers

Forks