Environmental Engineering Reference
In-Depth Information
Fig. 20.8 The transport GUI, with output for a selected parameter set
In the sequel we follow the procedure outlined in the preceding sub-chapter. The
concentration values are calculated from the analytical solution given in Chap. 6.
Here the vector of concentration values is computed for each of ten equidistant
locations along the model axis. After the calculation the corresponding curve
is plotted. The graphs are depicted in the second coordinate system, where all
graphics commands are directed after the axes(handles.taxes) command has
become effective.
An example view of the GUI with the computed result for an example data set,
including dispersion/diffusion, advection and degradation, is depicted by Fig. 20.8 .
The algorithm is surely not time-optimized, as all values of the concentration
matrix are calculated twice. On the other hand the computation algorithm is quite
effective with respect to computer storage. Only two 100-element vectors are used
aside from all other variables. The set-up of the GUI itself surely is the most time
consuming part in the M-file. However, for problems in one space dimension
performance questions are irrelevant, taking into account the performance of
today's computers. For problems in two space dimensions performance questions
may become relevant, in three dimensions they surely are.
At last we introduce some functionality to the pop-up menu. This is done within
the corresponding 'callback' function. Function header and added commands are
listed below:
Search WWH ::




Custom Search