|
<li>Save a copy of '''M02_5m_001.tcf''' as '''M08_~s1~_001.tcf''' in the '''Module_08\TUFLOW\runs''' folder.
<li>Open the file '''M08_~s1~_001.tcf''' in a text editor.
<li>The SGS Sample Frequency is dependent on the model cell size. The frequency sets the number of sample points across a cell face and must be odd to have a sampling point exactly in the middle of the cell face. A general guide is to divide the cell size by the DEM resolution and if the number is not odd, add one to it. For example, for a 5m cell size and 0.5m DEM resolution, the sample frequency is 11. Comment out or delete the 'SGS Sample Frequency' command and add the following if scenario logic block:<br>
<font color="green"><tt>! SGS Sample Frequency == 11 ! Sets SGS Sample Frequency to 11</tt></font><br>
<font color="blue"><tt>If Scenario </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>10m </tt></font> <font color="green"><tt> ! Beginning of if statement - 10m scenario</tt></font> <br>
<ol><font color="blue"><tt>SGS Sample Frequency </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>21 </tt></font> <font color="green"><tt> ! Sets SGS Sample Frequency to 21</tt></font> <br></ol>
<font color="blue"><tt>Else If Scenario </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>5m </tt></font> <font color="green"><tt> ! 5m scenario</tt></font> <br>
<ol><font color="blue"><tt>SGS Sample Frequency </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>11 </tt></font> <font color="green"><tt> ! Sets SGS Sample Frequency to 11</tt></font> <br></ol>
<font color="blue"><tt>Else If Scenario </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2.5m </tt></font> <font color="green"><tt> ! 2.5m scenario</tt></font> <br>
<ol><font color="blue"><tt>SGS Sample Frequency </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>5 </tt></font> <font color="green"><tt> ! Sets SGS Sample Frequency to 5</tt></font> <br></ol>
<font color="blue"><tt>Else </tt></font> <font color="green"><tt> ! Else statement</tt></font> <br>
<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>
<li>Update the TGC reference: <br>
<font color="blue"><tt>Geometry Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\M08_001.tgc </tt></font> <font color="green"><tt> ! Reference the TUFLOW Geometry Control File</tt></font> <br>
|