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
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.
To learn Python programming and use python packages.
User input data :
Solution which is printed in tabular form :
Export result to output folder :
Note : Previous saved result will be overwritten so copy the previous result to some other folder.