<?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_SMS_2d_code_Archive</id>
	<title>Tute M04 SMS 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_SMS_2d_code_Archive"/>
	<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Tute_M04_SMS_2d_code_Archive&amp;action=history"/>
	<updated>2026-05-17T17:34:10Z</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_SMS_2d_code_Archive&amp;diff=31378&amp;oldid=prev</id>
		<title>ElizaCollison: Created page with &quot;In Module02, we ran the entire domain of this model in 2D because of which the entire area inside the boundary polygon was marked as &#039;&#039;Active&#039;&#039;. But, in this exercise, the por...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuflow.com/w/index.php?title=Tute_M04_SMS_2d_code_Archive&amp;diff=31378&amp;oldid=prev"/>
		<updated>2023-01-08T23:11:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In Module02, we ran the entire domain of this model in 2D because of which the entire area inside the boundary polygon was marked as &amp;#039;&amp;#039;Active&amp;#039;&amp;#039;. But, in this exercise, the por...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In Module02, we ran the entire domain of this model in 2D because of which the entire area inside the boundary polygon was marked as &amp;#039;&amp;#039;Active&amp;#039;&amp;#039;. But, in this exercise, the portion of the creek is being modeled as a 1D domain which needs to be removed from the 2D domain to prevent double counting of the flow area in that region.&lt;br /&gt;
==Defining Cell Codes==&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on &amp;#039;&amp;#039;BC&amp;#039;&amp;#039; coverage to make it an active coverage.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Select &amp;#039;&amp;#039;Feature Objects | Build Polygons.&amp;#039;&amp;#039; You will not see anything changing visually but SMS has converted all the arc objects forming a closed area into polygon objects.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Click on &amp;#039;&amp;#039;Select Feature Polygon&amp;#039;&amp;#039; tool and double click inside each polygon (See following figure).&lt;br /&gt;
[[File: M04_CodePolygons.png|frame|none]]&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In the &amp;#039;&amp;#039;Boundary Conditions&amp;#039;&amp;#039; dialog that opens, change Type to &amp;#039;&amp;#039;No BC&amp;#039;&amp;#039;. Toggle on &amp;#039;&amp;#039;Set Cell Code&amp;#039;&amp;#039; option and change the cell code to &amp;#039;&amp;#039;Active&amp;#039;&amp;#039;.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; There are 4 different polygons that you need to define cell code. Do not change cell code in the circular polygon on the eastern side, we will define it in next step.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Cleaning Cross Sections==&lt;br /&gt;
SMS has a tool to trim the cross section arcs extending beyond the channel boundary polygon. Now that we have defined the channel boundary, we can use this tool.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In project explorer, click on &amp;#039;&amp;#039;Cross_Sections&amp;#039;&amp;#039; coverage to make it active.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Right click on this coverage and select &amp;#039;&amp;#039;Trim to Code Polygon&amp;#039;&amp;#039;. You might not see anything changing but SMS will trim all the cross section arcs with the channel boundary.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Cleaning 1D2D Connections==&lt;br /&gt;
Similarly, the CN lines connecting the 1D Network with HX lines must be within the channel boundary and snapped to the HX lines as well as nodes in 1D network.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;In project explorer, click on &amp;#039;&amp;#039;1D2DConnection&amp;#039;&amp;#039; coverage to make it active.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Right click on this coverage and select &amp;#039;&amp;#039;Clean Connections&amp;#039;&amp;#039;. Enter 3 for Tolerance, Toggle on 2D BC Coverage (HX) lines and click on &amp;#039;&amp;#039;BC&amp;#039;&amp;#039; coverage. Similarly, toggle on 1D Network Coverage and click on &amp;#039;&amp;#039;1DCreek&amp;#039;&amp;#039; coverage. Click OK.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
SMS will write out proper cell codes to the polygons when we export the TUFLOW files. Let&amp;#039;s proceed to updating [[Tutorial_Module04_Archive#Define_Boundary_Conditions|Boundary Conditions in the model]].&lt;/div&gt;</summary>
		<author><name>ElizaCollison</name></author>
	</entry>
</feed>