#*------------------------------------------------------------------- * 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 with Multistream Heat Exchanger - counter and cocurrent flow *-------------------------------------------------------------------- * * This sample file needs VRTherm (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Gerson B. Bicca * $Id: sample_Mheatex.mso 135 2007-01-25 20:00:26Z bicca $ *--------------------------------------------------------------------*# using "heat_exchangers/Mheatex"; FlowSheet Mheatex_cocurrent DEVICES Mheater as Mheatex; streamhot1 as liquid_stream; streamcold1 as liquid_stream; streamcold2 as liquid_stream; PARAMETERS PP as Plugin (File="vrpp"); NComp as Integer (Brief="Number Components"); SET PP.LiquidModel = "PR"; PP.VapourModel = "PR"; PP.Components = ["water","methanol","benzene","toluene"]; NComp = PP.NumberOfComponents; Mheater.Nhot = 1; Mheater.Ncold = 2; Mheater.FlowDirection = "cocurrent"; CONNECTIONS streamcold1 to Mheater.InletCold(1); streamhot1 to Mheater.InletHot(1); streamcold2 to Mheater.InletCold(2); SPECIFY #===================================================================== # Correction Factor #===================================================================== Mheater.Method.Fc = 1; #===================================================================== # Cold Streams #===================================================================== streamcold1.F = 500 * 'kmol/h'; streamcold1.P = 1 * 'atm'; streamcold1.T = 293 * 'K'; streamcold1.z = [1,0,0,0]; streamcold2.F = 50 * 'kmol/h'; streamcold2.P = 1 * 'atm'; streamcold2.T = 315 * 'K'; streamcold2.z = [0,0.1,0.65,0.25]; #===================================================================== # Hot Streams #===================================================================== streamhot1.F = 100* 'kmol/h'; streamhot1.P = 1 * 'atm'; streamhot1.T = 400 * 'K'; streamhot1.z = [1,0,0,0]; #===================================================================== # Temperature Outlet #===================================================================== Mheater.OutletHot(1).T = 370*'K'; Mheater.OutletCold(2).T = 330*'K'; #===================================================================== # Pressure Outlet #===================================================================== Mheater.OutletHot(1).P = 1 * 'atm'; Mheater.OutletCold(1).P = 1 * 'atm'; Mheater.OutletCold(2).P = 1 * 'atm'; OPTIONS Dynamic = false; GuessFile = "GuessMheatex"; end FlowSheet Mheatex_counter DEVICES Mheater as Mheatex; streamhot1 as liquid_stream; streamcold1 as liquid_stream; streamcold2 as liquid_stream; PARAMETERS PP as Plugin (File="vrpp"); NComp as Integer (Brief="Number Components"); SET PP.LiquidModel = "PR"; PP.VapourModel = "PR"; PP.Components = ["water","methanol","benzene","toluene"]; NComp = PP.NumberOfComponents; Mheater.Nhot = 1; Mheater.Ncold = 2; Mheater.FlowDirection = "counter"; CONNECTIONS streamcold1 to Mheater.InletCold(1); streamhot1 to Mheater.InletHot(1); streamcold2 to Mheater.InletCold(2); SPECIFY #===================================================================== # Correction Factor #===================================================================== Mheater.Method.Fc = 1; #===================================================================== # Cold Streams #===================================================================== streamcold1.F = 500 * 'kmol/h'; streamcold1.P = 1 * 'atm'; streamcold1.T = 293 * 'K'; streamcold1.z = [1,0,0,0]; streamcold2.F = 50 * 'kmol/h'; streamcold2.P = 1 * 'atm'; streamcold2.T = 315 * 'K'; streamcold2.z = [0,0.1,0.65,0.25]; #===================================================================== # Hot Streams #===================================================================== streamhot1.F = 100* 'kmol/h'; streamhot1.P = 1 * 'atm'; streamhot1.T = 400 * 'K'; streamhot1.z = [1,0,0,0]; #===================================================================== # Temperature Outlet #===================================================================== Mheater.OutletHot(1).T = 370*'K'; Mheater.OutletCold(2).T = 330*'K'; #===================================================================== # Pressure Outlet #===================================================================== Mheater.OutletHot(1).P = 1 * 'atm'; Mheater.OutletCold(1).P = 1 * 'atm'; Mheater.OutletCold(2).P = 1 * 'atm'; OPTIONS Dynamic = false; GuessFile = "GuessMheatex"; end