blob: e6ecd0cc7a264d99d9985539dd854f132b2eeb10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
from OMChem.Flowsheet import Flowsheet
from OMChem.MatStm import MatStm
from OMChem.Mixer import Mixer
from OMChem.EngStm import EngStm
from OMChem.Heater import Heater
from OMChem.Flash import Flash
from OMChem.Splitter import Splitter
from OMChem.Valve import Valve
from OMChem.Cooler import Cooler
from OMChem.CompSep import CompSep
from OMChem.adiabatic_comp import AdiaComp
from OMChem.DistCol import DistCol
from OMChem.adiabatic_exp import AdiaExp
from OMChem.Pump import Pump
from OMChem.ShortcutColumn import ShortcutColumn
from component_selector import *
def helperFunc(type,name1,count):
if(type=="Mixer"):
return Mixer(name=name1)
elif(type=="MatStm"):
return MatStm(name=(name1,count),CompNames=compound_selected)
elif(type=="Splitter"):
return Splitter(name=name1)
elif(type=="Flash"):
return Flash(name=(name1,count))
elif(type=="Heater"):
return Heater(name=name1)
elif(type=="Valve"):
return Valve(name=name1)
elif(type=="Cooler"):
return Cooler(name=name1)
elif(type=="CompSep"):
return CompSep(name=name1)
elif(type=="AdiaComp"):
return AdiaComp(name=(name1,count))
elif(type=="AdiaExp"):
return AdiaExp(name=(name1,count))
elif(type=="DistCol"):
return DistCol(name=(name1,count))
elif(type=="Pump"):
return Pump(name=name1)
elif(type=="ShortCol"):
return ShortcutColumn(name=(name1,count))
|