Professional Documents
Culture Documents
Assignment:
“MATLAB Code for Example 5.1, 5.2, 5.3:
1-D Steady State Diffusion with
Convection and no source.
Subject: Computational Fluid Dynamics.
Submitted by:
Fazal e Rabbi (MS- Process Engineering).
11-9-2022
1
Central, Upwind and Hybrid Schemes.
INTRODUCTION:
The involvement of convection as a transport mechanism can cause inaccuracies while evaluating
distribution of a transport property. As the diffusion term might become negligible if the velocity
is high. In the following examples, one-dimensional steady state diffusion with convection has
been evaluated for a transport property (v) with the given data. Different schemes have been
employed for different convective velocities in order to obtain valid results.
Results:
In order to overcome this problem, the upwind scheme was adopted, the MATLAB code for which
has been provided in the (.m file). As shown below, the results have been compared with the
analytical solution. However, the error margin is higher than acceptable. Hence, we will need to
improve upon this scheme.
Results:
Results: