Run TUFLOW From a Batch-file: Difference between revisions

Content deleted Content added
Rachel (talk | contribs)
Rachel (talk | contribs)
Line 238:
 
===Looping in a batch file using scenario logic===
Sometimes when using different scenarios, it is useful to run a specific set of events for one scenario but other events for a different scenario.<br>
This can be automated within looped batch files using a bit of logic.<br>
In the the example below there is model with defended and undefended scenarios. The defended scenario needs to be run for the 20, 100 and 200 year events but the undefended scenario is only run for the 100 year event. All models are run for the hr and 3hr critical durations.<br>
The below batch file also uses the looping up to a certain number of runs, as seen in the point above.<br>
To customize this script, alter the location of the TUFLOW executable, the name of tcf and the scenarios that you would like to run (Refer to 'Set A==', 'Set C==' and 'Set B=='). <br>
<pre>
Line 292:
endlocal
</pre>
 
 
===Shutdown on Completion===