#*------------------------------------------------------------------- * 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 condenser and condenserSteady *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Paula B. Staudt * $Id: sample_condenser.mso 313 2007-07-14 16:45:55Z arge $ *--------------------------------------------------------------------*# using "stage_separators/condenser"; using "mixers_splitters/splitter"; # condenser with splitter dividing liquid outlet FlowSheet condenser_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; VARIABLES Q as energy_source (Brief="Heat supplied"); SET NComp = PP.NumberOfComponents; DEVICES c1 as condenser; sp as splitter; s1 as source; CONNECTIONS s1.Outlet to c1.InletV; c1.OutletL to sp.Inlet; Q.OutletQ to c1.InletQ; SPECIFY s1.Outlet.P = 152 * 'kPa'; s1.Outlet.T = 298.6 * 'K'; s1.Outlet.F = 153 * 'kmol/h'; s1.Outlet.z = [0.664, 0.336]; sp.frac = 0.444445; c1.OutletV.F = 0 * 'kmol/h'; c1.OutletL.F = 153 * 'kmol/h'; Q.OutletQ.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 TimeEnd = 1000; TimeStep = 20; end FlowSheet condenserSteady_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; VARIABLES Q as energy_source (Brief="Heat supplied"); SET NComp = PP.NumberOfComponents; DEVICES c1 as condenserSteady; s1 as source; CONNECTIONS s1.Outlet to c1.InletV; Q.OutletQ to c1.InletQ; SPECIFY s1.Outlet.P = 152 * 'kPa'; s1.Outlet.T = 298.6 * 'K'; s1.Outlet.F = 153 * 'kmol/h'; s1.Outlet.z = [0.664, 0.336]; Q.OutletQ.Q = 3.71e6 * 'kJ/h'; c1.DP = 100 * 'kPa'; OPTIONS Dynamic = false; end