#*------------------------------------------------------------------- * 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: Paula B. Staudt * $Id: sample_flash.mso 633 2008-09-24 00:26:30Z bicca $ *--------------------------------------------------------------------*# using "stage_separators/flash"; # exemplo baseado nos dados do artigo do Gani 1985. FlowSheet flash_Test 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; VARIABLES Q as energy_source (Brief="Heat supplied"); SET NComp = PP.NumberOfComponents; DEVICES fl as flash; s1 as source; CONNECTIONS s1.Outlet to fl.Inlet; Q.OutletQ to fl.InletQ; EQUATIONS fl.OutletLiquid.F = 400*sqrt(fl.Geometry.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.OutletVapour.F = 68.5 * 'kmol/h'; Q.OutletQ = 0 * 'kJ/h'; SET fl.Geometry.Lenght = 10 * 'm'; fl.Geometry.Diameter = 2 * 'm'; fl.Geometry.Orientation = "vertical"; # fl.Geometry.Orientation = "horizontal"; INITIAL fl.OutletLiquid.T = 338 * 'K'; fl.Geometry.Level = 0.4 * 'm'; fl.OutletLiquid.z([1:5]) = 0.1; OPTIONS Dynamic = true; TimeStep = 0.1; TimeEnd = 5; TimeUnit = 'h'; end # exemplo baseado nos dados do artigo do Gani 1985. FlowSheet flashSteady_Test 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; VARIABLES Q as energy_source (Brief="Heat supplied"); SET NComp = PP.NumberOfComponents; DEVICES fl as flash_steady; s1 as source; CONNECTIONS s1.Outlet to fl.Inlet; Q.OutletQ to fl.InletQ; SPECIFY s1.F = 496.3 * 'kmol/h'; s1.T = 338 * 'K'; s1.P = 507.1 * 'kPa'; s1.Composition = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283]; fl.OutletLiquid.P = 2.5 * 'atm'; #Q.OutletQ = 0 * 'kJ/h'; fl.OutletLiquid.T = 315.06 * 'K'; OPTIONS Dynamic = false; end CaseStudy caseFlash as flashSteady_Test VARY s1.F = [496.3, 496.31]*'kmol/h'; RESPONSE fl.OutletVapour.F'kmol/h'; end CaseStudy caseFlash2 as flashSteady_Test VARY s1.Composition(1) = [ 0.2379, 0.3 , 0.35]; s1.F = [496.3, 496.31]*'kmol/h'; RESPONSE fl.OutletVapour.z(1); fl.OutletVapour.F'kmol/h'; end