summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlucaszhao192020-08-05 20:16:55 +0630
committerlucaszhao192020-08-05 20:16:55 +0630
commit62b3c9106e1a3cadb1c570818ca7f1a86dffd914 (patch)
tree311f03a401a71551e9115a41b64b868aadd42516
parentf21a9a6ff969e4472100ee0f2ad498018700d935 (diff)
downloadChemical-Simulator-GUI-62b3c9106e1a3cadb1c570818ca7f1a86dffd914.tar.gz
Chemical-Simulator-GUI-62b3c9106e1a3cadb1c570818ca7f1a86dffd914.tar.bz2
Chemical-Simulator-GUI-62b3c9106e1a3cadb1c570818ca7f1a86dffd914.zip
Added DockWidgetCompressorExpander
-rw-r--r--DockWidgets/DockWidget.ui4
-rw-r--r--DockWidgets/DockWidgetMaterialStream.py6
-rw-r--r--DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pycbin8936 -> 8485 bytes
-rw-r--r--Graphics.py3
-rw-r--r--Undo.datbin4021 -> 80258 bytes
-rw-r--r--UnitOperations.py8
6 files changed, 14 insertions, 7 deletions
diff --git a/DockWidgets/DockWidget.ui b/DockWidgets/DockWidget.ui
index 5851d71..ba6dc52 100644
--- a/DockWidgets/DockWidget.ui
+++ b/DockWidgets/DockWidget.ui
@@ -101,7 +101,7 @@
<x>10</x>
<y>100</y>
<width>331</width>
- <height>321</height>
+ <height>271</height>
</rect>
</property>
<property name="title">
@@ -117,7 +117,7 @@
<property name="geometry">
<rect>
<x>10</x>
- <y>430</y>
+ <y>380</y>
<width>331</width>
<height>21</height>
</rect>
diff --git a/DockWidgets/DockWidgetMaterialStream.py b/DockWidgets/DockWidgetMaterialStream.py
index 915bea3..ee57902 100644
--- a/DockWidgets/DockWidgetMaterialStream.py
+++ b/DockWidgets/DockWidgetMaterialStream.py
@@ -36,9 +36,9 @@ class DockWidgetMaterialStream(QDockWidget,ui_dialog):
self.lTreeWidget.setHeaderItem(header)
self.vTreeWidget.setHeaderItem(header)
- self.mTreeWidget.itemClicked.connect(lambda : self.printer(self.mTreeWidget.currentItem()))
- self.lTreeWidget.itemClicked.connect(lambda : self.printer(self.lTreeWidget.currentItem()))
- self.vTreeWidget.itemClicked.connect(lambda : self.printer(self.vTreeWidget.currentItem()))
+ # self.mTreeWidget.itemClicked.connect(lambda : self.printer(self.mTreeWidget.currentItem()))
+ # self.lTreeWidget.itemClicked.connect(lambda : self.printer(self.lTreeWidget.currentItem()))
+ # self.vTreeWidget.itemClicked.connect(lambda : self.printer(self.vTreeWidget.currentItem()))
# input data tab
def modes(self):
diff --git a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
index 16511b3..ddd011b 100644
--- a/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
+++ b/DockWidgets/__pycache__/DockWidgetMaterialStream.cpython-37.pyc
Binary files differ
diff --git a/Graphics.py b/Graphics.py
index 4b5a3e8..ba034fb 100644
--- a/Graphics.py
+++ b/Graphics.py
@@ -23,6 +23,7 @@ from DockWidgets.DockWidgetMixer import *
from DockWidgets.DockWidgetSplitter import *
from DockWidgets.DockWidgetFlash import *
from DockWidgets.DockWidgetCompoundSeparator import *
+from DockWidgets.DockWidgetCompressorExpander import *
import datetime
@@ -478,6 +479,8 @@ class NodeItem(QtWidgets.QGraphicsItem):
self.dock_widget = eval("DockWidget"+self.obj.type)(self.obj.name,self.obj.type,self.obj,self.container)
elif self.obj.type in stm:
self.dock_widget = eval("DockWidget"+self.obj.type)(self.obj.name,self.obj.type,self.obj,self.container)
+ elif self.obj.type == "AdiabaticCompressor" or self.obj.type == "AdiabaticExpander":
+ self.dock_widget = eval("DockWidgetCompressorExpander")(self.obj.name,self.obj.type,self.obj,self.container)
else:
self.dock_widget = DockWidget(self.obj.name,self.obj.type,self.obj,self.container)
dock_widget_lst.append(self.dock_widget)
diff --git a/Undo.dat b/Undo.dat
index 7d03ca8..b05cceb 100644
--- a/Undo.dat
+++ b/Undo.dat
Binary files differ
diff --git a/UnitOperations.py b/UnitOperations.py
index 4d3a92d..1c98f86 100644
--- a/UnitOperations.py
+++ b/UnitOperations.py
@@ -55,7 +55,11 @@ class UnitOperation():
def param_setter(self,params):
print("param_setter ", params)
for k,v in params.items():
- if k != self.mode:
+ print(k, v)
+ if k == 'Thermo Package':
+ self.thermo_package = v
+ print('haha')
+ elif k != self.mode:
self.k = v
self.variables[k]['value'] = v
else:
@@ -577,7 +581,7 @@ class AdiabaticCompressor(UnitOperation):
self.parameters = ['Eff']
type(self).counter += 1
self.variables = {
- 'Pdel' : {'name':'Pressure Drop', 'value':0, 'unit':'Pa'},
+ 'Pdel' : {'name':'Pressure Increase', 'value':0, 'unit':'Pa'},
'Tdel' : {'name':'Temperature Increase', 'value':0, 'unit':'K'},
'Pout' : {'name':'Outlet Pressure', 'value':101325, 'unit':'Pa'},
'Tout' : {'name':'Outlet Temperature', 'value':298.15, 'unit':'K'},