#*------------------------------------------------------------------- * 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 streams *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Rafael de Pelegrini Soares * $Id: sample_streams.mso 83 2006-12-08 20:29:34Z paula $ *--------------------------------------------------------------------*# using "streams"; FlowSheet SampleStreams PARAMETERS NComp as Integer(Default=5); DEVICES s1 as stream; SPECIFY s1.F = 10 * "kmol/h"; s1.T = 300 * "K"; s1.P = 1 * "atm"; s1.z = 1/NComp; s1.h = 5 * "J/kmol"; s1.v = 0.0; OPTIONS mode = "steady"; end FlowSheet SampleStreamsTherm PARAMETERS PP as CalcObject(Brief="Physical Properties", File="vrpp"); NComp as Integer; SET PP.LiquidModel = "IdealLiquid"; PP.VapourModel = "Ideal"; PP.Components = [ "isobutane", "benzene", "ethanol" ]; NComp = PP.NumberOfComponents; DEVICES sl as stream_therm; sv as stream_therm; SPECIFY sl.F = 10 * "kmol/h"; sl.T = 300 * "K"; sl.P = 100 * "kPa"; sl.z = [0.24596, 0.370278, 0.383762]; sl.v = 0.0; #liquid stream sv.F = 10 * "kmol/h"; #sv.h = 20248 * "J/mol"; sv.T = 300 * "K"; sv.P = 100 * "kPa"; #sv.z = [0.824212, 0.12577, 0.0500176]; sv.v = 1.0; #vapor stream EQUATIONS "Liquid-Vapour equilibrium" PP.VapourFugacityCoefficient(sv.T, sv.P, sv.z) * sv.z = PP.LiquidFugacityCoefficient(sl.T, sl.P, sl.z) * sl.z; OPTIONS #mode = "steady"; end