From 9ebb12a576ffc33d9ae6b16ca901a504a234c7e7 Mon Sep 17 00:00:00 2001 From: Priyam Nayak Date: Thu, 26 Mar 2020 18:33:06 +0530 Subject: [PATCH] Updated outlet temperature calculation mode --- Simulator/UnitOperations/ConversionReactor.mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Simulator/UnitOperations/ConversionReactor.mo b/Simulator/UnitOperations/ConversionReactor.mo index e233df9..e9f05ea 100644 --- a/Simulator/UnitOperations/ConversionReactor.mo +++ b/Simulator/UnitOperations/ConversionReactor.mo @@ -9,7 +9,7 @@ model ConversionReactor "Model of a conversion reactor to calculate the outlet s Dialog(tab = "Reactor Specifications", group = "Component Parameters")); parameter Integer Nc "Number of components" annotation( Dialog(tab = "Reactor Specifications", group = "Component Parameters")); - parameter String CalcMode = "Isothermal" "Required mode of operation: Isothermal, Define_Out_Temperature, Adiabatic" annotation( + parameter String CalcMode = "Isothermal" "Required mode of operation: ''Isothermal'', ''Define_Out_Temperature'', ''Adiabatic''" annotation( Dialog(tab = "Reactor Specifications", group = "Calculation Parameters")); parameter Real Tdef(unit = "K") = 300 "Defined outlet temperature, applicable if Define_Out_Temperature mode is chosen" annotation( Dialog(tab = "Reactor Specifications", group = "Calculation Parameters")); @@ -81,7 +81,7 @@ equation elseif CalcMode == "Adiabatic" then Hout * Fout + sum(Hr_r .* Fin .* xin_c[BC_r] .* X_r) = Hin * Fin; energy.Q = 0; - elseif CalcMode == "Define_Outlet_Temperature" then + elseif CalcMode == "Define_Out_Temperature" then Tout = Tdef; energy.Q = Hout * Fout - Hin * Fin + sum(Hr_r .* Fin .* xin_c[BC_r] .* X_r); end if;