summaryrefslogtreecommitdiff
path: root/OMChem/adiabatic_exp.py
diff options
context:
space:
mode:
Diffstat (limited to 'OMChem/adiabatic_exp.py')
-rw-r--r--OMChem/adiabatic_exp.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/OMChem/adiabatic_exp.py b/OMChem/adiabatic_exp.py
index 0dfb541..2754f0a 100644
--- a/OMChem/adiabatic_exp.py
+++ b/OMChem/adiabatic_exp.py
@@ -1,26 +1,26 @@
from OMChem.EngStm import EngStm
-class AdiaExp():
+class AdiabaticExpander():
counter = 1
- def __init__(self,name='AdiaExp', eff = None):
+ def __init__(self,name='AdiabaticExpander', eff = None):
self.eff = eff
#self.name = name[0]
- self.name = name + str(AdiaExp.counter)
+ self.name = name + str(AdiabaticExpander.counter)
self.OM_data_eqn = ''
self.OM_data_init = ''
self.InputStms = None
self.OutputStms = None
self.EngStms = EngStm(name='EngStm'+self.name)
#self.count = name[1]
- self.count = AdiaExp.counter
- self.type = 'AdiaExp'
- self.thermoPackage ="Raoults_Law"
+ self.count = AdiabaticExpander.counter
+ self.type = 'AdiabaticExpander'
+ self.thermoPackage ="RaoultsLaw"
self.mode = None
self.modeVal = None
# new
self.no_of_input = 1
self.no_of_output = 1
- AdiaExp.counter += 1
+ AdiabaticExpander.counter += 1
def getname(self):
return self.name
@@ -50,7 +50,7 @@ class AdiaExp():
self.OM_data_init = self.OM_data_init + ("end adiaComp"+str(self.count)+";\n")
comp_count = len(addedcomp)
self.OM_data_init = self.OM_data_init + (
- "adiaComp"+str(self.count)+" "+ self.name + "(NOC = " + str(comp_count))
+ "adiaComp"+str(self.count)+" "+ self.name + "(Nc = " + str(comp_count))
self.OM_data_init = self.OM_data_init + (",comp = {")
comp = str(addedcomp).strip('[').strip(']')
comp = comp.replace("'", "")