/FVM-1D-Steady-State-Diffusion-solver-python

Python code for Finite Volume method 1D Steady State Diffusion

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

FVM-1D-Steady State Diffusion solver

Python code for Finite Volume Method for 1 Dimension Steady State Diffusion

Read FVM-1D.pdf in the repository to understand the finite volume method for 1D steady state diffusion. 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 Exact (Analytical) solution is given by

Exact 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 heat 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