summaryrefslogtreecommitdiff
path: root/Streams.py
diff options
context:
space:
mode:
authorbrenda-br2023-01-28 21:48:22 +0530
committerbrenda-br2023-01-28 21:48:22 +0530
commit9e587690ebf2a16f33d5a8ee4904e7a36844371d (patch)
treee098744058ecabfb281bdb7fb0d365028f445e5c /Streams.py
parentb9df67134289c0b9d76f7f6462284d5cdf64c4d9 (diff)
downloadChemical-Simulator-GUI-9e587690ebf2a16f33d5a8ee4904e7a36844371d.tar.gz
Chemical-Simulator-GUI-9e587690ebf2a16f33d5a8ee4904e7a36844371d.tar.bz2
Chemical-Simulator-GUI-9e587690ebf2a16f33d5a8ee4904e7a36844371d.zip
Fix #47 Tololtip Update with important variables after simulation
Diffstat (limited to 'Streams.py')
-rw-r--r--Streams.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/Streams.py b/Streams.py
index 0559831..739010a 100644
--- a/Streams.py
+++ b/Streams.py
@@ -136,6 +136,31 @@ class MaterialStream():
dict[self.variables['x_pc']['name']] = str(self.variables['x_pc']['value'])+' '+self.variables['x_pc']['unit']
dict['Thermo Package'] = self.thermo_package
return dict
+
+ def param_getter_tooltip_selectedVar(self):
+ dict = {}
+
+ var1_name = self.variables['P']['name']
+ var1_val = self.variables['P']['value']
+ var1_unit = self.variables['P']['unit']
+ var2_name = self.variables['T']['name']
+ var2_val = self.variables['T']['value']
+ var2_unit = self.variables['T']['unit']
+ var3_name = self.variables['H_p[1]']['name']
+ var3_val = self.variables['H_p[1]']['value']
+ var3_unit = self.variables['H_p[1]']['unit']
+ var4_name = self.variables['S_p[1]']['name']
+ var4_val = self.variables['S_p[1]']['value']
+ var4_unit = self.variables['S_p[1]']['unit']
+ var5_name = self.variables['xvap']['name']
+ var5_val = self.variables['xvap']['value']
+ var5_unit = self.variables['xvap']['unit']
+ dict = {var1_name:str(var1_val)+' '+var1_unit,
+ var2_name:str(var2_val)+' '+var2_unit,
+ var3_name:str(var3_val)+' '+var3_unit,
+ var4_name:str(var4_val)+' '+var4_unit,
+ var5_name:str(var5_val)+' '+var5_unit, }
+ return dict
def param_getter(self,mode):
dict = {}