#*------------------------------------------------------------------- * 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 pfr * * * Adiabatic Production of Acetic Anhydride with a PFR * * Based on Example 8-6 of Elements of Chemical Reaction Engineering * Second Edition H. Scott Fogler * * *-------------------------------------------------------------------- * * This sample file needs VRTherm (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Rafael de P. Soares * Paula B. Staudt * $Id: sample_pfr.mso 814 2009-08-05 19:02:18Z rafael $ *--------------------------------------------------------------------*# using "reactors/pfr"; FlowSheet PFR_AceticAnhydride PARAMETERS PP as Plugin (Brief="Physical Properties", Type = "PP", Components = ["acetone", "ketene", "methane" ], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES s1 as source; Reac as pfr; CONNECTIONS s1.Outlet to Reac.Inlet; SET Reac.NDisc = 15; Reac.L = 2.28 * 'm'; # Area was chosen to match the original example data Reac.Across = 1.27*'m^3'/Reac.L; # Only one reaction Reac.NReac = 1; # Reaction 1: acetone -> ketene + methane Reac.stoic(:,1) = [-1, 1, 1]; SPECIFY # Feed specification s1.Fw = 8000 * 'kg/h'; s1.T = 1035 * 'K'; s1.P = 1.6 * 'atm'; s1.Composition = [0.98, 0.01, 0.01]; # Adiabatic Reac.q = 0 * 'J/s'; EQUATIONS for z in [1:Reac.NDisc] do "Reaction Rate = k*C(1)" Reac.r(1,z) = exp(34.34 - (34222 * 'K') / Reac.str(z).T)*'1/s' * Reac.C(1,z); "Heat of reaction" Reac.Hr(1,z) = -80.77 * 'kJ/mol'; "Pressure Drop (no pressure drop)" Reac.str(z+1).P = Reac.str(z).P; end INITIAL for z in [2:Reac.NDisc+1] do Reac.str(z).T = Reac.Inlet.T; Reac.str(z).z(1:NComp) = Reac.Inlet.z(1:NComp); end OPTIONS Dynamic = true; TimeStep = 0.05; TimeEnd = 10; #GuessFile = "PFR_AceticAnhydride"; #Dynamic = false; # Requires a GuessFile from a dynamic simulation end