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.

Because the ODEs are coupled, a numerical method has to be used. Further,the inputs are constants; hence, mathematical packages as well as dynamicsimulation packages can be used in this example. Models developed withMathcad ® <strong>and</strong> ithink ® are illustrated in the following sections.8.2.1.1 Mathcad ® ModelThe Mathcad ® model is shown in Figure 8.1. The model parameters arefirst declared in the top section of the sheet. Several parameters are enteredusing logical statements to switch their values depending on whether the calculationsare in the fill phase (t < tf) or the react phase (t > tf). The syntax ofthe logic statements in Mathcad ® is very similar to that in Excel ® .The differential equations governing the system are entered as a matrix inD, which is then fed to the built-in routine, rkfixed. The solution is returnedas a four-column matrix in Z, containing the time, biomass, substrate, <strong>and</strong> DOconcentrations as a function of time. Finally, the fourth column is plotted toshow the DO variation. Notice that in this model, the aeration is switched offduring the fill period by the following statements: Kla(t) = if(t

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

Saved successfully!

Ooh no, something went wrong!