Inlet formula (Water Overlay): Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 33: Line 33:
: ''Δw = min( 0 , max( Q<sub>uth</sub> , Q<sub>t</sub> , Q<sub>c</sub>) ) / A''
: ''Δw = min( 0 , max( Q<sub>uth</sub> , Q<sub>t</sub> , Q<sub>c</sub>) ) / A''


Where:
* T<sub>l</sub> = The LOWER_THRESHOLD attribute of the inlet.
* T<sub>u</sub> = The UPPER_THRESHOLD attribute of the inlet.


* Q<sub>t</sub> = The amount of water inflow (or outflow when negative) possible based on the inlet's [[Inlet q (Water Overlay)|INLET_Q]] attribute and timestep Δt.
* Q<sub>c</sub> = The amount of water outflow possible based on the total capacity of the outlet.
* Q<sub>lth</sub> = The amount of water inflow desired based on the inlet's [[Lower threshold (Water Overlay)|LOWER_THRESHOLD]] attribute.
* Q<sub>uth</sub> = The amount of water outflow desired based on the outlet's [[Upper threshold (Water Overlay)|UPPER_THRESHOLD]] attribute.


* w<sub>t</sub> = The water level on at time t, relative to [[Datum|datum]].
* Q<sub>total</sub> = The [[Inlet capacity (Water Overlay)|INLET_CAPACITY]] attribute of the inlet.
* Q<sub>0..n-1</sub> = The calculated previous amounts of flow.
* Q<sub>i</sub> = The INLET_Q attribute of the inlet.


After the water flow (either inflow or outflow) is computed, the capacity is updated.
: ''C<sub>used</sub> (new) = C<sub>used</sub> (old) + (Δw * cell)''
Where:


* Δt = Computational timestep.
* A = Size of the Inlet/Outlet area in m<sup>2</sup>, based on the amount of cells and cell size. Current implementation only has one cell.
* Δw = The amount of water flow which takes place.
* Δw = The amount of water flow which takes place.
* Δt = Computational timestep.
* cell = Cell size.
* A = area of the inlet/outlet
* C<sub>speed</sub> = The amount of water inflow (or outflow when negative) possible based on the inlet's [[Inlet q (Water Overlay)|INLET_Q]] attribute.
* C<sub>incap</sub> = The amount of water inflow possible based on the total [[Inlet capacity (Water Overlay)|capacity]] of the inlet.
* C<sub>outcap</sub> = The amount of water outflow possible based on the total capacity of the outlet.
* C<sub>inthres</sub> = The amount of water inflow desired based on the inlet's [[Lower threshold (Water Overlay)|LOWER_THRESHOLD]] attribute.
* C<sub>outthres</sub> = The amount of water outflow desired based on the outlet's [[Upper threshold (Water Overlay)|UPPER_THRESHOLD]] attribute.


* WL<sub>surface</sub> = The water level on the surface, relative to [[Datum|datum]].
* C<sub>total</sub> = The [[Inlet capacity (Water Overlay)|INLET_CAPACITY]] attribute of the inlet.
* I<sub>Q</sub> = The INLET_Q attribute of the inlet.
* T<sub>l</sub> = The LOWER_THRESHOLD attribute of the inlet.
* T<sub>u</sub> = The UPPER_THRESHOLD attribute of the inlet.


==See also==
==See also==

Revision as of 13:42, 15 April 2019

Inlets are hydraulic structures can pump water in and out of the project area and are connected with a water body outside the project area.

The amount flowing in or out of inlets is calculated for the cell the inlet resides on.

Inlets:
When calculating inlets, first the capacities are calculated.

If a lower threshold Tl is defined:

Qlth = max( 0 , Tl,t - wt )

If a positive Inlet q is defined:

Qt = Δt * qt

If a capacity Qtotal is defined:

Qc = Qtotal- ΣQ0..t-1

After calculating the capacities, the actual water inflow is calculated. If any of the terms are undefined, they are not included.

Δw = max( 0 , min( Qlth , Qt , Qc ) ) / A

Outlets:
When calculating outlets, first the capacities are calculated.

If an upper threshold Tu is defined:

Quth = min( 0 , Tu - wt )

If a negative Inlet q is defined:

Qt = Δt * qt

If a capacity Qtotal is defined:

Qc = -Qtotal - ΣQ0..t-1

After calculating the capacities, the actual water ouflow is calculated. If any of the terms are undefined, they are not included.

Δw = min( 0 , max( Quth , Qt , Qc) ) / A

Where:

  • Tl = The LOWER_THRESHOLD attribute of the inlet.
  • Tu = The UPPER_THRESHOLD attribute of the inlet.
  • Qt = The amount of water inflow (or outflow when negative) possible based on the inlet's INLET_Q attribute and timestep Δt.
  • Qc = The amount of water outflow possible based on the total capacity of the outlet.
  • Qlth = The amount of water inflow desired based on the inlet's LOWER_THRESHOLD attribute.
  • Quth = The amount of water outflow desired based on the outlet's UPPER_THRESHOLD attribute.
  • wt = The water level on at time t, relative to datum.
  • Qtotal = The INLET_CAPACITY attribute of the inlet.
  • Q0..n-1 = The calculated previous amounts of flow.
  • Qi = The INLET_Q attribute of the inlet.


  • Δt = Computational timestep.
  • A = Size of the Inlet/Outlet area in m2, based on the amount of cells and cell size. Current implementation only has one cell.
  • Δw = The amount of water flow which takes place.


See also

Template:WaterOverlay nav