summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-01-19 23:00:58 +0530
committerbrenda-br2023-01-19 23:00:58 +0530
commitefd125c443e71cc4c548b1045cfa56149ae1d055 (patch)
tree1a1dc682ac212b772912d6f98bb6240916627c54
parent970f872b4ad94cc822b008e95093b5ebfc84adb4 (diff)
downloadChemical-Simulator-GUI-efd125c443e71cc4c548b1045cfa56149ae1d055.tar.gz
Chemical-Simulator-GUI-efd125c443e71cc4c548b1045cfa56149ae1d055.tar.bz2
Chemical-Simulator-GUI-efd125c443e71cc4c548b1045cfa56149ae1d055.zip
Fix #35 Variable Des Fixed some errors found
-rw-r--r--DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pycbin9094 -> 9214 bytes
-rw-r--r--Streams.py50
-rw-r--r--Undo.datbin4468 -> 3471 bytes
3 files changed, 30 insertions, 20 deletions
diff --git a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
index 73f30b6..9d94e09 100644
--- a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
Binary files differ
diff --git a/Streams.py b/Streams.py
index a4cdeaf..0559831 100644
--- a/Streams.py
+++ b/Streams.py
@@ -93,34 +93,44 @@ class MaterialStream():
self.variables['x_pc']['value'] = temp
if(mode=="PT"):
- self.mode1 = self.variables['P']['name']
- self.mode2 = self.variables['T']['name']
- dict = {self.mode1:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
- self.mode2:str(self.variables['T']['value'])+' '+self.variables['T']['unit']}
+ self.mode1 = 'P'
+ self.mode2 = 'T'
+ mode1_n = self.variables['P']['name']
+ mode2_n = self.variables['T']['name']
+ dict = {mode1_n:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
+ mode2_n:str(self.variables['T']['value'])+' '+self.variables['T']['unit']}
elif(mode=="PH"):
- self.mode1 = self.variables['P']['name']
- self.mode2 = self.variables['H_p[1]']['name']
+ self.mode1 = 'P'
+ self.mode2 = 'H_p[1]'
+ mode1_n = self.variables['P']['name']
+ mode2_n = self.variables['H_p[1]']['name']
- dict = {self.mode1:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
- self.mode2:str(self.variables['H_p[1]']['value'])+' '+self.variables['H_p[1]']['unit']}
+ dict = {mode1_n:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
+ mode2_n:str(self.variables['H_p[1]']['value'])+' '+self.variables['H_p[1]']['unit']}
elif(mode=="PVF"):
- self.mode1 = self.variables['P']['name']
- self.mode2 = self.variables['xvap']['name']
+ self.mode1 = 'P'
+ self.mode2 = 'xvap'
+ mode1_n = self.variables['P']['name']
+ mode2_n = self.variables['xvap']['name']
- dict = {self.mode1:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
- self.mode2:str(self.variables['xvap']['value'])+' '+self.variables['xvap']['unit']}
+ dict = {mode1_n:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
+ mode2_n:str(self.variables['xvap']['value'])+' '+self.variables['xvap']['unit']}
elif(mode=="TVF"):
- self.mode1 = self.variables['T']['name']
- self.mode2 = self.variables['xvap']['name']
- dict = {self.mode1:str(self.variables['T']['value'])+' '+self.variables['T']['unit'],
- self.mode2:str(self.variables['xvap']['value'])+' '+self.variables['xvap']['unit']}
+ self.mode1 = 'T'
+ self.mode2 = 'xvap'
+ mode1_n = self.variables['T']['name']
+ mode2_n = self.variables['xvap']['name']
+ dict = {mode1_n:str(self.variables['T']['value'])+' '+self.variables['T']['unit'],
+ mode2_n:str(self.variables['xvap']['value'])+' '+self.variables['xvap']['unit']}
elif(mode=="PS"):
- self.mode1 = self.variables['P']['name']
- self.mode2 = self.variables['S_p[1]']['name']
+ self.mode1 = 'P'
+ self.mode2 = 'S_p[1]'
+ mode1_n = self.variables['P']['name']
+ mode2_n = self.variables['S_p[1]']['name']
- dict = {self.mode1:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
- self.mode2:str(self.variables['S_p[1]']['value'])+' '+self.variables['S_p[1]']['unit']}
+ dict = {mode1_n:str(self.variables['P']['value'])+' '+self.variables['P']['unit'],
+ mode2_n:str(self.variables['S_p[1]']['value'])+' '+self.variables['S_p[1]']['unit']}
dict['Mole Flow'] = str(self.variables['F_p[1]']['value'])+' '+self.variables['F_p[1]']['unit']
dict[self.variables['x_pc']['name']] = str(self.variables['x_pc']['value'])+' '+self.variables['x_pc']['unit']
diff --git a/Undo.dat b/Undo.dat
index 5a8b294..435cb62 100644
--- a/Undo.dat
+++ b/Undo.dat
Binary files differ