summaryrefslogtreecommitdiff
path: root/Simulator
diff options
context:
space:
mode:
authorpravindalve2020-05-22 22:12:43 +0530
committerpravindalve2020-05-22 22:12:43 +0530
commit781a2ca03807d166498c0d95ef8c62d9ef3404d6 (patch)
treef7da5c3e6437fb270a6cb6b5aedb3af1690fdbce /Simulator
parentb284d36fbf479ff327aef5a7d0a174661145a4cb (diff)
downloadChemical-Simulator-GUI-781a2ca03807d166498c0d95ef8c62d9ef3404d6.tar.gz
Chemical-Simulator-GUI-781a2ca03807d166498c0d95ef8c62d9ef3404d6.tar.bz2
Chemical-Simulator-GUI-781a2ca03807d166498c0d95ef8c62d9ef3404d6.zip
Problem with string parameters in Unit_Operation class and Mixer simulation fixed, gitignore file updated
Diffstat (limited to 'Simulator')
-rw-r--r--Simulator/Simulator/UnitOperations/Mixer.mo32
1 files changed, 16 insertions, 16 deletions
diff --git a/Simulator/Simulator/UnitOperations/Mixer.mo b/Simulator/Simulator/UnitOperations/Mixer.mo
index 1be69eb..ae0a1d9 100644
--- a/Simulator/Simulator/UnitOperations/Mixer.mo
+++ b/Simulator/Simulator/UnitOperations/Mixer.mo
@@ -26,9 +26,9 @@ model Mixer "Model of a mixer to mix multiple material streams"
Real xout_c[Nc](each unit = "-", each min = 0, each max = 1, start = xguess) "Outlet stream component mol fraction";
//================================================================================
// Files.Interfaces.matConn inlet[NI](each Nc = Nc);
- Simulator.Files.Interfaces.matConn outlet(Nc = Nc) annotation(
+ Simulator.Files.Interfaces.matConn Out(Nc = Nc) annotation(
Placement(visible = true, transformation(origin = {100, -2}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
- Simulator.Files.Interfaces.matConn inlet[NI](each Nc = Nc) annotation(
+ Simulator.Files.Interfaces.matConn In[NI](each Nc = Nc) annotation(
Placement(visible = true, transformation(origin = {-100, -2}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {-100, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
extends GuessModels.InitialGuess;
@@ -36,21 +36,21 @@ model Mixer "Model of a mixer to mix multiple material streams"
equation
//Connector equation
for i in 1:NI loop
- inlet[i].P = Pin[i];
- inlet[i].T = Tin_s[i];
- inlet[i].F = Fin_s[i];
- inlet[i].H = Hin_s[i];
- inlet[i].S = Sin_s[i];
- inlet[i].x_pc[1, :] = xin_sc[i, :];
- inlet[i].xvap = xvapin_s[i];
+ In[i].P = Pin[i];
+ In[i].T = Tin_s[i];
+ In[i].F = Fin_s[i];
+ In[i].H = Hin_s[i];
+ In[i].S = Sin_s[i];
+ In[i].x_pc[1, :] = xin_sc[i, :];
+ In[i].xvap = xvapin_s[i];
end for;
- outlet.P = Pout;
- outlet.T = Tout;
- outlet.F = Fout;
- outlet.H = Hout;
- outlet.S = Sout;
- outlet.x_pc[1, :] = xout_c[:];
- outlet.xvap = xvapout;
+ Out.P = Pout;
+ Out.T = Tout;
+ Out.F = Fout;
+ Out.H = Hout;
+ Out.S = Sout;
+ Out.x_pc[1, :] = xout_c[:];
+ Out.xvap = xvapout;
//===================================================================================
//Output Pressure
if outPress == "Inlet_Minimum" then