#*------------------------------------------------------------------- * 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 86 2006-12-08 20:58:15Z paula $ *--------------------------------------------------------------------*# using "stage_separators/reboiler"; FlowSheet reboiler_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", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES r1 as reboiler; feed as stream_therm; s1 as stream_therm; CONNECTIONS feed to r1.Inlet; s1 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; s1.P = 185 * "kPa"; s1.T = 327.7 * "K"; s1.F = 180 * "kmol/h"; s1.z = [0.006061, 0.9939]; s1.v = 0.0; 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; time = [0:20:1000]; end FlowSheet reboilerSteady_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", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES r1 as reboilerSteady; s1 as stream_therm; CONNECTIONS s1 to r1.InletL; Q to r1.Q; SPECIFY s1.P = 185 * "kPa"; s1.T = 327.7 * "K"; s1.F = 180 * "kmol/h"; s1.z = [0.006061, 0.9939]; s1.v = 0.0; # Q = 3.7743e6 * "kJ/h"; r1.OutletV.T = 350 * "K"; SET r1.DP = 10 * "kPa"; OPTIONS relativeAccuracy = 1e-5; mode = "steady"; end