Tutorial M07: Difference between revisions
Content deleted Content added
| (5 intermediate revisions by 3 users not shown) | |||
Line 18:
= GIS Inputs =
Create, import and view input data:
:*<u>[[Tutorial_M07_GIS_Inputs_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M07_GIS_Inputs_QGIS_GPKG | QGIS - GPKG]]</u>
<br>
Line 42 ⟶ 43:
<li>Add the following command lines:<br>
<u>'''QGIS - SHP'''</u><br>
<font color="blue"><tt>Orientation Angle </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>TGC</tt></font> <font color="green"><tt> ! Uses orientation angle same as the TGC</tt></font> <br>
<font color="blue"><tt>Base Cell Size </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>10</tt></font> <font color="green"><tt> ! Sets level 1 cell size to 10 metres</tt></font> <br>
<font color="blue"><tt>Model Origin and Extent </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>TGC</tt></font> <font color="green"><tt> ! Uses origin and extent same as the TGC </tt></font> <br>
<font color="blue"><tt>Read GIS Nesting </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>gis\2d_qnl_M07_001_R.shp</tt></font> <font color="green"><tt> ! Reads in Quadtree nesting level GIS layer </tt></font> <br>
<u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Orientation Angle </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>TGC</tt></font> <font color="green"><tt> ! Uses orientation angle same as the TGC</tt></font> <br>
<font color="blue"><tt>Base Cell Size </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>10</tt></font> <font color="green"><tt> ! Sets level 1 cell size to 10 metres</tt></font> <br>
<font color="blue"><tt>Model Origin and Extent </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>TGC</tt></font> <font color="green"><tt> ! Uses origin and extent same as the TGC </tt></font> <br>
<font color="blue"><tt>Read GIS Nesting </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>2d_qnl_M07_001_R</tt></font> <font color="green"><tt> ! Reads in Quadtree nesting level GIS layer </tt></font> <br>
<li>Save the QCF.
</ol>
Line 54 ⟶ 61:
<li>Open the '''M07_5m_001.tcf''' in a text editor and add the following line in the 'Model Inputs' section: <br>
<font color="blue"><tt>Quadtree Control File </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> ..\model\M07_001.qcf </tt></font> <font color="green"><tt> ! Reference the Quadtree Control File</tt></font> <br>
<li>For GeoPackage users, update the Spatial Database reference: <br>
<u>'''QGIS - GPKG'''</u><br>
<font color="blue"><tt>Spatial Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\model\gis\M07_001.gpkg</tt></font> <font color="green"><tt> ! Specify the location of the GeoPackage Spatial Database</tt></font> <br>
<li>Save the TCF.
</ol>
Line 62 ⟶ 72:
<li>Save a copy of '''_run_M02_HPC.bat''' as '''_run_M07_HPC.bat''' in the '''Module_07\TUFLOW\runs''' folder.
<li>Update the batch file to reference the '''M07_5m_001.tcf''' :<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>M07_5m_001.tcf </tt></font> <br>
Line 77 ⟶ 87:
= Check Files =
While the model is running, review the added features are specified correctly:
:*<u>[[Tutorial_M07_Check_Files_QGIS | QGIS - SHP]]</u>
:*<u>[[Tutorial_M07_Check_Files_QGIS_GPKG | QGIS - GPKG]]</u>
<br>
Line 85 ⟶ 96:
Using the quadtree mesh reduces the total cell count as larger cells are used in areas of flat terrain, the original cell size is kept along primary flow paths. The '''_TUFLOW Simulations.log''' shows the simulation times for the standard 5m grid '''M02_5m_001''' and the quadtree model '''M07_5m_001'''. In this example, the quadtree model is 1.5 times faster than the non quadtree predecessor. <br>
<br>
[[File:
<br>
Line 91 ⟶ 102:
:*A two level quadtree mesh was constructed using a quadtree nested level layer.
:*Check files were used to review the mesh.
:*Results were viewed to assess the results resolution.
:*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.
<br>
| |||