diff options
author | Priyam Nayak | 2021-02-09 18:32:14 +0530 |
---|---|---|
committer | GitHub | 2021-02-09 18:32:14 +0530 |
commit | 47a2cf43129fa18cbac56df8d53208a1b21ea4f7 (patch) | |
tree | 1e966c67a1c2e920c2e0521f2517058a7732d2aa /OMChem/Flowsheet.py | |
parent | 4e96691bc758904e05d0e03f0368dcbcd1efaec3 (diff) | |
parent | 3dd09f5b8d5326ce57db71da1fac77386dfbd700 (diff) | |
download | Chemical-Simulator-GUI-47a2cf43129fa18cbac56df8d53208a1b21ea4f7.tar.gz Chemical-Simulator-GUI-47a2cf43129fa18cbac56df8d53208a1b21ea4f7.tar.bz2 Chemical-Simulator-GUI-47a2cf43129fa18cbac56df8d53208a1b21ea4f7.zip |
Merge pull request #11 from pravindalve/master
Fixes for reloading data
Diffstat (limited to 'OMChem/Flowsheet.py')
-rw-r--r-- | OMChem/Flowsheet.py | 4 |
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()) |