summaryrefslogtreecommitdiff
path: root/OMChem
diff options
context:
space:
mode:
authorbrenda-br2023-01-03 11:54:35 -0800
committerbrenda-br2023-01-03 15:55:57 -0800
commit6640cdfac4c954a19a2e01988b34e7777bd9e39f (patch)
tree75e8765e5f390bc8d7255b04c4c590734cee8d95 /OMChem
parentecf089991f8f3c15c3c99f376be3b954ec5b3545 (diff)
downloadChemical-Simulator-GUI-6640cdfac4c954a19a2e01988b34e7777bd9e39f.tar.gz
Chemical-Simulator-GUI-6640cdfac4c954a19a2e01988b34e7777bd9e39f.tar.bz2
Chemical-Simulator-GUI-6640cdfac4c954a19a2e01988b34e7777bd9e39f.zip
message box (unedit)
Diffstat (limited to 'OMChem')
-rw-r--r--OMChem/Flowsheet.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/OMChem/Flowsheet.py b/OMChem/Flowsheet.py
index a61cd52..ce0da55 100644
--- a/OMChem/Flowsheet.py
+++ b/OMChem/Flowsheet.py
@@ -47,8 +47,8 @@ class Flowsheet():
def send_for_simulation_Eqn(self):
self.result_data = []
self.omc_path = self.get_omc_path()
- print(self.omc_path)
-
+ #print(self.omc_path)
+
if self.sim_method == 'Eqn':
simpath = self.eqn_mos_path
os.chdir(self.sim_dir_path)
@@ -68,7 +68,6 @@ class Flowsheet():
self.result_data.append(row)
def send_for_simulation_SM(self,unitop):
-
self.result_data = []
self.omc_path = self.get_omc_path()
os.chdir(self.sim_dir_path)
@@ -145,14 +144,14 @@ class Flowsheet():
for d in self.data:
txtfile.write(str(d))
txtfile.write('end Flowsheet;\n')
-
+ #print(self.eqn_mos_path)
with open(self.eqn_mos_path, 'w') as mosFile:
mosFile.write('loadModel(Modelica);\n')
mosFile.write('loadFile(\"Simulator/package.mo\");\n')
mosFile.write('loadFile(\"database.mo\");\n')
mosFile.write('loadFile(\"Flowsheet.mo\");\n')
mosFile.write('simulate(Flowsheet, outputFormat=\"csv\", stopTime=1.0, numberOfIntervals=1);\n')
-
+
print('Initiating Simulation in Equation Oriented Mode')
self.send_for_simulation_Eqn()