From b6c654ccdd0e401bfc4e651fe533512dba320e4c Mon Sep 17 00:00:00 2001 From: brenda-br Date: Wed, 4 Jan 2023 11:40:04 -0800 Subject: Disabling SM Simulation Mode some changes have been made to BinaryEnvelopes.mo --- Simulator/BinaryEnvelopes.mo | 14 +++++++++----- main.ui | 3 +++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Simulator/BinaryEnvelopes.mo b/Simulator/BinaryEnvelopes.mo index 9eed56a..590888d 100644 --- a/Simulator/BinaryEnvelopes.mo +++ b/Simulator/BinaryEnvelopes.mo @@ -1,11 +1,11 @@ package BinaryEnvelopes model NRTL - parameter Integer NOC; + parameter Integer Nc; parameter Integer data_points; - parameter Real BIP[NOC, NOC, 2] = Simulator.Files.Thermodynamic_Functions.BIPNRTL(NOC, comp.CAS); - parameter Simulator.Files.Chemsep_Database.General_Properties comp[NOC]; - Simulator.Binary_Phase_Envelope.Binary_Phase_Envelope_NRTL.base points[data_points](each NOC = NOC, each comp = comp, each BIP = BIP); - Real x[data_points, NOC], y[data_points, NOC], P[data_points], T[data_points]; + parameter Real BIP[Nc, Nc, 2] = Simulator.Files.ThermodynamicFunctions.BIPNRTL(Nc, comp.CAS); + parameter Simulator.Files.ChemsepDatabase.GeneralProperties comp[Nc]; + Simulator.BinaryPhaseEnvelope.BinaryPhaseEnvelopeNRTL.base points[data_points](each Nc = Nc, each comp = comp, each BIP = BIP); + Real x[data_points, Nc], y[data_points, Nc], P[data_points], T[data_points]; equation points[:].x = x; points[:].y = y; @@ -16,4 +16,8 @@ package BinaryEnvelopes end for; end NRTL; + + + + end BinaryEnvelopes; diff --git a/main.ui b/main.ui index b19f1f5..aa9350a 100644 --- a/main.ui +++ b/main.ui @@ -2064,6 +2064,9 @@ + + false + Icons/sq.pngIcons/sq.png -- cgit