diff options
11 files changed, 22 insertions, 13 deletions
@@ -25,3 +25,12 @@ src/main/python/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-37. src/main/python/DockWidgets/__pycache__/DockWidgetFlash.cpython-37.pyc src/main/python/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc src/main/python/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-37.pyc +src/main/python/DockWidgets/__pycache__/DockWidgetSplitter.cpython-36.pyc +src/main/python/OMChem/__pycache__/Flowsheet.cpython-36.pyc +src/main/python/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-36.pyc +src/main/python/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-36.pyc +src/main/python/DockWidgets/__pycache__/DockWidgetFlash.cpython-36.pyc +src/main/python/DockWidgets/__pycache__/DockWidgetCompressorExpander.cpython-36.pyc +src/main/python/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-36.pyc +src/main/python/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-36.pyc +src/main/python/DockWidgets/__pycache__/DockWidget.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidget.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidget.cpython-36.pyc Binary files differindex d1958e4..0910bb4 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidget.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidget.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-36.pyc Binary files differindex 2f08a64..0bb8ec2 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidgetCompoundSeparator.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidgetCompressorExpander.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidgetCompressorExpander.cpython-36.pyc Binary files differindex b8ca696..75c33c9 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidgetCompressorExpander.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidgetCompressorExpander.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-36.pyc Binary files differindex aad2e1f..18ebc2a 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidgetDistillationColumn.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidgetFlash.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidgetFlash.cpython-36.pyc Binary files differindex bda9fee..665e2e1 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidgetFlash.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidgetFlash.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-36.pyc Binary files differindex 9c60f72..7be87c9 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-36.pyc Binary files differindex 34b2b4a..34ef4fe 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidgetShortcutColumn.cpython-36.pyc diff --git a/src/main/python/DockWidgets/__pycache__/DockWidgetSplitter.cpython-36.pyc b/src/main/python/DockWidgets/__pycache__/DockWidgetSplitter.cpython-36.pyc Binary files differindex 91cd0b7..eaac842 100644 --- a/src/main/python/DockWidgets/__pycache__/DockWidgetSplitter.cpython-36.pyc +++ b/src/main/python/DockWidgets/__pycache__/DockWidgetSplitter.cpython-36.pyc diff --git a/src/main/python/OMChem/__pycache__/Flowsheet.cpython-36.pyc b/src/main/python/OMChem/__pycache__/Flowsheet.cpython-36.pyc Binary files differindex 314fe9e..b2b2518 100644 --- a/src/main/python/OMChem/__pycache__/Flowsheet.cpython-36.pyc +++ b/src/main/python/OMChem/__pycache__/Flowsheet.cpython-36.pyc diff --git a/src/main/python/utils/Streams.py b/src/main/python/utils/Streams.py index 3f13b42..7b2aadc 100644 --- a/src/main/python/utils/Streams.py +++ b/src/main/python/utils/Streams.py @@ -43,16 +43,16 @@ class MaterialStream(): 'T' : {'name':'Temperature', 'value':300, 'unit':'K'}, 'xvap' : {'name':'Vapour Mole Fraction', 'value':None, 'unit':''}, - 'H_p[1]' : {'name':'Mixture Molar Entalpy', 'value':None, 'unit':'J/mol'}, + 'H_p[1]' : {'name':'Mixture Molar Enthalpy', 'value':None, 'unit':'J/mol'}, 'S_p[1]' : {'name':'Mixture Molar Entropy', 'value':None, 'unit':'J/mol.K'}, 'F_p[1]' : {'name':'Mixture Molar Flow', 'value':100, 'unit':'mol/s'}, 'Fm_p[1]' : {'name':'Mixture Mass Flow', 'value':None, 'unit':'g/s'}, - 'H_p[2]' : {'name':'Liquid Molar Entalpy', 'value':None, 'unit':'J/mol'}, + 'H_p[2]' : {'name':'Liquid Molar Enthalpy', 'value':None, 'unit':'J/mol'}, 'S_p[2]' : {'name':'Liquid Molar Entropy', 'value':None, 'unit':'J/mol.K'}, 'F_p[2]' : {'name':'Liquid Molar Flow', 'value':None, 'unit':'mol/s'}, - 'H_p[3]' : {'name':'Vapour Molar Entalpy', 'value':None, 'unit':'J/mol'}, + 'H_p[3]' : {'name':'Vapour Molar Enthalpy', 'value':None, 'unit':'J/mol'}, 'S_p[3]' : {'name':'Vapour Molar Entropy', 'value':None, 'unit':'J/mol.K'}, 'F_p[3]' : {'name':'Vapour Molar Flow', 'value':None, 'unit':'mol/s'}, @@ -193,34 +193,34 @@ class MaterialStream(): self.mode1 = 'P' self.mode2 = 'T' - dict = {self.mode1:self.variables['P']['value'], self.mode2:self.variables['T']['value'], - "MolFlow":self.variables['F_p[1]']['value'],"x_pc":self.variables['x_pc']['value'], + dict = {self.mode1:str(round(float(self.variables['P']['value']),4)), self.mode2:str(round(float(self.variables['T']['value']),4)), + "MolFlow":str(round(float(self.variables['F_p[1]']['value']),4)),"x_pc":self.variables['x_pc']['value'], "Thermo Package": self.thermo_package} #print('dictionary is :' + str(dict)) elif(mode=="PH"): self.mode1 = 'P' self.mode2 = 'H_p[1]' - dict = {self.mode1:self.variables['P']['value'], self.mode2:self.variables['H_p[1]']['value'], - "MolFlow":self.variables['F_p[1]']['value'], "x_pc":self.variables['x_pc']['value'], + dict = {self.mode1:str(round(float(self.variables['P']['value']),4)), self.mode2:round(float(self.variables['H_p[1]']['value']),4), + "MolFlow":round(float(self.variables['F_p[1]']['value']),4), "x_pc":self.variables['x_pc']['value'], "Thermo Package": self.thermo_package} elif(mode=="PVF"): self.mode1 = 'P' self.mode2 = 'xvap' - dict = {self.mode1:self.variables['P']['value'], self.mode2:self.variables['xvap']['value'], - "MolFlow":self.variables['F_p[1]']['value'], "x_pc":self.variables['x_pc']['value'], + dict = {self.mode1:round(float(self.variables['P']['value']),4), self.mode2:round(float(self.variables['xvap']['value']),4), + "MolFlow":round(float(self.variables['F_p[1]']['value']),4), "x_pc":self.variables['x_pc']['value'], "Thermo Package": self.thermo_package} elif(mode=="TVF"): self.mode1 = 'T' self.mode2 = 'xvap' - dict = {self.mode1:self.variables['T']['value'], self.mode2:self.variables['xvap']['value'], - "MolFlow":self.variables['F_p[1]']['value'], "x_pc":self.variables['x_pc']['value'], + dict = {self.mode1:round(float(self.variables['T']['value']),4), self.mode2:round(float(self.variables['xvap']['value']),4), + "MolFlow":round(float(self.variables['F_p[1]']['value']),4), "x_pc":self.variables['x_pc']['value'], "Thermo Package": self.thermo_package} elif(mode=="PS"): self.mode1 = 'P' self.mode2 = 'S_p[1]' - dict = {self.mode1:self.variables['P']['value'], self.mode2: self.variables['S_p[1]']['value'], - "MolFlow":self.variables['F_p[1]']['value'], "x_pc":self.variables['x_pc']['value'], + dict = {self.mode1:round(float(self.variables['P']['value']),4), self.mode2: round(float(self.variables['S_p[1]']['value']),4), + "MolFlow":round(float(self.variables['F_p[1]']['value']),2), "x_pc":self.variables['x_pc']['value'], "Thermo Package": self.thermo_package} return dict |