summaryrefslogtreecommitdiff
path: root/Simulator
diff options
context:
space:
mode:
authorpravindalve2020-06-25 14:56:00 +0530
committerpravindalve2020-06-25 14:56:00 +0530
commitda8e13197c906ee90ba8672567b6670a291eb2c1 (patch)
treecd78e32c16d626b028a5f10f123e60fa731addfe /Simulator
parent304347a14fb0a5d770717e08f10efaed84d51902 (diff)
downloadChemical-Simulator-GUI-da8e13197c906ee90ba8672567b6670a291eb2c1.tar.gz
Chemical-Simulator-GUI-da8e13197c906ee90ba8672567b6670a291eb2c1.tar.bz2
Chemical-Simulator-GUI-da8e13197c906ee90ba8672567b6670a291eb2c1.zip
Generalization for integer and float variables in flowsheet_initialization
Diffstat (limited to 'Simulator')
-rw-r--r--Simulator/Simulator/UnitOperations/Splitter.mo4
1 files changed, 2 insertions, 2 deletions
diff --git a/Simulator/Simulator/UnitOperations/Splitter.mo b/Simulator/Simulator/UnitOperations/Splitter.mo
index 8b03997..9871ea7 100644
--- a/Simulator/Simulator/UnitOperations/Splitter.mo
+++ b/Simulator/Simulator/UnitOperations/Splitter.mo
@@ -5,7 +5,7 @@ model Splitter
//Header Files and Parameters
extends Simulator.Files.Icons.Splitter;
parameter Simulator.Files.ChemsepDatabase.GeneralProperties C[Nc];
- parameter Integer Nc = 2 "Number of Components", No = 2 "Number of outlet streams";
+ parameter Integer Nc = 3 "Number of Components", No = 2 "Number of outlet streams";
parameter String CalcType "Split_Ratio, Mass_Flow or Molar_Flow";
//=============================================================================
@@ -21,7 +21,7 @@ model Splitter
Real Pout_s[No](each min = 0, each start = Pg) "Outlet Pressure";
Real Tout_s[No](each min = 0, each start = Tg) "Outlet Temperature";
- Real xout_sc[No, Nc](each min = 0, each max = 1, start = xguess) "Outlet Mixture Molar Fraction";
+ Real xout_sc[No, Nc](each min = 0, each max = 1) "Outlet Mixture Molar Fraction";
Real Fout_c[No](each min = 0, start = Fg) "Outlet Mixture Molar Flow";
Real Fmout_c[No](each min = 0, start = Fg) "Outlet Mixture Mass Flow";