summaryrefslogtreecommitdiff
path: root/OMChem
diff options
context:
space:
mode:
Diffstat (limited to 'OMChem')
-rw-r--r--OMChem/Flowsheet.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/OMChem/Flowsheet.py b/OMChem/Flowsheet.py
index bc218c6..79608ec 100644
--- a/OMChem/Flowsheet.py
+++ b/OMChem/Flowsheet.py
@@ -105,6 +105,10 @@ class Flowsheet():
lcase = c.lower()
self.data.append("parameter database." + ucase +' '+ ucase + "; \n")
+ self.data.append("parameter Integer Nc = " + str(len(self.compounds)) + ";\n")
+ self.data.append("parameter Simulator.Files.ChemsepDatabase.GeneralProperties C[Nc] = {" +
+ str(self.compounds).strip('[').strip(']').replace("'", "") + "};\n")
+
for unitop in self.unit_operations:
if unitop.type != 'MaterialStream':
self.data.append(unitop.OM_Flowsheet_Initialize())