---
jupytext:
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.13.8
kernelspec:
display_name: 'Python 3'
name: python3
---
(junction_gate)=
# junction_gate
Similar to the junction object, but with the possibility to close of one of the three connected tunnels
| | |
|---|---|
|Input connections|{ref}`reservoir`, {ref}`junction`, {ref}`junction_gate`|
|Output connections|{ref}`plant`, {ref}`junction_gate`|
|License|SHOP_JUNC_GATE|
|Release version|13.0.0.a|
```{contents}
:local:
:depth: 1
```
```{warning}
The junction_gate object is old and will be deprecated in the future. A junction_gate can be replaced with three connected [](tunnel) objects with gates on at least one of the tunnels. A gate can be specified by giving in a [gate_opening_curve](tunnel:gate_opening_curve) on the tunnel object. The [](interlock_constraint) object can be use to restrict how many gates can be open at the same time.
```
## Examples
- [](junction-example)
## Attributes
```{code-cell} ipython3
:tags: ['remove-input', 'full-width']
from IPython.core.display import HTML
HTML("""
""")
```
(junction_gate:add_slack)=
### add_slack
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Flag determining whether slack variables should be added to the mass balance of the junction gate (xUnit: NO_UNIT, yUnit: NO_UNIT)
(junction_gate:height_1)=
### height_1
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Physical height of the connection point between tunnel_1 and tunnel_2 coming into this junction (xUnit: METER, yUnit: METER)
(junction_gate:loss_factor_1)=
### loss_factor_1
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Friction loss factor for tunnel_1 into this junction multiplied with the square of the flow to get head loss (xUnit: S2/M5, yUnit: S2/M5)
(junction_gate:loss_factor_2)=
### loss_factor_2
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Friction loss factor for tunnel_2 into this junction multiplied with the square of the flow to get head loss (xUnit: S2/M5, yUnit: S2/M5)
(junction_gate:schedule)=
### schedule
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Schedule determining the opening status of this junction gate. -2 means that both tunnel_1 and tunnel_2 are open 0 means that the output from the junction_gate is closed 1 means that only tunnel_1 is connected and 2 means that only tunnel_2 is connected. If two junction_gates are connected in series. The lower junction gate can only have schedule values of 0 or 1 or 2 (xUnit: NO_UNIT, yUnit: NO_UNIT)
(junction_gate:pressure_height)=
### pressure_height
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Resulting pressure height from the optimization calculations (xUnit: NO_UNIT, yUnit: METER)
(junction_gate:tunnel_flow_1)=
### tunnel_flow_1
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Resulting flow in tunnel_1 (xUnit: NO_UNIT, yUnit: M3/S)
(junction_gate:tunnel_flow_2)=
### tunnel_flow_2
Future deprecation: All junction_gates should be modelled by using the tunnel object (does not require additional license). Resulting flow in tunnel_2 (xUnit: NO_UNIT, yUnit: M3/S)