#*------------------------------------------------------------------- * 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 tanks model *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO(www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Paula B. Staudt * $Id: sample_tank.mso 213 2007-03-15 19:40:55Z rafael $ *--------------------------------------------------------------------*# using "stage_separators/tank"; FlowSheet tank_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = ["methane", "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; VARIABLES Qtank as heat_rate (Brief="Heat rate supplied to tank"); DEVICES t as tank; s as source; CONNECTIONS s.Outlet to t.Inlet; Qtank to t.Q; SPECIFY s.Outlet.P = 480 * 'kPa'; s.Outlet.T = 310 * 'K'; s.Outlet.F = 180 * 'kmol/h'; s.Outlet.z = 1.0/NComp; # s.v = 0.698; Qtank = 0 * 'J/s'; t.Outlet.F = 179 * 'kmol/h'; SET t.Across = 2.20 * 'm^2'; INITIAL t.Outlet.T = 305 *'K'; t.Level = 0.5 * 'm'; t.Outlet.z([1:2]) = 1.0/NComp; OPTIONS RelativeAccuracy = 1e-5; TimeStep = 100; TimeEnd = 1000; end FlowSheet tank_cylindrical_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = ["methane", "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; VARIABLES Qtank as heat_rate (Brief="Heat rate supplied to tank"); DEVICES t as tank_cylindrical; s as source; CONNECTIONS s.Outlet to t.Inlet; Qtank to t.Q; SPECIFY s.Outlet.F = 500 * 'kmol/h'; s.Outlet.T = 300 * 'K'; s.Outlet.P = 400 * 'kPa'; s.Outlet.z = 1/NComp; #s.v = 0.368; Qtank = 0 * 'J/s'; t.Outlet.F = 490 * 'kmol/h'; SET t.radius = 0.9 * 'm'; t.L = 7.12 * 'm'; INITIAL t.Outlet.T = 280*'K'; t.Level = 1 * 'm'; t.Outlet.z([1:2]) = 1.0/NComp; OPTIONS RelativeAccuracy = 1e-5; TimeStep = 100; TimeEnd = 1000; end