Inlet formula (Water Overlay): Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:


If a lower threshold <math>T_{l,t}</math> is defined:
If a lower threshold <math>T_{l,t}</math> is defined:
: <math>Q_{lth} = max( 0 , T_{l,t} - w_t )</math>
: <math>Q_{lth} = A \cdot max( 0 , T_{l,t} - w_t )</math>


If a positive inlet <math>q_t</math> is defined:
If a positive inlet <math>q_t</math> is defined:
Line 18: Line 18:
: <math>\Delta w = \frac { max( 0 , min( Q_{lth}, Q_p , Q_c ) )}{A}</math>
: <math>\Delta w = \frac { max( 0 , min( Q_{lth}, Q_p , Q_c ) )}{A}</math>


''Case 2 '''Outlets''':''<br>
''Case 2: '''Outlets''':''<br>
When calculating outlets, first the capacities are calculated.
When calculating outlets, first the capacities are calculated.


If an upper threshold T<sub>u,t</sub> is defined:
If an upper threshold <math>T_{u,t}</math> is defined:
: <math>Q_{uth} = min( 0 , T_{u,t} - w_t )</math>
: <math>Q_{uth} = A \cdot min( 0 , T_{u,t} - w_t )</math>


If a negative inlet <math>q_t</math> is defined:
If a negative inlet <math>q_t</math> is defined:
Line 42: Line 42:


* <math>Q_{0..n}</math> = The calculated previous amounts of flow.
* <math>Q_{0..n}</math> = The calculated previous amounts of flow.
* <math>Q_{lth}</math> = The desired lower water level at the {{Inlet}}'s location, based on the [[Inlet lower threshold (Water Overlay)|LOWER_THRESHOLD]] of the {{Inlet}}.
* <math>Q_{lth}</math> = The volume of water needed to reach the [[Inlet lower threshold (Water Overlay)|LOWER_THRESHOLD]] at the {{Inlet}}'s location.
* <math>Q_{uth}</math> = The desired upper water level at the outlet's location, based on the outlet's [[Inlet upper threshold (Water Overlay)|UPPER_THRESHOLD]] of the {{Inlet}}.
* <math>Q_{uth}</math> = The volume of water that must be removed to reach the [[Inlet upper threshold (Water Overlay)|UPPER_THRESHOLD]] at the outlet's location.
* <math>Q_p</math> = The amount of water inflow (or outflow when negative) possible based on the [[Inlet q (Water Overlay)|INLET_Q]] of the {{Inlet}} and timestep <math>\Delta t</math>.
* <math>Q_p</math> = The amount of water inflow (or outflow when negative) possible based on the [[Inlet q (Water Overlay)|INLET_Q]] of the {{Inlet}} and timestep <math>\Delta t</math>.
* <math>Q_c</math> = The total amount of water inflow (or outflow when negative) allowed based on the total capacity of the {{Inlet}}.
* <math>Q_c</math> = The total amount of water inflow (or outflow when negative) allowed based on the total capacity of the {{Inlet}}.


* <math>A</math> = 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.
* <math>A</math> = Size of the {{Inlet}}/outlet area in m<sup>2</sup>, based on the number of cells and cell size (currently calculated per cell).
* <math>\Delta w</math> = The amount of water flow which takes place.
* <math>\Delta w</math> = The amount of water flow which takes place.



Latest revision as of 11:08, 14 October 2026

Inlets are hydraulic structures that 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.

Case 1: Inlet:
When calculating Inlets, first the capacities are calculated.

If a lower threshold Tl,t is defined:

Qlth=A⋅max(0,Tl,t−wt)

If a positive inlet qt is defined:

Qp=Δt⋅qt

If a capacity Qtotal is defined:

Qc=Qtotal−∑0..t−1Qi

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,Qp,Qc))A

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

If an upper threshold Tu,t is defined:

Quth=A⋅min(0,Tu,t−wt)

If a negative inlet qt is defined:

Qp=Δt⋅qt

If a capacity Qtotal is defined:

Qc=−Qtotal−∑0..t−1Qi

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

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

Where:

  • Q0..n = The calculated previous amounts of flow.
  • Qlth = The volume of water needed to reach the LOWER_THRESHOLD at the Inlet's location.
  • Quth = The volume of water that must be removed to reach the UPPER_THRESHOLD at the outlet's location.
  • Qp = The amount of water inflow (or outflow when negative) possible based on the INLET_Q of the Inlet and timestep Δt.
  • Qc = The total amount of water inflow (or outflow when negative) allowed based on the total capacity of the Inlet.
  • A = Size of the Inlet/outlet area in m2, based on the number of cells and cell size (currently calculated per cell).
  • Δw = The amount of water flow which takes place.

The following topics are related to this formula.

Structures
Inlet
Models
Surface model