Skip to content

Commit f00af59

Browse files
committed
set non-return valve openings to true before calculations
1 parent 90f0940 commit f00af59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandapipes/control/controller/non_return_valve_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def initialize_control(self):
7171
Saving the user-defined values and adapt types.
7272
"""
7373
self.opened = self.net.valve.loc[self.element_index, "opened"]
74+
self.net.valve.loc[self.element_index, "opened"] = True
7475
self.net.valve.loc[self.element_index, "type"] = "non-return valve"
7576

7677
def is_converged(self):

0 commit comments

Comments
 (0)