#*------------------------------------------------------------------- * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. * * This LIBRARY is free software; you can distribute it and/or modify * it under the therms of the ALSOC FREE LICENSE as available at * http://www.enq.ufrgs.br/alsoc. * * EMSO Copyright (C) 2004 - 2007 ALSOC, original code * from http://www.rps.eng.br Copyright (C) 2002-2004. * All rights reserved. * * EMSO is distributed under the therms of the ALSOC LICENSE as * available at http://www.enq.ufrgs.br/alsoc. * *-------------------------------------------------------------------- * Sample file for model sepComp_n and sepComp *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Maurício Carvalho Maciel * $Id: sample_sepComp.mso 247 2007-04-24 13:44:18Z rafael $ *--------------------------------------------------------------------*# using "mixers_splitters/sepComp"; FlowSheet Sample_sepComp_n PARAMETERS PP as Plugin (Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR"); NComp as Integer; DEVICES Stream as source; sep as sepComp_n; CONNECTIONS Stream.Outlet to sep.Inlet; SET NComp = PP.NumberOfComponents; sep.mainComp = 1; sep.NOutlet = 3; SPECIFY Stream.Outlet.F = 30 * 'kmol/h'; Stream.Outlet.P = 120 * 'kPa'; Stream.Outlet.T = 290 * 'K'; Stream.Outlet.z = [0.6, 0.4]; 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 Dynamic = false; NLASolver( RelativeAccuracy = 1e-7 ); end FlowSheet Sample_sepComp PARAMETERS PP as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR"); NComp as Integer; DEVICES Stream as source; sep as sepComp; CONNECTIONS Stream.Outlet to sep.Inlet; SET NComp = PP.NumberOfComponents; sep.mainComp = 1; SPECIFY Stream.Outlet .F = 30 * 'kmol/h'; Stream.Outlet .P = 120 * 'kPa'; Stream.Outlet .T = 290 * 'K'; Stream.Outlet .z = [0.6, 0.4]; sep.Outlet1.z(1) = 0.7; sep.frac = 0.4; # sep.recovery = 0.533333; OPTIONS Dynamic = false; NLASolver( RelativeAccuracy = 1e-7 ); end