<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ccrm.vims.edu/w/index.php?action=history&amp;feed=atom&amp;title=Simulating_wetting_and_drying_with_SCHISM</id>
	<title>Simulating wetting and drying with SCHISM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ccrm.vims.edu/w/index.php?action=history&amp;feed=atom&amp;title=Simulating_wetting_and_drying_with_SCHISM"/>
	<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Simulating_wetting_and_drying_with_SCHISM&amp;action=history"/>
	<updated>2026-05-09T10:30:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Simulating_wetting_and_drying_with_SCHISM&amp;diff=856&amp;oldid=prev</id>
		<title>Yjzhang at 17:31, 18 December 2014</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Simulating_wetting_and_drying_with_SCHISM&amp;diff=856&amp;oldid=prev"/>
		<updated>2014-12-18T17:31:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:31, 18 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELFE&lt;/del&gt;'s wetting and drying capability has been carefully benchmarked and verified. There are 2 options: inunfl=0 as a 'light-weight' inundation scheme (you'd always start with this option), and a 'fine-scale' inundation scheme (inunfl=1), which requires some care. In particular, since extrapolation is used with inunfl=1, you'd make sure that the grid is reasonably resolved in the wetting and drying regions. This scheme may also require a smaller time step to very accurately capture the inundation process.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SCHISM&lt;/ins&gt;'s wetting and drying capability has been carefully benchmarked and verified. There are 2 options: inunfl=0 as a 'light-weight' inundation scheme (you'd always start with this option), and a 'fine-scale' inundation scheme (inunfl=1), which requires some care. In particular, since extrapolation is used with inunfl=1, you'd make sure that the grid is reasonably resolved in the wetting and drying regions. This scheme may also require a smaller time step to very accurately capture the inundation process.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The wetting and drying process is inherently nonlinear and challenging, and below are some tips.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The wetting and drying process is inherently nonlinear and challenging, and below are some tips.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cd=[log(dz_b/z_0)/k]^-2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Cd=[log(dz_b/z_0)/k]^-2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where z_0 is bottom roughness and dz_b is the bottom cell thickness. In shallow areas, dz_b~z_0 which leads to unrealistically large Cd. Note that Z-layer models do not have this problem as dz_b is not small there. A classical pathological velocity field obtained with &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELFE &lt;/del&gt;is seen in Fig. 2. This problem is especially obvious when a large dt is used, as in the case of Fig. 2.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where z_0 is bottom roughness and dz_b is the bottom cell thickness. In shallow areas, dz_b~z_0 which leads to unrealistically large Cd. Note that Z-layer models do not have this problem as dz_b is not small there. A classical pathological velocity field obtained with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SCHISM &lt;/ins&gt;is seen in Fig. 2. This problem is especially obvious when a large dt is used, as in the case of Fig. 2.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:WetDry-issue-SELFE.PNG|thumb|center|Fig. 2 Noisy velocity field in shallow areas in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELFE &lt;/del&gt;3D]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:WetDry-issue-SELFE.PNG|thumb|center|Fig. 2 Noisy velocity field in shallow areas in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SCHISM &lt;/ins&gt;3D]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;From a grid generation point of view, you'd make sure that channels are not 'blocked', i.e., with at least 2 ''always-wet'' nodes.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;From a grid generation point of view, you'd make sure that channels are not 'blocked', i.e., with at least 2 ''always-wet'' nodes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Numerically, there is a quick fix to this problem by reducing Cd used in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELFE &lt;/del&gt;3D. When using bfric=1, set a reasonable Cdmax=0.006, and in some tricky regions (e.g. with large acceleration or rapid bathymetric variations), you may need to further reduce Cd locally. If you used bfric=1, you can do so by simply setting the local roughness to a negative value (i.e. telling the code the value is not roughness but Cd!); we found -0.0025 to -0.001 usually works well.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Numerically, there is a quick fix to this problem by reducing Cd used in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SCHISM &lt;/ins&gt;3D. When using bfric=1, set a reasonable Cdmax=0.006, and in some tricky regions (e.g. with large acceleration or rapid bathymetric variations), you may need to further reduce Cd locally. If you used bfric=1, you can do so by simply setting the local roughness to a negative value (i.e. telling the code the value is not roughness but Cd!); we found -0.0025 to -0.001 usually works well.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Depths at open boundary==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Depths at open boundary==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A very common crash is related to the wet/dry @ open boundary. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELFE &lt;/del&gt;does NOT allow the open boundary segments to become dry at ANY time. Therefore you need to make sure&amp;#160; the depths there are deep enough compared to expected tidal range. An easy way is to impose a minimum depth near those segments.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A very common crash is related to the wet/dry @ open boundary. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SCHISM &lt;/ins&gt;does NOT allow the open boundary segments to become dry at ANY time. Therefore you need to make sure&amp;#160; the depths there are deep enough compared to expected tidal range. An easy way is to impose a minimum depth near those segments.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since the wet/dry rule inside &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELFE &lt;/del&gt;is element-based, a node becomes dry if all surrounding elements become dry. As a result, you need to impose a minimum depth a few rows of elements into the domain, not just at open boundary nodes. This ensures that water can come into the domain without being blocked at the open boundary. On the other hand, wet/dry is allowed to occur at land/island boundaries.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Since the wet/dry rule inside &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SCHISM &lt;/ins&gt;is element-based, a node becomes dry if all surrounding elements become dry. As a result, you need to impose a minimum depth a few rows of elements into the domain, not just at open boundary nodes. This ensures that water can come into the domain without being blocked at the open boundary. On the other hand, wet/dry is allowed to occur at land/island boundaries.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Yjzhang</name></author>
		
	</entry>
	<entry>
		<id>http://ccrm.vims.edu/w/index.php?title=Simulating_wetting_and_drying_with_SCHISM&amp;diff=855&amp;oldid=prev</id>
		<title>Yjzhang: Created page with &quot;SELFE's wetting and drying capability has been carefully benchmarked and verified. There are 2 options: inunfl=0 as a 'light-weight' inundation scheme (you'd always start with...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ccrm.vims.edu/w/index.php?title=Simulating_wetting_and_drying_with_SCHISM&amp;diff=855&amp;oldid=prev"/>
		<updated>2014-12-18T17:31:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;SELFE&amp;#039;s wetting and drying capability has been carefully benchmarked and verified. There are 2 options: inunfl=0 as a &amp;#039;light-weight&amp;#039; inundation scheme (you&amp;#039;d always start with...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SELFE's wetting and drying capability has been carefully benchmarked and verified. There are 2 options: inunfl=0 as a 'light-weight' inundation scheme (you'd always start with this option), and a 'fine-scale' inundation scheme (inunfl=1), which requires some care. In particular, since extrapolation is used with inunfl=1, you'd make sure that the grid is reasonably resolved in the wetting and drying regions. This scheme may also require a smaller time step to very accurately capture the inundation process.&lt;br /&gt;
&lt;br /&gt;
The wetting and drying process is inherently nonlinear and challenging, and below are some tips.&lt;br /&gt;
&lt;br /&gt;
==Bottom friction in shallow areas==&lt;br /&gt;
&lt;br /&gt;
A critical parameter in shallow area is the bottom friction. Note that the bottom friction parameterizations are very different between 2D and 3D model, and so you cannot use same input. For details please read [http://ccrm.vims.edu/yinglong/wiki_files/Report-ChezyFlow-Sept2011.pdf this article].&lt;br /&gt;
&lt;br /&gt;
From a physical point of view, the 2D and 3D models behave very differently. Consider a straight channel with variable depths, with flow coming from deeper part and going into shallower part. Fig. 1 shows the side views of 2D and 3D velocities. &lt;br /&gt;
&lt;br /&gt;
[[File:WetDry-2Dvs3D.PNG|thumb|center|Fig. 1 Side view of channel flow for (a) 2D and (b) 3D cases. Volume conservation dictates larger velocities in shallow areas. Note that strong shear is possible in 3D model.]]&lt;br /&gt;
&lt;br /&gt;
In 2D model, the velocity is depth-averaged and vertical shear is not represented. Strong friction merely translates into reduced velocity. In 3D model however, a large friction will lead to strong shear, although the depth integrated velocity value matches that from the 2D model. This problem is exacerbated by the use of terrain-following coordinates. This is because the log-drag formula, when bfric=1 is used, is:&lt;br /&gt;
&lt;br /&gt;
Cd=[log(dz_b/z_0)/k]^-2&lt;br /&gt;
&lt;br /&gt;
where z_0 is bottom roughness and dz_b is the bottom cell thickness. In shallow areas, dz_b~z_0 which leads to unrealistically large Cd. Note that Z-layer models do not have this problem as dz_b is not small there. A classical pathological velocity field obtained with SELFE is seen in Fig. 2. This problem is especially obvious when a large dt is used, as in the case of Fig. 2.&lt;br /&gt;
&lt;br /&gt;
[[File:WetDry-issue-SELFE.PNG|thumb|center|Fig. 2 Noisy velocity field in shallow areas in SELFE 3D]]&lt;br /&gt;
&lt;br /&gt;
From a grid generation point of view, you'd make sure that channels are not 'blocked', i.e., with at least 2 ''always-wet'' nodes.&lt;br /&gt;
&lt;br /&gt;
Numerically, there is a quick fix to this problem by reducing Cd used in SELFE 3D. When using bfric=1, set a reasonable Cdmax=0.006, and in some tricky regions (e.g. with large acceleration or rapid bathymetric variations), you may need to further reduce Cd locally. If you used bfric=1, you can do so by simply setting the local roughness to a negative value (i.e. telling the code the value is not roughness but Cd!); we found -0.0025 to -0.001 usually works well.&lt;br /&gt;
&lt;br /&gt;
==Depths at open boundary==&lt;br /&gt;
A very common crash is related to the wet/dry @ open boundary. SELFE does NOT allow the open boundary segments to become dry at ANY time. Therefore you need to make sure  the depths there are deep enough compared to expected tidal range. An easy way is to impose a minimum depth near those segments.&lt;br /&gt;
&lt;br /&gt;
Since the wet/dry rule inside SELFE is element-based, a node becomes dry if all surrounding elements become dry. As a result, you need to impose a minimum depth a few rows of elements into the domain, not just at open boundary nodes. This ensures that water can come into the domain without being blocked at the open boundary. On the other hand, wet/dry is allowed to occur at land/island boundaries.&lt;/div&gt;</summary>
		<author><name>Yjzhang</name></author>
		
	</entry>
</feed>