Tutorial M08: Difference between revisions

Content deleted Content added
 
Line 36:
<ol><font color="blue"><tt>Pause </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>Error: Scenario Name Not Valid </tt></font> <font color="green"><tt> ! Displays specified text if different scenario name is called </tt></font> <br></ol>
<font color="blue"><tt>End If </tt></font> <font color="green"><tt> ! End of if statement</tt></font> <br>
 
 
 
Line 61 ⟶ 62:
<ol><font color="blue"><tt>Pause </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>Error: Scenario Name Not Valid </tt></font> <font color="green"><tt> ! Displays specified text if different scenario name is called </tt></font> <br></ol>
<font color="blue"><tt>End If </tt></font> <font color="green"><tt> ! End of if statement</tt></font> <br>
 
 
 
Line 145 ⟶ 147:
<ol><font color="blue"><tt>Pause </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>Error: Scenario Name Not Valid </tt></font> <font color="green"><tt> ! Displays specified text if different scenario name is called </tt></font> <br></ol>
<font color="blue"><tt>End If </tt></font> <font color="green"><tt> ! End of if statement</tt></font> <br>
 
 
 
Line 168 ⟶ 171:
<ol><font color="blue"><tt>Pause </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>Error: Scenario Name Not Valid </tt></font> <font color="green"><tt> ! Displays specified text if different scenario name is called </tt></font> <br></ol>
<font color="blue"><tt>End If </tt></font> <font color="green"><tt> ! End of if statement</tt></font> <br>
 
 
 
Line 240 ⟶ 244:
</ol>)<br>
Note: The 'CSZ' and 'DES' are user defined batch file variables. The 'CSZ' refers to a cell size and 'DES' refers to a design scenario. <br>
 
 
 
Line 249 ⟶ 254:
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 [https://docs.tuflow.com/classic-hpc/manual/latest/ <u>TUFLOW manual</u>]. They are referenced by enclosing the variable name within << and >>. Example models using variables are provided in the [[TUFLOW Example Models#Bulk Simulation Management|<u>Bulk Simulation Management Example Model Dataset</u>]] on the TUFLOW Wiki.
 
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 [[TUFLOW Example Models#Bulk Simulation Management|<u>Bulk Simulation Management Example Model Dataset</u>]] on the TUFLOW Wiki.
 
<br>