From 18c252df8431ddb9681efaf26352bbb6ed08b1fb Mon Sep 17 00:00:00 2001 From: pravindalve Date: Sun, 18 Apr 2021 21:13:09 +0530 Subject: Fixes for issue #15 --- Undo.dat | Bin 56752 -> 27727 bytes UnitOperations.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Undo.dat b/Undo.dat index bf52137..bc64b22 100644 Binary files a/Undo.dat and b/Undo.dat differ diff --git a/UnitOperations.py b/UnitOperations.py index ddac8b1..132990a 100644 --- a/UnitOperations.py +++ b/UnitOperations.py @@ -512,10 +512,10 @@ class Flash(UnitOperation): def OM_Flowsheet_Equation(self): self.OM_data_eqn = '' - self.OM_data_eqn += ('connect(' + self.name + '.In,' + self.input_stms[0].name + '.Out);\n') + self.OM_data_eqn += ('connect(' + self.name + '.In,' + self.input_stms[1].name + '.Out);\n') strcount = 1 - for strm in self.output_stms: + for strm in self.output_stms.values(): self.OM_data_eqn += ('connect(' + strm.name + '.In,' + self.name + '.Out' + str(strcount) + ');\n') strcount += 1 -- cgit