#*------------------------------------------------------------------- * 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 tray *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Paula B. Staudt * $Id: sample_tray.mso 522 2008-05-21 23:21:12Z arge $ *--------------------------------------------------------------------*# using "stage_separators/tray"; FlowSheet tray_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "n-pentane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES t1 as tray; feed as source; inL as liquid_stream; inV as vapour_stream; CONNECTIONS feed.Outlet to t1.Inlet; inL to t1.InletL; inV to t1.InletV; SPECIFY feed.Outlet.F = 113.4 * 'kmol/h'; feed.Outlet.T = 291 * 'K'; feed.Outlet.P = 1.66 * 'atm'; feed.Outlet.z = [0.5, 0.5]; inL.P = 165 * 'kPa'; inL.T = 310 * 'K'; inL.F = 61.99 * 'kmol/h'; inL.z = [0.1641, 0.8359]; inV.P = 150 * 'kPa'; inV.T = 321 * 'K'; inV.z = [0.0584, 0.9416]; t1.Emv = 1; t1.OutletV.F = 147.1 * 'kmol/h'; SET t1.V = 4 * 'ft^3'; t1.Ah = 0.394 * 'ft^2'; t1.lw = 20.94 * 'in'; t1.hw = 0.125 * 'ft'; t1.Q = 0 * 'kW'; t1.beta = 1; t1.alfa = 4; t1.Ap = 3.94 * 'ft^2'; t1.VapourFlowModel = "Feehery_Fv"; #"Roffel_Fv" "Klingberg" "Wang_Fv" "Elgue" or "Reepmeyer"-> default t1.w = 0.5 * '1/m^4'; t1.LiquidFlowModel = "Wang_Fl"; # "Feehery_Fl" "Roffel_Fl" "Olsen" or "default" INITIAL t1.OutletL.T = 290 *'K'; t1.Level = 0.9 * t1.hw; t1.OutletL.z(1) = 0.5; OPTIONS TimeEnd = 100; end FlowSheet packedStage_Test_1 PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "n-pentane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES t1 as packedStage; feed as source; inL as liquid_stream; inV as vapour_stream; CONNECTIONS feed.Outlet to t1.Inlet; inL to t1.InletL; inV to t1.InletV; SPECIFY feed.Outlet.F = 113.4 * 'kmol/h'; feed.Outlet.T = 291 * 'K'; feed.Outlet.P = 1.66 * 'atm'; feed.Outlet.z = [0.5, 0.5]; inL.P = 165 * 'kPa'; inL.T = 315 * 'K'; inL.F = 61.99 * 'kmol/h'; inL.z = [0.1641, 0.8359]; inV.F = 201.25 * 'kmol/h'; inV.P = 150 * 'kPa'; inV.T = 315 * 'K'; inV.z = [0.0584, 0.9416]; t1.OutletV.P = 145 * 'kPa'; SET #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999. t1.Q = 0 * 'kW'; t1.V = 0.8 * 'm^2' * 0.4 * 'm'; t1.d = 1.009 * 'm'; t1.Cpo = 0.763; t1.e = 0.951; t1.a = 112.6 * 'm^2/m^3'; t1.hs = 0.4 * 'm'; t1.Qsil = 10; INITIAL t1.OutletL.T = 315 *'K'; t1.ML = 0.25 * 'kmol'; t1.OutletL.z(1) = 0.1641; OPTIONS DAESolver(File="sundials"); TimeStep = 0.001; TimeEnd = 0.1; end FlowSheet packedStage_Test_2 PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "isobutane", "n-pentane", "propylene", "benzene", "isobutene" ], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES t1 as packedStage; feed as source; inL as liquid_stream; inV as vapour_stream; CONNECTIONS feed.Outlet to t1.Inlet; inL to t1.InletL; inV to t1.InletV; SPECIFY feed.Outlet.F = 0 * 'kmol/h'; feed.Outlet.T = 300 * 'K'; feed.Outlet.P = 1.66 * 'atm'; feed.Outlet.z = [0.226, 0.425, 0.035, 0.025, 0.289]; inL.F = 71.21 * 'kmol/h'; inL.P = 2.22 * 'atm'; inL.T = 297.6 * 'K'; inL.z = [0.226, 0.425, 0.035, 0.025, 0.289]; inV.F = 175.3 * 'kmol/h'; inV.P = 2.3062 * 'atm'; inV.T = 308.3 * 'K'; inV.z = [0.265, 0.233, 0.150, 0.014, 0.338]; t1.deltaP = 0.01 * 'atm'; SET #Metal Pall Ring - nominal packing size 50 mm - Billet and Schultes, 1999. t1.Q = 0 * 'kW'; t1.Cpo = 0.763; t1.e = 0.951; t1.a = 112.6 * 'm^2/m^3'; t1.V = 4 * 'ft^2' * 1 * 'ft'; t1.hs = 1 * 'ft'; t1.d = 2.26 * 'ft'; t1.Qsil = 10; INITIAL t1.OutletL.T = 290 *'K'; t1.ML = 0.02 * 'kmol'; t1.OutletL.z([1:4]) = [0.226, 0.425, 0.035, 0.025]; OPTIONS DAESolver(File="sundials"); TimeStep = 10; TimeEnd = 100; end FlowSheet trayRate_Test PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = [ "n-pentane", "benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES t1 as trayRate; feed as source; feedV as source; inL as liquid_stream; inV as vapour_stream; CONNECTIONS feed.Outlet to t1.Inlet; feedV.Outlet to t1.InletFV; inL to t1.InletL; inV to t1.InletV; SPECIFY feed.Outlet.F = 116 * 'kmol/h'; feed.Outlet.T = 280 * 'K'; feed.Outlet.P = 150 * 'kPa'; feed.Outlet.z = [0.5, 0.5]; feedV.Outlet.F = 0 * 'kmol/h'; feedV.Outlet.T = 280 * 'K'; feedV.Outlet.P = 150 * 'atm'; feedV.Outlet.z = [0.5, 0.5]; inL.P = 150 * 'kPa'; inL.T = 290 * 'K'; inL.F = 90 * 'kmol/h'; inL.z = [0.1641, 0.8359]; inV.P = 150 * 'kPa'; inV.T = 500 * 'K'; inV.z = [0.0584, 0.9416]; # inV.F = 62 * 'kmol/h'; t1.OutletV.F = 120 * 'kmol/h'; # t1.OutletL.F = 120 * 'kmol/h'; t1.interf.a = 40 * 'm^2'; t1.interf.htL = 10.01 * 'kW/m^2/K'; t1.interf.htV = 0.025 * 'kW/m^2/K'; t1.interf.kL = 0.00933 * 'm/s'; t1.interf.kV = 0.000236 * 'm/s'; SET t1.V = 4 * 'ft^3'; t1.Ah = 0.394 * 'ft^2'; t1.lw = 20.94 * 'in'; t1.hw = 0.125 * 'ft'; t1.beta = 0.6; t1.alfa = 4; t1.Ap = 3.94 * 'ft^2'; t1.Q = 0 * 'kW'; INITIAL t1.OutletL.T = 295 *'K'; t1.OutletV.T = 290 *'K'; t1.Level = 0.9 * t1.hw; t1.OutletL.z(1) = 0.5; t1.OutletV.z(1) = 0.6; t1.MV = 1.0*'mol' ; OPTIONS TimeStep = 0.1; TimeEnd = 10; TimeUnit = 's'; GuessFile = "trayRate_Test.rlt"; end