tank_valves
Two-tank system with valve-based flow control.
tank_valves(area_1=1.0, area_2=1.2, inflow=0.8, outflow=0.6, outflow_1=0.2, valve_gain=1.0, high_level=1.2, low_level=0.4, gravity=9.81, initial_state=None)
Create a two-tank benchmark with valve-controlled inter-tank flow.
The system has two locations: valve open/closed. Flow between tanks depends on the valve state and level difference. Event surfaces are based on level thresholds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
area_1
|
float
|
Cross-sectional area of tank 1. |
1.0
|
area_2
|
float
|
Cross-sectional area of tank 2. |
1.2
|
inflow
|
float
|
Constant inflow to tank 1. |
0.8
|
outflow
|
float
|
Constant outflow from tank 2. |
0.6
|
outflow_1
|
float
|
Constant outflow from tank 1. |
0.2
|
valve_gain
|
float
|
Flow gain when valve is open. |
1.0
|
high_level
|
float
|
Threshold to open the valve. |
1.2
|
low_level
|
float
|
Threshold to close the valve. |
0.4
|
gravity
|
float
|
Gravitational constant. |
9.81
|
initial_state
|
ndarray | None
|
Optional initial [level_1, level_2]. |
None
|
Returns:
| Type | Description |
|---|---|
HybridSystem
|
HybridSystem configured for a valve-controlled two-tank system. |
Source code in src/flowcean/hybrid/benchmarks/tank_valves.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |