#*------------------------------------------------------------------- * 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 97 2007-01-03 13:31:49Z rafael $ *--------------------------------------------------------------------*# using "stage_separators/flashPH"; FlowSheet FlashPHTest PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET PP.Components = ["methane", "isobutene", "benzene"]; PP.LiquidModel = "IdealLiquid"; PP.VapourModel = "Ideal"; NComp = PP.NumberOfComponents; DEVICES fl as FlashPHSteady; s1 as stream_therm; CONNECTIONS s1 to fl.Inlet; Q to fl.Q; SPECIFY s1.F = 496.3 * "kmol/h"; s1.T = 338 * "K"; s1.P = 507.1 * "kPa"; s1.v = 0.1380; s1.z = [0.1, 0.7,0.2]; fl.OutletL.P = 2.5 * "atm"; Q = 0 * "kJ/h"; #fl.OutletL.T = 315.06 * "K"; OPTIONS mode = "steady"; end