Beruflich Dokumente
Kultur Dokumente
Introduction.............................................................................................................................................1
Methods..................................................................................................................................................1
Results.....................................................................................................................................................2
Conclusions..............................................................................................................................................3
Introduction
In this exercise, a concentration formula based on two variables, time and the x direction is calculated for
a set of different values of t = 0.001,0.01,0.1, and 1. The diffusion coefficient used for this example is D =
1 and the concentration C0 is 1. After obtaining all the values for these times, the results are plot on a C
vs. X graph.
Methods
In this part of the exercise, all the MatLab commands needed to accomplish the task are presented and
commented at almost every line.
The main feature of this code is the use of two "for" loops to perform the desired calculations.
end
Results
Next, the results already the concentration stored in matrix C is plot vs. the values store in the X array.
From the plot, it is also seen that we are not in the presence of a constant source as the concentration at
the vicinity of the wall decreases as the time progress. The results seem coherent with the scope of the
problem.