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.

Currently available software packages suitable <strong>for</strong> authoring computerbasedmodels can be categorized into three distinct types: spreadsheet-basedapplications, equation solver-based packages, <strong>and</strong> dynamic simulation-basedpackages. Examples of packages falling into the three categories that areselected <strong>for</strong> illustration in this book are summarized in Appendix 7.1. In thischapter, some of the salient features of these example packages are outlined<strong>and</strong> illustrated by applying them in modeling the same problem.7.2 SPREADSHEET-BASED SOFTWARESpreadsheet-based software such as Excel ® , Quattro ® Pro 7 , <strong>and</strong> Lotus ®8 ,have been available <strong>for</strong> such a long time that their features <strong>and</strong> capabilitiesare almost identical. Even though spreadsheets were originally designed aselectronic accounting books <strong>for</strong> financial analysis, they have evolved intopowerful mathematical tools <strong>and</strong> have been successfully adapted by modelersto simulate a wide range of scientific <strong>and</strong> engineering phenomena. In a way,spreadsheet applications are to numbers what word processors are to text.A worksheet in a spreadsheet application takes a tabular <strong>for</strong>mat, consistingof columns, designated by alphabets, <strong>and</strong> rows, designated by numerals. Theintersection of any column (<strong>for</strong> example, column P) with any row (<strong>for</strong> example,row 6) <strong>for</strong>ms a cell, identified by its column heading <strong>and</strong> row number asP6 in this example. Users can click inside any cell <strong>and</strong> enter text, numericconstants or variables, built-in functions or logical expressions, or customequations, all of which in turn can use or refer to constants, variables, or evenfunctions <strong>and</strong> custom equations, contained in other cells. Custom equationscan be embedded in the cells by typing them directly on the screen using st<strong>and</strong>ardmathematical notations; the terms in the equations can refer to cells that,in turn, contain the constants, variables, functions, or other custom equations.Links between the cells are “live” in that any change entered into a cell willinstantly update the values of all the cells that depend on that cell as well asplots generated from those cells.Spreadsheets feature a wide range of built-in mathematical, statistical, <strong>and</strong>logical functions that users can enter into cells using st<strong>and</strong>ard mathematicalnotations with minimal syntax. They also contain built-in, menu-driven routines<strong>for</strong> storing, <strong>for</strong>matting, <strong>and</strong> sorting data; plotting graphs; per<strong>for</strong>ming trials<strong>and</strong> solutions; data analysis <strong>and</strong> curve fitting; exporting/importing data,etc. In addition, they also include an English-like scripting language thatadvanced users can adapt to write special purpose functions called “macros”7 Quattro ® Pro is a registered trademark of Corel Corporation. All rights reserved.8 Lotus ® is a registered trademark of Lotus Development Corporation. All rights reserved.© 2002 by CRC Press LLC

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

Saved successfully!

Ooh no, something went wrong!