<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tuflow.com/w/index.php?action=history&amp;feed=atom&amp;title=Tute_M04_Arc_2d_code_Archive</id>
	<title>Tute M04 Arc 2d code Archive - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tuflow.com/w/index.php?action=history&amp;feed=atom&amp;title=Tute_M04_Arc_2d_code_Archive"/>
	<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Tute_M04_Arc_2d_code_Archive&amp;action=history"/>
	<updated>2026-05-17T17:34:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.tuflow.com/w/index.php?title=Tute_M04_Arc_2d_code_Archive&amp;diff=31376&amp;oldid=prev</id>
		<title>ElizaCollison: Created page with &quot;=Introduction= As with the breaklines, this can be done in two different layers.  The 2d_bc format can be also be used for this, however, as the regions and lines must be in s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Tute_M04_Arc_2d_code_Archive&amp;diff=31376&amp;oldid=prev"/>
		<updated>2023-01-08T23:09:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Introduction= As with the breaklines, this can be done in two different layers.  The 2d_bc format can be also be used for this, however, as the regions and lines must be in s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introduction=&lt;br /&gt;
As with the breaklines, this can be done in two different layers.  The 2d_bc format can be also be used for this, however, as the regions and lines must be in separate layers, for simplicity, we will use the 2d_code format GIS layer.  This is the method which is outlined below. As we have changed the downstream boundary configuration, we also need to revise our active code layer.&lt;br /&gt;
=Method=&lt;br /&gt;
Firstly we will update the active 2D model area near the downstream boundary.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save a copy of &amp;#039;&amp;#039;&amp;#039;2d_code_M01_002_R&amp;#039;&amp;#039;&amp;#039; and rename as &amp;#039;&amp;#039;&amp;#039;2d_code_M04_001_R&amp;#039;&amp;#039;&amp;#039;.  Open this layer and make it selectable.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Zoom into the downstream area of the model.  There is a gap between the HX boundaries (1D/2D boundaries) and the active code area.  If we leave the model with this configuration, water will not be able to leave enter the 1D model from the floodplain. The area is shown in the image below.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M04 MI 2d code 01.jpg|600px]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Ensure that the &amp;#039;&amp;#039;&amp;#039;2d_bc_M04_HX_001_L&amp;#039;&amp;#039;&amp;#039; layer is open.  Make sure that snapping is turned on.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select the polygon in the &amp;#039;&amp;#039;&amp;#039;2d_code_M04_001_R&amp;#039;&amp;#039;&amp;#039; layer, right click on it and select &amp;#039;&amp;#039;Edit Vertices&amp;#039;&amp;#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move the four vertices on the code polygon so that they snap to the vertices on the &amp;quot;HX&amp;quot; lines as shown in the image below.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Tute M04 MI 2d code 02.jpg|600px]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Stop editing the &amp;#039;&amp;#039;&amp;#039;2d_code_M04_001_R&amp;#039;&amp;#039;&amp;#039; layer and save the edits.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Next we will create a polygon to deactivate the 2D cells in the creek area.  Create a copy of the &amp;#039;&amp;#039;&amp;#039;2d_code_empty_R&amp;#039;&amp;#039;&amp;#039; from the &amp;#039;&amp;#039;&amp;#039;TUFLOW\model\gis\empty\&amp;#039;&amp;#039;&amp;#039; folder, save this in the &amp;#039;&amp;#039;&amp;#039;TUFLOW\model\gis\&amp;#039;&amp;#039;&amp;#039; folder and rename as &amp;#039;&amp;#039;&amp;#039;2d_code_M04_null_creek_001_R&amp;#039;&amp;#039;&amp;#039;.  Open this layer and begin editing it.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;When we create the new polygon we essentially want to snap the line to each vertex on HX line to enclose these into a polygon.  Fortunately we don&amp;#039;t need to do this manually!  We will use the &amp;#039;&amp;#039;Trace&amp;#039;&amp;#039; functionality in ArcMap to do this.  This trace function is enabled in the editor toolbar shown shown below.&amp;lt;/li&amp;gt;&lt;br /&gt;
[[File:Arc M04 2d code 01.jpg|600px]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create three polygons that enclose the areas modelled in 1D.  Note that at the road embankments, as we have not included a 1D weir, we will be modelling any overtopping in 2D and the polygon should not cover the road area.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Arc M04 2d code 02.jpg|600px]]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;For each of the polygons, set the &amp;quot;CODE&amp;quot; value to 0 for inactive.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Stop editing the layer and save the edits.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
We have modified the active model area &amp;#039;&amp;#039;&amp;#039;2d_code_M04_001&amp;#039;&amp;#039;&amp;#039; and also created a new code layer &amp;#039;&amp;#039;&amp;#039;2d_code_M04_null_creek_001_R&amp;#039;&amp;#039;&amp;#039; to deactivate the cells within the 1D model area.  Both layers are now ready for input to our TUFLOW model. Return to the tutorial where the next step is to &amp;lt;u&amp;gt;[[Tutorial_Module04_Archive#Define_Boundary_Conditions | define the revised boundary conditions.]]&amp;lt;/u&amp;gt;&lt;/div&gt;</summary>
		<author><name>ElizaCollison</name></author>
	</entry>
</feed>