Skip to content

Commit

Permalink
Updated outlet temperature calculation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nayakpriyam committed Mar 26, 2020
1 parent 2db59e3 commit 9ebb12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Simulator/UnitOperations/ConversionReactor.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9ebb12a

Please sign in to comment.