#*------------------------------------------------------------------- * 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 88 2006-12-11 13:31:56Z paula $ *--------------------------------------------------------------------*# using "stage_separators/tank"; FlowSheet tank_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; SET PP.Components = ["methane", "isobutane", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; VARIABLES Qtank as heat_rate (Brief="Heat rate supplied to tank"); DEVICES t as tank; s as stream_therm; CONNECTIONS s to t.Inlet; Qtank to t.Q; SPECIFY s.P = 480 * "kPa"; s.T = 310 * "K"; s.F = 180 * "kmol/h"; s.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; time = [0:100:1000]; end FlowSheet tank_cylindrical_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; SET PP.Components = ["methane", "isobutane", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; VARIABLES Qtank as heat_rate (Brief="Heat rate supplied to tank"); DEVICES t as tank_cylindrical; s as stream_therm; CONNECTIONS s to t.Inlet; Qtank to t.Q; SPECIFY s.F = 500 * "kmol/h"; s.T = 300 * "K"; s.P = 400 * "kPa"; s.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; time = [0:100:1000]; end