Tutorial M09: Difference between revisions
Content deleted Content added
Anne.Kolega (talk | contribs) |
|||
| (5 intermediate revisions by 3 users not shown) | |||
Line 68:
<li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_M09_HPC.bat''' in the '''Module_09\TUFLOW\runs''' folder.
<li>Update the batch file to reference the '''M09_5m_~e1~_~e2~_001.tcf''' and include event switches (-e1, -e2) defining event magnitude and event duration:<br>
<font color="blue"><tt>'''set'''</tt></font> <font color="black"><tt>exe</tt></font><font color="red"><tt>=</tt></font><font color="black"><tt>"..\..\..\exe\
<font color="blue"><tt>'''set'''</tt></font> <font color="black"><tt>run</tt></font><font color="red"><tt>=</tt></font><font color="black"><tt>start "TUFLOW" /wait</tt></font> <font color="orange"><tt> %exe%</tt></font> <font color="black"><tt> -b</tt></font> <br>
<font color="orange"><tt>%run% </tt></font> <font color="black"><tt> -e1 05p -e2 1hr M09_5m_~e1~_~e2~_001.tcf </tt></font> <br>
Line 97:
=Results=
When the model is finished, review the results:
:*<u>[[Tutorial_M09_Results_QGIS | QGIS - TUFLOW Viewer]]</u>
:*<u>[[Tutorial_M09_Results_QGIS_TUFLOW_Viewer_V2 | QGIS - TUFLOW Viewer V2]]</u>
<br>
Line 114 ⟶ 115:
<li>Add the following commands. Indentation is important in batch files, insert tabs to match the below spacing:<br>
<font color="blue"><tt>echo </tt></font> <font color="black"><tt>off</tt></font><br>
<font color="blue"><tt>set </tt></font> <font color="black"><tt>exe</tt></font><font color="red"><tt>=</tt></font><font color="black"><tt>"..\..\..\exe\
<font color="blue"><tt>set </tt></font> <font color="black"><tt>run</tt></font><font color="red"><tt>=</tt></font><font color="black"><tt>start "TUFLOW" /wait </tt></font><font color="orange"><tt>%exe%</tt></font><font color="black"><tt> -b</tt></font><br>
<br>
Line 127 ⟶ 128:
</ol>)<br>
Note: The 'AEP' and 'DUR' are user defined batch file variables. The 'AEP' refers to an event magnitude (Annual Exceedance Probability) and 'DUR' refers to an event duration.
Line 135 ⟶ 138:
Variables provide a way to define values once and reuse them across control files, which helps manage models with multiple scenarios and events.
Scenarios and events are automatically available as variables. Variables can also be defined using the <font color="blue"><tt>Set Variable </tt></font>command as described in Section 13.2.3 Variables of the TUFLOW manual. They are referenced by enclosing the variable name within << and >>.
Note: The <font color="blue"><tt>Set Variable </tt></font>command can only be specified in the .tcf or within a read file (.trd) referenced from the .tcf. The variables can then be used in all control files (.tcf, .tgc, .tbc, .ecf, etc).
Example models using variables are provided in the <u>[[TUFLOW Example Models#Bulk Simulation Management|Bulk Simulation Management Example Model Dataset]]</u> on the TUFLOW Wiki.
<br>
{{Tips Navigation
| |||