1D Pumps: Difference between revisions

Content deleted Content added
Rohan.king (talk | contribs)
No edit summary
Line 64:
<br>
[[File:Pump_curve_csv_example.png|border|600px]] <br>
 
==Using a Pump Curve in a TUFLOW Operating Control (TOC) File==
 
With the pump curve defined in the depth-discharge database it can either be defined within the pump 1d_nwk fields in the inlet_type field, for non-operational pumps, or it can be defined with the TOC file. When defining with a TOC file, the pump curve is defined at the top of the structure control definition block and then subsequent rules can turn the pump on/off. See the below TOC structure control definition for an example.
 
<font color="blue"><tt>Define Pump Control</tt></font><font color="red"><tt> ==</tt></font> Pump_1
<font color="blue"><tt>Pump Capacity</tt></font><font color="red"><tt> ==</tt></font> pump_1
HU <font color="red"><tt>==</tt></font> H1D Pump1.1
<font color="blue"><tt>If </tt></font>HU <= 2.25
<font color="blue"><tt>Pump Operation</tt></font><font color="red"><tt> ==</tt></font> Off
<font color="blue"><tt>Else if</tt></font> HU > 2.25 <font color="blue"><tt>AND</tt></font> HU < 2.75
<font color="blue"><tt>Pump operation</tt></font><font color="red"><tt> ==</tt></font> <font color="blue"><tt> No Change </tt></font>
<font color="blue"><tt>Else if</tt></font> HU <font color="red"><tt>>=</tt></font> 2.75
<font color="blue"><tt>Pump Operation</tt></font><font color="red"><tt> ==</tt></font> On
<font color="blue"><tt>End if</tt></font>
<font color="blue"><tt>End define</tt></font>
 
=1D Result File=