11.07.2015 Views

Modeling Tools for Environmental Engineers and Scientists

Modeling Tools for Environmental Engineers and Scientists

Modeling Tools for Environmental Engineers and Scientists

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

In the example shown, a three-dimensional contour plot with 10 contoursis chosen, <strong>and</strong> the other three options are commented out by the percent (%)sign. In line 33, the hold on comm<strong>and</strong> tells MATLAB ® to keep the settingsthe same <strong>for</strong> all the calculations specified under the <strong>for</strong> statement. To run thiscode, the user has to type in the call specifying the name of the M-File withthe arguments <strong>for</strong> MATLAB ® to execute the code in that file. The resultingplots in Figure 9.30 show the spatial distribution of the pollutant at the groundlevel at various times, as the puff is carried away by the wind.This example illustrates some of the mechanics involved in runninga MATLAB ® code interactively. However, <strong>for</strong> users not familiar with theMATLAB ® environment, this may not be intuitive <strong>and</strong> easy to adapt. Forexample, accessing the M-File or modifying it to pick the desired type of plot,or changing the grid sizes, etc., requires some familiarity with the MATLAB ®environment. MATLAB ® includes tools to create a user-friendly GUI throughwhich a novice can intuitively run MATLAB ® files interactively, by clickingbuttons <strong>and</strong> entering inputs through dialog boxes. Such an interface will beincluded in the next example, where the plume model is illustrated.9.11 MODELING EXAMPLE: AIRPOLLUTION—PLUME MODELIn this example, the computer implementation of the plume model to predictspatial concentrations resulting from a continuous source of air pollutantis illustrated. Again, the well-known Gaussian Dispersion Model <strong>and</strong> its solutionproposed by Pasquill <strong>and</strong> Gif<strong>for</strong>d are used here. The objective is todevelop a model incorporating a user-friendly interface <strong>for</strong> novices to run themodel under various scenarios <strong>and</strong> generate plots to aid in visual appreciation<strong>and</strong> analysis of the problem.The following equations describe the steady state, spatial distribution,<strong>and</strong> ground-level concentrations of nonreactive gaseous or aerosol (diameter< 20 µm) pollutants emitted by a stack of effective height, H:Spatial distribution:MC(x,y,z) = 2πσ yσ z U exp – 2yGround-level distribution (z = 0):2σ2 – (z – H22σyC(x,y,z) = πσMz) 2 exp – 2yyσ z U + exp – 2y2Hσ2 – 2 σy22 z2σ2 – (z + Hz2σy) 22where M is the mass rate of emission, U is the mean wind velocity in the x direction<strong>and</strong> σ y <strong>and</strong> σ z are the horizontal <strong>and</strong> vertical dispersion coefficients.© 2002 by CRC Press LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!