**This project is a part of an Assignment submitted at Flowthermolab.**
1. Problem Statement:
Using n equally spaced cells and the central differencing scheme for convection and diffusion, calculate the distribution of φ as a function of x for:
- Case 1: u = 0.1 m/s,
- Case 2: u = 2.5 m/s, and compare the results with the analytical solution
- Case 3: recalculate the solution for u = 2.5 m/s with 20 grid nodes and compare the results with the analytical solution
Note:
1. Unique Work: Prepared Algorithm, Coded in MATLAB and Verification from the Analytical Calculations.
2. The problem statement mentioned has been taken from textbook, ' An Introduction to Computational Fluid Dynamics by Versteeg_Malalasekera_2edition'.
Tabel 1: Methodology Adopted
The Code was verified through analytical calculations and from the solution provided in the book. Prepared a generic code that has the capability to generate graph for values of the variable in the code as per user’s choice.
In Conclusion code work well with the analytical results. While it is important to note that on increasing the velocity number of nodes need to increased as required by the user for better accuracy but there is a threshold below which results will diverge to greater errors, set the values such that the error is minimal for maximum of the values as can also be interpreted from the values provided in the table.






