Skip to content

Commit bdab5b3

Browse files
Example two-node network
1 parent de7261f commit bdab5b3

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
406219:
2+
node_type: "IHACRESBilinearNode"
3+
area: 1985.73
4+
parameters:
5+
d: 205.9296682315772
6+
d2: 1.5219519661190162
7+
e: 1.0
8+
f: 1.1612900313855028
9+
a: 9.999999999175559
10+
b: 0.0011479482142380236
11+
storage_coef: 9.99999999952744
12+
alpha: 0.8917155227322869
13+
initial_storage: 100.0
14+
inlets: ~
15+
outlets:
16+
- "406000"
17+
406000:
18+
node_type: "DamNode"
19+
area: 30.11
20+
parameters:
21+
storage_coef: 5.243068550275504
22+
initial_storage: 0.0
23+
max_storage: 306000.0
24+
functions:
25+
calc_dam_level: |-
26+
function c_dam_level(volume)
27+
return 156.8 + 0.9463 * volume^0.2922
28+
end
29+
calc_dam_area: |-
30+
function c_dam_area(volume)
31+
return 0.0021 * volume^0.762
32+
end
33+
calc_dam_discharge: |-
34+
function c_dam_discharge(volume, max_storage)
35+
discharge = 0.0
36+
if volume > max_storage
37+
discharge = 0.001492 * (volume - max_storage)^1.5280
38+
end
39+
40+
return max(0.0, discharge)
41+
end
42+
calc_dam_outflow: |-
43+
function c_dam_outflow(discharge, irrigation_extraction)
44+
return discharge + irrigation_extraction
45+
end
46+
inlets:
47+
- "406219"
48+
outlets: ~

0 commit comments

Comments
 (0)