#*------------------------------------------------------------------- * 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 cooler *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Gerson B. Bicca * $Id: sample_cooler.mso 89 2006-12-11 15:26:11Z paula $ *--------------------------------------------------------------------*# using "heat_exchangers/heater"; FlowSheet Cooler_Project DEVICES cooler as Cooler; streamcold1 as stream_therm; streamcold2 as stream_therm; CONNECTIONS streamcold1 to cooler.Inlet(1); streamcold2 to cooler.Inlet(2); PARAMETERS PP as CalcObject (File="vrpp"); NComp as Integer; SET PP.LiquidModel = "RK"; PP.VapourModel = "RK"; PP.Components = ["water","ethanol"]; NComp = PP.NumberOfComponents; cooler.Ninlet = 2; SPECIFY streamcold1.F = 100 * "kmol/h"; streamcold1.P = 1 * "atm"; streamcold1.T = 100 * "K"; streamcold1.v = 0; streamcold1.z = [1,0]; streamcold2.F = 20* "kmol/h"; streamcold2.P = 1 * "atm"; streamcold2.T = 100 * "K"; streamcold2.v = 0; streamcold2.z = [0,1]; cooler.Outlet.T = 70*"K"; cooler.Outlet.P = 1 * "atm"; OPTIONS mode = "steady"; relativeAccuracy = 1e-8; end