Read CD.pdf in the repository to understand the Convection Diffusion 1D steady state. If you want to study about Finite Volume Methods in detail then refer 'An Introduction to Computational Fluid Dynamics - The Finite Volume Method' by H K Versteeg and W Malalasekera.
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 Analytical solution is given by
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 steady state convection diffusion across the length only.
To learn Python programming and use python packages.
-
Python 3.9.5
-
Pandas 1.2.4
-
Openpyxl 3.0.7
-
Matplotlib 3.4.2
User input data :
Solution which is printed in tabular form :
New window of graph is showed (close graph to continue) :
Export result to output folder :
Note : Previous saved result will be overwritten so copy the previous result to some other folder.