#*------------------------------------------------------------------- * 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 model flash and flashSteady *-------------------------------------------------------------------- * * This sample file needs VRTherm (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Núbia do Carmo Ferreira * $Id: sample_flash.mso 247 2007-04-24 13:44:18Z rafael $ *--------------------------------------------------------------------*# using "costs/flash_cost"; FlowSheet sample_flash_cost PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES fl as flash_cost; s1 as source; Q as energy_source; CONNECTIONS s1.Outlet to fl.Inlet; Q.OutletQ to fl.InletQ; EQUATIONS fl.OutletL.F = 400*sqrt(fl.Level/'m') * 'kmol/h'; SPECIFY s1.F = 496.3 * 'kmol/h'; s1.T = 338 * 'K'; s1.P = 507.1 * 'kPa'; s1.Composition = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283]; fl.OutletV.F = 68.5 * 'kmol/h'; Q.OutletQ = 0 * 'kJ/h'; SET fl.V = 50 * 'm^3'; fl.diameter = 2 * 'm'; fl.orientation = "vertical"; # fl.orientation = "horizontal"; #costs fl.flash_length = 6 * 'm'; fl.Div = 2 * 'm'; fl.Ts = 20 * 'mm'; fl.dens_mass_material = 7830 * 'kg/m^3'; fl.Dih = 2 * 'm'; fl.Material = "Stainless steell 304"; fl.Cost(1,:) = [8.114,-0.16449,0.04333]; fl.Cost(2,:) = [8.600,-0.21651,0.04576]; fl.Cost(3,:) = [1288.3,0,0]; fl.Cost(4,:) = [1017.0,0,0]; fl.Cost(5,:) = [0.8116,0,0]; fl.Cost(6,:) = [1.7,0,0];#For "Stainless steell 304" INITIAL fl.OutletL.T = 338 * 'K'; fl.Level = 0.4 * 'm'; fl.OutletL.z(1) = 0.1; fl.OutletL.z(2) = 0.1; fl.OutletL.z(3) = 0.1; fl.OutletL.z(4) = 0.1; fl.OutletL.z(5) = 0.1; OPTIONS Dynamic = true; TimeStep = 0.1; TimeEnd = 5; TimeUnit = 'h'; end