diff options
author | SaurabhAgarwala | 2020-01-03 15:54:24 +0530 |
---|---|---|
committer | SaurabhAgarwala | 2020-01-03 15:54:24 +0530 |
commit | 8dfb7d836e438035be2284e49554dac36d0af7bf (patch) | |
tree | 0a14314f4a248fe5ad4627e2f6cd11068e689673 /OMChem/DistCol.py | |
parent | 4138fd762a45b15dc7dfea661a93a047a0eba4a0 (diff) | |
download | Chemical-Simulator-GUI-8dfb7d836e438035be2284e49554dac36d0af7bf.tar.gz Chemical-Simulator-GUI-8dfb7d836e438035be2284e49554dac36d0af7bf.tar.bz2 Chemical-Simulator-GUI-8dfb7d836e438035be2284e49554dac36d0af7bf.zip |
Made GUI compatible with the new Simulator, abbreviations updated to new convention and few bugs eliminated with code clean up at places
Diffstat (limited to 'OMChem/DistCol.py')
-rw-r--r-- | OMChem/DistCol.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OMChem/DistCol.py b/OMChem/DistCol.py index 4f9f2fb..1492bc2 100644 --- a/OMChem/DistCol.py +++ b/OMChem/DistCol.py @@ -68,13 +68,13 @@ class DistCol(): self.OM_data_init = self.OM_data_init + 'end Reboiler;\n' self.OM_data_init = self.OM_data_init + ("model distCol"+str(self.count)+"\n") self.OM_data_init = self.OM_data_init + ("extends Simulator.Unit_Operations.Distillation_Column.DistCol;\n" ) - self.OM_data_init = self.OM_data_init + ("Condensor condensor(NOC = NOC, comp = comp, condType =condType, boolFeed = boolFeed[1], T(start = 300));\n" ) - self.OM_data_init = self.OM_data_init + ("Reboiler reboiler(NOC = NOC, comp = comp, boolFeed = boolFeed[noOfStages]);\n" ) - self.OM_data_init = self.OM_data_init + ("Tray tray[noOfStages - 2](each NOC = NOC, each comp = comp, boolFeed = boolFeed[2:noOfStages -1]);\n" ) + self.OM_data_init = self.OM_data_init + ("Condensor condensor(Nc = Nc, comp = comp, condType =condType, boolFeed = boolFeed[1], T(start = 300));\n" ) + self.OM_data_init = self.OM_data_init + ("Reboiler reboiler(Nc = Nc, comp = comp, boolFeed = boolFeed[noOfStages]);\n" ) + self.OM_data_init = self.OM_data_init + ("Tray tray[noOfStages - 2](each Nc = Nc, each comp = comp, boolFeed = boolFeed[2:noOfStages -1]);\n" ) self.OM_data_init = self.OM_data_init + ("end distCol"+str(self.count)+";\n") comp_count = len(addedcomp) self.OM_data_init = self.OM_data_init + ( - "distCol"+str(self.count)+" "+ self.name + "(NOC = " + str(comp_count)) + "distCol"+str(self.count)+" "+ self.name + "(Nc = " + str(comp_count)) self.OM_data_init = self.OM_data_init + (",comp = {") comp = str(addedcomp).strip('[').strip(']') comp = comp.replace("'", "") |