summaryrefslogtreecommitdiff
path: root/OMChem
diff options
context:
space:
mode:
authorpravindalve2023-01-04 21:18:02 +0530
committerGitHub2023-01-04 21:18:02 +0530
commite65657bc794c50422248d5add590c5c85b1affc5 (patch)
tree0337f9333927c5db70a3f3d1f06fec7c48f1a163 /OMChem
parentecf089991f8f3c15c3c99f376be3b954ec5b3545 (diff)
parent76406147fef0b5ceb2d03e023794725bca88c4ee (diff)
downloadChemical-Simulator-GUI-e65657bc794c50422248d5add590c5c85b1affc5.tar.gz
Chemical-Simulator-GUI-e65657bc794c50422248d5add590c5c85b1affc5.tar.bz2
Chemical-Simulator-GUI-e65657bc794c50422248d5add590c5c85b1affc5.zip
Merge pull request #30 from brenda-br/b_version_1
fix 23,26,27,28,29
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()