#*------------------------------------------------------------------- * 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_stream.mso 124 2007-01-19 17:54:55Z rafael $ *--------------------------------------------------------------------*# using "streams"; # exemplo baseado nos dados do artigo do Gani 1985. FlowSheet stream_test PARAMETERS PP as Plugin(Brief="Physical Properties", File="vrpp"); NComp as Integer; SET PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES s1 as source; s2 as sink; CONNECTIONS s1.Outlet to s2.Inlet; SPECIFY s1.Outlet.F = 496.3 * "kmol/h"; s1.Outlet.T = 338 * "K"; #s1.Outlet.P = 507.1 * "kPa"; s1.Outlet.v = 0.12; s1.Outlet.z = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283]; OPTIONS RelativeAccuracy = 1e-4; AbsoluteAccuracy = 1e-8; Dynamic = false; TimeStep = 0.1; TimeEnd = 20; TimeUnit = "h"; end