<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tuflow.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RustyJonesTUFLOW</id>
	<title>Tuflow - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tuflow.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RustyJonesTUFLOW"/>
	<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/Special:Contributions/RustyJonesTUFLOW"/>
	<updated>2026-05-14T05:20:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_2820&amp;diff=45617</id>
		<title>TUFLOW Message 2820</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_2820&amp;diff=45617"/>
		<updated>2026-03-12T19:33:34Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 2820 - Unexpected Start 2D Domain / End 2D Domain commands for Quadtree simulation.&lt;br /&gt;
|alt_msg=ERROR 2820- Unexpected Start 2D Domain / End 2D Domain commands for HPC or Quadtree simulation. Multiple 2D Domains only available for Classic models.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|type=[[ERROR]]&lt;br /&gt;
|message_desc=Unexpected Start 2D Domain / End 2D Domain commands for Quadtree simulation.&lt;br /&gt;
|suggestions=The model was likely converted from a classic model that supported multiple 2D domains. This option is not supported by the HPC or Quadtree solvers. Cell refinement is now accomplished using the superior quadtree approach. Remove the start/end domain blocks and setup the model for Quadtree or HPC with SGS.&lt;br /&gt;
&lt;br /&gt;
|uplink=[[2xxx_TUFLOW_Messages|2xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_0649&amp;diff=45519</id>
		<title>TUFLOW Message 0649</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_0649&amp;diff=45519"/>
		<updated>2026-02-18T14:24:33Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 0649 - Failed to get the number of times from DSS path: &amp;lt;&amp;gt;.&lt;br /&gt;
|alt_msg=NA&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|type=[[ERROR]]&lt;br /&gt;
|message_desc=This error occurs when a DSS file is used as a boundary condition source, TUFLOW is expecting a valid path to timed data, and an error occurs. The DSS file may be invalid, or the path may point to non-timed data such as paired data or grid data.&lt;br /&gt;
|suggestions=Review the file in HEC-DSSVue or similar and verify that the path is correct and points to time-series data.&lt;br /&gt;
&lt;br /&gt;
|uplink=[[0xxx_TUFLOW_Messages|0xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_0649&amp;diff=45518</id>
		<title>TUFLOW Message 0649</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_0649&amp;diff=45518"/>
		<updated>2026-02-18T14:23:26Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 0649 - Failed to get the number of times from DSS path: &amp;lt;&amp;gt;.&lt;br /&gt;
|alt_msg=NA&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|type=[[ERROR]]&lt;br /&gt;
|message_desc=This error occurs when a DSS file is used as a boundary condition source, TUFLOW is expecting a valid path to timed data, and an error occurs. The DSS file may be invalid, or the path may point to non-timed data such as paired data or grid data.&lt;br /&gt;
|suggestions=&lt;br /&gt;
&lt;br /&gt;
|uplink=[[0xxx_TUFLOW_Messages|0xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=QGIS_TIN_Polygons_Assign_Elevations&amp;diff=42231</id>
		<title>QGIS TIN Polygons Assign Elevations</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=QGIS_TIN_Polygons_Assign_Elevations&amp;diff=42231"/>
		<updated>2025-02-06T11:55:07Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: Some minor adjustments to workflow&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
This tool acts as an alternative method to using the native &amp;quot;MERGE&amp;quot; functionality in TUFLOW for 2d_zsh polygons by explicitly assigning elevation points (in a 2d_zsh template) along the polygon perimeter.&amp;lt;br&amp;gt;&lt;br /&gt;
It is recommended to use this tool for Quadtree models, rather than the &amp;quot;MERGE&amp;quot; functionality, where the 2d_zsh input crosses Quadtree nesting levels.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Workflow:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
This tool is useful when a user has a Z shape polygon (2d_zsh) and wants to assign perimeter elevations. The workflow for this process would be:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The user starts with a Z shape polygon (2d_zsh) that is read into the TUFLOW Geometry control file (TGC) using the &amp;quot;&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Read GIS Z Shape&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; ==&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&amp;quot; command. Additional line and point layers may also be included.&lt;br /&gt;
&amp;lt;li&amp;gt;Run the tool to generate a new polygon and point layer. The polygon layer will optionally have additional vertices, and the point layer will have elevations assigned. &lt;br /&gt;
&amp;lt;li&amp;gt;The TGC command is then updated to reference the newly generated layers, instead of the original polygon. For example:&amp;lt;br&amp;gt;&lt;br /&gt;
Before:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Read GIS Z Shape&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; == &amp;lt;/font&amp;gt; 2d_zsh_example_polygon   ! And potentially other line and point layers&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
After:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Read GIS Z Shape&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; == &amp;lt;/font&amp;gt; 2d_zsh_generated_polygon | 2d_zsh_generated_points     ! And potentially other line and point layers&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This tool, &#039;&#039;&#039;TIN Polygons - Assign Elevations&#039;&#039;&#039;, can be found in the QGIS processing toolbox panel under TUFLOW. To open the Processing Toolbox panel, navigate to &#039;Processing&#039; in the menubar and select &#039;Toolbox&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:open_processing_toolbox.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&#039;&#039;&#039;Polygon Layer:&#039;&#039;&#039; The polygon layer that will have elevation points created for it. &lt;br /&gt;
&amp;lt;li&amp;gt;&#039;&#039;&#039;Selected features only:&#039;&#039;&#039; If region(s) in the polygon layer have been selected using the &#039;Select Features&#039; tool, this option will become available. If checked on, the tool will only assign elevation points along the perimeter of the selected region(s).&lt;br /&gt;
&amp;lt;li&amp;gt;&#039;&#039;&#039;Raster Layer:&#039;&#039;&#039; The raster (DEM) layer that will be used to determine the elevations of the output points.&lt;br /&gt;
&amp;lt;li&amp;gt;&#039;&#039;&#039;Vertex Distribution Option:&#039;&#039;&#039; Determines how the vertices will be distributed along the polygon perimeter.&lt;br /&gt;
* &#039;&#039;&#039;Densify:&#039;&#039;&#039; Additional vertices will be inserted along the perimeter of the polygon layer at regular intervals (defined by &amp;quot;Vertex Interval&amp;quot;). This option is recommended unless the polygon layer has a negative &#039;Shape_Width&#039; value, and a sufficient number of vertices.&lt;br /&gt;
* &#039;&#039;&#039;Use Existing:&#039;&#039;&#039; Elevations will be assigned to the existing vertices of the polygon layer. This option should only be used if the polygon layer has a negative &#039;Shape_Width&#039; value, and a sufficient number of vertices.&lt;br /&gt;
&amp;lt;li&amp;gt;&#039;&#039;&#039;Vertex Interval (only used for Densify):&#039;&#039;&#039; The length of the interval between the vertices to be created (in map units). This value should be set to the smaller of the following:&lt;br /&gt;
* Half the model cell size&lt;br /&gt;
* The finest Quadtree level&lt;br /&gt;
&amp;lt;li&amp;gt;&#039;&#039;&#039;Output Points Layer:&#039;&#039;&#039; Determines the location and filename of the output points layer. It is recommended to name the output layer with the prefix &#039;2d_zsh&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;&#039;&#039;&#039;Output Polygon Layer:&#039;&#039;&#039; Determines the location and filename of the output polygon layer. This layer will have the output points snapped to the polygon vertices. It is recommended to name the output layer with the prefix &#039;2d_zsh&#039;.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:.png|link=Special:FilePath/.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41597</id>
		<title>TUFLOW Message 6024</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41597"/>
		<updated>2024-12-02T18:17:34Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 6024 - Invalid SWMM configuration: node invert elevation is higher than the inlet elevation for inlet at node &amp;lt;a&amp;gt;.&lt;br /&gt;
|alt_msg=NA&amp;lt;br&amp;gt;&lt;br /&gt;
|type=[[ERROR]]&amp;lt;BR&amp;gt;&lt;br /&gt;
|message_desc= This happens if the node invert elevation at a node is higher than the elevation of an inlet at the same node. This is an invalid configuration that can lead to large mass errors.&lt;br /&gt;
|suggestions= Determine whether the node elevation is incorrect and needs to be lower or the inlet elevation needs to be higher by reviewing source data and DEM and make the correction.&lt;br /&gt;
&lt;br /&gt;
|uplink=[[6xxx_TUFLOW_Messages|6xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41596</id>
		<title>TUFLOW Message 6024</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41596"/>
		<updated>2024-12-02T18:15:50Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 6024 - Invalid SWMM configuration: node invert elevation is higher than the inlet elevation for inlet at node &amp;lt;a&amp;gt;.&lt;br /&gt;
|alt_msg=NA&amp;lt;br&amp;gt;&lt;br /&gt;
|type=[[ERROR]]&amp;lt;BR&amp;gt;&lt;br /&gt;
|message_desc=&lt;br /&gt;
|suggestions=&lt;br /&gt;
&lt;br /&gt;
|uplink=[[6xxx_TUFLOW_Messages|6xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41595</id>
		<title>TUFLOW Message 6024</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41595"/>
		<updated>2024-12-02T18:15:12Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 6024 - Invalid SWMM configuration: node invert elevation is higher than the inlet elevation for inlet at node &amp;lt;a&amp;gt;.&lt;br /&gt;
|altmsg=NA&amp;lt;br&amp;gt;&lt;br /&gt;
|type=[[ERROR]]&amp;lt;BR&amp;gt;&lt;br /&gt;
|message_desc=&lt;br /&gt;
|suggestions=&lt;br /&gt;
&lt;br /&gt;
|uplink=[[6xxx_TUFLOW_Messages|6xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41594</id>
		<title>TUFLOW Message 6024</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_6024&amp;diff=41594"/>
		<updated>2024-12-02T18:14:02Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: Created page with &amp;quot;{{TUFLOW_Message |tuflow_message=ERROR 6024 - Invalid SWMM configuration: node invert elevation is higher than the inlet elevation for inlet at node &amp;lt;a&amp;gt;. |type=ERROR&amp;lt;BR&amp;gt; [...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 6024 - Invalid SWMM configuration: node invert elevation is higher than the inlet elevation for inlet at node &amp;lt;a&amp;gt;.&lt;br /&gt;
|type=[[ERROR]]&amp;lt;BR&amp;gt;&lt;br /&gt;
[[WARNING]]&amp;lt;BR&amp;gt;&lt;br /&gt;
|message_desc=&lt;br /&gt;
|suggestions=&lt;br /&gt;
&lt;br /&gt;
|uplink=[[6xxx_TUFLOW_Messages|6xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=6xxx_TUFLOW_Messages&amp;diff=41593</id>
		<title>6xxx TUFLOW Messages</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=6xxx_TUFLOW_Messages&amp;diff=41593"/>
		<updated>2024-12-02T18:12:54Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 6xxx error messages refer to errors that occur in the EPA SWMM 1D part of the model. Links to detailed message descriptions are listed in the table below. Grey numbers do not yet have a message assigned and red numbers have been allocated to new messages.&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
* [[0xxx TUFLOW Messages]]&lt;br /&gt;
* [[1xxx TUFLOW Messages]]&lt;br /&gt;
* [[2xxx TUFLOW Messages]]&lt;br /&gt;
* [[3xxx TUFLOW Messages]]&lt;br /&gt;
* [[4xxx TUFLOW Messages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| Border =&amp;quot;1&amp;quot; cellpadding=&amp;quot;8&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;br /&gt;
|[[TUFLOW Message 6000|&amp;lt;u&amp;gt;6000&amp;lt;/u&amp;gt; ]]|| [[TUFLOW Message 6001|&amp;lt;u&amp;gt;6001&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6002|&amp;lt;u&amp;gt;6002&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6003|&amp;lt;u&amp;gt;6003&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6004|&amp;lt;u&amp;gt;6004&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6005|&amp;lt;u&amp;gt;6005&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6006|&amp;lt;u&amp;gt;6006&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6007|&amp;lt;u&amp;gt;6007&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6008|&amp;lt;u&amp;gt;6008&amp;lt;/u&amp;gt; ]] || [[TUFLOW Message 6009|&amp;lt;u&amp;gt;6009&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6010|&amp;lt;u&amp;gt;6010&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6011|&amp;lt;u&amp;gt;6011&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6012|&amp;lt;u&amp;gt;6012&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6013|&amp;lt;u&amp;gt;6013&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6014|&amp;lt;u&amp;gt;6014&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6015|&amp;lt;u&amp;gt;6015&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6016|&amp;lt;u&amp;gt;6016&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6017|&amp;lt;u&amp;gt;6017&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6018|&amp;lt;u&amp;gt;6018&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6019|&amp;lt;u&amp;gt;6019&amp;lt;/u&amp;gt; ]] &lt;br /&gt;
|-&lt;br /&gt;
|[[TUFLOW Message 6020|&amp;lt;u&amp;gt;6020&amp;lt;/u&amp;gt; ]] || [[TUFLOW Message 6021|&amp;lt;u&amp;gt;6021&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6022|&amp;lt;u&amp;gt;6022&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6023|&amp;lt;u&amp;gt;6023&amp;lt;/u&amp;gt; ]]   || [[TUFLOW Message 6024|&amp;lt;u&amp;gt;6024&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6025|&amp;lt;u&amp;gt;6025&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6026|&amp;lt;u&amp;gt;6026&amp;lt;/u&amp;gt; ]]  || [[TUFLOW Message 6027|&amp;lt;u&amp;gt;6027&amp;lt;/u&amp;gt; ]]  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6028&amp;lt;/font&amp;gt; || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6029&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6030&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6031&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6032&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6033&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6034&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6035&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6036&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6037&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6038&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6039&amp;lt;/font&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6040&amp;lt;/font&amp;gt; || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6041&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6042&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6043&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6044&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6045&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6046&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6047&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6048&amp;lt;/font&amp;gt; || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6049&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6050&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6051&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6052&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6053&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6054&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6055&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6056&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6057&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6058&amp;lt;/font&amp;gt;  || &amp;lt;font color=&amp;quot;grey&amp;quot;&amp;gt;6059&amp;lt;/font&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[ Main_Page | Back to Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=QGIS_Installation_with_OSGeo4W&amp;diff=41305</id>
		<title>QGIS Installation with OSGeo4W</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=QGIS_Installation_with_OSGeo4W&amp;diff=41305"/>
		<updated>2024-11-07T15:44:30Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Installation Steps */ The website changed and wanted this reflected&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installation Steps=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Download OSGeo4W setup installer&lt;br /&gt;
:[https://qgis.org/en/site/forusers/download.html https://qgis.org/en/site/forusers/download.html]&amp;lt;br&amp;gt;&lt;br /&gt;
: [[File:Osgeo4w download network installer.png|alt=|873x873px]]&lt;br /&gt;
&amp;lt;li&amp;gt; Run the downloaded EXE&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Advanced Install&#039;&#039;&#039;&lt;br /&gt;
: [[File: osgeo4w_installation_1.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
: [[File: osgeo4w_installation_2.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select a directory and other installation options (Note some options may require admininstrator rights)&lt;br /&gt;
: [[File: osgeo4w_installation_3.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Click &#039;&#039;&#039;Next&#039;&#039;&#039;&lt;br /&gt;
: [[File: osgeo4w_installation_4.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Direct Connection&#039;&#039;&#039; (Note some firewall systems will require proxy settings)&lt;br /&gt;
: [[File: osgeo4w_installation_5.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select a download site. It is recommended to use with one with an SSL certificate (i.e. starts with https://)&lt;br /&gt;
: [[File: osgeo4w_installation_6.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Use the search bar to search for &amp;quot;QGIS&amp;quot;. Expand the &#039;&#039;&#039;Desktop&#039;&#039;&#039; dropdown and find &amp;quot;qgis: QGIS Desktop&amp;quot; under the &#039;&#039;&#039;package&#039;&#039;&#039; column. Left-click the &amp;quot;skip&amp;quot; text and the text will change to the latest version number. Once the verseion number is showing, this will be the version installed when you proceed. If you left-click again, the version number may change again to the previous version. If you keep left-clicking it will cycle back to &amp;quot;skip&amp;quot;. (Note: you could also choose the &amp;quot;qgis-ltr: QGIS Desktop (long term release)&amp;quot; instead, and this would install the long term release version).&lt;br /&gt;
: [[File: osgeo4w_installation_7.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; The installation also requires manually choosing several Python libraries. Use the search bar again and search for &amp;quot;scipy&amp;quot;. Expand the &#039;&#039;&#039;Libs&#039;&#039;&#039; dropdown and find &amp;quot;python3-scipy&amp;quot;. Left-click the &amp;quot;skip&amp;quot; text once to choose the latest scipy library version.&lt;br /&gt;
: [[File: osgeo4w_installation_8.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; The following libraries should be added:&lt;br /&gt;
* scipy&lt;br /&gt;
* matplotlib&lt;br /&gt;
* netcdf4&lt;br /&gt;
* pandas (this may return 2 options - make sure to select &amp;quot;python3-pandas&amp;quot;)&lt;br /&gt;
* fiona&lt;br /&gt;
* geopandas&lt;br /&gt;
* rtree&lt;br /&gt;
* shapely&lt;br /&gt;
&amp;lt;li&amp;gt; Click &#039;&#039;&#039;Next&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt; Continue to work through the steps of the installation process - the installer will ask you to also install a number of dependencies (make sure to click yes to these) and prompt for license agreements&lt;br /&gt;
&amp;lt;li&amp;gt; Once installed, QGIS should be installed in the location specified in an earlier step&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
=Upgrading Steps=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; As part of the installation, OSGeo4W should install a program called &amp;quot;setup&amp;quot; which you can search in the Windows start bar. You can also run the downloaded OSGeo4W installer again (they are the same).&lt;br /&gt;
&amp;lt;li&amp;gt; Once running the setup, simply continue clicking &#039;&#039;&#039;Next&#039;&#039;&#039;. The setup should remember all your previous settings and automatically choose the latest version of the installed libraries at the &#039;&#039;&#039;Packages Selection&#039;&#039;&#039; stage of the installation&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
==Upgrading Silently==&lt;br /&gt;
It&#039;s possible to upgrade silently from the Windows CMD prompt or from a batch file.&amp;lt;Br&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
===From CMD===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Search &amp;quot;osgeo4w&amp;quot; in the Windows start bar and choose &#039;&#039;&#039;OSGeo4W Shell&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt; Type the following command and press enter&lt;br /&gt;
&amp;lt;pre&amp;gt;setup -q -g&amp;lt;/pre&amp;gt;&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-q&amp;quot;&amp;lt;/tt&amp;gt; : quiet installation flag&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-g&amp;quot;&amp;lt;/tt&amp;gt; : upgrade installed packages flag&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
===From BAT===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the OSGeo4W installation folder under the &amp;quot;bin&amp;quot; folder find the following batch file &amp;quot;o4w_env.bat&amp;quot; (e.g. &amp;quot;C:\OSGeo4W\bin\o4w_env.bat&amp;quot;).&lt;br /&gt;
&amp;lt;li&amp;gt; In your batch file call the &amp;quot;o4w_env.bat&amp;quot; file&lt;br /&gt;
&amp;lt;li&amp;gt; On the next line, type &amp;quot;setup -q -g&amp;quot;&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-q&amp;quot;&amp;lt;/tt&amp;gt; : quiet installation flag&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-g&amp;quot;&amp;lt;/tt&amp;gt; : upgrade installed packages flag&lt;br /&gt;
&amp;lt;li&amp;gt; Your final batch file should look like the below with the path to &amp;quot;o4w_env.bat&amp;quot; customised to match your installation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
call C:\OSGeo4W\bin\o4w_env.bat&lt;br /&gt;
setup -q -g&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Run the batch file&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[QGIS_Tips| Back to QGIS Tips page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=File:Osgeo4w_download_network_installer.png&amp;diff=41304</id>
		<title>File:Osgeo4w download network installer.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=File:Osgeo4w_download_network_installer.png&amp;diff=41304"/>
		<updated>2024-11-07T15:43:50Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Shows download link for the OSGEO Network installer&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41008</id>
		<title>TUFLOW SWMM Tutorial M03</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41008"/>
		<updated>2024-09-23T14:15:46Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* TUFLOW Control File (TCF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
This tutorial, Module 3 of the TUFLOW-SWMM tutorial dataset, demonstrates how to add SWMM urban hydrology to a 1D SWMM stormwater pipe network / 2D TUFLOW HPC catchment model. TUFLOW-SWMM Tutorial Module 3 builds from the model created in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;. The completed TUFLOW-SWMM Module 2 model is provided in the &#039;&#039;&#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW&#039;&#039;&#039;&#039;&#039; folder of the download dataset as the starting point for this tutorial. If you are not already familiar with TUFLOW-SWMM linking, we recommend completing TUFLOW-SWMM Modules 1 and 2 prior to starting this tutorial. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Project Initialization =&lt;br /&gt;
==QGIS==&lt;br /&gt;
QGIS Version 3.34 or newer, and QGIS TUFLOW Plugin 3.11 or newer are required to access the SWMM Processing Tools described in the following sections. For installation, see &amp;lt;u&amp;gt;[https://wiki.tuflow.com/TUFLOW_QGIS_Plugin Installation of TUFLOW Plugin]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Define the Coordinate Reference System (CRS), also called ‘Projection’, for the QGIS workspace:&lt;br /&gt;
&amp;lt;ol&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt;Open QGIS.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Properties… &lt;br /&gt;
&amp;lt;li&amp;gt;In the CRS tab, type ‘WGS 84 / UTM Zone 60S’.&lt;br /&gt;
&amp;lt;li&amp;gt;Select the matching projection in the &#039;Predefined Coordinate Reference Systems&#039; section.&lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Apply’ and ‘OK’.&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that the projection is set correctly by viewing the bottom right hand corner of the workspace. It should read ‘EPSG:32760’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS1_Initialization_01a.mp4|width=1235}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Model==&lt;br /&gt;
===Load and Style TUFLOW Model Files===&lt;br /&gt;
Load in the project GIS layers:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Load TUFLOW Layers from TCF’ symbol from the TUFLOW Plugin toolbar.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: Tuflow_plugin_load_tcf_layers.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Load Layers window, select:&lt;br /&gt;
* Ordering Options: Alphabetical&lt;br /&gt;
* Grouping Options: Group by control file&lt;br /&gt;
* Raster Load Options: Load Normally &lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Open’ and ‘OK’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Style the TUFLOW layers. Suggested styling steps were provided in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01#Load_and_Style_TUFLOW_Model_Files|TUFLOW SWMM Tutorial M01]]&amp;lt;/u&amp;gt;. They have not been duplicated here.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Plugin===&lt;br /&gt;
Next we need to configure the QGIS TUFLOW Plugin settings to link with the project folder where we will build our model:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the &#039;Configure TUFLOW Project&#039; tool by selecting Plugins &amp;gt; TUFLOW &amp;gt; Editing &amp;gt; Configure / Create TUFLOW Project.&lt;br /&gt;
&amp;lt;li&amp;gt;Set the CRS (Coordinate Reference System) by selecting one of the vector layers associated with the opened model using the drop menu list. For example, &#039;&#039;2d_bc_M01_001_L&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW folder, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder. Click &#039;Select Folder&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW single precision executable file, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;exe\2023-03-AF&#039;&#039;&#039; folder. Select &#039;&#039;&#039;TUFLOW_iSP_w64.exe&#039;&#039;&#039; and click &#039;Open&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;GPKG&#039; as the GIS Format. &lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;TUFLOW Classic / HPC&#039; as the TUFLOW Engine.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick on &#039;Save Default Settings Globally&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: TS3_Configure_Project_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment TUFLOW GeoPackage File === &lt;br /&gt;
We will now save a copy of &#039;&#039;&#039;TS02_001.gpkg&#039;&#039;&#039; with a new name, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. This project initialization step is recommended so prior model versions from a project are not broken as a result of changes being made to GIS inputs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the &#039;Increment Selected Layer&#039; symbol from the TUFLOW Plugin toolbar. This opens the dialog shown below. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_increment_layer.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:*Source Layer: Automatically set to the selected layer, &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
:*Output Database: Click &#039;Browse...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Set the new output database name to &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;.&lt;br /&gt;
:*Output Layer Name: This will automatically increment to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;2&#039;&#039;_L&#039;&#039;&#039;. Change the name back to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;1&#039;&#039;_L&#039;&#039;&#039;.&lt;br /&gt;
:*Delete the pre-filled &#039;Incremented Layer&#039; entry in the table. We do not wish to modify the version number associated with the 2d_bc file. This current exercise will not change the version number of any of the GIS layer inputs, it is simply establishing a copy of the existing GeoPackage where future edits will be saved to.&lt;br /&gt;
:*Select &#039;Remove Source Layer from Workspace&#039;.&lt;br /&gt;
:*Select &#039;Increment Layer and Preserve Database&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The GeoPackage database, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; will now be in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment SWMM GeoPackage File === &lt;br /&gt;
SWMM pipe network junction attributes need to be updated when converting a TUFLOW 2D direct rainfall / SWMM 1D model &amp;lt;u&amp;gt;([[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;). into a format that uses SWMM hydrology instead of direct rainfall. Similar to above (incrementing the TUFLOW GeoPackage file), we will increment the SWMM pipe network database name so we do not alter the inputs necessary for &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; to function without issue. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group. In the &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; group, right click &#039;&#039;&#039;Links--Conduits&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select TUFLOW &amp;gt; SWMM - Increment GeoPackage. This opens the dialog shown below. &lt;br /&gt;
:*Output File: Click the &#039;...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder. Set the output database name to &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;. &lt;br /&gt;
:*Existing GeoPackage Layers: &#039;Unload -- do not move&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; The tool will automatically load &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into the QGIS workspace and remove &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; from the QGIS workspace.&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Save QGIS Project Workspace===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Save As.&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder and type &#039;&#039;&#039;SWMM_M03&#039;&#039;&#039; as the filename with the extension .qgz.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= GIS Inputs =&lt;br /&gt;
==Update SWMM GeoPackage Spatial Database== &lt;br /&gt;
In previous tutorials we have created new SWMM GeoPackage databases for our new entries. This tutorial will demonstrate a different update approach. Instead of creating a new SWMM GeoPackage database, we will update the existing database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; by adding new SWMM Sections for the hydrology elements we will be incorporating into the model in this tutorial.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Processing &amp;gt; Toolbox from the top dropdown menu options to open the Processing Toolbox.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to TUFLOW &amp;gt;&amp;gt; SWMM in the processing tool list and select &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Add_Sections |GeoPackage - Add sections]]&amp;lt;/u&amp;gt;&#039;. This opens the dialog shown below.&lt;br /&gt;
:*GPKG filename modify: Click the ... and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\swmm&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
:*CRS for GeoPackage: Click the drop down menu and select &#039;Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S&#039;.&lt;br /&gt;
:*SWMM Sections to add: Click the ..., and tick on:&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above steps have added the new sections to the SWMM GeoPackage database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. However, the new sections are not currently displayed in the QGIS Layers Panel. We need to close the database and reopen it to view the changes.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;sw03_001&#039;&#039;&#039; and select &#039;Remove Group...&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder and drag and drop &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;Add Layers&#039; to open all vectors within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. By default, all items in the available list should have been selected. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project when we are making edits. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, within the &#039;&#039;&#039;sw03_001&#039;&#039;&#039; group, move &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to the bottom. This will ensure that the other data within this database can be seen. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SWMM GIS Data Entry ==&lt;br /&gt;
&lt;br /&gt;
A GeoPackage called &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; is provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. It contains one SWMM input layer and one TUFLOW input layer: &lt;br /&gt;
:*&#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;: defines the 1D SWMM urban hydrology subcatchment delineation and associated parameters.&lt;br /&gt;
:*&#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;: defines the remaining 2D TUFLOW catchment hydrology subcatchment delineation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To populate the SWMM GeoPackage created in the previous section:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS select &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click on the &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039; layer and select &#039;Zoom to Layer(s)&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight all items included in &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer. &lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle the editing off to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology&#039;&#039;&#039; from the QGIS Layers Panel.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SWMM GIS Data Updates==&lt;br /&gt;
The following updates are being made to the objects and layers within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Raingages===&lt;br /&gt;
The text information within &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; defines the pluviographs in the catchment. We will link to two different rain gages in this example. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; &#039;Gage&#039; is the American spelling of &#039;Gauge&#039; in Oxford English.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Add Feature&#039; twice. Enter the following attributes (leave all other fields as &#039;&#039;NULL&#039;&#039;):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;60%&amp;quot;&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Name &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Form &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Intevl &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| SnowCatchDeficiency&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Format &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Tseries &lt;br /&gt;
|-&lt;br /&gt;
| RF_G1 || Volume || 0.1 || 1 || TIMESERIES || RF_FC04 &lt;br /&gt;
|-&lt;br /&gt;
| RF_G2 || Volume || 0.1 || 1 || TIMESERIES || RF_FC07 &lt;br /&gt;
|}&lt;br /&gt;
For a summary of the attributes associated with &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Raingages TUFLOW 2023-03-AD Release Notes (Table A.11)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Note, the spatial locations where the gage information is applied is covered in the following section.&lt;br /&gt;
&amp;lt;li&amp;gt; Turn off editing and save the information.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_04b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Subcatchments===&lt;br /&gt;
The information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; defines the subcatchment parameters (including catchment area, width, slope, percent impervious, outlet specification and infiltration details). All required data entries have been pre-filled in the supplied dataset except the &#039;Area&#039; information, which we will determine using QGIS. SWMM requires the hydrology subcatchment area information in hectares.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Choose &#039;Area&#039; as the target field and type the calculation expression, &#039;area($geometry) / 10000&#039;. &lt;br /&gt;
:* &#039;area($geometry) &#039;: Extracts the area of each region (subcatchment) in &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
:* &#039;/ 10000&#039;: Converts the area values into hectares.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The projection used in these tutorials is measured in meters. Thus, when QGIS extracts the area from a region, it reports the area in m&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. If using a projection that is measured in feet, QGIS would extract the area in ft&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Update All&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing and save the information.&lt;br /&gt;
&amp;lt;li&amp;gt;Inspect the attribute information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to familiarize yourself with the data. A few demonstration features have been included in the dataset. &lt;br /&gt;
:*Two rainfall gages are linked to the subcatchments. Downstream subcatchments linked to rain gage &#039;RF_G1&#039;. Upstream subcatchments are linked to rain gage &#039;RF_G2&#039;.&lt;br /&gt;
:*Subcatchments &#039;SPit11A&#039; and &#039;SPit11A&#039; are being routed to subcatchment &#039;SPit11C&#039; before entering the SWMM pipe network. All other hydrology subcatchments route directly to a SWMM &#039;&#039;&#039;Node--Junctions&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
For a summary of the attributes associated with the layer, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Subcatchments TUFLOW 2023-03-AD Release Notes (Table A.38)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_05b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SWMM Options===&lt;br /&gt;
SWMM &#039;&#039;&#039;Project--Options&#039;&#039;&#039; defines the SWMM simulation controls, such as hydrology computation timestep. &#039;&#039;&#039;Project--Options&#039;&#039;&#039; are not required in the new GeoPackage database we are creating for this Tutorial. This is because this model will be constructed from multiple SWMM input (INP) files:&lt;br /&gt;
:*&#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; (road culverts).&lt;br /&gt;
:*&#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; (underground pipe network inputs and SWMM hydrology).&lt;br /&gt;
When TUFLOW processes SWMM inputs, it combines the multiple INP files into one single INP prior to simulation. For this model, the simulation control parameters defined in Module 1 (&#039;&#039;&#039;sw01_001 &amp;gt; Project--Options&#039;&#039;&#039;) will apply. The options relevant to this tutorial that have already been defined in the Module 1 input include:&lt;br /&gt;
:*&#039;&#039;&#039;flow_units&#039;&#039;&#039;: set to metric.&lt;br /&gt;
:*&#039;&#039;&#039;infiltration&#039;&#039;&#039; method: set to Green Ampt.&lt;br /&gt;
We need to change the SWMM hydrology timestep details. Updating this setting in the &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; does not impact any of the previous tutorial modules, as they did not include any hydrology components. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group and select (left click) &#039;&#039;&#039;sw01_001 &amp;gt;&amp;gt; Project--Options&#039;&#039;&#039; and toggle on editing. &lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Project--Options&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the following hydrology timestep options: &lt;br /&gt;
:*WET_STEP: 00:01:00&lt;br /&gt;
:*DRY_STEP: 00:01:00&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing to save the edits.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_06b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Export SWMM INP File ==&lt;br /&gt;
We will now create a new INP file for the pipe network and SWMM urban hydrology inputs and update &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to reflect the changes made to the hydrology options above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; (or any other SWMM layer in the same GeoPackage) and select &#039;TUFLOW&#039; &amp;gt; &#039;SWMM - Export inp file&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This will open the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Write_to_SWMM_inp |GeoPackage - Write to SWMM inp]]&amp;lt;/u&amp;gt;&#039; processing tool, prepopulated with the filename of the layer&#039;s GeoPackage. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This tool can also be activated from the Processing Toolbox. &lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, update the &#039;GeoPackage Input File&#039; parameter. Click &#039;...&#039;, and navigate to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw01_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This tool will save the SWMM inp files in the same folder location and with the same name as the GeoPackage input file. In this case, it will save &#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; and &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_07b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW GIS Updates==&lt;br /&gt;
We will be reverting the TUFLOW model back to a configuration that uses inflows from an external hydrology model (as per Module 1), instead of 2D direct rainfall (Module 2), in the areas not covered by SWMM urban hydrology. Instead of reusing the input from Module 1, we will need to use a new TUFLOW source area inflow layer. This will ensure that we do not double count the flow generated over the area now represented by SWMM.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Import Empty File’ symbol from the TUFLOW plugin toolbar. &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_import_empty_file.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;2d_sa&#039; from the Empty Type list.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Run ID box write &#039;TS03_001&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick the &#039;Regions&#039; Geometry Type.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Spatial Database Options, select &#039;All to one&#039;. Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. Click Save and hit &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; appears in the QGIS Layers Panel.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:TS3_import_empty_2d_sa_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, select &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight the four regions included in &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle off editing to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
The polygon entry we have updated refers to a new subcatchment name for the region adjacent to the SWMM subcatchments. The new name is &#039;FC06.62&#039;, instead of &#039;FC06&#039;. When we update the TUFLOW Control files we will configure the file references so we are sourcing data from a new flow file obtained from an external hydrology model that has been updated with the reduced catchment area, in recognition of SWMM being used for the flow estimate in the proposed urban development area. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Common hydrology software used in combination with TUFLOW by modelers include: HEC-HMS, RORB, Drains, WBNM, URBS and more.&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Boundary Updates==&lt;br /&gt;
As a result of the changes made to the TUFLOW inflows, new TUFLOW Boundary Condition csv files are also needed. Updated files have been provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. These files provide the values and model linkages to the new hydrology inflows, which include the &#039;FC06.62&#039; entry.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy &#039;&#039;&#039;bc_dbase_TS03_001.csv&#039;&#039;&#039; and &#039;&#039;&#039;TS03_01p2hr.csv&#039;&#039;&#039; from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\bc_dbase&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Boundary_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Simulation Control Files=&lt;br /&gt;
To avoid the potential risk of overwriting existing control files accidentally, we will start by saving new control files where we will be making subsequent syntax updates during the following steps.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; in a Text Editor (Notepad++ is recommended). Save the file as &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;li&amp;gt;Using the &#039;Open File&#039; function in Notepad++: &lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tbc,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tscf,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Control File (TCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; by making the following reference updates:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Spatial Database &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\gis\TS03_001.gpkg&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specify the location of the GeoPackage Spatial Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tbc&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the TUFLOW Boundary Condition Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\bc_dbase\bc_dbase_TS03_001.csv&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the Boundary Condition Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;SWMM Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tscf&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the SWMM (1D) Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add the following command to the &#039;&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Time Control&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&#039; section. This command is necessary for many TUFLOW-SWMM models, especially when using SWMM hydrology. The 2D timestep dictates the SWMM 1D timestep. Generally, this timestep is adequate for SWMM but in cases where the flows are contained in the 1D, the timestep may become too large for SWMM. This command forces it into the appropriate range. If this command is neglected, some models will experience very high mass errors. The range of timesteps used is reported in the SWMM prt file in the results folder.&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Timestep Maximum &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;3&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specifies a maximum timestep of 3 seconds&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Comment out the &#039;Map Cuttoff Depth&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Map Cutoff Depth == 0.05&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Boundary Control File (TBC)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Comment out the &#039;Global Rainfall BC&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Global Rainfall BC == RF_FC04&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following additional command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read GIS SA&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;2d_sa_TS03_001_R &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Reads in 2D source area - Excluding SWMM areas&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_02c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW SWMM Control File (TSCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw02_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; with the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw03_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;As we are pushing flows from the subcatchments straight to the pipe network, the water level of the ponded water at the nodes can become much higher than the 2D water levels. The inlet will surcharge but the flow is throttled. The following command will pull water out of the 2D if the 1D ponded water level goes beyond 0.1 m higher than the 2D (not needed for rain on grid simulations). Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Maximum Inlet Ponded Depth&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;0.1 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Pull ponded water out of the 1D domain as needed&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read BC Timeseries&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;RF_FC04 | RF_FC07 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! TUFLOW BC Database / SWMM Rain Gage Linkage&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_03c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Running the Simulation=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save a copy of &#039;&#039;&#039;_run_TS02_HPC.bat&#039;&#039;&#039; as &#039;&#039;&#039;_run_TS03_HPC.bat&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the batch file to reference the &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;exe&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&amp;quot;..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe&amp;quot;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;run&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;start &amp;quot;TUFLOW&amp;quot; /wait&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; %exe%&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; -b&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;%run% &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;TS03_5m_001.tcf &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Save the batch file and double click it in Windows File Explorer to run the simulation. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Did your TUFLOW-SWMM model fail to run successfully? If so, here is a link to a troubleshooting guide: &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Troubleshooting | TUFLOW SWMM Troubleshooting]]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Run_Sim_01c.mp4|width=1236}}&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Check Files = &lt;br /&gt;
Review the SWMM INP and simulation report file from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\results&#039;&#039;&#039; folder to confirm the new hydrology inputs are being processed correctly:&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.inp&#039;&#039;&#039; in a text editor to confirm the combining of the two input INP files has occurred correctly. Also use the QGIS Processing tool, &amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Create_from_SWMM_inp |GeoPackage - Create from SWMM inp ]]&amp;lt;/u&amp;gt;, to view the information in QGIS. &lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm_curves.inp&#039;&#039;&#039; in a text editor to confirm the rainfall time series that has been used by the SWMM hydrology engine matches the input dataset.&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.rpt&#039;&#039;&#039; in a text editor to confirm the model computation is healthy in term of mass conservation.&lt;br /&gt;
&lt;br /&gt;
= Results Output =&lt;br /&gt;
Complete the steps outlined in following link to review the simulation results from the TUFLOW SWMM model simulation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03_Results_QGIS | TUFLOW SWMM Tutorial 03 Results]]&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
*EPA SWMM urban hydrology was added to the model (replacing 2D drect rainfall / rain-on-grid).&lt;br /&gt;
*The 1D SWMM pipe urban pipe network junction attributes were updated to accomodate for the change in model configuration, from 2D direct rainfall to 1D SWMM hydrology.&lt;br /&gt;
*Check and result files associated with the SWMM hydrology modelling were inspected.&lt;br /&gt;
&lt;br /&gt;
=Other TUFLOW SWMM Tutorials=&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01 | TUFLOW SWMM Module 1]]&amp;lt;/u&amp;gt;  - 1D SWMM Culverts&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02 | TUFLOW SWMM Module 2]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 2D TUFLOW Direct Rainfall Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03 | TUFLOW SWMM Module 3]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M04 | TUFLOW SWMM Module 4]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology: Executing multiple different event simulations from a single model control file.&lt;br /&gt;
*&amp;lt;u&amp;gt;[[XPSWMM_to_TUFLOW-SWMM | XPSWMM to TUFLOW SWMM]]&amp;lt;/u&amp;gt;  - How to convert an XPSWMM model to TUFLOW SWMM.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_SWMM_Tutorial_Introduction#Tutorial_Modules| Return to TUFLOW SWMM Tutorial Introduction Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41007</id>
		<title>TUFLOW SWMM Tutorial M03</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41007"/>
		<updated>2024-09-23T14:13:12Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* TUFLOW Control File (TCF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
This tutorial, Module 3 of the TUFLOW-SWMM tutorial dataset, demonstrates how to add SWMM urban hydrology to a 1D SWMM stormwater pipe network / 2D TUFLOW HPC catchment model. TUFLOW-SWMM Tutorial Module 3 builds from the model created in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;. The completed TUFLOW-SWMM Module 2 model is provided in the &#039;&#039;&#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW&#039;&#039;&#039;&#039;&#039; folder of the download dataset as the starting point for this tutorial. If you are not already familiar with TUFLOW-SWMM linking, we recommend completing TUFLOW-SWMM Modules 1 and 2 prior to starting this tutorial. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Project Initialization =&lt;br /&gt;
==QGIS==&lt;br /&gt;
QGIS Version 3.34 or newer, and QGIS TUFLOW Plugin 3.11 or newer are required to access the SWMM Processing Tools described in the following sections. For installation, see &amp;lt;u&amp;gt;[https://wiki.tuflow.com/TUFLOW_QGIS_Plugin Installation of TUFLOW Plugin]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Define the Coordinate Reference System (CRS), also called ‘Projection’, for the QGIS workspace:&lt;br /&gt;
&amp;lt;ol&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt;Open QGIS.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Properties… &lt;br /&gt;
&amp;lt;li&amp;gt;In the CRS tab, type ‘WGS 84 / UTM Zone 60S’.&lt;br /&gt;
&amp;lt;li&amp;gt;Select the matching projection in the &#039;Predefined Coordinate Reference Systems&#039; section.&lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Apply’ and ‘OK’.&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that the projection is set correctly by viewing the bottom right hand corner of the workspace. It should read ‘EPSG:32760’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS1_Initialization_01a.mp4|width=1235}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Model==&lt;br /&gt;
===Load and Style TUFLOW Model Files===&lt;br /&gt;
Load in the project GIS layers:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Load TUFLOW Layers from TCF’ symbol from the TUFLOW Plugin toolbar.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: Tuflow_plugin_load_tcf_layers.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Load Layers window, select:&lt;br /&gt;
* Ordering Options: Alphabetical&lt;br /&gt;
* Grouping Options: Group by control file&lt;br /&gt;
* Raster Load Options: Load Normally &lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Open’ and ‘OK’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Style the TUFLOW layers. Suggested styling steps were provided in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01#Load_and_Style_TUFLOW_Model_Files|TUFLOW SWMM Tutorial M01]]&amp;lt;/u&amp;gt;. They have not been duplicated here.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Plugin===&lt;br /&gt;
Next we need to configure the QGIS TUFLOW Plugin settings to link with the project folder where we will build our model:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the &#039;Configure TUFLOW Project&#039; tool by selecting Plugins &amp;gt; TUFLOW &amp;gt; Editing &amp;gt; Configure / Create TUFLOW Project.&lt;br /&gt;
&amp;lt;li&amp;gt;Set the CRS (Coordinate Reference System) by selecting one of the vector layers associated with the opened model using the drop menu list. For example, &#039;&#039;2d_bc_M01_001_L&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW folder, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder. Click &#039;Select Folder&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW single precision executable file, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;exe\2023-03-AF&#039;&#039;&#039; folder. Select &#039;&#039;&#039;TUFLOW_iSP_w64.exe&#039;&#039;&#039; and click &#039;Open&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;GPKG&#039; as the GIS Format. &lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;TUFLOW Classic / HPC&#039; as the TUFLOW Engine.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick on &#039;Save Default Settings Globally&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: TS3_Configure_Project_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment TUFLOW GeoPackage File === &lt;br /&gt;
We will now save a copy of &#039;&#039;&#039;TS02_001.gpkg&#039;&#039;&#039; with a new name, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. This project initialization step is recommended so prior model versions from a project are not broken as a result of changes being made to GIS inputs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the &#039;Increment Selected Layer&#039; symbol from the TUFLOW Plugin toolbar. This opens the dialog shown below. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_increment_layer.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:*Source Layer: Automatically set to the selected layer, &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
:*Output Database: Click &#039;Browse...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Set the new output database name to &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;.&lt;br /&gt;
:*Output Layer Name: This will automatically increment to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;2&#039;&#039;_L&#039;&#039;&#039;. Change the name back to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;1&#039;&#039;_L&#039;&#039;&#039;.&lt;br /&gt;
:*Delete the pre-filled &#039;Incremented Layer&#039; entry in the table. We do not wish to modify the version number associated with the 2d_bc file. This current exercise will not change the version number of any of the GIS layer inputs, it is simply establishing a copy of the existing GeoPackage where future edits will be saved to.&lt;br /&gt;
:*Select &#039;Remove Source Layer from Workspace&#039;.&lt;br /&gt;
:*Select &#039;Increment Layer and Preserve Database&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The GeoPackage database, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; will now be in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment SWMM GeoPackage File === &lt;br /&gt;
SWMM pipe network junction attributes need to be updated when converting a TUFLOW 2D direct rainfall / SWMM 1D model &amp;lt;u&amp;gt;([[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;). into a format that uses SWMM hydrology instead of direct rainfall. Similar to above (incrementing the TUFLOW GeoPackage file), we will increment the SWMM pipe network database name so we do not alter the inputs necessary for &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; to function without issue. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group. In the &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; group, right click &#039;&#039;&#039;Links--Conduits&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select TUFLOW &amp;gt; SWMM - Increment GeoPackage. This opens the dialog shown below. &lt;br /&gt;
:*Output File: Click the &#039;...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder. Set the output database name to &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;. &lt;br /&gt;
:*Existing GeoPackage Layers: &#039;Unload -- do not move&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; The tool will automatically load &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into the QGIS workspace and remove &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; from the QGIS workspace.&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Save QGIS Project Workspace===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Save As.&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder and type &#039;&#039;&#039;SWMM_M03&#039;&#039;&#039; as the filename with the extension .qgz.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= GIS Inputs =&lt;br /&gt;
==Update SWMM GeoPackage Spatial Database== &lt;br /&gt;
In previous tutorials we have created new SWMM GeoPackage databases for our new entries. This tutorial will demonstrate a different update approach. Instead of creating a new SWMM GeoPackage database, we will update the existing database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; by adding new SWMM Sections for the hydrology elements we will be incorporating into the model in this tutorial.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Processing &amp;gt; Toolbox from the top dropdown menu options to open the Processing Toolbox.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to TUFLOW &amp;gt;&amp;gt; SWMM in the processing tool list and select &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Add_Sections |GeoPackage - Add sections]]&amp;lt;/u&amp;gt;&#039;. This opens the dialog shown below.&lt;br /&gt;
:*GPKG filename modify: Click the ... and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\swmm&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
:*CRS for GeoPackage: Click the drop down menu and select &#039;Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S&#039;.&lt;br /&gt;
:*SWMM Sections to add: Click the ..., and tick on:&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above steps have added the new sections to the SWMM GeoPackage database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. However, the new sections are not currently displayed in the QGIS Layers Panel. We need to close the database and reopen it to view the changes.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;sw03_001&#039;&#039;&#039; and select &#039;Remove Group...&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder and drag and drop &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;Add Layers&#039; to open all vectors within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. By default, all items in the available list should have been selected. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project when we are making edits. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, within the &#039;&#039;&#039;sw03_001&#039;&#039;&#039; group, move &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to the bottom. This will ensure that the other data within this database can be seen. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SWMM GIS Data Entry ==&lt;br /&gt;
&lt;br /&gt;
A GeoPackage called &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; is provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. It contains one SWMM input layer and one TUFLOW input layer: &lt;br /&gt;
:*&#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;: defines the 1D SWMM urban hydrology subcatchment delineation and associated parameters.&lt;br /&gt;
:*&#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;: defines the remaining 2D TUFLOW catchment hydrology subcatchment delineation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To populate the SWMM GeoPackage created in the previous section:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS select &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click on the &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039; layer and select &#039;Zoom to Layer(s)&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight all items included in &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer. &lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle the editing off to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology&#039;&#039;&#039; from the QGIS Layers Panel.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SWMM GIS Data Updates==&lt;br /&gt;
The following updates are being made to the objects and layers within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Raingages===&lt;br /&gt;
The text information within &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; defines the pluviographs in the catchment. We will link to two different rain gages in this example. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; &#039;Gage&#039; is the American spelling of &#039;Gauge&#039; in Oxford English.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Add Feature&#039; twice. Enter the following attributes (leave all other fields as &#039;&#039;NULL&#039;&#039;):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;60%&amp;quot;&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Name &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Form &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Intevl &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| SnowCatchDeficiency&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Format &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Tseries &lt;br /&gt;
|-&lt;br /&gt;
| RF_G1 || Volume || 0.1 || 1 || TIMESERIES || RF_FC04 &lt;br /&gt;
|-&lt;br /&gt;
| RF_G2 || Volume || 0.1 || 1 || TIMESERIES || RF_FC07 &lt;br /&gt;
|}&lt;br /&gt;
For a summary of the attributes associated with &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Raingages TUFLOW 2023-03-AD Release Notes (Table A.11)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Note, the spatial locations where the gage information is applied is covered in the following section.&lt;br /&gt;
&amp;lt;li&amp;gt; Turn off editing and save the information.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_04b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Subcatchments===&lt;br /&gt;
The information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; defines the subcatchment parameters (including catchment area, width, slope, percent impervious, outlet specification and infiltration details). All required data entries have been pre-filled in the supplied dataset except the &#039;Area&#039; information, which we will determine using QGIS. SWMM requires the hydrology subcatchment area information in hectares.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Choose &#039;Area&#039; as the target field and type the calculation expression, &#039;area($geometry) / 10000&#039;. &lt;br /&gt;
:* &#039;area($geometry) &#039;: Extracts the area of each region (subcatchment) in &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
:* &#039;/ 10000&#039;: Converts the area values into hectares.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The projection used in these tutorials is measured in meters. Thus, when QGIS extracts the area from a region, it reports the area in m&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. If using a projection that is measured in feet, QGIS would extract the area in ft&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Update All&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing and save the information.&lt;br /&gt;
&amp;lt;li&amp;gt;Inspect the attribute information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to familiarize yourself with the data. A few demonstration features have been included in the dataset. &lt;br /&gt;
:*Two rainfall gages are linked to the subcatchments. Downstream subcatchments linked to rain gage &#039;RF_G1&#039;. Upstream subcatchments are linked to rain gage &#039;RF_G2&#039;.&lt;br /&gt;
:*Subcatchments &#039;SPit11A&#039; and &#039;SPit11A&#039; are being routed to subcatchment &#039;SPit11C&#039; before entering the SWMM pipe network. All other hydrology subcatchments route directly to a SWMM &#039;&#039;&#039;Node--Junctions&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
For a summary of the attributes associated with the layer, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Subcatchments TUFLOW 2023-03-AD Release Notes (Table A.38)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_05b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SWMM Options===&lt;br /&gt;
SWMM &#039;&#039;&#039;Project--Options&#039;&#039;&#039; defines the SWMM simulation controls, such as hydrology computation timestep. &#039;&#039;&#039;Project--Options&#039;&#039;&#039; are not required in the new GeoPackage database we are creating for this Tutorial. This is because this model will be constructed from multiple SWMM input (INP) files:&lt;br /&gt;
:*&#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; (road culverts).&lt;br /&gt;
:*&#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; (underground pipe network inputs and SWMM hydrology).&lt;br /&gt;
When TUFLOW processes SWMM inputs, it combines the multiple INP files into one single INP prior to simulation. For this model, the simulation control parameters defined in Module 1 (&#039;&#039;&#039;sw01_001 &amp;gt; Project--Options&#039;&#039;&#039;) will apply. The options relevant to this tutorial that have already been defined in the Module 1 input include:&lt;br /&gt;
:*&#039;&#039;&#039;flow_units&#039;&#039;&#039;: set to metric.&lt;br /&gt;
:*&#039;&#039;&#039;infiltration&#039;&#039;&#039; method: set to Green Ampt.&lt;br /&gt;
We need to change the SWMM hydrology timestep details. Updating this setting in the &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; does not impact any of the previous tutorial modules, as they did not include any hydrology components. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group and select (left click) &#039;&#039;&#039;sw01_001 &amp;gt;&amp;gt; Project--Options&#039;&#039;&#039; and toggle on editing. &lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Project--Options&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the following hydrology timestep options: &lt;br /&gt;
:*WET_STEP: 00:01:00&lt;br /&gt;
:*DRY_STEP: 00:01:00&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing to save the edits.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_06b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Export SWMM INP File ==&lt;br /&gt;
We will now create a new INP file for the pipe network and SWMM urban hydrology inputs and update &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to reflect the changes made to the hydrology options above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; (or any other SWMM layer in the same GeoPackage) and select &#039;TUFLOW&#039; &amp;gt; &#039;SWMM - Export inp file&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This will open the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Write_to_SWMM_inp |GeoPackage - Write to SWMM inp]]&amp;lt;/u&amp;gt;&#039; processing tool, prepopulated with the filename of the layer&#039;s GeoPackage. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This tool can also be activated from the Processing Toolbox. &lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, update the &#039;GeoPackage Input File&#039; parameter. Click &#039;...&#039;, and navigate to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw01_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This tool will save the SWMM inp files in the same folder location and with the same name as the GeoPackage input file. In this case, it will save &#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; and &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_07b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW GIS Updates==&lt;br /&gt;
We will be reverting the TUFLOW model back to a configuration that uses inflows from an external hydrology model (as per Module 1), instead of 2D direct rainfall (Module 2), in the areas not covered by SWMM urban hydrology. Instead of reusing the input from Module 1, we will need to use a new TUFLOW source area inflow layer. This will ensure that we do not double count the flow generated over the area now represented by SWMM.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Import Empty File’ symbol from the TUFLOW plugin toolbar. &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_import_empty_file.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;2d_sa&#039; from the Empty Type list.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Run ID box write &#039;TS03_001&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick the &#039;Regions&#039; Geometry Type.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Spatial Database Options, select &#039;All to one&#039;. Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. Click Save and hit &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; appears in the QGIS Layers Panel.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:TS3_import_empty_2d_sa_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, select &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight the four regions included in &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle off editing to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
The polygon entry we have updated refers to a new subcatchment name for the region adjacent to the SWMM subcatchments. The new name is &#039;FC06.62&#039;, instead of &#039;FC06&#039;. When we update the TUFLOW Control files we will configure the file references so we are sourcing data from a new flow file obtained from an external hydrology model that has been updated with the reduced catchment area, in recognition of SWMM being used for the flow estimate in the proposed urban development area. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Common hydrology software used in combination with TUFLOW by modelers include: HEC-HMS, RORB, Drains, WBNM, URBS and more.&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Boundary Updates==&lt;br /&gt;
As a result of the changes made to the TUFLOW inflows, new TUFLOW Boundary Condition csv files are also needed. Updated files have been provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. These files provide the values and model linkages to the new hydrology inflows, which include the &#039;FC06.62&#039; entry.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy &#039;&#039;&#039;bc_dbase_TS03_001.csv&#039;&#039;&#039; and &#039;&#039;&#039;TS03_01p2hr.csv&#039;&#039;&#039; from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\bc_dbase&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Boundary_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Simulation Control Files=&lt;br /&gt;
To avoid the potential risk of overwriting existing control files accidentally, we will start by saving new control files where we will be making subsequent syntax updates during the following steps.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; in a Text Editor (Notepad++ is recommended). Save the file as &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;li&amp;gt;Using the &#039;Open File&#039; function in Notepad++: &lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tbc,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tscf,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Control File (TCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; by making the following reference updates:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Spatial Database &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\gis\TS03_001.gpkg&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specify the location of the GeoPackage Spatial Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tbc&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the TUFLOW Boundary Condition Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\bc_dbase\bc_dbase_TS03_001.csv&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the Boundary Condition Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;SWMM Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tscf&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the SWMM (1D) Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add the following command to the &#039;&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Time Control&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&#039; section. This command is necessary for many TUFLOW-SWMM models, especially when using SWMM hydrology. The 2D timestep dictates the SWMM 1D timestep. Generally, this timestep is adequate for SWMM but in cases where the flows are contained in the 1D, the timestep may become too large for SWMM. This command forces it into the appropriate range.&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Timestep Maximum &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;3&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specifies a maximum timestep of 3 seconds&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Comment out the &#039;Map Cuttoff Depth&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Map Cutoff Depth == 0.05&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Boundary Control File (TBC)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Comment out the &#039;Global Rainfall BC&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Global Rainfall BC == RF_FC04&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following additional command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read GIS SA&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;2d_sa_TS03_001_R &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Reads in 2D source area - Excluding SWMM areas&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_02c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW SWMM Control File (TSCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw02_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; with the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw03_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;As we are pushing flows from the subcatchments straight to the pipe network, the water level of the ponded water at the nodes can become much higher than the 2D water levels. The inlet will surcharge but the flow is throttled. The following command will pull water out of the 2D if the 1D ponded water level goes beyond 0.1 m higher than the 2D (not needed for rain on grid simulations). Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Maximum Inlet Ponded Depth&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;0.1 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Pull ponded water out of the 1D domain as needed&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read BC Timeseries&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;RF_FC04 | RF_FC07 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! TUFLOW BC Database / SWMM Rain Gage Linkage&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_03c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Running the Simulation=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save a copy of &#039;&#039;&#039;_run_TS02_HPC.bat&#039;&#039;&#039; as &#039;&#039;&#039;_run_TS03_HPC.bat&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the batch file to reference the &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;exe&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&amp;quot;..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe&amp;quot;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;run&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;start &amp;quot;TUFLOW&amp;quot; /wait&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; %exe%&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; -b&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;%run% &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;TS03_5m_001.tcf &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Save the batch file and double click it in Windows File Explorer to run the simulation. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Did your TUFLOW-SWMM model fail to run successfully? If so, here is a link to a troubleshooting guide: &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Troubleshooting | TUFLOW SWMM Troubleshooting]]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Run_Sim_01c.mp4|width=1236}}&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Check Files = &lt;br /&gt;
Review the SWMM INP and simulation report file from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\results&#039;&#039;&#039; folder to confirm the new hydrology inputs are being processed correctly:&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.inp&#039;&#039;&#039; in a text editor to confirm the combining of the two input INP files has occurred correctly. Also use the QGIS Processing tool, &amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Create_from_SWMM_inp |GeoPackage - Create from SWMM inp ]]&amp;lt;/u&amp;gt;, to view the information in QGIS. &lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm_curves.inp&#039;&#039;&#039; in a text editor to confirm the rainfall time series that has been used by the SWMM hydrology engine matches the input dataset.&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.rpt&#039;&#039;&#039; in a text editor to confirm the model computation is healthy in term of mass conservation.&lt;br /&gt;
&lt;br /&gt;
= Results Output =&lt;br /&gt;
Complete the steps outlined in following link to review the simulation results from the TUFLOW SWMM model simulation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03_Results_QGIS | TUFLOW SWMM Tutorial 03 Results]]&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
*EPA SWMM urban hydrology was added to the model (replacing 2D drect rainfall / rain-on-grid).&lt;br /&gt;
*The 1D SWMM pipe urban pipe network junction attributes were updated to accomodate for the change in model configuration, from 2D direct rainfall to 1D SWMM hydrology.&lt;br /&gt;
*Check and result files associated with the SWMM hydrology modelling were inspected.&lt;br /&gt;
&lt;br /&gt;
=Other TUFLOW SWMM Tutorials=&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01 | TUFLOW SWMM Module 1]]&amp;lt;/u&amp;gt;  - 1D SWMM Culverts&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02 | TUFLOW SWMM Module 2]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 2D TUFLOW Direct Rainfall Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03 | TUFLOW SWMM Module 3]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M04 | TUFLOW SWMM Module 4]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology: Executing multiple different event simulations from a single model control file.&lt;br /&gt;
*&amp;lt;u&amp;gt;[[XPSWMM_to_TUFLOW-SWMM | XPSWMM to TUFLOW SWMM]]&amp;lt;/u&amp;gt;  - How to convert an XPSWMM model to TUFLOW SWMM.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_SWMM_Tutorial_Introduction#Tutorial_Modules| Return to TUFLOW SWMM Tutorial Introduction Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41006</id>
		<title>TUFLOW SWMM Tutorial M03</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41006"/>
		<updated>2024-09-23T13:43:46Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* TUFLOW Control File (TCF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
This tutorial, Module 3 of the TUFLOW-SWMM tutorial dataset, demonstrates how to add SWMM urban hydrology to a 1D SWMM stormwater pipe network / 2D TUFLOW HPC catchment model. TUFLOW-SWMM Tutorial Module 3 builds from the model created in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;. The completed TUFLOW-SWMM Module 2 model is provided in the &#039;&#039;&#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW&#039;&#039;&#039;&#039;&#039; folder of the download dataset as the starting point for this tutorial. If you are not already familiar with TUFLOW-SWMM linking, we recommend completing TUFLOW-SWMM Modules 1 and 2 prior to starting this tutorial. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Project Initialization =&lt;br /&gt;
==QGIS==&lt;br /&gt;
QGIS Version 3.34 or newer, and QGIS TUFLOW Plugin 3.11 or newer are required to access the SWMM Processing Tools described in the following sections. For installation, see &amp;lt;u&amp;gt;[https://wiki.tuflow.com/TUFLOW_QGIS_Plugin Installation of TUFLOW Plugin]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Define the Coordinate Reference System (CRS), also called ‘Projection’, for the QGIS workspace:&lt;br /&gt;
&amp;lt;ol&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt;Open QGIS.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Properties… &lt;br /&gt;
&amp;lt;li&amp;gt;In the CRS tab, type ‘WGS 84 / UTM Zone 60S’.&lt;br /&gt;
&amp;lt;li&amp;gt;Select the matching projection in the &#039;Predefined Coordinate Reference Systems&#039; section.&lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Apply’ and ‘OK’.&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that the projection is set correctly by viewing the bottom right hand corner of the workspace. It should read ‘EPSG:32760’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS1_Initialization_01a.mp4|width=1235}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Model==&lt;br /&gt;
===Load and Style TUFLOW Model Files===&lt;br /&gt;
Load in the project GIS layers:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Load TUFLOW Layers from TCF’ symbol from the TUFLOW Plugin toolbar.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: Tuflow_plugin_load_tcf_layers.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Load Layers window, select:&lt;br /&gt;
* Ordering Options: Alphabetical&lt;br /&gt;
* Grouping Options: Group by control file&lt;br /&gt;
* Raster Load Options: Load Normally &lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Open’ and ‘OK’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Style the TUFLOW layers. Suggested styling steps were provided in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01#Load_and_Style_TUFLOW_Model_Files|TUFLOW SWMM Tutorial M01]]&amp;lt;/u&amp;gt;. They have not been duplicated here.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Plugin===&lt;br /&gt;
Next we need to configure the QGIS TUFLOW Plugin settings to link with the project folder where we will build our model:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the &#039;Configure TUFLOW Project&#039; tool by selecting Plugins &amp;gt; TUFLOW &amp;gt; Editing &amp;gt; Configure / Create TUFLOW Project.&lt;br /&gt;
&amp;lt;li&amp;gt;Set the CRS (Coordinate Reference System) by selecting one of the vector layers associated with the opened model using the drop menu list. For example, &#039;&#039;2d_bc_M01_001_L&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW folder, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder. Click &#039;Select Folder&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW single precision executable file, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;exe\2023-03-AF&#039;&#039;&#039; folder. Select &#039;&#039;&#039;TUFLOW_iSP_w64.exe&#039;&#039;&#039; and click &#039;Open&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;GPKG&#039; as the GIS Format. &lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;TUFLOW Classic / HPC&#039; as the TUFLOW Engine.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick on &#039;Save Default Settings Globally&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: TS3_Configure_Project_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment TUFLOW GeoPackage File === &lt;br /&gt;
We will now save a copy of &#039;&#039;&#039;TS02_001.gpkg&#039;&#039;&#039; with a new name, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. This project initialization step is recommended so prior model versions from a project are not broken as a result of changes being made to GIS inputs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the &#039;Increment Selected Layer&#039; symbol from the TUFLOW Plugin toolbar. This opens the dialog shown below. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_increment_layer.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:*Source Layer: Automatically set to the selected layer, &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
:*Output Database: Click &#039;Browse...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Set the new output database name to &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;.&lt;br /&gt;
:*Output Layer Name: This will automatically increment to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;2&#039;&#039;_L&#039;&#039;&#039;. Change the name back to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;1&#039;&#039;_L&#039;&#039;&#039;.&lt;br /&gt;
:*Delete the pre-filled &#039;Incremented Layer&#039; entry in the table. We do not wish to modify the version number associated with the 2d_bc file. This current exercise will not change the version number of any of the GIS layer inputs, it is simply establishing a copy of the existing GeoPackage where future edits will be saved to.&lt;br /&gt;
:*Select &#039;Remove Source Layer from Workspace&#039;.&lt;br /&gt;
:*Select &#039;Increment Layer and Preserve Database&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The GeoPackage database, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; will now be in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment SWMM GeoPackage File === &lt;br /&gt;
SWMM pipe network junction attributes need to be updated when converting a TUFLOW 2D direct rainfall / SWMM 1D model &amp;lt;u&amp;gt;([[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;). into a format that uses SWMM hydrology instead of direct rainfall. Similar to above (incrementing the TUFLOW GeoPackage file), we will increment the SWMM pipe network database name so we do not alter the inputs necessary for &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; to function without issue. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group. In the &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; group, right click &#039;&#039;&#039;Links--Conduits&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select TUFLOW &amp;gt; SWMM - Increment GeoPackage. This opens the dialog shown below. &lt;br /&gt;
:*Output File: Click the &#039;...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder. Set the output database name to &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;. &lt;br /&gt;
:*Existing GeoPackage Layers: &#039;Unload -- do not move&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; The tool will automatically load &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into the QGIS workspace and remove &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; from the QGIS workspace.&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Save QGIS Project Workspace===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Save As.&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder and type &#039;&#039;&#039;SWMM_M03&#039;&#039;&#039; as the filename with the extension .qgz.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= GIS Inputs =&lt;br /&gt;
==Update SWMM GeoPackage Spatial Database== &lt;br /&gt;
In previous tutorials we have created new SWMM GeoPackage databases for our new entries. This tutorial will demonstrate a different update approach. Instead of creating a new SWMM GeoPackage database, we will update the existing database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; by adding new SWMM Sections for the hydrology elements we will be incorporating into the model in this tutorial.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Processing &amp;gt; Toolbox from the top dropdown menu options to open the Processing Toolbox.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to TUFLOW &amp;gt;&amp;gt; SWMM in the processing tool list and select &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Add_Sections |GeoPackage - Add sections]]&amp;lt;/u&amp;gt;&#039;. This opens the dialog shown below.&lt;br /&gt;
:*GPKG filename modify: Click the ... and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\swmm&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
:*CRS for GeoPackage: Click the drop down menu and select &#039;Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S&#039;.&lt;br /&gt;
:*SWMM Sections to add: Click the ..., and tick on:&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above steps have added the new sections to the SWMM GeoPackage database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. However, the new sections are not currently displayed in the QGIS Layers Panel. We need to close the database and reopen it to view the changes.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;sw03_001&#039;&#039;&#039; and select &#039;Remove Group...&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder and drag and drop &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;Add Layers&#039; to open all vectors within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. By default, all items in the available list should have been selected. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project when we are making edits. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, within the &#039;&#039;&#039;sw03_001&#039;&#039;&#039; group, move &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to the bottom. This will ensure that the other data within this database can be seen. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SWMM GIS Data Entry ==&lt;br /&gt;
&lt;br /&gt;
A GeoPackage called &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; is provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. It contains one SWMM input layer and one TUFLOW input layer: &lt;br /&gt;
:*&#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;: defines the 1D SWMM urban hydrology subcatchment delineation and associated parameters.&lt;br /&gt;
:*&#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;: defines the remaining 2D TUFLOW catchment hydrology subcatchment delineation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To populate the SWMM GeoPackage created in the previous section:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS select &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click on the &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039; layer and select &#039;Zoom to Layer(s)&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight all items included in &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer. &lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle the editing off to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology&#039;&#039;&#039; from the QGIS Layers Panel.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SWMM GIS Data Updates==&lt;br /&gt;
The following updates are being made to the objects and layers within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Raingages===&lt;br /&gt;
The text information within &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; defines the pluviographs in the catchment. We will link to two different rain gages in this example. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; &#039;Gage&#039; is the American spelling of &#039;Gauge&#039; in Oxford English.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Add Feature&#039; twice. Enter the following attributes (leave all other fields as &#039;&#039;NULL&#039;&#039;):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;60%&amp;quot;&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Name &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Form &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Intevl &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| SnowCatchDeficiency&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Format &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Tseries &lt;br /&gt;
|-&lt;br /&gt;
| RF_G1 || Volume || 0.1 || 1 || TIMESERIES || RF_FC04 &lt;br /&gt;
|-&lt;br /&gt;
| RF_G2 || Volume || 0.1 || 1 || TIMESERIES || RF_FC07 &lt;br /&gt;
|}&lt;br /&gt;
For a summary of the attributes associated with &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Raingages TUFLOW 2023-03-AD Release Notes (Table A.11)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Note, the spatial locations where the gage information is applied is covered in the following section.&lt;br /&gt;
&amp;lt;li&amp;gt; Turn off editing and save the information.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_04b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Subcatchments===&lt;br /&gt;
The information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; defines the subcatchment parameters (including catchment area, width, slope, percent impervious, outlet specification and infiltration details). All required data entries have been pre-filled in the supplied dataset except the &#039;Area&#039; information, which we will determine using QGIS. SWMM requires the hydrology subcatchment area information in hectares.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Choose &#039;Area&#039; as the target field and type the calculation expression, &#039;area($geometry) / 10000&#039;. &lt;br /&gt;
:* &#039;area($geometry) &#039;: Extracts the area of each region (subcatchment) in &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
:* &#039;/ 10000&#039;: Converts the area values into hectares.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The projection used in these tutorials is measured in meters. Thus, when QGIS extracts the area from a region, it reports the area in m&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. If using a projection that is measured in feet, QGIS would extract the area in ft&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Update All&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing and save the information.&lt;br /&gt;
&amp;lt;li&amp;gt;Inspect the attribute information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to familiarize yourself with the data. A few demonstration features have been included in the dataset. &lt;br /&gt;
:*Two rainfall gages are linked to the subcatchments. Downstream subcatchments linked to rain gage &#039;RF_G1&#039;. Upstream subcatchments are linked to rain gage &#039;RF_G2&#039;.&lt;br /&gt;
:*Subcatchments &#039;SPit11A&#039; and &#039;SPit11A&#039; are being routed to subcatchment &#039;SPit11C&#039; before entering the SWMM pipe network. All other hydrology subcatchments route directly to a SWMM &#039;&#039;&#039;Node--Junctions&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
For a summary of the attributes associated with the layer, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Subcatchments TUFLOW 2023-03-AD Release Notes (Table A.38)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_05b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SWMM Options===&lt;br /&gt;
SWMM &#039;&#039;&#039;Project--Options&#039;&#039;&#039; defines the SWMM simulation controls, such as hydrology computation timestep. &#039;&#039;&#039;Project--Options&#039;&#039;&#039; are not required in the new GeoPackage database we are creating for this Tutorial. This is because this model will be constructed from multiple SWMM input (INP) files:&lt;br /&gt;
:*&#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; (road culverts).&lt;br /&gt;
:*&#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; (underground pipe network inputs and SWMM hydrology).&lt;br /&gt;
When TUFLOW processes SWMM inputs, it combines the multiple INP files into one single INP prior to simulation. For this model, the simulation control parameters defined in Module 1 (&#039;&#039;&#039;sw01_001 &amp;gt; Project--Options&#039;&#039;&#039;) will apply. The options relevant to this tutorial that have already been defined in the Module 1 input include:&lt;br /&gt;
:*&#039;&#039;&#039;flow_units&#039;&#039;&#039;: set to metric.&lt;br /&gt;
:*&#039;&#039;&#039;infiltration&#039;&#039;&#039; method: set to Green Ampt.&lt;br /&gt;
We need to change the SWMM hydrology timestep details. Updating this setting in the &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; does not impact any of the previous tutorial modules, as they did not include any hydrology components. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group and select (left click) &#039;&#039;&#039;sw01_001 &amp;gt;&amp;gt; Project--Options&#039;&#039;&#039; and toggle on editing. &lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Project--Options&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the following hydrology timestep options: &lt;br /&gt;
:*WET_STEP: 00:01:00&lt;br /&gt;
:*DRY_STEP: 00:01:00&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing to save the edits.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_06b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Export SWMM INP File ==&lt;br /&gt;
We will now create a new INP file for the pipe network and SWMM urban hydrology inputs and update &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to reflect the changes made to the hydrology options above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; (or any other SWMM layer in the same GeoPackage) and select &#039;TUFLOW&#039; &amp;gt; &#039;SWMM - Export inp file&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This will open the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Write_to_SWMM_inp |GeoPackage - Write to SWMM inp]]&amp;lt;/u&amp;gt;&#039; processing tool, prepopulated with the filename of the layer&#039;s GeoPackage. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This tool can also be activated from the Processing Toolbox. &lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, update the &#039;GeoPackage Input File&#039; parameter. Click &#039;...&#039;, and navigate to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw01_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This tool will save the SWMM inp files in the same folder location and with the same name as the GeoPackage input file. In this case, it will save &#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; and &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_07b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW GIS Updates==&lt;br /&gt;
We will be reverting the TUFLOW model back to a configuration that uses inflows from an external hydrology model (as per Module 1), instead of 2D direct rainfall (Module 2), in the areas not covered by SWMM urban hydrology. Instead of reusing the input from Module 1, we will need to use a new TUFLOW source area inflow layer. This will ensure that we do not double count the flow generated over the area now represented by SWMM.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Import Empty File’ symbol from the TUFLOW plugin toolbar. &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_import_empty_file.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;2d_sa&#039; from the Empty Type list.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Run ID box write &#039;TS03_001&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick the &#039;Regions&#039; Geometry Type.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Spatial Database Options, select &#039;All to one&#039;. Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. Click Save and hit &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; appears in the QGIS Layers Panel.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:TS3_import_empty_2d_sa_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, select &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight the four regions included in &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle off editing to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
The polygon entry we have updated refers to a new subcatchment name for the region adjacent to the SWMM subcatchments. The new name is &#039;FC06.62&#039;, instead of &#039;FC06&#039;. When we update the TUFLOW Control files we will configure the file references so we are sourcing data from a new flow file obtained from an external hydrology model that has been updated with the reduced catchment area, in recognition of SWMM being used for the flow estimate in the proposed urban development area. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Common hydrology software used in combination with TUFLOW by modelers include: HEC-HMS, RORB, Drains, WBNM, URBS and more.&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Boundary Updates==&lt;br /&gt;
As a result of the changes made to the TUFLOW inflows, new TUFLOW Boundary Condition csv files are also needed. Updated files have been provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. These files provide the values and model linkages to the new hydrology inflows, which include the &#039;FC06.62&#039; entry.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy &#039;&#039;&#039;bc_dbase_TS03_001.csv&#039;&#039;&#039; and &#039;&#039;&#039;TS03_01p2hr.csv&#039;&#039;&#039; from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\bc_dbase&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Boundary_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Simulation Control Files=&lt;br /&gt;
To avoid the potential risk of overwriting existing control files accidentally, we will start by saving new control files where we will be making subsequent syntax updates during the following steps.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; in a Text Editor (Notepad++ is recommended). Save the file as &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;li&amp;gt;Using the &#039;Open File&#039; function in Notepad++: &lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tbc,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tscf,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Control File (TCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; by making the following reference updates:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Spatial Database &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\gis\TS03_001.gpkg&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specify the location of the GeoPackage Spatial Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tbc&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the TUFLOW Boundary Condition Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\bc_dbase\bc_dbase_TS03_001.csv&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the Boundary Condition Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;SWMM Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tscf&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the SWMM (1D) Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add the following command to the &#039;&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Time Control&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&#039; section. This command is necessary for many TUFLOW-SWMM models, especially when using SWMM hydrology. The 2D timestep dictates the SWMM 1D timestep. Generally, this timestep is adequate for SWMM but in cases where the flows are contained in the 1D, the timestep may become too large for SWMM. This command forces it into the appropriate range. Refer to the &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]&amp;lt;/u&amp;gt; for more details on this process.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Timestep Maximum &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;3&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specifies a maximum timestep of 3 seconds&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Comment out the &#039;Map Cuttoff Depth&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Map Cutoff Depth == 0.05&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Boundary Control File (TBC)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Comment out the &#039;Global Rainfall BC&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Global Rainfall BC == RF_FC04&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following additional command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read GIS SA&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;2d_sa_TS03_001_R &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Reads in 2D source area - Excluding SWMM areas&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_02c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW SWMM Control File (TSCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw02_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; with the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw03_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;As we are pushing flows from the subcatchments straight to the pipe network, the water level of the ponded water at the nodes can become much higher than the 2D water levels. The inlet will surcharge but the flow is throttled. The following command will pull water out of the 2D if the 1D ponded water level goes beyond 0.1 m higher than the 2D (not needed for rain on grid simulations). Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Maximum Inlet Ponded Depth&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;0.1 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Pull ponded water out of the 1D domain as needed&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read BC Timeseries&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;RF_FC04 | RF_FC07 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! TUFLOW BC Database / SWMM Rain Gage Linkage&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_03c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Running the Simulation=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save a copy of &#039;&#039;&#039;_run_TS02_HPC.bat&#039;&#039;&#039; as &#039;&#039;&#039;_run_TS03_HPC.bat&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the batch file to reference the &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;exe&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&amp;quot;..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe&amp;quot;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;run&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;start &amp;quot;TUFLOW&amp;quot; /wait&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; %exe%&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; -b&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;%run% &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;TS03_5m_001.tcf &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Save the batch file and double click it in Windows File Explorer to run the simulation. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Did your TUFLOW-SWMM model fail to run successfully? If so, here is a link to a troubleshooting guide: &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Troubleshooting | TUFLOW SWMM Troubleshooting]]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Run_Sim_01c.mp4|width=1236}}&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Check Files = &lt;br /&gt;
Review the SWMM INP and simulation report file from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\results&#039;&#039;&#039; folder to confirm the new hydrology inputs are being processed correctly:&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.inp&#039;&#039;&#039; in a text editor to confirm the combining of the two input INP files has occurred correctly. Also use the QGIS Processing tool, &amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Create_from_SWMM_inp |GeoPackage - Create from SWMM inp ]]&amp;lt;/u&amp;gt;, to view the information in QGIS. &lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm_curves.inp&#039;&#039;&#039; in a text editor to confirm the rainfall time series that has been used by the SWMM hydrology engine matches the input dataset.&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.rpt&#039;&#039;&#039; in a text editor to confirm the model computation is healthy in term of mass conservation.&lt;br /&gt;
&lt;br /&gt;
= Results Output =&lt;br /&gt;
Complete the steps outlined in following link to review the simulation results from the TUFLOW SWMM model simulation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03_Results_QGIS | TUFLOW SWMM Tutorial 03 Results]]&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
*EPA SWMM urban hydrology was added to the model (replacing 2D drect rainfall / rain-on-grid).&lt;br /&gt;
*The 1D SWMM pipe urban pipe network junction attributes were updated to accomodate for the change in model configuration, from 2D direct rainfall to 1D SWMM hydrology.&lt;br /&gt;
*Check and result files associated with the SWMM hydrology modelling were inspected.&lt;br /&gt;
&lt;br /&gt;
=Other TUFLOW SWMM Tutorials=&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01 | TUFLOW SWMM Module 1]]&amp;lt;/u&amp;gt;  - 1D SWMM Culverts&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02 | TUFLOW SWMM Module 2]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 2D TUFLOW Direct Rainfall Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03 | TUFLOW SWMM Module 3]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M04 | TUFLOW SWMM Module 4]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology: Executing multiple different event simulations from a single model control file.&lt;br /&gt;
*&amp;lt;u&amp;gt;[[XPSWMM_to_TUFLOW-SWMM | XPSWMM to TUFLOW SWMM]]&amp;lt;/u&amp;gt;  - How to convert an XPSWMM model to TUFLOW SWMM.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_SWMM_Tutorial_Introduction#Tutorial_Modules| Return to TUFLOW SWMM Tutorial Introduction Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41005</id>
		<title>TUFLOW SWMM Tutorial M03</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M03&amp;diff=41005"/>
		<updated>2024-09-23T13:43:04Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* TUFLOW Control File (TCF) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
This tutorial, Module 3 of the TUFLOW-SWMM tutorial dataset, demonstrates how to add SWMM urban hydrology to a 1D SWMM stormwater pipe network / 2D TUFLOW HPC catchment model. TUFLOW-SWMM Tutorial Module 3 builds from the model created in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;. The completed TUFLOW-SWMM Module 2 model is provided in the &#039;&#039;&#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW&#039;&#039;&#039;&#039;&#039; folder of the download dataset as the starting point for this tutorial. If you are not already familiar with TUFLOW-SWMM linking, we recommend completing TUFLOW-SWMM Modules 1 and 2 prior to starting this tutorial. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Project Initialization =&lt;br /&gt;
==QGIS==&lt;br /&gt;
QGIS Version 3.34 or newer, and QGIS TUFLOW Plugin 3.11 or newer are required to access the SWMM Processing Tools described in the following sections. For installation, see &amp;lt;u&amp;gt;[https://wiki.tuflow.com/TUFLOW_QGIS_Plugin Installation of TUFLOW Plugin]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Define the Coordinate Reference System (CRS), also called ‘Projection’, for the QGIS workspace:&lt;br /&gt;
&amp;lt;ol&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt;Open QGIS.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Properties… &lt;br /&gt;
&amp;lt;li&amp;gt;In the CRS tab, type ‘WGS 84 / UTM Zone 60S’.&lt;br /&gt;
&amp;lt;li&amp;gt;Select the matching projection in the &#039;Predefined Coordinate Reference Systems&#039; section.&lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Apply’ and ‘OK’.&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that the projection is set correctly by viewing the bottom right hand corner of the workspace. It should read ‘EPSG:32760’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS1_Initialization_01a.mp4|width=1235}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Model==&lt;br /&gt;
===Load and Style TUFLOW Model Files===&lt;br /&gt;
Load in the project GIS layers:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Load TUFLOW Layers from TCF’ symbol from the TUFLOW Plugin toolbar.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: Tuflow_plugin_load_tcf_layers.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Load Layers window, select:&lt;br /&gt;
* Ordering Options: Alphabetical&lt;br /&gt;
* Grouping Options: Group by control file&lt;br /&gt;
* Raster Load Options: Load Normally &lt;br /&gt;
&amp;lt;li&amp;gt;Click ‘Open’ and ‘OK’.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Style the TUFLOW layers. Suggested styling steps were provided in &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01#Load_and_Style_TUFLOW_Model_Files|TUFLOW SWMM Tutorial M01]]&amp;lt;/u&amp;gt;. They have not been duplicated here.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Plugin===&lt;br /&gt;
Next we need to configure the QGIS TUFLOW Plugin settings to link with the project folder where we will build our model:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the &#039;Configure TUFLOW Project&#039; tool by selecting Plugins &amp;gt; TUFLOW &amp;gt; Editing &amp;gt; Configure / Create TUFLOW Project.&lt;br /&gt;
&amp;lt;li&amp;gt;Set the CRS (Coordinate Reference System) by selecting one of the vector layers associated with the opened model using the drop menu list. For example, &#039;&#039;2d_bc_M01_001_L&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW folder, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder. Click &#039;Select Folder&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;To set the location of the TUFLOW single precision executable file, click &#039;Browse...&#039; and navigate to the &#039;&#039;&#039;exe\2023-03-AF&#039;&#039;&#039; folder. Select &#039;&#039;&#039;TUFLOW_iSP_w64.exe&#039;&#039;&#039; and click &#039;Open&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;GPKG&#039; as the GIS Format. &lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;TUFLOW Classic / HPC&#039; as the TUFLOW Engine.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick on &#039;Save Default Settings Globally&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: TS3_Configure_Project_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment TUFLOW GeoPackage File === &lt;br /&gt;
We will now save a copy of &#039;&#039;&#039;TS02_001.gpkg&#039;&#039;&#039; with a new name, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. This project initialization step is recommended so prior model versions from a project are not broken as a result of changes being made to GIS inputs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the &#039;Increment Selected Layer&#039; symbol from the TUFLOW Plugin toolbar. This opens the dialog shown below. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_increment_layer.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:*Source Layer: Automatically set to the selected layer, &#039;&#039;&#039;2d_bc_M01_001_L&#039;&#039;&#039;.&lt;br /&gt;
:*Output Database: Click &#039;Browse...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Set the new output database name to &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;.&lt;br /&gt;
:*Output Layer Name: This will automatically increment to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;2&#039;&#039;_L&#039;&#039;&#039;. Change the name back to &#039;&#039;&#039;2d_bc_M01_00&#039;&#039;1&#039;&#039;_L&#039;&#039;&#039;.&lt;br /&gt;
:*Delete the pre-filled &#039;Incremented Layer&#039; entry in the table. We do not wish to modify the version number associated with the 2d_bc file. This current exercise will not change the version number of any of the GIS layer inputs, it is simply establishing a copy of the existing GeoPackage where future edits will be saved to.&lt;br /&gt;
:*Select &#039;Remove Source Layer from Workspace&#039;.&lt;br /&gt;
:*Select &#039;Increment Layer and Preserve Database&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The GeoPackage database, &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039; will now be in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Increment SWMM GeoPackage File === &lt;br /&gt;
SWMM pipe network junction attributes need to be updated when converting a TUFLOW 2D direct rainfall / SWMM 1D model &amp;lt;u&amp;gt;([[TUFLOW_SWMM_Tutorial_M02|TUFLOW SWMM Tutorial Module 2]]&amp;lt;/u&amp;gt;). into a format that uses SWMM hydrology instead of direct rainfall. Similar to above (incrementing the TUFLOW GeoPackage file), we will increment the SWMM pipe network database name so we do not alter the inputs necessary for &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; to function without issue. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group. In the &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; group, right click &#039;&#039;&#039;Links--Conduits&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select TUFLOW &amp;gt; SWMM - Increment GeoPackage. This opens the dialog shown below. &lt;br /&gt;
:*Output File: Click the &#039;...&#039;. This will automatically open to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder. Set the output database name to &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; and click &#039;Save&#039;. &lt;br /&gt;
:*Existing GeoPackage Layers: &#039;Unload -- do not move&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; The tool will automatically load &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into the QGIS workspace and remove &#039;&#039;&#039;sw02_001.inp&#039;&#039;&#039; from the QGIS workspace.&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Initialization_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Save QGIS Project Workspace===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Project &amp;gt; Save As.&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03&#039;&#039;&#039; folder and type &#039;&#039;&#039;SWMM_M03&#039;&#039;&#039; as the filename with the extension .qgz.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= GIS Inputs =&lt;br /&gt;
==Update SWMM GeoPackage Spatial Database== &lt;br /&gt;
In previous tutorials we have created new SWMM GeoPackage databases for our new entries. This tutorial will demonstrate a different update approach. Instead of creating a new SWMM GeoPackage database, we will update the existing database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; by adding new SWMM Sections for the hydrology elements we will be incorporating into the model in this tutorial.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Go to Processing &amp;gt; Toolbox from the top dropdown menu options to open the Processing Toolbox.&lt;br /&gt;
&amp;lt;li&amp;gt;Go to TUFLOW &amp;gt;&amp;gt; SWMM in the processing tool list and select &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Add_Sections |GeoPackage - Add sections]]&amp;lt;/u&amp;gt;&#039;. This opens the dialog shown below.&lt;br /&gt;
:*GPKG filename modify: Click the ... and navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\swmm&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
:*CRS for GeoPackage: Click the drop down menu and select &#039;Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S&#039;.&lt;br /&gt;
:*SWMM Sections to add: Click the ..., and tick on:&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;&lt;br /&gt;
::*&#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above steps have added the new sections to the SWMM GeoPackage database, &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. However, the new sections are not currently displayed in the QGIS Layers Panel. We need to close the database and reopen it to view the changes.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;sw03_001&#039;&#039;&#039; and select &#039;Remove Group...&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder and drag and drop &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;Add Layers&#039; to open all vectors within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. By default, all items in the available list should have been selected. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, move &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039; to the top of the list. This will ensure the data within this database file is displayed above all other layers in the project when we are making edits. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, within the &#039;&#039;&#039;sw03_001&#039;&#039;&#039; group, move &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to the bottom. This will ensure that the other data within this database can be seen. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_02b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SWMM GIS Data Entry ==&lt;br /&gt;
&lt;br /&gt;
A GeoPackage called &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; is provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. It contains one SWMM input layer and one TUFLOW input layer: &lt;br /&gt;
:*&#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;: defines the 1D SWMM urban hydrology subcatchment delineation and associated parameters.&lt;br /&gt;
:*&#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;: defines the remaining 2D TUFLOW catchment hydrology subcatchment delineation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To populate the SWMM GeoPackage created in the previous section:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS select &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click on the &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039; layer and select &#039;Zoom to Layer(s)&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight all items included in &#039;&#039;&#039;SWMM_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer. &lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;sw03_001 &amp;gt;&amp;gt; Hydrology--Subcatchments&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle the editing off to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology&#039;&#039;&#039; from the QGIS Layers Panel.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_03b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==SWMM GIS Data Updates==&lt;br /&gt;
The following updates are being made to the objects and layers within &#039;&#039;&#039;sw03_001.gpkg&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Raingages===&lt;br /&gt;
The text information within &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; defines the pluviographs in the catchment. We will link to two different rain gages in this example. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; &#039;Gage&#039; is the American spelling of &#039;Gauge&#039; in Oxford English.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Add Feature&#039; twice. Enter the following attributes (leave all other fields as &#039;&#039;NULL&#039;&#039;):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;60%&amp;quot;&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Name &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Form &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Intevl &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| SnowCatchDeficiency&lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Format &lt;br /&gt;
!style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Tseries &lt;br /&gt;
|-&lt;br /&gt;
| RF_G1 || Volume || 0.1 || 1 || TIMESERIES || RF_FC04 &lt;br /&gt;
|-&lt;br /&gt;
| RF_G2 || Volume || 0.1 || 1 || TIMESERIES || RF_FC07 &lt;br /&gt;
|}&lt;br /&gt;
For a summary of the attributes associated with &#039;&#039;&#039;Hydrology--Raingages&#039;&#039;&#039;, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Raingages TUFLOW 2023-03-AD Release Notes (Table A.11)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
Note, the spatial locations where the gage information is applied is covered in the following section.&lt;br /&gt;
&amp;lt;li&amp;gt; Turn off editing and save the information.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_04b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Update SWMM Hydrology Subcatchments===&lt;br /&gt;
The information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; defines the subcatchment parameters (including catchment area, width, slope, percent impervious, outlet specification and infiltration details). All required data entries have been pre-filled in the supplied dataset except the &#039;Area&#039; information, which we will determine using QGIS. SWMM requires the hydrology subcatchment area information in hectares.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and toggle on editing.&lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Choose &#039;Area&#039; as the target field and type the calculation expression, &#039;area($geometry) / 10000&#039;. &lt;br /&gt;
:* &#039;area($geometry) &#039;: Extracts the area of each region (subcatchment) in &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
:* &#039;/ 10000&#039;: Converts the area values into hectares.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The projection used in these tutorials is measured in meters. Thus, when QGIS extracts the area from a region, it reports the area in m&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. If using a projection that is measured in feet, QGIS would extract the area in ft&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Update All&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing and save the information.&lt;br /&gt;
&amp;lt;li&amp;gt;Inspect the attribute information within &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; to familiarize yourself with the data. A few demonstration features have been included in the dataset. &lt;br /&gt;
:*Two rainfall gages are linked to the subcatchments. Downstream subcatchments linked to rain gage &#039;RF_G1&#039;. Upstream subcatchments are linked to rain gage &#039;RF_G2&#039;.&lt;br /&gt;
:*Subcatchments &#039;SPit11A&#039; and &#039;SPit11A&#039; are being routed to subcatchment &#039;SPit11C&#039; before entering the SWMM pipe network. All other hydrology subcatchments route directly to a SWMM &#039;&#039;&#039;Node--Junctions&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
For a summary of the attributes associated with the layer, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Subcatchments TUFLOW 2023-03-AD Release Notes (Table A.38)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt;. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_05b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SWMM Options===&lt;br /&gt;
SWMM &#039;&#039;&#039;Project--Options&#039;&#039;&#039; defines the SWMM simulation controls, such as hydrology computation timestep. &#039;&#039;&#039;Project--Options&#039;&#039;&#039; are not required in the new GeoPackage database we are creating for this Tutorial. This is because this model will be constructed from multiple SWMM input (INP) files:&lt;br /&gt;
:*&#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; (road culverts).&lt;br /&gt;
:*&#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; (underground pipe network inputs and SWMM hydrology).&lt;br /&gt;
When TUFLOW processes SWMM inputs, it combines the multiple INP files into one single INP prior to simulation. For this model, the simulation control parameters defined in Module 1 (&#039;&#039;&#039;sw01_001 &amp;gt; Project--Options&#039;&#039;&#039;) will apply. The options relevant to this tutorial that have already been defined in the Module 1 input include:&lt;br /&gt;
:*&#039;&#039;&#039;flow_units&#039;&#039;&#039;: set to metric.&lt;br /&gt;
:*&#039;&#039;&#039;infiltration&#039;&#039;&#039; method: set to Green Ampt.&lt;br /&gt;
We need to change the SWMM hydrology timestep details. Updating this setting in the &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; does not impact any of the previous tutorial modules, as they did not include any hydrology components. &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, open the &#039;&#039;&#039;TS02_001.tscf&#039;&#039;&#039; group and select (left click) &#039;&#039;&#039;sw01_001 &amp;gt;&amp;gt; Project--Options&#039;&#039;&#039; and toggle on editing. &lt;br /&gt;
&amp;lt;li&amp;gt;Right click &#039;&#039;&#039;Project--Options&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the following hydrology timestep options: &lt;br /&gt;
:*WET_STEP: 00:01:00&lt;br /&gt;
:*DRY_STEP: 00:01:00&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing to save the edits.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_06b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Export SWMM INP File ==&lt;br /&gt;
We will now create a new INP file for the pipe network and SWMM urban hydrology inputs and update &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to reflect the changes made to the hydrology options above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039; (or any other SWMM layer in the same GeoPackage) and select &#039;TUFLOW&#039; &amp;gt; &#039;SWMM - Export inp file&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This will open the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Write_to_SWMM_inp |GeoPackage - Write to SWMM inp]]&amp;lt;/u&amp;gt;&#039; processing tool, prepopulated with the filename of the layer&#039;s GeoPackage. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This tool can also be activated from the Processing Toolbox. &lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, update the &#039;GeoPackage Input File&#039; parameter. Click &#039;...&#039;, and navigate to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Select &#039;&#039;&#039;sw01_001.gpkg&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;This tool will save the SWMM inp files in the same folder location and with the same name as the GeoPackage input file. In this case, it will save &#039;&#039;&#039;sw03_001.inp&#039;&#039;&#039; and &#039;&#039;&#039;sw01_001.inp&#039;&#039;&#039; to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_SWMM_Inputs_07b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW GIS Updates==&lt;br /&gt;
We will be reverting the TUFLOW model back to a configuration that uses inflows from an external hydrology model (as per Module 1), instead of 2D direct rainfall (Module 2), in the areas not covered by SWMM urban hydrology. Instead of reusing the input from Module 1, we will need to use a new TUFLOW source area inflow layer. This will ensure that we do not double count the flow generated over the area now represented by SWMM.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on the ‘Import Empty File’ symbol from the TUFLOW plugin toolbar. &amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_import_empty_file.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;2d_sa&#039; from the Empty Type list.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Run ID box write &#039;TS03_001&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Tick the &#039;Regions&#039; Geometry Type.&lt;br /&gt;
&amp;lt;li&amp;gt;In the Spatial Database Options, select &#039;All to one&#039;. Navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\model\gis&#039;&#039;&#039; folder and select &#039;&#039;&#039;TS03_001.gpkg&#039;&#039;&#039;. Click Save and hit &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;The &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; appears in the QGIS Layers Panel.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:TS3_import_empty_2d_sa_01a.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. Drag and drop the &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039; into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, select &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;. Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to highlight the four regions included in &#039;&#039;&#039;TUFLOW_Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and &#039;Copy Features&#039; from the drop down menu. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, select (left click) the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer.&lt;br /&gt;
&amp;lt;li&amp;gt;Make the &#039;&#039;&#039;2d_sa_TS03_001_R&#039;&#039;&#039; layer editable by clicking the &#039;Toggle Editing&#039; symbol [[File:toggle_editing_icon.png|27x27px]].&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Edit&#039; from the top QGIS tab and click &#039;Paste Features&#039; from the drop down menu.&lt;br /&gt;
&amp;lt;li&amp;gt;Toggle off editing to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;Remove &#039;&#039;&#039;Urban_Hydrology.gpkg&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
The polygon entry we have updated refers to a new subcatchment name for the region adjacent to the SWMM subcatchments. The new name is &#039;FC06.62&#039;, instead of &#039;FC06&#039;. When we update the TUFLOW Control files we will configure the file references so we are sourcing data from a new flow file obtained from an external hydrology model that has been updated with the reduced catchment area, in recognition of SWMM being used for the flow estimate in the proposed urban development area. &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Common hydrology software used in combination with TUFLOW by modelers include: HEC-HMS, RORB, Drains, WBNM, URBS and more.&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Inputs_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Boundary Updates==&lt;br /&gt;
As a result of the changes made to the TUFLOW inflows, new TUFLOW Boundary Condition csv files are also needed. Updated files have been provided in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder. These files provide the values and model linkages to the new hydrology inflows, which include the &#039;FC06.62&#039; entry.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy &#039;&#039;&#039;bc_dbase_TS03_001.csv&#039;&#039;&#039; and &#039;&#039;&#039;TS03_01p2hr.csv&#039;&#039;&#039; from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\Tutorial_Data&#039;&#039;&#039; folder to the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\bc_dbase&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_TUFLOW_Boundary_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Simulation Control Files=&lt;br /&gt;
To avoid the potential risk of overwriting existing control files accidentally, we will start by saving new control files where we will be making subsequent syntax updates during the following steps.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open &#039;&#039;&#039;TS02_5m_001.tcf&#039;&#039;&#039; in a Text Editor (Notepad++ is recommended). Save the file as &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder. &lt;br /&gt;
&amp;lt;li&amp;gt;Using the &#039;Open File&#039; function in Notepad++: &lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tbc,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
:*Open &#039;&#039;&#039;TS02_001.tscf,&#039;&#039;&#039;  and save the file as &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW\model&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Control File (TCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; by making the following reference updates:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Spatial Database &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\gis\TS03_001.gpkg&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specify the location of the GeoPackage Spatial Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tbc&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the TUFLOW Boundary Condition Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;BC Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\bc_dbase\bc_dbase_TS03_001.csv&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the Boundary Condition Database&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;SWMM Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;..\model\TS03_001.tscf&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Reference the SWMM (1D) Control File&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add the following command to the &#039;&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Time Control&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&#039; section. This command is necessary for many TUFLOW-SWMM models, especially when using SWMM hydrology. The 2D timestep dictates the SWMM 1D timestep. Generally, this timestep is adequate for SWMM but in cases where the flows are contained in the 1D the timestep may become too large for SWMM. This command forces it into the appropriate range. Refer to the &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/manual/latest/ TUFLOW Manual]&amp;lt;/u&amp;gt; for more details on this process.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Timestep Maximum &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;== &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;3&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;  ! Specifies a maximum timestep of 3 seconds&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Comment out the &#039;Map Cuttoff Depth&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Map Cutoff Depth == 0.05&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_01b.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW Boundary Control File (TBC)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tbc&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Comment out the &#039;Global Rainfall BC&#039; command by placing a &#039;!&#039; at the beginning of the line. This command is only necessary for 2D direct rainfall (rain on grid) modelling (SWMM Tutorial 2).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Global Rainfall BC == RF_FC04&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following additional command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read GIS SA&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;2d_sa_TS03_001_R &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Reads in 2D source area - Excluding SWMM areas&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_02c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TUFLOW SWMM Control File (TSCF)===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &#039;&#039;&#039;TS03_001.tscf&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;Replace &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw02_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; with the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read SWMM&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;swmm\sw03_001.inp&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;As we are pushing flows from the subcatchments straight to the pipe network, the water level of the ponded water at the nodes can become much higher than the 2D water levels. The inlet will surcharge but the flow is throttled. The following command will pull water out of the 2D if the 1D ponded water level goes beyond 0.1 m higher than the 2D (not needed for rain on grid simulations). Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Maximum Inlet Ponded Depth&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;0.1 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! Pull ponded water out of the 1D domain as needed&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Add the following command:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;Read BC Timeseries&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; == &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;RF_FC04 | RF_FC07 &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;! TUFLOW BC Database / SWMM Rain Gage Linkage&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Sim_Control_03c.mp4|width=1236}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Running the Simulation=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save a copy of &#039;&#039;&#039;_run_TS02_HPC.bat&#039;&#039;&#039; as &#039;&#039;&#039;_run_TS03_HPC.bat&#039;&#039;&#039; in the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\runs&#039;&#039;&#039; folder.&lt;br /&gt;
&amp;lt;li&amp;gt;Update the batch file to reference the &#039;&#039;&#039;TS03_5m_001.tcf&#039;&#039;&#039; :&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;exe&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&amp;quot;..\..\..\exe\2023-03-AF\TUFLOW_iSP_w64.exe&amp;quot;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;&#039;&#039;&#039;set&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;run&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;=&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;start &amp;quot;TUFLOW&amp;quot; /wait&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; %exe%&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt; -b&amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;%run% &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;TS03_5m_001.tcf &amp;lt;/tt&amp;gt;&amp;lt;/font&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Save the batch file and double click it in Windows File Explorer to run the simulation. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Did your TUFLOW-SWMM model fail to run successfully? If so, here is a link to a troubleshooting guide: &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Troubleshooting | TUFLOW SWMM Troubleshooting]]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS3_Run_Sim_01c.mp4|width=1236}}&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Check Files = &lt;br /&gt;
Review the SWMM INP and simulation report file from the &#039;&#039;&#039;TUFLOW_SWMM_Module_03\TUFLOW\results&#039;&#039;&#039; folder to confirm the new hydrology inputs are being processed correctly:&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.inp&#039;&#039;&#039; in a text editor to confirm the combining of the two input INP files has occurred correctly. Also use the QGIS Processing tool, &amp;lt;u&amp;gt;[[QGIS_SWMM_GeoPackage_Create_from_SWMM_inp |GeoPackage - Create from SWMM inp ]]&amp;lt;/u&amp;gt;, to view the information in QGIS. &lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm_curves.inp&#039;&#039;&#039; in a text editor to confirm the rainfall time series that has been used by the SWMM hydrology engine matches the input dataset.&lt;br /&gt;
* View &#039;&#039;&#039;TS03_5m_001_swmm.rpt&#039;&#039;&#039; in a text editor to confirm the model computation is healthy in term of mass conservation.&lt;br /&gt;
&lt;br /&gt;
= Results Output =&lt;br /&gt;
Complete the steps outlined in following link to review the simulation results from the TUFLOW SWMM model simulation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03_Results_QGIS | TUFLOW SWMM Tutorial 03 Results]]&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
*EPA SWMM urban hydrology was added to the model (replacing 2D drect rainfall / rain-on-grid).&lt;br /&gt;
*The 1D SWMM pipe urban pipe network junction attributes were updated to accomodate for the change in model configuration, from 2D direct rainfall to 1D SWMM hydrology.&lt;br /&gt;
*Check and result files associated with the SWMM hydrology modelling were inspected.&lt;br /&gt;
&lt;br /&gt;
=Other TUFLOW SWMM Tutorials=&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01 | TUFLOW SWMM Module 1]]&amp;lt;/u&amp;gt;  - 1D SWMM Culverts&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02 | TUFLOW SWMM Module 2]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 2D TUFLOW Direct Rainfall Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03 | TUFLOW SWMM Module 3]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology&lt;br /&gt;
*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M04 | TUFLOW SWMM Module 4]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology: Executing multiple different event simulations from a single model control file.&lt;br /&gt;
*&amp;lt;u&amp;gt;[[XPSWMM_to_TUFLOW-SWMM | XPSWMM to TUFLOW SWMM]]&amp;lt;/u&amp;gt;  - How to convert an XPSWMM model to TUFLOW SWMM.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_SWMM_Tutorial_Introduction#Tutorial_Modules| Return to TUFLOW SWMM Tutorial Introduction Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=XPSWMM_to_TUFLOW-SWMM_Recommended_Additional_Conversion_Steps&amp;diff=40455</id>
		<title>XPSWMM to TUFLOW-SWMM Recommended Additional Conversion Steps</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=XPSWMM_to_TUFLOW-SWMM_Recommended_Additional_Conversion_Steps&amp;diff=40455"/>
		<updated>2024-08-19T13:58:37Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Additional Steps */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;font size=36&amp;gt;&#039;&#039;&#039;Page Under Construction&#039;&#039;&#039;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
While the bulk of the XPSWMM to TUFLOW SWMM model conversion is automated by the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_Convert_XPSWMM_Model_From_XPX|Convert - XPSWMM model from XPX]]&amp;lt;/u&amp;gt;&#039; processing tool, some required or recommended conventions are not yet incorporated in the conversion tool. Therefore, it is highly recommended to complete the following additional conversion steps.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more targeted conversion guidance (i.e. for structures using non-typical shapes), please refer to the &amp;lt;u&amp;gt;[[XPSWMM_to_TUFLOW-SWMM_Troubleshooting |XPSWMM to TUFLOW SWMM Troubleshooting]]&amp;lt;/u&amp;gt; page.&lt;br /&gt;
&lt;br /&gt;
= Additional Steps =&lt;br /&gt;
It is recommended to make the following changes after running the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_Convert_XPSWMM_Model_From_XPX|Convert - XPSWMM model from XPX]]&amp;lt;/u&amp;gt;&#039; processing tool to follow TUFLOW-SWMM conventions for stability and accuracy:&lt;br /&gt;
* Storage nodes at HX connections&lt;br /&gt;
* Recommended junction attributes&lt;br /&gt;
&lt;br /&gt;
Prior to completing these additional steps, please &amp;lt;u&amp;gt;[[XPSWMM_to_TUFLOW-SWMM_Load_TUFLOW_Model |Load the TUFLOW Model in QGIS]]&amp;lt;/u&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Convert HX Junctions to Storage Nodes ==&lt;br /&gt;
As TUFLOW HX cells do not have storage associated with them, this storage needs to be represented in the 1D domain. This can be achieved by using storage nodes at these locations. Storage nodes also improve model stability. &lt;br /&gt;
&lt;br /&gt;
To convert the junction nodes at HX boundaries to storage nodes:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder. Drag and drop the SWMM GeoPackage (e.g. &#039;&#039;&#039;1D2D_Urban_swmm_001.gpkg&#039;&#039;&#039;) and the SWMM inlet usage GeoPackage (e.g. &#039;&#039;&#039;1D2D_Urban_swmm_iu_001.gpkg&#039;&#039;&#039;) into QGIS. These GeoPackages contain the SWMM GIS layers (conduits, nodes, subcatchments, etc.) and the SWMM inlet usage layer respectively.&lt;br /&gt;
&amp;lt;li&amp;gt; Navigate to the &#039;&#039;&#039;TUFLOW\model\gis&#039;&#039;&#039; folder. Drag and drop the &#039;_gis_layers_1d&#039; GeoPackage (e.g. &#039;&#039;&#039;1D2D_Urban_001_gis_layers_1d.gpkg&#039;&#039;&#039;) into QGIS. This GeoPackage contains the 2d_bc swmm connections layer. &lt;br /&gt;
&amp;lt;li&amp;gt; In QGIS, go to Processing &amp;gt; Toolbox from the top dropdown menu options to open the Processing Toolbox.&lt;br /&gt;
&amp;lt;li&amp;gt; Go to TUFLOW &amp;gt;&amp;gt; SWMM in the processing tool list and select &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_Junctions_Convert_HX_Nodes_to_Storage |Junctions - Convert HX nodes to storage]]&amp;lt;/u&amp;gt;&#039;. This opens the dialog shown below:&lt;br /&gt;
:* Input Junction layers: Select the &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; layer from the swmm GeoPackage (e.g. &#039;&#039;&#039;1D2D_Urban_swmm_001&amp;gt;&amp;gt; Nodes--Junctions&#039;&#039;&#039;).&lt;br /&gt;
:* Input BC Connection Layers: Select the 2d_bc connections layer (e.g. &#039;&#039;&#039;1D2D_Urban_001_gis_layers_1d -- 2d_bc_swmm_connections&#039;&#039;&#039;).&lt;br /&gt;
:* Storage Shape: Pyramidal&lt;br /&gt;
:* Length (rectangular) / Major Axis (cylindrical/conical): This value should be set to the typical number of HX connected cells multiplied by the cell size (10 in the example dataset).&lt;br /&gt;
:* Width (rectangular) / Minor Axis (cylindrical/conical): This value should be set to the cell size (5 in the example dataset).&lt;br /&gt;
:* Inverse slope (run/rise): Inverse slope of the output storage nodes. For pyramidal storage nodes, this value should be set to 0.0 (0.0 in the example dataset).&lt;br /&gt;
:* Output Junctions Layer: Leave as default.&lt;br /&gt;
:* Output Storage Layer: Leave as default. &lt;br /&gt;
&amp;lt;li&amp;gt; Click &#039;Run&#039;. Once the tool has finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Two new layers, &#039;&#039;&#039;Output Storage Layer&#039;&#039;&#039; and &#039;&#039;&#039;Output Junctions Layer&#039;&#039;&#039;, will appear in the QGIS Layers Panel. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
video&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To include the &#039;&#039;&#039;Output Storage Layer&#039;&#039;&#039; in the SWMM GeoPackage:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, right click on the &#039;&#039;&#039;Output Storage Layer&#039;&#039;&#039; and select &#039;Export &amp;gt;&amp;gt; Save Features As...&#039;. This opens the dialog shown below:&lt;br /&gt;
:* Format: Prepopulated as &#039;GeoPackage&#039;.&lt;br /&gt;
:* File name: Click &#039;...&#039; and navigate to the &#039;&#039;&#039;TUFLOW\model\swmm&#039;&#039;&#039; folder and select the SWMM GeoPackage (e.g. &#039;&#039;&#039;1D2D_Urban_swmm_001.gpkg&#039;&#039;&#039;).&lt;br /&gt;
:* Layer Name: &#039;&#039;&#039;Nodes--Storage&#039;&#039;&#039;. It is important that this naming is correct, any other layer name will not be recognized by TUFLOW SWMM. &lt;br /&gt;
:* CRS: Select the models&#039; Coordinate Reference System (CRS). For the demonstration model, the CRS is &#039;EPSG:32760 - WGS 84 / UTM zone 60S&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Leave all other parameters as the default and ensure that &#039;&#039;&#039;Add saved file to map&#039;&#039;&#039; (at the bottom of the dialog) is ticked on. &lt;br /&gt;
&amp;lt;li&amp;gt; Click &#039;OK&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers Panel, move the &#039;&#039;&#039;Nodes--Storage&#039;&#039;&#039; layer into the SWMM GeoPackage group.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
video&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to remove the objects from the &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; layer that coincide with the new new storage nodes. This can be done manually or with the &#039;Vector Selection &amp;gt; Select within distance&#039; processing tool. The following steps will outline the process of using the tool: &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers panel, select (left click) &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; and toggle on editing. &lt;br /&gt;
&amp;lt;li&amp;gt; Use the &#039;Select Features&#039; tool [[File: Select_features_icon.png|40px]] to select all nodes included in the &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; layer. When selected, this will change their color to bright yellow.&lt;br /&gt;
&amp;lt;li&amp;gt; In the Processing Toolbox, go to &#039;Vector Selection&#039; and select &#039;Select within distance&#039;. This opens the dialog shown below.&lt;br /&gt;
:* Select features from: &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; (this is prepopulated as &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; is the active dataset).&lt;br /&gt;
:* By comparing to the features from: Click the dropdown menu and select &#039;&#039;&#039;Nodes--Storage&#039;&#039;&#039;.&lt;br /&gt;
:* Where the features are within: &#039;0.1 meters&#039;&lt;br /&gt;
:* Modify current selection by: &#039;selecting within current selection&#039;&lt;br /&gt;
&amp;lt;li&amp;gt; Click &#039;Run&#039;. Once the tool is finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers panel, right click &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; and select &#039;Open Attribute Table&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; In the attribute table, only some of the junction nodes will be selected. Select &#039;Delete selected features&#039; [[File: delete_selected_features_icon.png]] to delete these nodes. Close the attribute table.&lt;br /&gt;
&amp;lt;li&amp;gt; Toggle editing off to save the edits to &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt; Remove &#039;&#039;&#039;Output Storage Layer&#039;&#039;&#039; and &#039;&#039;&#039;Output Junctions Layer&#039;&#039;&#039; from the QGIS Layers Panel. &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
video&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Junction Attributes ==&lt;br /&gt;
This is typically the final step in the model conversion process, as the recommended attributes for a junction node vary depending on whether the node is associated with inlet usage connections, 1D/2D culvert connections, and SWMM hydrology sub-catchments. &lt;br /&gt;
&lt;br /&gt;
To update the SWMM &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; attributes, we will use the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_Junctions_Set_Attributes |Junctions - Set attributes ]]&amp;lt;/u&amp;gt;&#039; processing tool:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the QGIS Layers panel, select (left click) &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; and toggle on editing. &lt;br /&gt;
&amp;lt;li&amp;gt; In the Processing Toolbox, select the &#039;Edit Features In-Place&#039; [[File: edit_features_in_place_icon.png]] tool. This allows the editing of an existing layer, instead of the creation of a new layer.&lt;br /&gt;
&amp;lt;li&amp;gt; Go to TUFLOW &amp;gt;&amp;gt; SWMM in the processing tool list and select the &#039;&amp;lt;u&amp;gt;[[QGIS_SWMM_Junctions_Set_Attributes |Junctions - Set attributes ]]&amp;lt;/u&amp;gt;&#039; processing tool. This opens the dialog shown below.&lt;br /&gt;
:* Input Subcatchment layers: If available, select &#039;&#039;&#039;Hydrology--Subcatchments&#039;&#039;&#039;.&lt;br /&gt;
:* Input Inlet Usage Layers: If available, select the inlet usage layer (e.g. &#039;&#039;&#039;1D2D_Urban_swmm_iu_001 -- inlet_usage&#039;&#039;&#039;).&lt;br /&gt;
:* Input BC Connection Layers: If available, select the 2d_bc connection layer (e.g. &#039;&#039;&#039;1D2D_Urban_001_gis_layers_1d -- 2d_bc_swmm_connections&#039;&#039;&#039;).&lt;br /&gt;
:* General Options: &lt;br /&gt;
:::* Maximum Depth Option (Ymax): &#039;Set to 0.0&#039;&lt;br /&gt;
:::* Nodes receiving subcatchment flows option (if connected to 2D): &#039;Based on options selected below&#039;&lt;br /&gt;
:* Nodes connected to 2D without Inlets (through embankment culvert):&lt;br /&gt;
:::* Ysur: 0&lt;br /&gt;
:::* Area of ponding: This value should match the 2D cell area associated with 1D/2D culvert connections (100 in the example dataset).&lt;br /&gt;
:* Nodes connected to 2D with Inlets (underground pipe network):&lt;br /&gt;
:::* Maximum depth (Ymax) option: &#039;Use global option&#039;&lt;br /&gt;
:::* Ysur: 0&lt;br /&gt;
:::* Area of ponding: This value should match the 2D cell area associated with the Inlet Usage connections (10 in the example model).&lt;br /&gt;
:* Nodes without 2D Connection (underground pipe network):&lt;br /&gt;
:::* Surcharge Depth: This value should be a value higher than any expected depth in the model (50 in the example model).&lt;br /&gt;
:::* Area of ponding: 0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Select &#039;Modify All Features&#039;. Once the tool has finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Turn off editing to save the edits.&lt;br /&gt;
&amp;lt;li&amp;gt;View the attributes within &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; to verify the data processing has been completed correctly. &amp;lt;br&amp;gt;&lt;br /&gt;
For a summary of the attributes associated with the &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; layer, refer to &amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD/SWMM-Input-Detailed-1.html#tab:tab-SWMM-Input-Junctions TUFLOW 2023-03-AD Release Notes (Table A.30)]&amp;lt;/u&amp;gt; and the &amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume2_Hydaulics_P100S9AS.pdf SWMM Reference Manual - Volume 2 (Hydraulics)]&amp;lt;/u&amp;gt;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
video&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[XPSWMM_to_TUFLOW-SWMM| Back to XPSWMM to TUFLOW SWMM Conversion Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39427</id>
		<title>TUFLOW Runner</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39427"/>
		<updated>2024-04-25T22:00:28Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Running Multiple Simulation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
The TUFLOW Runner provides a simple GUI for creating a queue of TUFLOW and TUFLOW FV simulations which will be run depending on available licenses and resources. The runner is available from the [https://gitlab.com/tuflow-user-group/tuflow/simulation-management/tuflow-runner TUFLOW GitLAB User Group] and is also bundled with the TUFLOW QGIS plugin. The TUFLOW Runner can replace the need for batch files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;With TUFLOW Runner you can:&#039;&#039;&#039;&lt;br /&gt;
*Manage a queue of simulations to run (combination of TUFLOW/TUFLOW FV).&lt;br /&gt;
*Handle TUFLOW scenarios and events&lt;br /&gt;
*Add multiple simulations based upon a combination of scenarios and events.&lt;br /&gt;
*Run multiple simulations at a time dependent upon computer and plugin resources.&lt;br /&gt;
*Change priority of items in the run queue.&lt;br /&gt;
*Remove items from the run queue.&lt;br /&gt;
*Kill currently running items in the run queue.&lt;br /&gt;
*Rerun a previously run simulation from the run queue (right-click).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TUFLOW Runner has also the following features:&#039;&#039;&#039;&lt;br /&gt;
*Uses an extensible &amp;quot;plugin&amp;quot; approach so other processes (executables) can be managed in the same queue.&lt;br /&gt;
*Manages available computer CPU and GPU resources.&lt;br /&gt;
*Tracks progress of running simulation.&lt;br /&gt;
*TUFLOW provides graphical output (matplotlib) of simulation volume in and volume out through time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other advantages:&#039;&#039;&#039;&lt;br /&gt;
*Option to save and load a run queue to easily rerun a group of simulations.&lt;br /&gt;
*Plugins can define restrictions for licenses, GPUs and CPUs.&lt;br /&gt;
*Scenarios and events are remembered between simulations&lt;br /&gt;
*Simulation screen output for running or finished simulations (searchable).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the TUFLOW Runner==&lt;br /&gt;
Launch the runner.&lt;br /&gt;
* If running from python, launch the &amp;quot;main.py&amp;quot; script.&lt;br /&gt;
* If running through the QGIS Plugin, in the QGIS menu select &#039;&#039;&#039;Plugins &amp;gt;&amp;gt; TUFLOW &amp;gt;&amp;gt; RUN &amp;gt;&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Before using the runner, the computer settings need to be specified. You can do this by Choosing &#039;&#039;&#039;Settings&#039;&#039;&#039; option from the Menu.&lt;br /&gt;
&lt;br /&gt;
[[File:Setting Runner 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resources tab at the top of the dialog is to specify the machine limits for the number of GPU cards and CPU threads. These will generally only be limiting if you are running both TUFLOW and TUFLOW FV at the same time. Otherwise, model specific limitations will prevent exceeding these limits.&lt;br /&gt;
&lt;br /&gt;
TUFLOW and TUFLOW FV each have their own tab to specify executable locations and configuration parameters. For each configuration, you can choose whether to run with one or more GPUs and how many CPU threads to make available. These settings will override settings specified in the input files (for TUFLOW this requires that the &amp;quot;write hardware flags&amp;quot; is specified and you are using 2023-03-AB release or later). Because TUFLOW may use multiple threads during the initial setup phase but a GPU card during the hydraulic calculations when doing GPU simulations, it is recommended to set the number of CPU threads to the number of cores available on the machine and the reserve value to 0. CPU simulations will generally use the same number of threads for reserved and the primary CPU thread setting. Set the configurations to not exceed available licenses.&lt;br /&gt;
&lt;br /&gt;
If you have 2 GPUs and 24 threads available with licenses to support them, the configurations could be setup multiple ways to maximum the complete resources:&lt;br /&gt;
* Option 1 - Three configurations where two have a GPU, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
* Option 2 - Two configurations where one has 2 GPUs, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
&lt;br /&gt;
For either of these options, simulations would try to run on the first specified configuration first so you would want the GPU configurations listed first to take advantage of these resources first.&lt;br /&gt;
&lt;br /&gt;
Even if your licensing and resources allow, it may not be worthwhile to run CPU configurations because of the speed advantages of the GPU hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Setting Runner 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running the tool==&lt;br /&gt;
&#039;&#039;&#039;Start&#039;&#039;&#039; a TUFLOW simulation by following the steps below:&lt;br /&gt;
*Select &#039;&#039;&#039;Run type&#039;&#039;&#039; (TUFLOW/TUFLOW FV).&lt;br /&gt;
*Identify the folder that contains the simulation files (&#039;&#039;&#039;Base folder&#039;&#039;&#039;) and select the simulation file. This must be .tcf for TUFLOW Classic/HPC or .fvc for TUFLOW FV.&lt;br /&gt;
[[File:Running the tool 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Click on the &#039;&#039;&#039;Add&#039;&#039;&#039; button to add a simulation to the queue. If a TUFLOW model includes Events (~e~) and/or Scenarios (~s~) by clicking on the &#039;&#039;&#039;Add&#039;&#039;&#039; button a &#039;&#039;&#039;dialog&#039;&#039;&#039; (please see image below) will come up to add model’s Scenarios and/or Events. &#039;&#039;&#039; To add simulations, there must be selected scenarios and events in every category. You can use &#039;_&#039; or another placeholder as needed for default scenarios.&#039;&#039;&#039; The bottom of the window shows the combination of selected events and scenarios. To get the sub-list you are interested in, you may need to use the add command several times.&lt;br /&gt;
[[File:Running the tool 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; For TUFLOW model which includes Scenario and/Events, the (~s~) and/or (~e~) must be included in the simulation filename.&lt;br /&gt;
*Then, toggle on &#039;&#039;&#039;Run&#039;&#039;&#039; to run the simulation.&lt;br /&gt;
[[File:Running the tool 3.jpg|750px]]&lt;br /&gt;
&lt;br /&gt;
==Running Multiple Simulation==&lt;br /&gt;
The runner will launch as many simulations as available in the queue depending on computer resources and model configurations. As model simulations finish, new simulations will be launched as resources become available.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If a TUFLOW model simulation with Events and/or Scenarios is not queued please check that these are specified in the Add Simulation &#039;&#039;&#039;dialog&#039;&#039;&#039; Window (please, see section: &#039;&#039;&#039;Running the tool&#039;&#039;&#039; – Step 3) as the runner requires an entry for each Scenario/Event.&lt;br /&gt;
&lt;br /&gt;
If you have further queries or issues it is recommended contacting [mailto:support@tuflow.com support@tuflow.com].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39426</id>
		<title>TUFLOW Runner</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39426"/>
		<updated>2024-04-25T21:47:36Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Setting up the TUFLOW Runner */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
The TUFLOW Runner provides a simple GUI for creating a queue of TUFLOW and TUFLOW FV simulations which will be run depending on available licenses and resources. The runner is available from the [https://gitlab.com/tuflow-user-group/tuflow/simulation-management/tuflow-runner TUFLOW GitLAB User Group] and is also bundled with the TUFLOW QGIS plugin. The TUFLOW Runner can replace the need for batch files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;With TUFLOW Runner you can:&#039;&#039;&#039;&lt;br /&gt;
*Manage a queue of simulations to run (combination of TUFLOW/TUFLOW FV).&lt;br /&gt;
*Handle TUFLOW scenarios and events&lt;br /&gt;
*Add multiple simulations based upon a combination of scenarios and events.&lt;br /&gt;
*Run multiple simulations at a time dependent upon computer and plugin resources.&lt;br /&gt;
*Change priority of items in the run queue.&lt;br /&gt;
*Remove items from the run queue.&lt;br /&gt;
*Kill currently running items in the run queue.&lt;br /&gt;
*Rerun a previously run simulation from the run queue (right-click).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TUFLOW Runner has also the following features:&#039;&#039;&#039;&lt;br /&gt;
*Uses an extensible &amp;quot;plugin&amp;quot; approach so other processes (executables) can be managed in the same queue.&lt;br /&gt;
*Manages available computer CPU and GPU resources.&lt;br /&gt;
*Tracks progress of running simulation.&lt;br /&gt;
*TUFLOW provides graphical output (matplotlib) of simulation volume in and volume out through time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other advantages:&#039;&#039;&#039;&lt;br /&gt;
*Option to save and load a run queue to easily rerun a group of simulations.&lt;br /&gt;
*Plugins can define restrictions for licenses, GPUs and CPUs.&lt;br /&gt;
*Scenarios and events are remembered between simulations&lt;br /&gt;
*Simulation screen output for running or finished simulations (searchable).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the TUFLOW Runner==&lt;br /&gt;
Launch the runner.&lt;br /&gt;
* If running from python, launch the &amp;quot;main.py&amp;quot; script.&lt;br /&gt;
* If running through the QGIS Plugin, in the QGIS menu select &#039;&#039;&#039;Plugins &amp;gt;&amp;gt; TUFLOW &amp;gt;&amp;gt; RUN &amp;gt;&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Before using the runner, the computer settings need to be specified. You can do this by Choosing &#039;&#039;&#039;Settings&#039;&#039;&#039; option from the Menu.&lt;br /&gt;
&lt;br /&gt;
[[File:Setting Runner 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resources tab at the top of the dialog is to specify the machine limits for the number of GPU cards and CPU threads. These will generally only be limiting if you are running both TUFLOW and TUFLOW FV at the same time. Otherwise, model specific limitations will prevent exceeding these limits.&lt;br /&gt;
&lt;br /&gt;
TUFLOW and TUFLOW FV each have their own tab to specify executable locations and configuration parameters. For each configuration, you can choose whether to run with one or more GPUs and how many CPU threads to make available. These settings will override settings specified in the input files (for TUFLOW this requires that the &amp;quot;write hardware flags&amp;quot; is specified and you are using 2023-03-AB release or later). Because TUFLOW may use multiple threads during the initial setup phase but a GPU card during the hydraulic calculations when doing GPU simulations, it is recommended to set the number of CPU threads to the number of cores available on the machine and the reserve value to 0. CPU simulations will generally use the same number of threads for reserved and the primary CPU thread setting. Set the configurations to not exceed available licenses.&lt;br /&gt;
&lt;br /&gt;
If you have 2 GPUs and 24 threads available with licenses to support them, the configurations could be setup multiple ways to maximum the complete resources:&lt;br /&gt;
* Option 1 - Three configurations where two have a GPU, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
* Option 2 - Two configurations where one has 2 GPUs, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
&lt;br /&gt;
For either of these options, simulations would try to run on the first specified configuration first so you would want the GPU configurations listed first to take advantage of these resources first.&lt;br /&gt;
&lt;br /&gt;
Even if your licensing and resources allow, it may not be worthwhile to run CPU configurations because of the speed advantages of the GPU hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Setting Runner 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running the tool==&lt;br /&gt;
&#039;&#039;&#039;Start&#039;&#039;&#039; a TUFLOW simulation by following the steps below:&lt;br /&gt;
*Select &#039;&#039;&#039;Run type&#039;&#039;&#039; (TUFLOW/TUFLOW FV).&lt;br /&gt;
*Identify the folder that contains the simulation files (&#039;&#039;&#039;Base folder&#039;&#039;&#039;) and select the simulation file. This must be .tcf for TUFLOW Classic/HPC or .fvc for TUFLOW FV.&lt;br /&gt;
[[File:Running the tool 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Click on the &#039;&#039;&#039;Add&#039;&#039;&#039; button to add a simulation to the queue. If a TUFLOW model includes Events (~e~) and/or Scenarios (~s~) by clicking on the &#039;&#039;&#039;Add&#039;&#039;&#039; button a &#039;&#039;&#039;dialog&#039;&#039;&#039; (please see image below) will come up to add model’s Scenarios and/or Events. &#039;&#039;&#039; To add simulations, there must be selected scenarios and events in every category. You can use &#039;_&#039; or another placeholder as needed for default scenarios.&#039;&#039;&#039; The bottom of the window shows the combination of selected events and scenarios. To get the sub-list you are interested in, you may need to use the add command several times.&lt;br /&gt;
[[File:Running the tool 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; For TUFLOW model which includes Scenario and/Events, the (~s~) and/or (~e~) must be included in the simulation filename.&lt;br /&gt;
*Then, toggle on &#039;&#039;&#039;Run&#039;&#039;&#039; to run the simulation.&lt;br /&gt;
[[File:Running the tool 3.jpg|750px]]&lt;br /&gt;
&lt;br /&gt;
==Running Multiple Simulation==&lt;br /&gt;
If the resources and configurations (do not create more configurations than you have licenses for), allow for it, the Runner will launch multiple simulations at the same time as long as there are simulations in the queue able to be run. As simulations finish, the next available simulation that does not exceed available resources and configurations will be run.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If a TUFLOW model simulation with Events and/or Scenarios is not queued please check that these are specified in the Add Simulation &#039;&#039;&#039;dialog&#039;&#039;&#039; Window (please, see section: &#039;&#039;&#039;Running the tool&#039;&#039;&#039; – Step 3) as the runner requires an entry for each Scenario/Event.&lt;br /&gt;
&lt;br /&gt;
If you have further queries or issues it is recommended contacting [mailto:support@tuflow.com support@tuflow.com].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39425</id>
		<title>TUFLOW Runner</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39425"/>
		<updated>2024-04-25T21:46:04Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Setting up the TUFLOW Runner */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
The TUFLOW Runner provides a simple GUI for creating a queue of TUFLOW and TUFLOW FV simulations which will be run depending on available licenses and resources. The runner is available from the [https://gitlab.com/tuflow-user-group/tuflow/simulation-management/tuflow-runner TUFLOW GitLAB User Group] and is also bundled with the TUFLOW QGIS plugin. The TUFLOW Runner can replace the need for batch files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;With TUFLOW Runner you can:&#039;&#039;&#039;&lt;br /&gt;
*Manage a queue of simulations to run (combination of TUFLOW/TUFLOW FV).&lt;br /&gt;
*Handle TUFLOW scenarios and events&lt;br /&gt;
*Add multiple simulations based upon a combination of scenarios and events.&lt;br /&gt;
*Run multiple simulations at a time dependent upon computer and plugin resources.&lt;br /&gt;
*Change priority of items in the run queue.&lt;br /&gt;
*Remove items from the run queue.&lt;br /&gt;
*Kill currently running items in the run queue.&lt;br /&gt;
*Rerun a previously run simulation from the run queue (right-click).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TUFLOW Runner has also the following features:&#039;&#039;&#039;&lt;br /&gt;
*Uses an extensible &amp;quot;plugin&amp;quot; approach so other processes (executables) can be managed in the same queue.&lt;br /&gt;
*Manages available computer CPU and GPU resources.&lt;br /&gt;
*Tracks progress of running simulation.&lt;br /&gt;
*TUFLOW provides graphical output (matplotlib) of simulation volume in and volume out through time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other advantages:&#039;&#039;&#039;&lt;br /&gt;
*Option to save and load a run queue to easily rerun a group of simulations.&lt;br /&gt;
*Plugins can define restrictions for licenses, GPUs and CPUs.&lt;br /&gt;
*Scenarios and events are remembered between simulations&lt;br /&gt;
*Simulation screen output for running or finished simulations (searchable).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the TUFLOW Runner==&lt;br /&gt;
Launch the runner.&lt;br /&gt;
* If running from python, launch the &amp;quot;main.py&amp;quot; script.&lt;br /&gt;
* If running through the QGIS Plugin, in the QGIS menu select &#039;&#039;&#039;Plugins &amp;gt;&amp;gt; TUFLOW &amp;gt;&amp;gt; RUN &amp;gt;&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Before using the runner, the computer settings need to be specified. You can do this by Choosing &#039;&#039;&#039;Settings&#039;&#039;&#039; option from the Menu.&lt;br /&gt;
&lt;br /&gt;
[[File:Setting Runner 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resources tab at the top of the dialog is to specify the machine limits for the number of GPU cards and CPU threads. These will generally only be limiting if you are running both TUFLOW and TUFLOW FV at the same time. Otherwise, model specific limitations will prevent exceeding these limits.&lt;br /&gt;
&lt;br /&gt;
TUFLOW and TUFLOW FV each have their own tab to specify executable locations and configuration parameters. For each configuration, you can choose whether to run with one or more GPUs and how many CPU threads to make available. These settings will override settings specified in the input files (for TUFLOW this requires that the &amp;quot;write hardware flags&amp;quot; is specified and you are using 2023-03-AB release or later). Because TUFLOW may use multiple threads during the initial setup phase but a GPU card during the hydraulic calculations, it is recommended to set the number of CPU threads to the number of cores available on the machine when doing GPU simulations and setting the reserve value to 0. CPU simulations will generally use the same number of threads for reserved and the primary CPU thread setting. Set the configurations to not exceed available licenses.&lt;br /&gt;
&lt;br /&gt;
If you have 2 GPUs and 24 threads available with licenses to support them, the configurations could be setup multiple ways to maximum the complete resources:&lt;br /&gt;
* Option 1 - Three configurations where two have a GPU, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
* Option 2 - Two configurations where one has 2 GPUs, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
&lt;br /&gt;
For either of these options, simulations would try to run on the first specified configuration first so you would want the GPU configurations listed first to take advantage of these resources first.&lt;br /&gt;
&lt;br /&gt;
Even if your licensing and resources allow, it may not be worthwhile to run CPU configurations because of the speed advantages of the GPU hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Setting Runner 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running the tool==&lt;br /&gt;
&#039;&#039;&#039;Start&#039;&#039;&#039; a TUFLOW simulation by following the steps below:&lt;br /&gt;
*Select &#039;&#039;&#039;Run type&#039;&#039;&#039; (TUFLOW/TUFLOW FV).&lt;br /&gt;
*Identify the folder that contains the simulation files (&#039;&#039;&#039;Base folder&#039;&#039;&#039;) and select the simulation file. This must be .tcf for TUFLOW Classic/HPC or .fvc for TUFLOW FV.&lt;br /&gt;
[[File:Running the tool 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Click on the &#039;&#039;&#039;Add&#039;&#039;&#039; button to add a simulation to the queue. If a TUFLOW model includes Events (~e~) and/or Scenarios (~s~) by clicking on the &#039;&#039;&#039;Add&#039;&#039;&#039; button a &#039;&#039;&#039;dialog&#039;&#039;&#039; (please see image below) will come up to add model’s Scenarios and/or Events. &#039;&#039;&#039; To add simulations, there must be selected scenarios and events in every category. You can use &#039;_&#039; or another placeholder as needed for default scenarios.&#039;&#039;&#039; The bottom of the window shows the combination of selected events and scenarios. To get the sub-list you are interested in, you may need to use the add command several times.&lt;br /&gt;
[[File:Running the tool 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; For TUFLOW model which includes Scenario and/Events, the (~s~) and/or (~e~) must be included in the simulation filename.&lt;br /&gt;
*Then, toggle on &#039;&#039;&#039;Run&#039;&#039;&#039; to run the simulation.&lt;br /&gt;
[[File:Running the tool 3.jpg|750px]]&lt;br /&gt;
&lt;br /&gt;
==Running Multiple Simulation==&lt;br /&gt;
If the resources and configurations (do not create more configurations than you have licenses for), allow for it, the Runner will launch multiple simulations at the same time as long as there are simulations in the queue able to be run. As simulations finish, the next available simulation that does not exceed available resources and configurations will be run.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If a TUFLOW model simulation with Events and/or Scenarios is not queued please check that these are specified in the Add Simulation &#039;&#039;&#039;dialog&#039;&#039;&#039; Window (please, see section: &#039;&#039;&#039;Running the tool&#039;&#039;&#039; – Step 3) as the runner requires an entry for each Scenario/Event.&lt;br /&gt;
&lt;br /&gt;
If you have further queries or issues it is recommended contacting [mailto:support@tuflow.com support@tuflow.com].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39424</id>
		<title>TUFLOW Runner</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39424"/>
		<updated>2024-04-25T21:45:35Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Setting up the TUFLOW Runner */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
The TUFLOW Runner provides a simple GUI for creating a queue of TUFLOW and TUFLOW FV simulations which will be run depending on available licenses and resources. The runner is available from the [https://gitlab.com/tuflow-user-group/tuflow/simulation-management/tuflow-runner TUFLOW GitLAB User Group] and is also bundled with the TUFLOW QGIS plugin. The TUFLOW Runner can replace the need for batch files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;With TUFLOW Runner you can:&#039;&#039;&#039;&lt;br /&gt;
*Manage a queue of simulations to run (combination of TUFLOW/TUFLOW FV).&lt;br /&gt;
*Handle TUFLOW scenarios and events&lt;br /&gt;
*Add multiple simulations based upon a combination of scenarios and events.&lt;br /&gt;
*Run multiple simulations at a time dependent upon computer and plugin resources.&lt;br /&gt;
*Change priority of items in the run queue.&lt;br /&gt;
*Remove items from the run queue.&lt;br /&gt;
*Kill currently running items in the run queue.&lt;br /&gt;
*Rerun a previously run simulation from the run queue (right-click).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TUFLOW Runner has also the following features:&#039;&#039;&#039;&lt;br /&gt;
*Uses an extensible &amp;quot;plugin&amp;quot; approach so other processes (executables) can be managed in the same queue.&lt;br /&gt;
*Manages available computer CPU and GPU resources.&lt;br /&gt;
*Tracks progress of running simulation.&lt;br /&gt;
*TUFLOW provides graphical output (matplotlib) of simulation volume in and volume out through time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other advantages:&#039;&#039;&#039;&lt;br /&gt;
*Option to save and load a run queue to easily rerun a group of simulations.&lt;br /&gt;
*Plugins can define restrictions for licenses, GPUs and CPUs.&lt;br /&gt;
*Scenarios and events are remembered between simulations&lt;br /&gt;
*Simulation screen output for running or finished simulations (searchable).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the TUFLOW Runner==&lt;br /&gt;
Launch the runner.&lt;br /&gt;
* If running from python, launch the &amp;quot;main.py&amp;quot; script.&lt;br /&gt;
* If running through the QGIS Plugin, in the QGIS menu select &#039;&#039;&#039;Plugins &amp;gt;&amp;gt; TUFLOW &amp;gt;&amp;gt; RUN &amp;gt;&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Before using the runner, the computer settings need to be specified. You can do this by Choosing &#039;&#039;&#039;Settings&#039;&#039;&#039; option from the Menu.&lt;br /&gt;
[[File:Setting Runner 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resources tab at the top of the dialog is to specify the machine limits for the number of GPU cards and CPU threads. These will generally only be limiting if you are running both TUFLOW and TUFLOW FV at the same time. Otherwise, model specific limitations will prevent exceeding these limits.&lt;br /&gt;
&lt;br /&gt;
TUFLOW and TUFLOW FV each have their own tab to specify executable locations and configuration parameters. For each configuration, you can choose whether to run with one or more GPUs and how many CPU threads to make available. These settings will override settings specified in the input files (for TUFLOW this requires that the &amp;quot;write hardware flags&amp;quot; is specified and you are using 2023-03-AB release or later). Because TUFLOW may use multiple threads during the initial setup phase but a GPU card during the hydraulic calculations, it is recommended to set the number of CPU threads to the number of cores available on the machine when doing GPU simulations and setting the reserve value to 0. CPU simulations will generally use the same number of threads for reserved and the primary CPU thread setting. Set the configurations to not exceed available licenses.&lt;br /&gt;
&lt;br /&gt;
If you have 2 GPUs and 24 threads available with licenses to support them, the configurations could be setup multiple ways to maximum the complete resources:&lt;br /&gt;
* Option 1 - Three configurations where two have a GPU, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
* Option 2 - Two configurations where one has 2 GPUs, 12 threads, and 0 threads reserved and a configuration with 0 GPUs with 24 threads and 24 threads reserved.&lt;br /&gt;
&lt;br /&gt;
For either of these options, simulations would try to run on the first specified configuration first so you would want the GPU configurations listed first to take advantage of these resources first.&lt;br /&gt;
&lt;br /&gt;
Even if your licensing and resources allow, it may not be worthwhile to run CPU configurations because of the speed advantages of the GPU hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Setting Runner 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running the tool==&lt;br /&gt;
&#039;&#039;&#039;Start&#039;&#039;&#039; a TUFLOW simulation by following the steps below:&lt;br /&gt;
*Select &#039;&#039;&#039;Run type&#039;&#039;&#039; (TUFLOW/TUFLOW FV).&lt;br /&gt;
*Identify the folder that contains the simulation files (&#039;&#039;&#039;Base folder&#039;&#039;&#039;) and select the simulation file. This must be .tcf for TUFLOW Classic/HPC or .fvc for TUFLOW FV.&lt;br /&gt;
[[File:Running the tool 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Click on the &#039;&#039;&#039;Add&#039;&#039;&#039; button to add a simulation to the queue. If a TUFLOW model includes Events (~e~) and/or Scenarios (~s~) by clicking on the &#039;&#039;&#039;Add&#039;&#039;&#039; button a &#039;&#039;&#039;dialog&#039;&#039;&#039; (please see image below) will come up to add model’s Scenarios and/or Events. &#039;&#039;&#039; To add simulations, there must be selected scenarios and events in every category. You can use &#039;_&#039; or another placeholder as needed for default scenarios.&#039;&#039;&#039; The bottom of the window shows the combination of selected events and scenarios. To get the sub-list you are interested in, you may need to use the add command several times.&lt;br /&gt;
[[File:Running the tool 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; For TUFLOW model which includes Scenario and/Events, the (~s~) and/or (~e~) must be included in the simulation filename.&lt;br /&gt;
*Then, toggle on &#039;&#039;&#039;Run&#039;&#039;&#039; to run the simulation.&lt;br /&gt;
[[File:Running the tool 3.jpg|750px]]&lt;br /&gt;
&lt;br /&gt;
==Running Multiple Simulation==&lt;br /&gt;
If the resources and configurations (do not create more configurations than you have licenses for), allow for it, the Runner will launch multiple simulations at the same time as long as there are simulations in the queue able to be run. As simulations finish, the next available simulation that does not exceed available resources and configurations will be run.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If a TUFLOW model simulation with Events and/or Scenarios is not queued please check that these are specified in the Add Simulation &#039;&#039;&#039;dialog&#039;&#039;&#039; Window (please, see section: &#039;&#039;&#039;Running the tool&#039;&#039;&#039; – Step 3) as the runner requires an entry for each Scenario/Event.&lt;br /&gt;
&lt;br /&gt;
If you have further queries or issues it is recommended contacting [mailto:support@tuflow.com support@tuflow.com].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=Template:Navigate_Links_Next&amp;diff=39348</id>
		<title>Template:Navigate Links Next</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Template:Navigate_Links_Next&amp;diff=39348"/>
		<updated>2024-04-19T16:32:03Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;left&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot; style=&amp;quot;border-collapse:collapse; border-color:black; background:silver&amp;quot;&lt;br /&gt;
|- style=&amp;quot;background: CornflowerBlue&amp;quot;&lt;br /&gt;
! Next &lt;br /&gt;
|-&lt;br /&gt;
|  {{{nextlink}}} [[Image:go-next.png]]&lt;br /&gt;
|}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=Template:Navigate_Links_Next&amp;diff=39347</id>
		<title>Template:Navigate Links Next</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Template:Navigate_Links_Next&amp;diff=39347"/>
		<updated>2024-04-19T16:31:38Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: Created page with &amp;quot;{| align=&amp;quot;left&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot; style=&amp;quot;border-collapse:collapse; border-color:black; background:silver&amp;quot; |- style=&amp;quot;background: CornflowerBlue&amp;quot; ! Previous !! Next  |-...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;left&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot; style=&amp;quot;border-collapse:collapse; border-color:black; background:silver&amp;quot;&lt;br /&gt;
|- style=&amp;quot;background: CornflowerBlue&amp;quot;&lt;br /&gt;
! Previous !! Next &lt;br /&gt;
|-&lt;br /&gt;
| [[Image:go-prev.png]] {{{prelink}}} || {{{nextlink}}} [[Image:go-next.png]]&lt;br /&gt;
|}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=QGIS_TUFLOW_Run_TUFLOW&amp;diff=39344</id>
		<title>QGIS TUFLOW Run TUFLOW</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=QGIS_TUFLOW_Run_TUFLOW&amp;diff=39344"/>
		<updated>2024-04-19T13:29:37Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Run TUFLOW Simulation==&lt;br /&gt;
Start a TUFLOW simulation.  The default control file is the most recent file in the &#039;&#039;&#039;TUFLOW\runs&#039;&#039;&#039; folder, the default executable is defined in the [[QGIS_TUFLOW_Create_Project | Configure / Create TUFLOW project]]. If the [[QGIS_TUFLOW_Create_Project | Configure / Create TUFLOW project]] tool has not been run, no default values exist, and you will need to select the TUFLOW executable and also the input control file.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of QGIS 3.6 the Plugin also has functionality to run TUFLOW FV models. The process to run a TUFLOW FV model is analagous to TUFLOW but pointing to the TUFLOWFV\runs folder, the relevant *.fvc file (not *.tcf) and the TUFLOW FV executable. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:QGIS Run TUFLOW.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TUFLOW Runner==&lt;br /&gt;
Starting with TUFLOW QGIS Plugin version v3.11, you can also &#039;&#039;&#039;manage TUFLOW simulations by launching the TUFLOW Runner&#039;&#039;&#039; by choosing &#039;&#039;&#039;Run -&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039; from the TUFLOW plugin menu. For more details about the TUFLOW Runner, please visit: [https://wiki.tuflow.com/TUFLOW_Runner TUFLOW Runner]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39340</id>
		<title>TUFLOW Runner</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39340"/>
		<updated>2024-04-19T12:40:42Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Running Multiple Simulation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Page Under Construction===&lt;br /&gt;
==Introduction==&lt;br /&gt;
The TUFLOW Runner provides a simple GUI for creating a queue of TUFLOW and TUFLOW FV simulations which will be run depending on available licenses and resources. The runner is available from the [https://gitlab.com/tuflow-user-group/tuflow/simulation-management/tuflow-runner TUFLOW GitLAB User Group] and is also bundled with the TUFLOW QGIS plugin. The TUFLOW Runner can replace the need for batch files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;With TUFLOW Runner you can:&#039;&#039;&#039;&lt;br /&gt;
*Manage a queue of simulations to run (combination of TUFLOW/TUFLOW FV).&lt;br /&gt;
*Handle TUFLOW scenarios and events&lt;br /&gt;
*Add multiple simulations based upon a combination of scenarios and events.&lt;br /&gt;
*Run multiple simulations at a time dependent upon computer and plugin resources.&lt;br /&gt;
*Change priority of items in the run queue.&lt;br /&gt;
*Remove items from the run queue.&lt;br /&gt;
*Kill currently running items in the run queue.&lt;br /&gt;
*Rerun a previously run simulation from the run queue (right-click).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TUFLOW Runner has also the following features:&#039;&#039;&#039;&lt;br /&gt;
*Uses an extensible &amp;quot;plugin&amp;quot; approach so other processes (executables) can be managed in the same queue.&lt;br /&gt;
*Manages available computer CPU and GPU resources.&lt;br /&gt;
*Tracks progress of running simulation.&lt;br /&gt;
*TUFLOW provides graphical output (matplotlib) of simulation volume in and volume out through time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other advantages:&#039;&#039;&#039;&lt;br /&gt;
*Option to save and load a run queue to easily rerun a group of simulations.&lt;br /&gt;
*Plugins can define restrictions for licenses, GPUs and CPUs.&lt;br /&gt;
*Scenarios and events are remembered between simulations&lt;br /&gt;
*Simulation screen output for running or finished simulations (searchable).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the TUFLOW Runner==&lt;br /&gt;
Launch the runner.&lt;br /&gt;
* If running from python, launch the &amp;quot;main.py&amp;quot; script.&lt;br /&gt;
* If running through the QGIS Plugin, in the QGIS menu select &#039;&#039;&#039;Plugins &amp;gt;&amp;gt; TUFLOW &amp;gt;&amp;gt; RUN &amp;gt;&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To set up:&lt;br /&gt;
*Choose &#039;&#039;&#039;Settings&#039;&#039;&#039; option from the Menu.&lt;br /&gt;
[[File:Setting Runner 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Specify&#039;&#039;&#039; the resources (CPU and GPU) and plugin information such as location of executables. &lt;br /&gt;
[[File:Setting Runner 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Then, click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Running the tool==&lt;br /&gt;
&#039;&#039;&#039;Start&#039;&#039;&#039; a TUFLOW simulation by following the steps below:&lt;br /&gt;
*Select &#039;&#039;&#039;Run type&#039;&#039;&#039; (TUFLOW/TUFLOW FV).&lt;br /&gt;
*Identify the folder that contains the simulation files (&#039;&#039;&#039;Base folder&#039;&#039;&#039;) and select the simulation file. This must be .tcf for TUFLOW Classic/HPC or .fvc for TUFLOW FV.&lt;br /&gt;
[[File:Running the tool 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Click on the &#039;&#039;&#039;Add&#039;&#039;&#039; button to add a simulation to the queue. If a TUFLOW model includes Events (~e~) and/or Scenarios (~s~) by clicking on the &#039;&#039;&#039;Add&#039;&#039;&#039; button a &#039;&#039;&#039;dialog&#039;&#039;&#039; (please see image below) will come up to add model’s Scenarios and/or Events. &#039;&#039;&#039; To add simulations, there must be selected scenarios and events in every category. You can use &#039;_&#039; or another placeholder as needed for default scenarios.&#039;&#039;&#039; The bottom of the window shows the combination of selected events and scenarios. To get the sub-list you are interested in, you may need to use the add command several times.&lt;br /&gt;
[[File:Running the tool 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; For TUFLOW model which includes Scenario and/Events, the (~s~) and/or (~e~) must be included in the simulation filename.&lt;br /&gt;
*Then, toggle on &#039;&#039;&#039;Run&#039;&#039;&#039; to run the simulation.&lt;br /&gt;
[[File:Running the tool 3.jpg|750px]]&lt;br /&gt;
&lt;br /&gt;
==Running Multiple Simulation==&lt;br /&gt;
If the resources and configurations (do not create more configurations than you have licenses for), allow for it, the Runner will launch multiple simulations at the same time as long as there are simulations in the queue able to be run. As simulations finish, the next available simulation that does not exceed available resources and configurations will be run.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If a TUFLOW model simulation with Events and/or Scenarios is not queued please check that these are specified in the Add Simulation &#039;&#039;&#039;dialog&#039;&#039;&#039; Window (please, see section: &#039;&#039;&#039;Running the tool&#039;&#039;&#039; – Step 3) as the runner requires an entry for each Scenario/Event.&lt;br /&gt;
&lt;br /&gt;
If you have further queries or issues it is recommended contacting [mailto:support@tuflow.com support@tuflow.com].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39339</id>
		<title>TUFLOW Runner</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39339"/>
		<updated>2024-04-19T12:36:37Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Running the tool */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Page Under Construction===&lt;br /&gt;
==Introduction==&lt;br /&gt;
The TUFLOW Runner provides a simple GUI for creating a queue of TUFLOW and TUFLOW FV simulations which will be run depending on available licenses and resources. The runner is available from the [https://gitlab.com/tuflow-user-group/tuflow/simulation-management/tuflow-runner TUFLOW GitLAB User Group] and is also bundled with the TUFLOW QGIS plugin. The TUFLOW Runner can replace the need for batch files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;With TUFLOW Runner you can:&#039;&#039;&#039;&lt;br /&gt;
*Manage a queue of simulations to run (combination of TUFLOW/TUFLOW FV).&lt;br /&gt;
*Handle TUFLOW scenarios and events&lt;br /&gt;
*Add multiple simulations based upon a combination of scenarios and events.&lt;br /&gt;
*Run multiple simulations at a time dependent upon computer and plugin resources.&lt;br /&gt;
*Change priority of items in the run queue.&lt;br /&gt;
*Remove items from the run queue.&lt;br /&gt;
*Kill currently running items in the run queue.&lt;br /&gt;
*Rerun a previously run simulation from the run queue (right-click).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TUFLOW Runner has also the following features:&#039;&#039;&#039;&lt;br /&gt;
*Uses an extensible &amp;quot;plugin&amp;quot; approach so other processes (executables) can be managed in the same queue.&lt;br /&gt;
*Manages available computer CPU and GPU resources.&lt;br /&gt;
*Tracks progress of running simulation.&lt;br /&gt;
*TUFLOW provides graphical output (matplotlib) of simulation volume in and volume out through time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other advantages:&#039;&#039;&#039;&lt;br /&gt;
*Option to save and load a run queue to easily rerun a group of simulations.&lt;br /&gt;
*Plugins can define restrictions for licenses, GPUs and CPUs.&lt;br /&gt;
*Scenarios and events are remembered between simulations&lt;br /&gt;
*Simulation screen output for running or finished simulations (searchable).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the TUFLOW Runner==&lt;br /&gt;
Launch the runner.&lt;br /&gt;
* If running from python, launch the &amp;quot;main.py&amp;quot; script.&lt;br /&gt;
* If running through the QGIS Plugin, in the QGIS menu select &#039;&#039;&#039;Plugins &amp;gt;&amp;gt; TUFLOW &amp;gt;&amp;gt; RUN &amp;gt;&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To set up:&lt;br /&gt;
*Choose &#039;&#039;&#039;Settings&#039;&#039;&#039; option from the Menu.&lt;br /&gt;
[[File:Setting Runner 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Specify&#039;&#039;&#039; the resources (CPU and GPU) and plugin information such as location of executables. &lt;br /&gt;
[[File:Setting Runner 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Then, click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Running the tool==&lt;br /&gt;
&#039;&#039;&#039;Start&#039;&#039;&#039; a TUFLOW simulation by following the steps below:&lt;br /&gt;
*Select &#039;&#039;&#039;Run type&#039;&#039;&#039; (TUFLOW/TUFLOW FV).&lt;br /&gt;
*Identify the folder that contains the simulation files (&#039;&#039;&#039;Base folder&#039;&#039;&#039;) and select the simulation file. This must be .tcf for TUFLOW Classic/HPC or .fvc for TUFLOW FV.&lt;br /&gt;
[[File:Running the tool 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Click on the &#039;&#039;&#039;Add&#039;&#039;&#039; button to add a simulation to the queue. If a TUFLOW model includes Events (~e~) and/or Scenarios (~s~) by clicking on the &#039;&#039;&#039;Add&#039;&#039;&#039; button a &#039;&#039;&#039;dialog&#039;&#039;&#039; (please see image below) will come up to add model’s Scenarios and/or Events. &#039;&#039;&#039; To add simulations, there must be selected scenarios and events in every category. You can use &#039;_&#039; or another placeholder as needed for default scenarios.&#039;&#039;&#039; The bottom of the window shows the combination of selected events and scenarios. To get the sub-list you are interested in, you may need to use the add command several times.&lt;br /&gt;
[[File:Running the tool 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; For TUFLOW model which includes Scenario and/Events, the (~s~) and/or (~e~) must be included in the simulation filename.&lt;br /&gt;
*Then, toggle on &#039;&#039;&#039;Run&#039;&#039;&#039; to run the simulation.&lt;br /&gt;
[[File:Running the tool 3.jpg|750px]]&lt;br /&gt;
&lt;br /&gt;
==Running Multiple Simulation==&lt;br /&gt;
Multiple simulations can be run with the TUFLOW Runner. To do so, follow the steps which are described in &#039;&#039;&#039;Running the tool&#039;&#039;&#039; section and before running, &#039;&#039;&#039;Add&#039;&#039;&#039; to the queue more than one simulation files. If a simulation runs and you need to queue a new simulation, choose your new simulation file, and just click on &#039;&#039;&#039;Add&#039;&#039;&#039; button. The new simulation will be queued, automatically showing waiting status. Also, while running other simulations, you can re-launch the TUFLOW Runner for creating new queues and start new simulations.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If a TUFLOW model simulation with Events and/or Scenarios is not queued please check that these are specified in the Add Simulation &#039;&#039;&#039;dialog&#039;&#039;&#039; Window (please, see section: &#039;&#039;&#039;Running the tool&#039;&#039;&#039; – Step 3) as the runner requires an entry for each Scenario/Event.&lt;br /&gt;
&lt;br /&gt;
If you have further queries or issues it is recommended contacting [mailto:support@tuflow.com support@tuflow.com].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39338</id>
		<title>TUFLOW Runner</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Runner&amp;diff=39338"/>
		<updated>2024-04-19T12:33:55Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* Setting up the TUFLOW Runner */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Page Under Construction===&lt;br /&gt;
==Introduction==&lt;br /&gt;
The TUFLOW Runner provides a simple GUI for creating a queue of TUFLOW and TUFLOW FV simulations which will be run depending on available licenses and resources. The runner is available from the [https://gitlab.com/tuflow-user-group/tuflow/simulation-management/tuflow-runner TUFLOW GitLAB User Group] and is also bundled with the TUFLOW QGIS plugin. The TUFLOW Runner can replace the need for batch files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;With TUFLOW Runner you can:&#039;&#039;&#039;&lt;br /&gt;
*Manage a queue of simulations to run (combination of TUFLOW/TUFLOW FV).&lt;br /&gt;
*Handle TUFLOW scenarios and events&lt;br /&gt;
*Add multiple simulations based upon a combination of scenarios and events.&lt;br /&gt;
*Run multiple simulations at a time dependent upon computer and plugin resources.&lt;br /&gt;
*Change priority of items in the run queue.&lt;br /&gt;
*Remove items from the run queue.&lt;br /&gt;
*Kill currently running items in the run queue.&lt;br /&gt;
*Rerun a previously run simulation from the run queue (right-click).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TUFLOW Runner has also the following features:&#039;&#039;&#039;&lt;br /&gt;
*Uses an extensible &amp;quot;plugin&amp;quot; approach so other processes (executables) can be managed in the same queue.&lt;br /&gt;
*Manages available computer CPU and GPU resources.&lt;br /&gt;
*Tracks progress of running simulation.&lt;br /&gt;
*TUFLOW provides graphical output (matplotlib) of simulation volume in and volume out through time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other advantages:&#039;&#039;&#039;&lt;br /&gt;
*Option to save and load a run queue to easily rerun a group of simulations.&lt;br /&gt;
*Plugins can define restrictions for licenses, GPUs and CPUs.&lt;br /&gt;
*Scenarios and events are remembered between simulations&lt;br /&gt;
*Simulation screen output for running or finished simulations (searchable).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up the TUFLOW Runner==&lt;br /&gt;
Launch the runner.&lt;br /&gt;
* If running from python, launch the &amp;quot;main.py&amp;quot; script.&lt;br /&gt;
* If running through the QGIS Plugin, in the QGIS menu select &#039;&#039;&#039;Plugins &amp;gt;&amp;gt; TUFLOW &amp;gt;&amp;gt; RUN &amp;gt;&amp;gt; Launch TUFLOW Runner&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To set up:&lt;br /&gt;
*Choose &#039;&#039;&#039;Settings&#039;&#039;&#039; option from the Menu.&lt;br /&gt;
[[File:Setting Runner 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Specify&#039;&#039;&#039; the resources (CPU and GPU) and plugin information such as location of executables. &lt;br /&gt;
[[File:Setting Runner 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Then, click &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Running the tool==&lt;br /&gt;
&#039;&#039;&#039;Start&#039;&#039;&#039; a TUFLOW simulation by following the steps below:&lt;br /&gt;
*Select &#039;&#039;&#039;Run type&#039;&#039;&#039; (TUFLOW/TUFLOW FV).&lt;br /&gt;
*Identify the folder that contains the simulation files (&#039;&#039;&#039;Base folder&#039;&#039;&#039;) and select the simulation file. This must be .tcf for TUFLOW Classic/HPC or .fvc for TUFLOW FV.&lt;br /&gt;
[[File:Running the tool 1.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
*Click on the &#039;&#039;&#039;Add&#039;&#039;&#039; button to add a simulation to the queue. If a TUFLOW model includes Events (~e~) and/or Scenarios (~s~) by clicking on the &#039;&#039;&#039;Add&#039;&#039;&#039; button a &#039;&#039;&#039;dialog&#039;&#039;&#039; (please see image below) will come up to add model’s Scenarios and/or Events.&#039;&#039;&#039; If default Scenarios are included, please use &#039;_&#039;.&#039;&#039;&#039;  For each combination of Events and Scenarios a bunch of runs are shown up at the bottom of the window. &lt;br /&gt;
[[File:Running the tool 2.jpg|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; For TUFLOW model which includes Scenario and/Events, the (~s~) and/or (~e~) must be included in the simulation filename.&lt;br /&gt;
*Then, toggle on &#039;&#039;&#039;Run&#039;&#039;&#039; to run the simulation.&lt;br /&gt;
[[File:Running the tool 3.jpg|750px]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
==Running Multiple Simulation==&lt;br /&gt;
Multiple simulations can be run with the TUFLOW Runner. To do so, follow the steps which are described in &#039;&#039;&#039;Running the tool&#039;&#039;&#039; section and before running, &#039;&#039;&#039;Add&#039;&#039;&#039; to the queue more than one simulation files. If a simulation runs and you need to queue a new simulation, choose your new simulation file, and just click on &#039;&#039;&#039;Add&#039;&#039;&#039; button. The new simulation will be queued, automatically showing waiting status. Also, while running other simulations, you can re-launch the TUFLOW Runner for creating new queues and start new simulations.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If a TUFLOW model simulation with Events and/or Scenarios is not queued please check that these are specified in the Add Simulation &#039;&#039;&#039;dialog&#039;&#039;&#039; Window (please, see section: &#039;&#039;&#039;Running the tool&#039;&#039;&#039; – Step 3) as the runner requires an entry for each Scenario/Event.&lt;br /&gt;
&lt;br /&gt;
If you have further queries or issues it is recommended contacting [mailto:support@tuflow.com support@tuflow.com].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M02_Check_QGIS&amp;diff=39241</id>
		<title>TUFLOW SWMM Tutorial M02 Check QGIS</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M02_Check_QGIS&amp;diff=39241"/>
		<updated>2024-04-15T18:40:57Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* TUFLOW Check Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== SWMM Check Files ==&lt;br /&gt;
===Text Data===&lt;br /&gt;
When TUFLOW runs SWMM, it can accommodate for multiple INP input files within the SWMM Control file. TUFLOW combines the input INP files into a single combined INP file for the simulation execution. The combined file TUFLOW uses is written to the &#039;&#039;&#039;TUFLOW\results&#039;&#039;&#039; folder. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW\results&#039;&#039;&#039; folder and open &#039;&#039;&#039;TS02_5m_001_swmm.inp&#039;&#039;&#039; in Notepad++.&lt;br /&gt;
&amp;lt;li&amp;gt;Manual Data Review (Optional): Review the Junction, Outfall, Conduit, Losses, and XSections information in the text file. &lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== QGIS Data ===&lt;br /&gt;
It can be useful to review the inp file created by TUFLOW after all inp files are combined.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW\results&#039;&#039;&#039; folder and drag &#039;&#039;&#039;TS02_5m_001_swmm.inp&#039;&#039;&#039; &amp;lt;/u&amp;gt;&#039; into QGIS. This opens the dialog shown below.&lt;br /&gt;
:*CRS for GeoPackage: Click the drop down menu and select ‘Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S’.&lt;br /&gt;
:*SWMM Tags to ignore: leave blank.&lt;br /&gt;
:*GeoPackage output filename: Click the ... and select &#039;Save to File&#039;. Navigate to the &#039;&#039;&#039;TUFLOW\check&#039;&#039;&#039; folder and set the GeoPackage output filename to &#039;&#039;&#039;TS02_5m_001_swmm_check.gpkg&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool has finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;Add Layers&#039; to open all layers within &#039;&#039;&#039;TS02_5m_001_swmm_check.gpkg&#039;&#039;&#039;. By default, all items in the available list should have been selected.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_01d.mp4|width=1235}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Manual Data Review (Optional): Review the &#039;&#039;&#039;Link--Conduits&#039;&#039;&#039;, &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; and &#039;&#039;&#039;Node--Outfalls&#039;&#039;&#039; information to verify the data matches the input values. This data represents the 1D pipe network details.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_02c.mp4|width=1235}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since the layers in &#039;&#039;&#039;TS02_5m_001_swmm_check.gpkg&#039;&#039;&#039; have been compared with the input layers, the input layers can be removed from the QGIS workspace.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TUFLOW Check Files ==&lt;br /&gt;
Open the TUFLOW check files:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW\check&#039;&#039;&#039; folder and drag and drop &#039;&#039;&#039;TS02_5m_001_Check.gpkg&#039;&#039;&#039; and &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; (hold Ctrl to select multiple) into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;&#039;&#039;TS02_5m_001_1d_to_2d_check_R&#039;&#039;&#039; and &#039;&#039;&#039;TS02_5m_001_swmm_pit_P&#039;&#039;&#039; (hold Ctrl to select multiple). Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Apply TUFLOW Styles to Open Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Style &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; (the topography check file) using the same hillshade styling as &#039;&#039;&#039;DEM_Hillshade&#039;&#039;&#039;:&lt;br /&gt;
:*In the QGIS Layers Panel, right click &#039;&#039;&#039;DEM_Hillshade&#039;&#039;&#039; and select Styles &amp;gt; Copy Style.&lt;br /&gt;
:*Right Click &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; and select Styles &amp;gt; Paste Style. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, move the &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; layer below the other check files so that the other datasets are visible.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_03d.mp4|width=1235}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Manual Data Review (Optional): Compare the 2D check files information against the the 1D check files to verify the model design is as intended.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;How does the the pipe network invert elevations &#039;&#039;&#039;(Nodes--Junctions)&#039;&#039;&#039; compare to the the pit inlet (surface) elevations?&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TUFLOW Pipe Integrity Tool ==&lt;br /&gt;
Some of the optional manual data review exercises suggested in the previous sections can be easily carried out using the QGIS TUFLOW Plugin &#039;Pipe Integrity Toolkit&#039;, specifically the visual profile plot tools.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the &#039;1D Integrity Tool&#039; from the TUFLOW Plugin toolbar.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_1D_integrity.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The resulting dialog will appear.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:1D_Integrity_dialog_2.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set up the tool for this model:&lt;br /&gt;
:*Input Network Lines: Use the dropdown box and select &#039;&#039;&#039;TS02_5m_001_swmm_check &amp;gt;&amp;gt; Links--Conduits&#039;&#039;&#039;. Click the &#039;+&#039; button to add the layer as an input to the tool.&lt;br /&gt;
:*Input Network Points: Using the same process as above, add &#039;&#039;&#039;TS02_5m_001_swmm_check &amp;gt;&amp;gt; Nodes--Junctions&#039;&#039;&#039; and &#039;&#039;&#039;TS02_5m_001_swmm_check  &amp;gt;&amp;gt; Nodes--Outfalls&#039;&#039;&#039; to the tool. &lt;br /&gt;
:*Input Tables: Leave blank as it is not used for SWMM data review.&lt;br /&gt;
:*Input DEM: Tick on and use the dropdown box to select &#039;&#039;&#039;TS02_5m_001_DEM_Z&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; For further information on the 1D Integrity Tool and its functionality, see &amp;lt;u&amp;gt;[[1D Integrity Tool|1D Integrity Tool]]&amp;lt;/u&amp;gt;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_04d.mp4|width=1350}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates the &#039;Flow Trace&#039; tool. It will be used to create a profile plot for visual review of the 1D pipe network data input.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;Links--Conduits&#039;&#039;&#039; and select &#039;Zoom to Layer(s)&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to select conduit &#039;Pipe6&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;At the bottom of the 1D Integrity tool dialog, there is a list of tools. Select the &#039;Flow Trace&#039; tab.&lt;br /&gt;
&amp;lt;li&amp;gt;Enter the following options:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:1D_Integrity_flow_trace_options.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;The tool will select all the upstream conduits and also add another output layer identifying the locations which fail the flow area and invert checks. &lt;br /&gt;
&amp;lt;li&amp;gt;A Flow Trace window will appear. It provides a &#039;long plot&#039; of the long sections of the various upstream paths from the selected conduit, highlighting the areas of continuity failures. The plot should be consistent with the output GIS layer that is also generated by the flow trace tool.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_05d.mp4|width=1350}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_SWMM_Tutorial_M02#Check_Files_and_Results_Output| Back to TUFLOW SWMM Tutorial 2]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M02_Check_QGIS&amp;diff=39240</id>
		<title>TUFLOW SWMM Tutorial M02 Check QGIS</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_M02_Check_QGIS&amp;diff=39240"/>
		<updated>2024-04-15T18:29:37Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* QGIS Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== SWMM Check Files ==&lt;br /&gt;
===Text Data===&lt;br /&gt;
When TUFLOW runs SWMM, it can accommodate for multiple INP input files within the SWMM Control file. TUFLOW combines the input INP files into a single combined INP file for the simulation execution. The combined file TUFLOW uses is written to the &#039;&#039;&#039;TUFLOW\results&#039;&#039;&#039; folder. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW\results&#039;&#039;&#039; folder and open &#039;&#039;&#039;TS02_5m_001_swmm.inp&#039;&#039;&#039; in Notepad++.&lt;br /&gt;
&amp;lt;li&amp;gt;Manual Data Review (Optional): Review the Junction, Outfall, Conduit, Losses, and XSections information in the text file. &lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== QGIS Data ===&lt;br /&gt;
It can be useful to review the inp file created by TUFLOW after all inp files are combined.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Navigate to the &#039;&#039;&#039;TUFLOW\results&#039;&#039;&#039; folder and drag &#039;&#039;&#039;TS02_5m_001_swmm.inp&#039;&#039;&#039; &amp;lt;/u&amp;gt;&#039; into QGIS. This opens the dialog shown below.&lt;br /&gt;
:*CRS for GeoPackage: Click the drop down menu and select ‘Project CRS: EPSG:32760 - WGS 84 / UTM zone 60S’.&lt;br /&gt;
:*SWMM Tags to ignore: leave blank.&lt;br /&gt;
:*GeoPackage output filename: Click the ... and select &#039;Save to File&#039;. Navigate to the &#039;&#039;&#039;TUFLOW\check&#039;&#039;&#039; folder and set the GeoPackage output filename to &#039;&#039;&#039;TS02_5m_001_swmm_check.gpkg&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Once the tool has finished, click &#039;Close&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;Add Layers&#039; to open all layers within &#039;&#039;&#039;TS02_5m_001_swmm_check.gpkg&#039;&#039;&#039;. By default, all items in the available list should have been selected.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_01d.mp4|width=1235}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Manual Data Review (Optional): Review the &#039;&#039;&#039;Link--Conduits&#039;&#039;&#039;, &#039;&#039;&#039;Nodes--Junctions&#039;&#039;&#039; and &#039;&#039;&#039;Node--Outfalls&#039;&#039;&#039; information to verify the data matches the input values. This data represents the 1D pipe network details.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_02c.mp4|width=1235}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since the layers in &#039;&#039;&#039;TS02_5m_001_swmm_check.gpkg&#039;&#039;&#039; have been compared with the input layers, the input layers can be removed from the QGIS workspace.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TUFLOW Check Files ==&lt;br /&gt;
Open the TUFLOW check files:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In Windows File Explorer, navigate to the &#039;&#039;&#039;TUFLOW\check&#039;&#039;&#039; folder and drag and drop &#039;&#039;&#039;TS02_5m_001_Check.gpkg&#039;&#039;&#039; and &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; (hold Ctrl to select multiple) into QGIS. &lt;br /&gt;
&amp;lt;li&amp;gt;When prompted by QGIS, under &#039;Options&#039;, tick on &#039;Add layers to group&#039;, then select &#039;&#039;&#039;TS02_5m_001_1d_to_2d_check_R&#039;&#039;&#039; and &#039;&#039;&#039;TS02_5m_001_swmm_pit_P&#039;&#039;&#039; (hold Ctrl to select multiple). Click &#039;Add Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Apply TUFLOW Styles to Open Layers&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Style &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; (the topography check file) using the same hillshade styling as &#039;&#039;&#039;DEM_Hillshade&#039;&#039;&#039;:&lt;br /&gt;
:*In the QGIS Layers Panel, right click &#039;&#039;&#039;DEM_Hillshade&#039;&#039;&#039; and select Styles &amp;gt; Copy Style.&lt;br /&gt;
:*Right Click &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; and select Styles &amp;gt; Paste Style. &lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, move the &#039;&#039;&#039;TS02_5m_001_DEM_Z.tif&#039;&#039;&#039; layer below the other check files so that the other datasets are visible.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_03d.mp4|width=1235}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Manual Data Review (Optional): Compare the 2D check files information against the the 1D check files to verify the model design is as intended.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;How does the the pipe network invert elevations &#039;&#039;&#039;(Nodes--Junctions)&#039;&#039;&#039; compare to the the pit inlet (surface) elevations?&lt;br /&gt;
&amp;lt;li&amp;gt;Do the SWMM values for the &#039;Ysur&#039; and &#039;Apond&#039; at the pit inlet and closed junction locations vary? Do they match the values we specified when constructing the model?&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TUFLOW Pipe Integrity Tool ==&lt;br /&gt;
Some of the optional manual data review exercises suggested in the previous sections can be easily carried out using the QGIS TUFLOW Plugin &#039;Pipe Integrity Toolkit&#039;, specifically the visual profile plot tools.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open the &#039;1D Integrity Tool&#039; from the TUFLOW Plugin toolbar.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:tuflow_plugin_1D_integrity.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The resulting dialog will appear.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:1D_Integrity_dialog_2.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Set up the tool for this model:&lt;br /&gt;
:*Input Network Lines: Use the dropdown box and select &#039;&#039;&#039;TS02_5m_001_swmm_check &amp;gt;&amp;gt; Links--Conduits&#039;&#039;&#039;. Click the &#039;+&#039; button to add the layer as an input to the tool.&lt;br /&gt;
:*Input Network Points: Using the same process as above, add &#039;&#039;&#039;TS02_5m_001_swmm_check &amp;gt;&amp;gt; Nodes--Junctions&#039;&#039;&#039; and &#039;&#039;&#039;TS02_5m_001_swmm_check  &amp;gt;&amp;gt; Nodes--Outfalls&#039;&#039;&#039; to the tool. &lt;br /&gt;
:*Input Tables: Leave blank as it is not used for SWMM data review.&lt;br /&gt;
:*Input DEM: Tick on and use the dropdown box to select &#039;&#039;&#039;TS02_5m_001_DEM_Z&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; For further information on the 1D Integrity Tool and its functionality, see &amp;lt;u&amp;gt;[[1D Integrity Tool|1D Integrity Tool]]&amp;lt;/u&amp;gt;.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_04d.mp4|width=1350}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following example demonstrates the &#039;Flow Trace&#039; tool. It will be used to create a profile plot for visual review of the 1D pipe network data input.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the QGIS Layers Panel, right click &#039;&#039;&#039;Links--Conduits&#039;&#039;&#039; and select &#039;Zoom to Layer(s)&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;Use the &#039;Select Features&#039; tool to select conduit &#039;Pipe6&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt;At the bottom of the 1D Integrity tool dialog, there is a list of tools. Select the &#039;Flow Trace&#039; tab.&lt;br /&gt;
&amp;lt;li&amp;gt;Enter the following options:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:1D_Integrity_flow_trace_options.png]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click &#039;Run&#039;. &lt;br /&gt;
&amp;lt;li&amp;gt;The tool will select all the upstream conduits and also add another output layer identifying the locations which fail the flow area and invert checks. &lt;br /&gt;
&amp;lt;li&amp;gt;A Flow Trace window will appear. It provides a &#039;long plot&#039; of the long sections of the various upstream paths from the selected conduit, highlighting the areas of continuity failures. The plot should be consistent with the output GIS layer that is also generated by the flow trace tool.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{Video|name=Animation_TS2_Check_05d.mp4|width=1350}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_SWMM_Tutorial_M02#Check_Files_and_Results_Output| Back to TUFLOW SWMM Tutorial 2]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_2592&amp;diff=39202</id>
		<title>TUFLOW Message 2592</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_2592&amp;diff=39202"/>
		<updated>2024-04-08T23:36:40Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=WARNING 2592 - Ignoring &amp;quot;Hardware ==&amp;quot; command due to -hw command line options&lt;br /&gt;
|alt_msg=NA&lt;br /&gt;
|type=[[WARNING]]&lt;br /&gt;
|message_desc=When TUFLOW was launched, -hwgpu or -hwcpu was specified controlling whether the simulation is running on the CPU or the GPU. Any commands in the tcf file are overridden by the command line specification.&lt;br /&gt;
|suggestions=Make sure that the command line arguments match the desired run mode.&lt;br /&gt;
&lt;br /&gt;
|uplink=[[2xxx_TUFLOW_Messages|2xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_2592&amp;diff=39201</id>
		<title>TUFLOW Message 2592</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_2592&amp;diff=39201"/>
		<updated>2024-04-08T23:35:49Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: Created page with &amp;quot;{{TUFLOW_Message |tuflow_message=WARNING 2592 - Ignoring &amp;quot;Hardware ==&amp;quot; command due to -hw command line options |alt_msg=NA |type=WARNING |message_desc=When TUFLOW was laun...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=WARNING 2592 - Ignoring &amp;quot;Hardware ==&amp;quot; command due to -hw command line options&lt;br /&gt;
|alt_msg=NA&lt;br /&gt;
|type=[[WARNING]]&lt;br /&gt;
|message_desc=When TUFLOW was launched, -hwgpu or -hwcpu was specified controlling whether the simulation is running on the CPU or the GPU. Any commands in the tcf file are overridden by the command line specification.&lt;br /&gt;
&lt;br /&gt;
|uplink=[[2xxx_TUFLOW_Messages|2xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Viewer&amp;diff=39061</id>
		<title>TUFLOW Viewer</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Viewer&amp;diff=39061"/>
		<updated>2024-03-18T18:37:22Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: /* TUFLOW-SWMM Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TUFLOW Viewer replaces Crayfish and TUPLOT as the TUFLOW result viewer for &amp;lt;u&amp;gt;[[QGIS_Tips | QGIS]]&amp;lt;/u&amp;gt; (version 3.6 onwards). It uses the Mesh Data Abstraction Library (MDAL) available in QGIS to display and interact with TUFLOW map output results, and the TUFLOW results python library (the same library used by TUPLOT in earlier versions of QGIS) for viewing TUFLOW time series results.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Getting Started=&lt;br /&gt;
==QGIS Version==&lt;br /&gt;
&amp;lt;b&amp;gt;&#039;&#039;A few notes on the recommended QGIS version:&#039;&#039;&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is recommended to use the latest version of QGIS. The reasons for this are:&lt;br /&gt;
* TUFLOW Viewer is developed using the latest version, and although backwards compatibility is maintained as best as possible, TUFLOW Viewer is tested more frequently on the latest QGIS version.&lt;br /&gt;
* The mesh data provider (MDAL) and the temporal controller (which now underpins the mesh datasets in QGIS) are both relatively new in comparison to other libraries (e.g. GDAL) and are therefore more regularly updated with new features, enhancements, and bug fixes by the QGIS developers. TUFLOW Viewer takes advantage of these updates.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although TUFLOW Viewer has been developed to be consistent across QGIS versions, it is not always possible. Some QGIS developments and behaviour changes have led to TUFLOW Viewer behaviour also changing either through necessity or to keep in-line with the QGIS development direction. The below is a current list of known behaviour changes due to QGIS version:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &#039;&#039;&#039;Date-time format within TUFLOW Viewer&#039;&#039;&#039; - QGIS 3.14 introduced the &#039;&#039;&#039;temporal controller&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Prior to QGIS 3.14, TUFLOW Viewer stored all results internally as relative time. The user could display as date-time and the reference time by changing &#039;&#039;&#039;Zero Date&#039;&#039;&#039; in &#039;&#039;&#039;Settings &amp;gt;&amp;gt; Options&#039;&#039;&#039;.&lt;br /&gt;
* QGIS 3.14, TUFLOW Viewer tried to mimic the behaviour of previous versions but the reference time could also be altered natively in the mesh layer &#039;&#039;&#039;Properties&#039;&#039;&#039;. Note on this version, this is the first QGIS release with the &#039;&#039;&#039;temporal controller&#039;&#039;&#039; and as a consequence some of the functionality matured and changed in subsequent versions. Users may experience strange behaviour when using TUFLOW Viewer with the QGIS 3.14 if using date-time format. It is recommended to upgrade to later versions of QGIS if date-time format is required.&lt;br /&gt;
* Post QGIS 3.14 TUFLOW Viewer stores all results internally as absolute time and the user must change the reference time in the native properties of the mesh layer to alter the dates being displayed. &#039;&#039;&#039;Zero Date&#039;&#039;&#039; now only changes how the relative time is displayed in TUFLOW Viewer and doesn&#039;t change the mesh layer reference time.&lt;br /&gt;
* Please follow the link below on how to use isodate (date-time) format in TUFLOW Viewer in QGIS 3.16+ (recommended minimum version if using date-time format): &amp;lt;u&amp;gt;[[TUFLOW_Viewer_-_Isodate_(Date-Time)_Format | Working With Isodate (Date-Time) format]]&amp;lt;/u&amp;gt;.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other Known Issues&#039;&#039;&#039;&amp;lt;Br&amp;gt;&lt;br /&gt;
* QGIS 3.24 uses Matplotlib v3.5.1 which contains the following known bug which may affect users when re-labelling datasets within the TUFLOW Viewer plot window:&amp;lt;Br&amp;gt;&lt;br /&gt;
: [[TUFLOW_Viewer_Matplotlib_v3.5.1_Bug | TUFLOW Viewer - Matplotlib v3.5.1 bug]]&amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;quot;ValueError: Failed to find font DejaVu Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=10.0, and fallback to the default font was disabled&amp;quot;&lt;br /&gt;
: [[TUFLOW_Viewer_Matplotlib_Font_Error | TUFLOW Viewer - Matplotlib Font Error]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installation or Version Upgrade==&lt;br /&gt;
===Installation===&lt;br /&gt;
TUFLOW Viewer is a free tool that comes as part of the TUFLOW plugin in QGIS. For instructions on how to install the plugin, please follow these steps:&amp;lt;u&amp;gt;[[TUFLOW_QGIS_Plugin#Installation_of_Plugin | Installation of Plugin]]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
There are also instructions on installing plugins in the QGIS documentation - if you choose to follow the QGIS documentation, the plugin is called &amp;quot;TUFLOW&amp;quot; in the repository: &amp;lt;u&amp;gt; [https://docs.qgis.org/3.16/en/docs/training_manual/qgis_plugins/fetching_plugins.html Link to QGIS Documentation - Installing and Managing Plugins]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Plugin Upgrades===&lt;br /&gt;
It&#039;s recommended to upgrade the plugin whenever a new version is released. The upgrade process is typically done via the Plugin Manager (&#039;&#039;&#039;QGIS Drop Menu: Plugins &amp;gt;&amp;gt; Manage and Install Plugins&#039;&#039;&#039;).&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: TUFLOW Plugin Update.JPG||600px]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
If you encounter an error while upgrading the plugin please follow these steps: &amp;lt;u&amp;gt;[[ TUFLOW_QGIS_Plugin#Error_While_Upgrading_Plugin | Error_While_Upgrading_Plugin ]]&amp;lt;/u&amp;gt;.&lt;br /&gt;
==Development Version==&lt;br /&gt;
It&#039;s possible to test out the latest development version of the plugin and TUFLOW Viewer by following the instructions below:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;[[Installing_the_Latest_Development_Version_of_the_TUFLOW_Plugin | Installing the Latest Development Version of the TUFLOW Plugin]]&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;Br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Using TUFLOW Viewer=&lt;br /&gt;
==Opening the TUFLOW Viewer==&lt;br /&gt;
After installing the QGIS TUFLOW plugin, the TUFLOW Viewer tool can be opened by clicking the following icon in the plugin toolbar:&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: TUFLOW_Viewer_In_Toolbar.PNG]].&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Loading Results==&lt;br /&gt;
TUFLOW simulation results can be loaded several ways:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;File &amp;gt;&amp;gt; Load Results&#039;&#039;&#039; from the TUFLOW Viewer drop down menu.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:TUFLOW Plugin Load 1.jpg||800px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Right Click in the &#039;&#039;&#039;Open Results&#039;&#039;&#039; panel and select &#039;&#039;&#039;Load Results&#039;&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:TUFLOW Plugin Load 2.jpg||800px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
Using either of the above methods, the following result load options are available:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results | Load All Results]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; This is done via a TCF, TLF, or FVC (TUFLOW FV) file and will load in all results (Map Outputs and ESTRY Time Series).&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Map_Outputs | Load Results - Map Outputs]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;  --&amp;gt; Select map output mesh results file (&#039;&#039;&#039;*.xmdf, *.dat, *.2dm, *.xmdf.sup, *.dat.sup, *.nc&#039;&#039;&#039; &#039;&#039;(supports netCDF format from TUFLOW FV output only)&#039;&#039;).&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Time_Series | Load Results - Time Series]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;  --&amp;gt; Select ESTRY / SWMM time series output results (&#039;&#039;&#039;*.tpc *.gpkg&#039;&#039;&#039;).&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Time_Series_FM | Load Results - Flood Modeller Time Series]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;  --&amp;gt; Load Flood Modeller results. This requires a &#039;&#039;&#039;*.gxy&#039;&#039;&#039; and result &#039;&#039;&#039;*.csv&#039;&#039;&#039; file to be exported from Flood Modeller.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Particles | Load Results - Particle Tracking Module]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;  --&amp;gt; Select output from particle module (&#039;&#039;&#039;*.nc&#039;&#039;&#039;) which will typically be suffixed with &#039;&#039;&#039;_ptm&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_NetCDF_Grid | Load Results - NetCDF Grid]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;  --&amp;gt; Load TUFLOW NC or HRNC map output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Import_1D_Hydraulic_Tables | Import 1D Hydraulic Tables]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;  --&amp;gt; Select a &#039;&#039;&#039;_1d_ta_tables_check.csv&#039;&#039;&#039; check file.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Import_2D_BC_Tables | Import 2D BC Tables]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Select a &#039;&#039;&#039;_2d_bc_tables_check.csv&#039;&#039;&#039; check file.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Import_1D_ESTRY_Cross_-_Sections | Import 1D ESTRY Cross-Sections]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;  --&amp;gt; This will automatically happen if an appropriate TUFLOW input is opened in QGIS while TUFLOW Viewer is open (e.g. 1d_xs).&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Importing_a_User_Defined_Time_Series_To_Display_On_The_Plot | Importing a User Defined Time Series Dataset To Display In The Plot Window]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Loading_Results_While_TUFLOW_is_Running | Loading Results While TUFLOW is Running]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Troubleshooting&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
If you receive an error similar to that shown below when attempting to load results from a TCF you will need to fix the encoding of your TUFLOW control files:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UnicodeDecodeError: &#039;utf-8&#039; codec can&#039;t decode byte 0x92 in position 626: invalid start byte&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This error is caused by incompatible encoding of the TUFLOW control files. You can resolve this issue by changing the encoding of all your TUFLOW control files to a single type (typically UTF-8). You can do this using Notepad++. Please see the following link for instructions on how to do this (refer last image): &amp;lt;u&amp;gt;[[TUFLOW_Message_0060]]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TUFLOW-SWMM Results ==&lt;br /&gt;
Results from a linked TUFLOW-SWMM model can be loaded via the standard menu options (available from the TUFLOW plugin version 3.10):&lt;br /&gt;
* &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Time_Series | Load Results - Time Series]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; to load the GPKG time series format (_swmm_ts.gpkg) by itself. The GPKG time series format is a new format similar to the .tpc with some additional functionality. More information can be found in the &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;[[#GPKG_Time_Series_Format | GPKG Time Series Format]]&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; section.&lt;br /&gt;
* &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Map_Outputs | Load Results - Map Outputs]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; to load in 2D map output results&lt;br /&gt;
* &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results | Load Results]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; to load all available results from the model. This includes .xmdf, .tpc, and .gpkg results which could all be available for a given model run. Note that .tpc and .gpkg are both time series type results and will load separate GIS _PLOT_ layers.&lt;br /&gt;
&lt;br /&gt;
== GPKG Time Series Format ==&lt;br /&gt;
The GPKG time series format is a new format similar to the .tpc with enhanced temporal functionality. Currently the GPKG time series format is only supported as an output from SWMM in TUFLOW-SWMM linked models and only supported in TUFLOW Plugin version 3.10+ and QGIS 3.16+.&amp;lt;Br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The GPKG format is different from the TPC format as it supports temporal styling in QGIS. As an example, the line width of the channels can be varied by both time and flow, with wider lines showing higher flow than thinner lines at a particular timestep. The format is fully compatible with the QGIS temporal controller and reacts dynamically as the temporal controller is updated. This results in a dynamic, and intuitive, method of showing the user the flood progression in the 1D system. Another benefit of being compatible with the core QGIS temporal capabilities is that the styling will also be dynamically updated if included in an animation export. TUFLOW Viewer&#039;s animation export tool has been updated to enable GPKG results to be exported with 2D results or even by itself.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The layer&#039;s styling can be automatically set using the TUFLOW Plugin via the layer&#039;s right-click context menu (under the TUFLOW submenu) or will automatically by styled if the results are loaded via TUFLOW Viewer. Examples of this format in QGIS are linked below:&lt;br /&gt;
* &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;[[Automatically_Styling_GPKG_Time_Series | Styling layers from the GPKG time series output]]&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;[[TUFLOW_Viewer_-_Load_Results_-_GPKG_Time_Series | Loading results via TUFLOW Viewer]]&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
The GPKG time series format is an open format and the specification is detailed at the below link:&lt;br /&gt;
* &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;[[GPKG_Time_Series_Format_Specification | GPKG Time Series Format Specification]]&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Data Selection, Display and Styling==&lt;br /&gt;
===Map Output===&lt;br /&gt;
Map Outputs are the time varying 2D result outputs from TUFLOW (or 3D outputs from TUFLOW FV). Data selection, display, styling and plotting instructions for Map Output results in TUFLOW Viewer are described below:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Load Map Output results either via:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results | Load All Results]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;, or&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Map_Outputs | Load Results - Map Outputs]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; &lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Reload_Results | Reload Results]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Reload and update results&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Change_Result_Selection | Change Simulation Result Selection]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Changing between different simulation results is done by selecting the result name(s) in the &#039;Open Results&#039; widget.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Changing_Result_Type | Change Result Type Selection]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Changing between different result types is done using the &#039;Result Type&#039; widget.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Displaying_Maximum | Display Result Maximum]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; If available, maximums can be toggled on/off for the different result types.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Displaying_Vectors | Display Vectors]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Vector results can be displayed in combination with any of the scalar result types (e.g. velocity vectors can be displayed with depth).&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Styling_Scalar_Types | Style Scalar Map Outputs]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Styling scalar map output results is similar to styling raster layers in QGIS.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Styling_Vector_Types | Style Vector Map Outputs]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Similar to the styling the scalar map outputs, there are a range of options for styling the vector layers.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Saving_Default_Styles | Save Default Styles]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Users can save default styles for result types so they are automatically applied each time results are imported using TUFLOW Viewer.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Displaying_The_Mesh | Display The Mesh]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; The quickest way to toggle the mesh is to click the grid box in TUFLOW Viewer.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_3D_to_2D_Depth_Averaging_Method | 3D to 2D Depth Averaging]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; For 3D map output results, the 3D to 2D depth averaging method can be changed in the layer properties.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Toggling_Between_Output_Timesteps | Lock/Unlock Output Time Steps from Different Result Datasets]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Locking Plot Output Timesteps to the Map Output Interval.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Isodate_(Date-Time)_Format | Working With Isodate (Date-Time) Format]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; View results using absolute time format (dd/mm/yyyy hh:mm:ss) instead of relative time format (hh:mm:ss).&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Plotting_Time_Series | Map Output Plot - Plotting Time Series]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Plotting_Cross-Sections_And_Longitudinal_Profiles | Map Output Plot - Plotting Cross-Sections and Longitudinal Profiles]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Plotting_Flow | Map Output Plot - Plotting Flow]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Curtain_Plot | Map Output Plot - 3D Curtain Plot]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Vertical_Profile | Map Output Plot - 3D Vertical Profile]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_3D_to_2D_Depth_Averaged_Time_Series | Map Output Plot - Plotting 3D to 2D Depth Averaged Time Series]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_3D_to_2D_Depth_Averaged_Cross-Sections | Map Output Plot - Plotting 3D to 2D Depth Averaged Cross-Sections]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Map_Outputs_-_Plotting_From_Vector_Layer | Map Output Plot - Plotting From Vector a Layer (e.g. shp file)]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; --&amp;gt; Plotting Map Output results.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[file: MapOutputs HeaderImg.PNG|650px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Time Series Output===&lt;br /&gt;
Time series outputs are typically 1D result outputs or 2D time series results (plot outputs or reporting locations). Time series results consist of two elements, the result datasets and GIS layers that the user can interact with to customise the plot selection in TUFLOW Viewer.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Load time series output results either via:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results | Load All Results]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;, or&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Time_Series | Load Results - Time Series]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; for TUFLOW models, or:&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Load_Results_-_Time_Series_FM | Load Results - Time Series Flood Modeller]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; for TUFLOW linked Flood Modeller 1D models.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Time_Series_Outputs_GIS_Data | Time Series Output - GIS Data]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Time_Series_Outputs_-_Plotting_Time_Series | Time Series Output - Plotting Time Series]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Time_Series_Outputs_-_Plotting_Longitudinal_Profiles | Time Series Output - Plotting Longitudinal Profiles]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Showing_Selected_Elements_And_Selecting_Sub-Sets | Identifying Selected Elements and Selecting Sub-Sets]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Time_Series_Outputs_-_Plotting_1D_Cross-Section_Inputs | Plotting 1D Cross-Section Inputs (with / without results)]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Time_Series_Outputs_-_Plotting_1D_Hydraulic_Table_Check_Files | Plotting 1D Hydraulic Table Check Files]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Extracting_Median_And_Mean_Time_Series | Extracting Median and Mean Time Series - Australian Rainfall and Runoff]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Plotting_1D_Flow_Regime | Plotting 1D Flow Regime]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Import_2D_BC_Tables | Plotting 2D Boundary Condition Tables]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Toggling_Between_Output_Timesteps | Lock/Unlock Output Time Steps from Different Result Datasets]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Isodate_(Date-Time)_Format | Working With Isodate (Date-Time) Format]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; &lt;br /&gt;
&amp;lt;/ol&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: TimeSeries_HeaderImg.PNG|650px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Particle Tracking Output===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Particle_Outputs | Particle Tracking Outputs]]&#039;&#039;&#039;&amp;lt;/u&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Isodate_(Date-Time)_Format | Working With Isodate (Date-Time) Format]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Toggling_Between_Output_Timesteps | Lock/Unlock Output Time Steps from Different Result Datasets]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
[[File: Particles HeaderImg.PNG|650px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==General Plot Display Options==&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Summary_of_Plotting_Toolbar | Summary of Plotting Toolbar Options]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Using_A_Secondary_Axis | Using a Secondary Axis]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Using_A_Date_Axis | Using a Date Axis]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Showing_The_Current_Time | Displaying the Current Time]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Customising_The_Plot_Legend | Customising The Legend]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Customising_The_Plotting_Styles | Customising The Plotting Styles]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Customising_The_Plot_Axes | Customising The Plot Axes]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Toggling_Plot_Grid_Lines | Plot Grid Line Display]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Importing_a_Custom_Colour_Ramp_For_The_Curtain_Plot | Importing a Custom Colour Ramp For The Curtain Plot]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Navigating_And_Querying_The_Plot | Navigating And Querying The Plot]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Auto_Update_Plot_From_Cursor_Location | Auto Update Plot From Cursor Location]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Viewing_The_Vertical_Mesh | 3D Mesh Vertical Layer Display]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Hiding_The_Plotting_Window | Hiding the Plot Window]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Customising_The_Plot_Background_Colour | Customising the Plot Background Colour]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Setting_The_Plot_Default_Font_Size | Setting the Default Font Size For the Plot]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Toggling_Between_Output_Timesteps | Lock/Unlock Output Time Steps from Different Result Datasets]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Changing_Icon_Size | Changing the Icon Size]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Summary_Of_Options | Settings Options]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File: Plotting_HeaderImg.PNG | 650px ]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Exporting Data, Plots, Maps and Animations==&lt;br /&gt;
TUFLOW Viewer offers the ability to export data interegation points/lines, maps, plots and animations:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt; &lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Exporting_An_Animation | Exporting An Animation]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
: [[File: Animation_cover.gif]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Exporting_And_Copying_A_Plot | Exporting and Copying a Plot]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Exporting_The_Drawn_GIS_Plot_Features | Exporting The Drawn GIS Plot Points / Lines]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Batch_Exporting_Maps | Batch Exporting Maps]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;lt;u&amp;gt;&#039;&#039;&#039;[[TUFLOW_Viewer_-_Batch_Exporting_Plots | Batch Exporting Plots]]&#039;&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
: [[File: Maps_Cover_Image.PNG | 550px]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Python Error Troubleshooting =&lt;br /&gt;
Occasionally the TUFLOW plugin will throw an exception and this will produce a &#039;&#039;&#039;Python Error&#039;&#039;&#039; which is displayed either as a yellow banner at the top of the map window or a window may appear stating than an &#039;Error has occurred while executing Python code&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
[[File: PythonError.PNG]]&amp;lt;br&amp;gt;&lt;br /&gt;
When this occurs it means that the TUFLOW plugin has encountered something unusual or a situation that it does not know how to handle (i.e. it has reached a line in the code that has failed to execute and as a consequence Python has bailed out). This means all the code below this point that was meant to execute has not. This can have knock-on consequences as variables may not exist or be set to incorrect values and signal handling (e.g. what happens when a menu item is clicked) may be broken. As such, a python error can lead to further python errors that would normally not have occurred. Because of this flow-on effect the first python error is usually the most important.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you encounter a python error please:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Email the &#039;&#039;&#039;Stack Trace&#039;&#039;&#039; to &amp;lt;u&amp;gt;[mailto:support@tuflow.com support@tuflow.com]&amp;lt;/u&amp;gt; with a description of the steps that produced the python error (as best you can describe it). This is to help us identify bugs and fix the plugin so that it catches this exception in the future.&lt;br /&gt;
&amp;lt;li&amp;gt; If you find that you are now experiencing further python errors (probably caused by the initial error) you can try the following alternative in order of severity (least to worst):&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; On the TUFLOW Viewer menu bar &#039;&#039;&#039;File &amp;gt;&amp;gt; Reload TUFLOW Viewer&#039;&#039;&#039; - this will reload TUFLOW Viewer, resetting all variables and signals. You will be required to load in any time series results again and other settings may also be reset. Map output results will remain in the workspace and be reloaded into TUFLOW Viewer.&lt;br /&gt;
&amp;lt;li&amp;gt; Save the QGIS workspace (.qgz) and restart QGIS.&lt;br /&gt;
&amp;lt;li&amp;gt; Restart QGIS - you can save the workspace (.qgz), however you should first select on the TUFLOW Viewer menu bar &#039;&#039;&#039;File &amp;gt;&amp;gt; Close TUFLOW Viewer Completely&#039;&#039;&#039; - this will close the Viewer and also remove all settings associated with it from the workspace so that the problematic variable is not accidentally reloaded with the workspace.&lt;br /&gt;
&amp;lt;li&amp;gt; The last resort option is to restart QGIS and load and create a new workspace from scratch (do not load a saved workspace).&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[Main_Page| Back to Wiki Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_Introduction&amp;diff=38888</id>
		<title>TUFLOW SWMM Tutorial Introduction</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_SWMM_Tutorial_Introduction&amp;diff=38888"/>
		<updated>2024-03-04T15:02:51Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: Add links to TUFLOW-SWMM related documentation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On request from USA XPSWMM users, TUFLOW linkage with 1D EPA Storm Water Management Model (SWMM) has been added as a supported feature in TUFLOW 2023-03-AD release or newer. EPA SWMM is used for simulating urban watershed hydrologic and 1D hydraulic behavior. Initially developed in the early 1970&#039;s by the USA Environmental Protection Agency (EPA), the software has since undergone numerous updates and enhancements to become one of the most used 1D stormwater runoff and water quality analysis tools in North America. The primary uses of EPA SWMM include designing and evaluating stormwater systems and also planning and assessment of low-impact developments (also known as Water Sensitive Urban Design). For more details about EPA SWMM, please visit: &amp;lt;u&amp;gt;[https://www.epa.gov/water-research/storm-water-management-model-swmm  https://www.epa.gov/water-research/storm-water-management-model-swmm]&amp;lt;/u&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This EPA SWMM series of tutorials has been written in USA English for the predominantly USA SWMM user base.&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
The following tutorial models are aimed at new and experienced users, stepping through the process of building and running TUFLOW SWMM together. The main objective aims to demonstrate the ability for TUFLOW to link to 1D EPA SWMM in a variety of different common use case scenarios. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note, if you are not already familiar with TUFLOW, we recommend first completing Module 1 and 2 of the &amp;lt;u&amp;gt;[[Tutorial_Introduction | &amp;quot;TUFLOW Only&amp;quot; Tutorials]]&amp;lt;/u&amp;gt; to establish an understanding of 2D modeling, before progressing to learning how to link 1D EPA SWMM to 2D TUFLOW.&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;TUFLOW has supported 1D/2D dynamic coupling since its initial 2D solver development in 1989. Traditionally, 1D (1 Dimensional) linking and associated modeling has been applied using TUFLOW&#039;s 1D solver, ESTRY. As demonstrated in:&lt;br /&gt;
:*&amp;lt;u&amp;gt;[[Tutorial_M03 | Module 3 - 1D Culverts]]&amp;lt;/u&amp;gt; &lt;br /&gt;
:*&amp;lt;u&amp;gt;[[Tutorial_M05 | Module 5 - Integrated Urban Pipe Network Drainage]]&amp;lt;/u&amp;gt; &lt;br /&gt;
:*&amp;lt;u&amp;gt;[[Tutorial_M11 | Module 11 - 1D Open Channel]]&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
EPA SWMM&#039;s inclusion in TUFLOW does not replace ESTRY, rather both 1D solvers complement each other. Links to the TUFLOW SWMM tutorials are included in the section below.&lt;br /&gt;
&lt;br /&gt;
=Software Requirements=&lt;br /&gt;
TUFLOW uses QGIS as its Graphical User Interface (GUI), in combination with text editor and spreadsheet software, for its model creation and result viewing. The group of software creates an extremely workflow efficient and flexible modeling environment. Notably, QGIS does not experience the data load/visualization lag and display issues some other hydraulic modeling software GUI&#039;s are limited by when working with larger datasets.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;75%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
! style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot;| Requirement&lt;br /&gt;
! style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot; | Brief Description&lt;br /&gt;
! style=&amp;quot;background-color:#005581; font-weight:bold; color:white;&amp;quot; | Download&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;TUFLOW&#039;&#039;&#039; || TUFLOW is a computer program for simulating depth-averaged, one and two-dimensional free-surface flows such as occurs from floods and tides, with the 2D solution occurring over a regular grid or quadtree mesh of square elements.&amp;lt;br&amp;gt;&lt;br /&gt;
It is recommended to always use the latest release version of TUFLOW.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This tutorial model does not require a TUFLOW license.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This tutorial is configured to use a NVIDIA GPU card. If this is not available, your CPU can be used via the Hardware command. &amp;lt;br&amp;gt;&lt;br /&gt;
||The TUFLOW executable is provided within the &amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_Introduction#Tutorial_Data | Tutorial Download Dataset]]&amp;lt;/u&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;QGIS&#039;&#039;&#039; &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;QGIS TUFLOW plugin || QGIS is the Geographic Information System (GIS) Graphical User Interface (GUI) used to build models and view results. The QGIS TUFLOW plugin includes numerous tools to increase workflow efficiency. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This tutorial was developed using QGIS 3.34 and QGIS TUFLOW Plugin 3.9.0.110. Please use these or newer versions of QGIS and the plugin. Earlier releases will not include the TUFLOW SWMM automation tools demonstrated in the Tutorials. &lt;br /&gt;
&lt;br /&gt;
||&amp;lt;u&amp;gt;[https://qgis.org/en/site/forusers/download.html Latest 64-bit version of QGIS]&amp;lt;/u&amp;gt;. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;[[TUFLOW_QGIS_Plugin| QGIS TUFLOW Plugin Installation]]&amp;lt;/u&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;NotePad++&#039;&#039;&#039; &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Syntax Highlighting || A text editor is required for creation of the TUFLOW control (script) files. This tutorial was developed with NotePad++. Ideally a text editor should be able to:&amp;lt;br&amp;gt;&lt;br /&gt;
*Color code the TUFLOW control files;&lt;br /&gt;
*Open other files from the active control file; and&lt;br /&gt;
*Launch a TUFLOW simulation. &amp;lt;br&amp;gt;&lt;br /&gt;
TUFLOW color coding can be enabled using syntax highlighting. &lt;br /&gt;
|| &amp;lt;u&amp;gt;[https://notepad-plus-plus.org/downloads/ Latest 64-bit version of Notepad++]&amp;lt;/u&amp;gt;. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;[https://www.tuflow.com/Download/Miscellaneous/NPP_TUFLOW_Syntax_Highlighting.zip TUFLOW syntax highlighting for Notepad++]&amp;lt;/u&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For instructions on configuring Notepad++ for TUFLOW modeling, see &amp;lt;u&amp;gt;[[NotepadPlusPlus_Tips |Notepad++ tips]]&amp;lt;/u&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Microsoft Excel&#039;&#039;&#039; || A spreadsheet software is required for working with tabular data and .csv files. This tutorial has been created using Excel. || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tutorial Data=&lt;br /&gt;
To build the tutorial model, download the dataset below. This includes a digital elevation model (DEM), aerial photography, background model data for the tutorial model and a working version of the model. GeoPackage database has been used as the GIS format for the model build tasks. For tips on using GeoPackage databases see &amp;lt;u&amp;gt;[https://wiki.tuflow.com/GeoPackage_Tips GeoPackage Tips]&amp;lt;/u&amp;gt;. &lt;br /&gt;
:*&amp;lt;u&amp;gt;[https://downloads.tuflow.com/TUFLOW/Wiki_Tute_Models/TUFLOW_SWMM_Tutorial_Models_QGIS_GPKG.zip  TUFLOW SWMM Tutorial Dataset - QGIS - GPKG]&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tutorial Modules=&lt;br /&gt;
The download dataset contains the input files and working version of the tutorial model for reference. Results and check files are not included to keep the size of the download file manageable; they will be created when running the model simulations. The folder should be placed in a location with write permissions.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The tutorial model is presented in several modules. All modules can be completed independently, however new users are encouraged to undertake the modules in sequence:&lt;br /&gt;
&lt;br /&gt;
:*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M01 | TUFLOW SWMM Module 1]]&amp;lt;/u&amp;gt;  - 1D SWMM Culverts&lt;br /&gt;
:*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M02 | TUFLOW SWMM Module 2]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 2D TUFLOW Direct Rainfall Hydrology&lt;br /&gt;
:*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M03 | TUFLOW SWMM Module 3]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology&lt;br /&gt;
:*&amp;lt;u&amp;gt;[[TUFLOW_SWMM_Tutorial_M04 | TUFLOW SWMM Module 4]]&amp;lt;/u&amp;gt;  - 1D SWMM Pipe Network / 1D SWMM Urban Hydrology: Executing multiple different event simulations from a single model control file.&lt;br /&gt;
:*&amp;lt;u&amp;gt;[[XPSWMM_to_TUFLOW-SWMM | XPSWMM to TUFLOW SWMM]]&amp;lt;/u&amp;gt;  - How to convert an XPSWMM model to TUFLOW SWMM.&lt;br /&gt;
&lt;br /&gt;
== TUFLOW-SWMM Documentation ==&lt;br /&gt;
Documentation can be found in the 2023-03-AD release notes for TUFLOW-SWMM and in the TUFLOW plugin documentation for the related QGIS tools.&lt;br /&gt;
&lt;br /&gt;
* [https://docs.tuflow.com/classic-hpc/release/2023-03-AD/ TUFLOW 2023-03-AD Release notes - SWMM Section]&lt;br /&gt;
* [[TUFLOW QGIS Plugin#Usage|TUFLOW QGIS Plugin Documentation including SWMM tools]]&lt;br /&gt;
&lt;br /&gt;
=Recommended Further Reading=&lt;br /&gt;
For users who wish to get a better understanding of either 1D EPA SWMM or 2D TUFLOW, the following resources may be of use:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;EPA SWMM&#039;&#039;&#039;: &amp;lt;u&amp;gt;[https://www.epa.gov/water-research/storm-water-management-model-swmm www.epa.gov]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume1_Hydrology_P100NYRA.pdf SWMM5 Reference Manual - Volume 1 (Hydrology)]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume2_Hydaulics_P100S9AS.pdf SWMM5 Reference Manual - Volume 2 (Hydraulics) ]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume2_Hydraulics_Addendum-20220210mas2wr.pdf  SWMM5 Reference Manual - Volume 2 (Hydraulics Addendum) ]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_Reference_Manual_Volume3_Water_Quality_P100P2NY.pdf  SWMM5 Reference Manual - Volume 3 (Water Quality) ]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[https://downloads.tuflow.com/SWMM/SWMM5_User%27s_Manual.pdf EPA SWMM5 User&#039;s Manual]&amp;lt;/u&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;TUFLOW&#039;&#039;&#039;: &amp;lt;u&amp;gt;[https://www.tuflow.com www.tuflow.com]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[https://www.tuflow.com/downloads/#tuflow TUFLOW User Manual]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[https://docs.tuflow.com/classic-hpc/release/2023-03-AD TUFLOW 2023-03-AD release notes]&amp;lt;/u&amp;gt; &lt;br /&gt;
*&amp;lt;u&amp;gt;[[Tutorial_Introduction#Tutorial_Modules | TUFLOW Tutorial Models]]&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[Main_Page| Back to Wiki Main Page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_1455&amp;diff=38709</id>
		<title>TUFLOW Message 1455</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=TUFLOW_Message_1455&amp;diff=38709"/>
		<updated>2024-02-23T11:49:48Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: Added information for TUFLOW ERROR 1455&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TUFLOW_Message&lt;br /&gt;
|tuflow_message=ERROR 1455 - &amp;quot;Channel has the same starting and ending node which is invalid&amp;quot;.&lt;br /&gt;
|alt_msg=NA&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|type=[[ERROR]]&lt;br /&gt;
|message_desc=It is invalid for a 1D channel to start and end at the same node. This error indicates that there is a problem with the network that needs to be addressed.&lt;br /&gt;
|suggestions=Connect the channels to the proper nodes or delete if accidentally created.&lt;br /&gt;
&lt;br /&gt;
|uplink=[[1xxx_TUFLOW_Messages|1xxx Messages]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=QGIS_Installation_with_OSGeo4W&amp;diff=34823</id>
		<title>QGIS Installation with OSGeo4W</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=QGIS_Installation_with_OSGeo4W&amp;diff=34823"/>
		<updated>2023-11-01T15:28:38Z</updated>

		<summary type="html">&lt;p&gt;RustyJonesTUFLOW: Added libraries required by the SWMM tools&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installation Steps=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Download OSGeo4W setup installer&lt;br /&gt;
: [https://qgis.org/en/site/forusers/download.html https://qgis.org/en/site/forusers/download.html]&amp;lt;br&amp;gt;&lt;br /&gt;
: [[File: osgeo4w_download_link.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Run the downloaded EXE&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Advanced Install&#039;&#039;&#039;&lt;br /&gt;
: [[File: osgeo4w_installation_1.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
: [[File: osgeo4w_installation_2.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select a directory and other installation options (Note some options may require admininstrator rights)&lt;br /&gt;
: [[File: osgeo4w_installation_3.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Click &#039;&#039;&#039;Next&#039;&#039;&#039;&lt;br /&gt;
: [[File: osgeo4w_installation_4.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Direct Connection&#039;&#039;&#039; (Note some firewall systems will require proxy settings)&lt;br /&gt;
: [[File: osgeo4w_installation_5.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Select a download site. It is recommended to use with one with an SSL certificate (i.e. starts with https://)&lt;br /&gt;
: [[File: osgeo4w_installation_6.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Use the search bar to search for &amp;quot;QGIS&amp;quot;. Expand the &#039;&#039;&#039;Desktop&#039;&#039;&#039; dropdown and find &amp;quot;qgis: QGIS Desktop&amp;quot; under the &#039;&#039;&#039;package&#039;&#039;&#039; column. Left-click the &amp;quot;skip&amp;quot; text and the text will change to the latest version number. Once the verseion number is showing, this will be the version installed when you proceed. If you left-click again, the version number may change again to the previous version. If you keep left-clicking it will cycle back to &amp;quot;skip&amp;quot;. (Note: you could also choose the &amp;quot;qgis-ltr: QGIS Desktop (long term release)&amp;quot; instead, and this would install the long term release version).&lt;br /&gt;
: [[File: osgeo4w_installation_7.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; The installation also requires manually choosing several Python libraries. Use the search bar again and search for &amp;quot;scipy&amp;quot;. Expand the &#039;&#039;&#039;Libs&#039;&#039;&#039; dropdown and find &amp;quot;python3-scipy&amp;quot;. Left-click the &amp;quot;skip&amp;quot; text once to choose the latest scipy library version.&lt;br /&gt;
: [[File: osgeo4w_installation_8.PNG]]&lt;br /&gt;
&amp;lt;li&amp;gt; Repeat the above step for the following Python Libraries:&lt;br /&gt;
* fiona&lt;br /&gt;
* geopandas&lt;br /&gt;
* matplotlib&lt;br /&gt;
* netcdf4&lt;br /&gt;
* pandas (this may return 2 options - make sure to select &amp;quot;python3-pandas&amp;quot;)&lt;br /&gt;
&amp;lt;li&amp;gt; Click &#039;&#039;&#039;Next&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt; Continue to work through the steps of the installation process - the installer will ask you to also install a number of dependencies (make sure to click yes to these) and prompt for license agreements&lt;br /&gt;
&amp;lt;li&amp;gt; Once installed, QGIS should be installed in the location specified in an earlier step&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
=Upgrading Steps=&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; As part of the installation, OSGeo4W should install a program called &amp;quot;setup&amp;quot; which you can search in the Windows start bar. You can also run the downloaded OSGeo4W installer again (they are the same).&lt;br /&gt;
&amp;lt;li&amp;gt; Once running the setup, simply continue clicking &#039;&#039;&#039;Next&#039;&#039;&#039;. The setup should remember all your previous settings and automatically choose the latest version of the installed libraries at the &#039;&#039;&#039;Packages Selection&#039;&#039;&#039; stage of the installation&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
==Upgrading Silently==&lt;br /&gt;
It&#039;s possible to upgrade silently from the Windows CMD prompt or from a batch file.&amp;lt;Br&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
===From CMD===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Search &amp;quot;osgeo4w&amp;quot; in the Windows start bar and choose &#039;&#039;&#039;OSGeo4W Shell&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;li&amp;gt; Type the following command and press enter&lt;br /&gt;
&amp;lt;pre&amp;gt;setup -q -g&amp;lt;/pre&amp;gt;&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-q&amp;quot;&amp;lt;/tt&amp;gt; : quiet installation flag&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-g&amp;quot;&amp;lt;/tt&amp;gt; : upgrade installed packages flag&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;Br&amp;gt;&lt;br /&gt;
===From BAT===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the OSGeo4W installation folder under the &amp;quot;bin&amp;quot; folder find the following batch file &amp;quot;o4w_env.bat&amp;quot; (e.g. &amp;quot;C:\OSGeo4W\bin\o4w_env.bat&amp;quot;).&lt;br /&gt;
&amp;lt;li&amp;gt; In your batch file call the &amp;quot;o4w_env.bat&amp;quot; file&lt;br /&gt;
&amp;lt;li&amp;gt; On the next line, type &amp;quot;setup -q -g&amp;quot;&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-q&amp;quot;&amp;lt;/tt&amp;gt; : quiet installation flag&lt;br /&gt;
: &amp;lt;tt&amp;gt;&amp;quot;-g&amp;quot;&amp;lt;/tt&amp;gt; : upgrade installed packages flag&lt;br /&gt;
&amp;lt;li&amp;gt; Your final batch file should look like the below with the path to &amp;quot;o4w_env.bat&amp;quot; customised to match your installation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
call C:\OSGeo4W\bin\o4w_env.bat&lt;br /&gt;
setup -q -g&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Run the batch file&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{Tips Navigation&lt;br /&gt;
|uplink=[[QGIS_Tips| Back to QGIS Tips page]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>RustyJonesTUFLOW</name></author>
	</entry>
</feed>