Skip to content

Latest commit

 

History

History
51 lines (27 loc) · 1.42 KB

File metadata and controls

51 lines (27 loc) · 1.42 KB

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