using "mixers_splitters/sepComp"; FlowSheet Sample_sepComp_n PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; DEVICES stream as stream_therm; sep as sepComp_n; CONNECTIONS stream to sep.Inlet; SET PP.Components = [ "isobutane", "n-pentane"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; sep.mainComp = 1; sep.NOutlet = 3; SPECIFY stream.F = 30 * "kmol/h"; stream.P = 120 * "kPa"; stream.T = 290 * "K"; stream.z = [0.6, 0.4]; stream.v = 0; sep.Outlet(1).z(1) = 0.7; sep.Outlet(2).z(1) = 0.1; sep.frac(1) = 0.4; sep.frac(2) = 0.2; # sep.recovery(1) = 0.533333; # sep.recovery(2) = 0.033333; OPTIONS relativeAccuracy = 1e-7; end FlowSheet Sample_sepComp PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; DEVICES stream as streamTP; sep as sepComp; CONNECTIONS stream to sep.Inlet; SET PP.Components = [ "isobutane", "n-pentane"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; sep.mainComp = 1; SPECIFY stream.F = 30 * "kmol/h"; stream.P = 120 * "kPa"; stream.T = 290 * "K"; stream.z = [0.6, 0.4]; sep.Outlet1.z(1) = 0.7; sep.frac = 0.4; # sep.recovery = 0.533333; OPTIONS relativeAccuracy = 1e-7; end