Tutorial M09: Difference between revisions
Content deleted Content added
| (5 intermediate revisions by 2 users not shown) | |||
Line 3:
<br>
[[File:M09 EventManagement 01a.png]]<br>Events are set up using a define event block in TUFLOW Event File (TEF) - <font color="blue"><tt>Define Event</tt></font> command terminated by <font color="blue"><tt>End Define</tt></font>.
<br>▼
Note: If Event logic can be added into most of TUFLOW’s control files where model inputs or parameters may vary between events. The only control files not supporting event logic are the TUFLOW Rainfall Control File (.trcf), TUFLOW External Stress File (.tesf), Advection Control File (.adcf) and within a Define Control command inside a TUFLOW Operational Control (.toc) file.
▲Events are set up using a define event block in TUFLOW Event File (TEF) - <font color="blue"><tt>Define Event</tt></font> command terminated by <font color="blue"><tt>End Define</tt></font>. <br>
The TUFLOW control files are:
:*TUFLOW Events File (TEF): A database of TCF and ECF commands for different events.<br>
'''Module 9 builds from the model created in <u>[[Tutorial_M02 | Module 2]]</u>. The completed Module 2 model is provided in the Module_09\TUFLOW folder.'''
= Simulation Control Files =
Line 103 ⟶ 101:
= Conclusion =
:*Multiple events were set up in the TUFLOW Event File (TEF) with define event blocks.▼
:*TUFLOW Log Files (TLF) were reviewed.▼
:*Multiple event results were inspected using the TUFLOW Viewer.▼
:*For further training opportunities see <u>[https://tuflow.com/training/training-course-catalogue/ TUFLOW Training Catalogue]</u> and/or contact <u>[mailto:training@tuflow.com training@tuflow.com]</u>. <br> ▼
▲
*Alternatively, see the <u>[[TUFLOW_Example_Models#Example_Model_Catalogue | TUFLOW Example Models]]</u> to explore the full list of TUFLOW features.
=Looping Batch File (Optional)=
Looping batch file is a powerful tool running large number of simulations with the least amount of batch file text:
Line 128 ⟶ 127:
</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.
<li>Save the batch file and double click it in file explorer to run the simulation.
</ol
= Variables (Optional) =
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
| |||