#*------------------------------------------------------------------- * 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 mixer *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Maurício Carvalho Maciel * $Id: sample_mixer.mso 366 2007-09-12 19:41:20Z bicca $ *--------------------------------------------------------------------*# using "mixers_splitters/mixer"; FlowSheet SampleMixer PARAMETERS PP as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene", "methane" ], LiquidModel = "PR", VapourModel = "PR"); NComp as Integer; DEVICES stream1 as source; stream2 as source; mixer1 as mixer; SET NComp = PP.NumberOfComponents; mixer1.Ninlet = 2; CONNECTIONS stream1.Outlet to mixer1.Inlet_mixer(1); stream2.Outlet to mixer1.Inlet_mixer(2); SPECIFY stream1.Outlet.F = 20 * 'kmol/h'; stream1.Outlet.P = 120 * 'kPa'; stream1.Outlet.T = 400 * 'K'; stream1.Outlet.z = [0.5, 0.1, 0.4]; stream2.Outlet.F = 10 * 'kmol/h'; stream2.Outlet.P = 120 * 'kPa'; stream2.Outlet.T = 290 * 'K'; stream2.Outlet.z = [0.5, 0.1, 0.4]; OPTIONS Dynamic = false; NLASolver( RelativeAccuracy = 1e-6 ); end