Groundwater Modelling Advice: Difference between revisions

Content deleted Content added
No edit summary
Line 1:
= Groundwater Linking to 1D (ESTRY or SWMM) =
'''<font size=3><font color=red>This section is under construction</font></font>'''<br>
 
TUFLOW supports connecting the 1D domain (either ESTRY or SWMM) to 2D groundwater layers. This enables users to model features such as detention basins with subsurface drainage or other green infrastructure directly within a TUFLOW model and represent groundwater and surface water impacts.
 
== Depth vs Discharge Curves ==
 
=== Python ===
<span style="color:#3776ab">'''import'''</span><span style="color:black"> math </span>
<span style="color:#3776ab">'''import'''</span><span style="color:black"> numpy<span style="color:#3776ab"> '''as'''</span> np</span><br>
gravity_metric = <span style="color:#3776ab">'''9.81 '''</span><span style="color:#808080"># Metric Units: m/s^2</span>
gravity_us_customary = <span style="color:#3776ab">'''32.2 '''</span><span style="color:#808080"># US Customary Units: ft/s^2</span><br>
<span style="color:#3776ab">'''def'''</span><span style="color:black"> generate_orifice_depth_vs_discharge(us_units, orifice_coefficient, depth_max, depth_step, output_filename):</span>
<span style="color:black"> gravity = gravity_us_customary </span><span style="color:#3776ab">'''if'''</span><span style="color:black"> us_units </span><span style="color:#3776ab">'''else'''</span><span style="color:black"> gravity_metric </span><br>
<span style="color:black"> depths = np.arange(</span><span style="color:#3776ab">'''0.0'''</span><span style="color:black">, depth_max, depth_step)</span>
<span style="color:black"> vec_func = np.vectorize(</span><span style="color:#3776ab">'''lambda'''</span><span style="color:black">, e: orifice_coefficient * math.sqrt(</span><span style="color:#3776ab">'''2'''</span><span style="color:black"> * gravity * e))</span>
 
=== Excel ===
 
= Common Questions Answered (FAQ) =