#*------------------------------------------------------------------- * 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 tank cost model *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO(www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Núbia do Carmo Ferreira * $Id: sample_tank.mso 247 2007-04-24 13:44:18Z rafael $ *--------------------------------------------------------------------*# using "costs/tank_cost"; FlowSheet sample_tank_cost PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = ["methane", "isobutane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES t as tank_cost; s as source; Qtank as energy_source; CONNECTIONS s.Outlet to t.Inlet; Qtank.OutletQ to t.InletQ; SPECIFY s.P = 480 * 'kPa'; s.T = 310 * 'K'; s.F = 180 * 'kmol/h'; s.Composition = 1.0/NComp; Qtank.OutletQ = 0 * 'J/s'; t.Outlet.F = 179 * 'kmol/h'; SET t.Across = 2.9 * 'm^2'; t.Height = 3 * 'm'; #cost t.Material = "Stainless steel 316"; t.Cost(1,:) = [7.994,0.6637,-0.063088]; t.Cost(2,:) = [9.639,-0.1045,0.045355]; t.Cost(3,:) = [2.7,0,0]; INITIAL t.Outlet.T = 305 *'K'; t.Level = 0.5 * 'm'; t.Outlet.z([1:2]) = 1.0/NComp; OPTIONS TimeStep = 100; TimeEnd = 1000; end