19.09.2015 Views

Modeling

R184_CHI_Rules

R184_CHI_Rules

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

10 Rules for Responsible <strong>Modeling</strong><br />

C Compute evaporation loss.<br />

C=====================================================================<br />

IF(METRIC.EQ.1.AND.STORE.GT.0.0) QQEV(I)=AREA*E(MONTH)/1036800.0<br />

IF(METRIC.EQ.2.AND.STORE.GT.0.0) QQEV(I)=AREA*E(MONTH)/8.64E7<br />

STORE1 = STORE - QQEV(I)*DS<br />

IF(STORE1.LE.0.0) THEN<br />

QQEV(I) = STORE/DS<br />

STORE1 = 0.0<br />

ENDIF<br />

C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br />

CALL INTERP(SST,SDE,JINT,STORE1,DEPTH)<br />

C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br />

2700 IF(NP.LE.0) GO TO 5000<br />

IF(IROUTE(I)) 4000,4000,3000<br />

C=====================================================================<br />

snip<br />

Following development of the source code, the program is debugged and<br />

compiled into executables and then linked into an executable (.EXE) program<br />

that can be run on certain hardware and operating systems, often a task in itself.<br />

When run, the program computes a solution that steps out in time, a class of<br />

problem referred to as initial value problems. At each step there is an iteration<br />

to solve the equations.<br />

Summary: We have conveniently dodged the vast subject of numerical<br />

analysis, which fits between Step 3, derivation of the fde's, and Step 4,<br />

development of the executable program. Nevertheless the above description<br />

describes how our models are typically built. It is a creative endeavor often<br />

fraught with error from beginning to end, and results in very long codes<br />

(SWMM44GU has about 50,000 lines of code including 15,000 comment lines,<br />

while the shell PCSWMMGIS2002 alone probably runs to over 200,000 lines).<br />

The creative art in programming models is not well appreciated by the<br />

public, who may consider engineers to be pedestrian and unimaginative. In the<br />

long, dry code, that initial, conceptual, brief spark of creative genius is key.<br />

1.4 When to use a model<br />

Models are used to supply or fill in missing data or information. As a design<br />

tool, a WSM for example usually provides credible information about the<br />

relative performance of alternate arrangements of storm water management<br />

facilities. Analysis of the information provides knowledge of the various<br />

systems. As stated earlier, if the engineering community had innate knowledge<br />

of the long-term environmental performance of proposed large, complex, urban<br />

drainage and pollutant removal systems (and if the engineers were infallible),<br />

then modeling would of course be unnecessary. But urban storm water drainage<br />

systems are sometimes both extensive, incorporating more conveyances and<br />

devices than can be comprehended, and sometimes exceedingly complicated,

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

Saved successfully!

Ooh no, something went wrong!