using "stage_separators/condenser";
using "mixers_splitters/splitter";
# condenser with splitter dividing liquid outlet
FlowSheet condenser_Test
PARAMETERS
PP as CalcObject(Brief="Physical Properties",File="vrpp");
NComp as Integer;
VARIABLES
Q as heat_rate (Brief="Heat supplied");
SET
PP.Components = [ "isobutane", "n-pentane"];
PP.LiquidModel = "PR";
PP.VapourModel = "PR";
NComp = PP.NumberOfComponents;
DEVICES
c1 as condenser;
sp as splitter;
s1 as stream_therm;
CONNECTIONS
s1 to c1.InletV;
c1.OutletL to sp.Inlet;
Q to c1.Q;
SPECIFY
s1.P = 152 * "kPa";
s1.T = 298.6 * "K";
s1.F = 153 * "kmol/h";
s1.z = [0.664, 0.336];
s1.v = 1.0;
sp.frac = 0.444445;
c1.OutletV.F = 0 * "kmol/h";
c1.OutletL.F = 153 * "kmol/h";
Q = -3.71e6 * "kJ/h";
SET
c1.V = 2 * "m^3";
c1.Across = 1 * "m^2";
INITIAL
c1.OutletL.T = 280 *"K";
c1.Level = 1 * "m";
c1.OutletL.z(1) = 0.65;
OPTIONS
time = [0:20:1000];
end
FlowSheet condenserSteady_Test
PARAMETERS
PP as CalcObject(Brief="Physical Properties",File="vrpp");
NComp as Integer;
VARIABLES
Q as heat_rate (Brief="Heat supplied");
SET
PP.Components = [ "isobutane", "n-pentane"];
PP.LiquidModel = "PR";
PP.VapourModel = "PR";
NComp = PP.NumberOfComponents;
DEVICES
c1 as condenserSteady;
s1 as stream_therm;
CONNECTIONS
s1 to c1.InletV;
Q to c1.Q;
SPECIFY
s1.P = 152 * "kPa";
s1.T = 298.6 * "K";
s1.F = 153 * "kmol/h";
s1.z = [0.664, 0.336];
s1.v = 1.0;
Q = 3.71e6 * "kJ/h";
SET
c1.DP = 100 * "kPa";
OPTIONS
mode = "steady";
time = [0:20:1000];
end