#*------------------------------------------------------------------- * 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 condenser and condenserSteady *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Paula B. Staudt * $Id: sample_condenser.mso 86 2006-12-08 20:58:15Z paula $ *--------------------------------------------------------------------*# using "stage_separators/condenser"; using "mixers_splitters/splitter"; # condenser with splitter dividing liquid outlet FlowSheet condenser_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET PP.Components = [ "isobutane", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES c1 as condenser; sp as splitter; s1 as stream_therm; CONNECTIONS s1 to c1.InletV; c1.OutletL to sp.Inlet; Q to c1.Q; SPECIFY s1.P = 152 * "kPa"; s1.T = 298.6 * "K"; s1.F = 153 * "kmol/h"; s1.z = [0.664, 0.336]; s1.v = 1.0; sp.frac = 0.444445; c1.OutletV.F = 0 * "kmol/h"; c1.OutletL.F = 153 * "kmol/h"; Q = -3.71e6 * "kJ/h"; SET c1.V = 2 * "m^3"; c1.Across = 1 * "m^2"; INITIAL c1.OutletL.T = 280 *"K"; c1.Level = 1 * "m"; c1.OutletL.z(1) = 0.65; OPTIONS time = [0:20:1000]; end FlowSheet condenserSteady_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET PP.Components = [ "isobutane", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES c1 as condenserSteady; s1 as stream_therm; CONNECTIONS s1 to c1.InletV; Q to c1.Q; SPECIFY s1.P = 152 * "kPa"; s1.T = 298.6 * "K"; s1.F = 153 * "kmol/h"; s1.z = [0.664, 0.336]; s1.v = 1.0; Q = 3.71e6 * "kJ/h"; c1.DP = 100 * "kPa"; OPTIONS mode = "steady"; time = [0:20:1000]; end