diff options
author | pravindalve | 2021-04-18 21:13:09 +0530 |
---|---|---|
committer | pravindalve | 2021-04-18 21:13:09 +0530 |
commit | 18c252df8431ddb9681efaf26352bbb6ed08b1fb (patch) | |
tree | 03a7f1fb0796972ce60dcb260f1d10e09163931d | |
parent | c6321d3dbdd5cebf66fe8470d9c0a58ed63e4721 (diff) | |
download | Chemical-Simulator-GUI-18c252df8431ddb9681efaf26352bbb6ed08b1fb.tar.gz Chemical-Simulator-GUI-18c252df8431ddb9681efaf26352bbb6ed08b1fb.tar.bz2 Chemical-Simulator-GUI-18c252df8431ddb9681efaf26352bbb6ed08b1fb.zip |
Fixes for issue #15
-rw-r--r-- | Undo.dat | bin | 56752 -> 27727 bytes | |||
-rw-r--r-- | UnitOperations.py | 4 |
2 files changed, 2 insertions, 2 deletions
Binary files 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 |