#*------------------------------------------------------------------- * 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 reboilers model *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Paula B. Staudt * $Id: sample_reboiler.mso 213 2007-03-15 19:40:55Z rafael $ *--------------------------------------------------------------------*# using "stage_separators/reboiler"; FlowSheet reboiler_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET NComp = PP.NumberOfComponents; DEVICES r1 as reboiler; feed as stream; s1 as source; CONNECTIONS feed to r1.Inlet; s1.Outlet to r1.InletL; Q to r1.Q; SPECIFY feed.F = 0 * 'kmol/h'; feed.T = 328 * 'K'; feed.P = 180 * 'kPa'; feed.z = [0.5, 0.5]; feed.v = 0; feed.h = 0 * 'kJ/kmol'; s1.Outlet.P = 185 * 'kPa'; s1.Outlet.T = 327.7 * 'K'; s1.Outlet.F = 180 * 'kmol/h'; s1.Outlet.z = [0.006061, 0.9939]; r1.OutletL.F = 68.4 * 'kmol/h'; r1.OutletV.F = 111.6 * 'kmol/h'; Q = 3.7743e6 * 'kJ/h'; SET r1.V = 2 * 'm^3'; r1.Across = 1 * 'm^2'; INITIAL r1.OutletL.T = 320 *'K'; r1.Level = 1 * 'm'; r1.OutletL.z(2) = 0.9; OPTIONS RelativeAccuracy = 1e-5; TimeEnd = 1000; TimeStep = 20; end FlowSheet reboilerSteady_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET NComp = PP.NumberOfComponents; DEVICES r1 as reboilerSteady; s1 as source; CONNECTIONS s1.Outlet to r1.InletL; Q to r1.Q; SPECIFY s1.Outlet.P = 185 * 'kPa'; s1.Outlet.T = 327.7 * 'K'; s1.Outlet.F = 180 * 'kmol/h'; s1.Outlet.z = [0.006061, 0.9939]; # Q = 3.7743e6 * 'kJ/h'; r1.OutletV.T = 350 * 'K'; SET r1.DP = 10 * 'kPa'; OPTIONS RelativeAccuracy = 1e-5; Dynamic = false; end