Skip to content

yahya-ansariii/Convection-Diffusion-1D-Steady-State-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convection Diffusion-1D-Steady State solver

Python code for Convection Diffusion in 1 Dimension Steady State

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

governing equation

The Analytical solution is given by

analytical solution

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.

Motivation

To learn Python programming and use python packages.

Dependencies

Output

User input data :

input

Solution which is printed in tabular form :

table

New window of graph is showed (close graph to continue) :

quit without export

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