#*--------------------------------------------------------------------- * This file is property of the author and cannot be used, copyed * or modified without permission. * * Copyright (C) 2002-2004 the author *---------------------------------------------------------------------- * Author: Rafael de Pelegrini Soares * $Id: sample_streams.mso 1 2006-06-20 17:33:53Z rafael $ *---------------------------------------------------------------------- * * EMSO sample file. * * Simple flowsheet with some streams. * *--------------------------------------------------------------------*# 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 = "PR"; PP.VapourModel = "PR"; PP.Components = [ "n-butane", "benzene", "n-octane" ]; 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 "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"; outputLevel = "high"; end