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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Concentration [mg/L]Figure 7.3 Lake example modeled in Excel ® under unsteady state conditions.different <strong>for</strong>ms <strong>for</strong> different initial conditions <strong>and</strong> <strong>for</strong>cing functions, the completesolution must be known in advance to build models in Excel ® . Theequation processing engines in mathematical packages such as Mathcad ® cansolve differential equations in a general manner without the need to modifythe basic model. The <strong>for</strong>cing function in this example is defined to be a partialexponentially declining shutdown from 1080 to 500 lbs/day after sixyears. In Mathcad ® , this partial step shutdown is encoded in a simple statementas follows:W(t) = if(t > 6 * 365 * 86400, (1080 * e –0.005t + 500), 1080)which is very similar to the <strong>for</strong>mat used in the Excel ® spreadsheet package<strong>for</strong> logic statements.One of Mathcad ® ’s built-in Runge-Kutta procedures, rkfixed, is called tomodel the problem using the basic <strong>for</strong>m of Equation (7.1). This procedure is© 2002 by CRC Press LLC

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

Saved successfully!

Ooh no, something went wrong!