Environmental Engineering Reference
In-Depth Information
The main module of the m-file looks as follows:
The execution part of the module consists of a single call of
pdepe
.Theprevious
command has to be made in order to specify the
options
structure for the next
command. The parameter set for the example appears behind the
options
-parameter
in the
pdepe
call. The results are stored on matrix
c
.
The function modules may be located in the same m-file behind the main
module. As a result of the
plot
command one obtains
breakthrough curves
shown in Fig.
4.11
. Breakthrough curves result from plotting concentration vs
1
0.8
0.6
0.4
0.2
0
0
0.5
1
1.5
2
2.5
3
3.5
4
time
Fig. 4.11 Breakthrough curves as result of the transport solution using MATLAB
pdepe
®