#*------------------------------------------------------------------- * 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 FlashPHSteady *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Rafael de P. Soares and Paula B. Staudt * $Id: sample_flashPH.mso 213 2007-03-15 19:40:55Z rafael $ *--------------------------------------------------------------------*# using "stage_separators/flashPH"; FlowSheet FlashPHTest PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = ["methane", "isobutene", "benzene"], LiquidModel = "IdealLiquid", VapourModel = "Ideal" ); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET NComp = PP.NumberOfComponents; DEVICES fl as FlashPHSteady; s1 as source; CONNECTIONS s1.Outlet to fl.Inlet; Q to fl.Q; SPECIFY s1.Outlet.F = 496.3 * 'kmol/h'; s1.Outlet.T = 338 * 'K'; s1.Outlet.P = 507.1 * 'kPa'; s1.Outlet.z = [0.1, 0.7,0.2]; fl.OutletL.P = 2.5 * 'atm'; Q = 0 * 'kJ/h'; #fl.OutletL.T = 315.06 * 'K'; OPTIONS Dynamic = false; end