Pump formula (Water Overlay): Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 35: Line 35:


If an upper threshold T<sub>u,t</sub> is defined as well:
If an upper threshold T<sub>u,t</sub> is defined as well:
: ''Q<sub>u,t</sub> =  min ( 0, T<sub>u,t</sub>- w<sub>t,u</sub> )''
: ''Q<sub>u,t</sub> =  min ( 0, T<sub>u,t</sub> - w<sub>t,u</sub> )''


If a capacity Q<sub>total</sub> is defined:
If a capacity Q<sub>total</sub> is defined:
Line 44: Line 44:


Where:
Where:
* w<sub>t,l</sub> = The water level at the lower water level entry on at time t, relative to [[Datum|datum]].
* w<sub>t,l</sub> = The [[Surface water level formula (Water Overlay)|water level]] at the lower water level entry at time t, relative to {{datum}}.
* w<sub>t,u</sub> = The water level at the upper water level entry on at time t, relative to [[Datum|datum]].
* w<sub>t,u</sub> = The [[Surface water level formula (Water Overlay)|water level]] at the upper water level entry at time t, relative to {{datum}}.
* T<sub>l,t</sub> = The [[Lower threshold (Water Overlay)|LOWER_THRESHOLD]] attribute of the pump at time t.
* T<sub>l,t</sub> = The [[Lower threshold (Water Overlay)|LOWER_THRESHOLD]] of the pump at time t.
* T<sub>u,t</sub> = The [[Upper threshold (Water Overlay)|UPPER_THRESHOLD]] attribute of the pump at time t.
* T<sub>u,t</sub> = The [[Upper threshold (Water Overlay)|UPPER_THRESHOLD]] of the pump at time t.
* q<sub>t</sub> = [[Pump q (Water Overlay)|PUMP_Q]] attribute at time t.
* q<sub>t</sub> = The [[Pump q (Water Overlay)|PUMP_Q]] of the pump at time t.
* Δt = Computational timestep.
* Δt = Computational timestep.
* Q<sub>total</sub> = The pump capacity of the pump, based on the pump's [[Inlet capacity (Water Overlay)|INLET_CAPACITY]] attribute.
* Q<sub>total</sub> = The pump capacity, defined in [[Inlet capacity (Water Overlay)|INLET_CAPACITY]] of the pump.
* Q<sub>0..n</sub> = The calculated previous amounts of flow.
* Q<sub>0..n</sub> = The calculated previous amounts of flow.
* Q<sub>l,t</sub> = The desired amount of water at the entry based on the pump's [[Lower threshold (Water Overlay)|LOWER_THRESHOLD]] attribute.
* Q<sub>l,t</sub> = The desired amount of water at the entry based on the pump's [[Lower threshold (Water Overlay)|LOWER_THRESHOLD]] attribute.
* Q<sub>u,t</sub> = The desired amount of water at the exit based on the pump's [[Upper threshold (Water Overlay)|UPPER_THRESHOLD]] attribute.
* Q<sub>u,t</sub> = The desired amount of water at the exit based on the pump's [[Upper threshold (Water Overlay)|UPPER_THRESHOLD]] attribute.
* Q<sub>t</sub> = The amount of water pumped (or drained when negative) possible based on the [[Pump q (Water Overlay)|PUMP_Q]] attribute and timestep Δt.
* Q<sub>t</sub> = The [[Pump q (Water Overlay)|PUMP_Q]] at timestep Δt, which is the amount of water the pump can possibly pump (or drain, when negative).
* Q<sub>c</sub> = The maximum amount of water flow based on the total capacity of the pump.
* Q<sub>c</sub> = The maximum amount of water flow based on the total capacity of the pump.
* A = Size of the Entry/Exit area in m<sup>2</sup>, based on the amount of cells and cell size. Current implementation only has one cell.
* A = Size of the entry/exit 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.



Revision as of 09:43, 14 June 2019

Pumps are hydraulic structures can pump water from one location to another.

The direction the pump pumps in is based on the water level at either end of the pump. A pump pumps water from the area with a lower water level to the area with a higher water level. If no (differing) water levels are defined, the surface height is used instead. The direction is determined during the initialization phase of the hydrological model, and does not change during the calculation even when water levels change.

A negative pump speed is also allowed. This will cause the pump to be "draining", rather than "pumping". This will cause water to be moved in the opposite direction.

The amount being pumped or drained is dependent on the water levels on both sides of the pump.

Case 1: Pumping:
First the flow capacities are calculated.

If a positive Pump q is defined:

Qp,t = Δt * qt

If a lower threshold Tl,t is defined as well:

Ql,t = min ( 0, wl,t - Tl,t )

If an upper threshold Tu,t is defined as well:

Qu,t = max ( 0, Tu,t- wt,u )

If a capacity Qtotal is defined:

Qc = Qtotal - ΣQ0..t-1

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

Δw = max( 0 , min( Ql,t , Qu,t , Qt , Qc ) ) / A

Case 2: Draining:
First the flow capacities are calculated.

If a negative Pump q is defined:

Qp,t = Δt * qt

If a lower threshold Tl,t is defined as well:

Ql,t = max ( 0, wl,t - Tl,t )

If an upper threshold Tu,t is defined as well:

Qu,t = min ( 0, Tu,t - wt,u )

If a capacity Qtotal is defined:

Qc = Qtotal - abs ( ΣQ0..t-1 )

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

Δw = max( 0 , max( Ql,t , Qu,t , Qt , -Qc ) ) / A

Where:

  • wt,l = The water level at the lower water level entry at time t, relative to datum.
  • wt,u = The water level at the upper water level entry at time t, relative to datum.
  • Tl,t = The LOWER_THRESHOLD of the pump at time t.
  • Tu,t = The UPPER_THRESHOLD of the pump at time t.
  • qt = The PUMP_Q of the pump at time t.
  • Δt = Computational timestep.
  • Qtotal = The pump capacity, defined in INLET_CAPACITY of the pump.
  • Q0..n = The calculated previous amounts of flow.
  • Ql,t = The desired amount of water at the entry based on the pump's LOWER_THRESHOLD attribute.
  • Qu,t = The desired amount of water at the exit based on the pump's UPPER_THRESHOLD attribute.
  • Qt = The PUMP_Q at timestep Δt, which is the amount of water the pump can possibly pump (or drain, when negative).
  • Qc = The maximum amount of water flow based on the total capacity of the pump.
  • A = Size of the entry/exit 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