#*------------------------------------------------------------------- * 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 cstr *-------------------------------------------------------------------- * * This sample file needs VRTherm (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Paula B. Staudt * $Id: sample_cstr.mso 82 2006-12-08 20:11:44Z paula $ *--------------------------------------------------------------------*# using "reactors/cstr"; FlowSheet cstr_PropyleneGlycol PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; R as Real(Default=8.3145, Unit="J/mol/K"); DEVICES s1 as stream_therm; Reac as cstr; SET PP.Components = ["1,2-propylene oxide", "methanol", "water", "sulfuric acid", "1,2-propylene glycol" ]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; Reac.NReac = 1; Reac.stoic = [-1, 0, -1, 0, 1]; EQUATIONS # Reac.Hr = -36400 * "Btu/lbmol" - 7 * "Btu/lbmol/degR" * (Reac.Fout.T - 528 * "degR"); # Reac.r = 16.96e12 / "h" * exp(- 32400 * "Btu/lbmol"/R/Reac.Fout.T) # * Reac.C(1); Reac.Hr = 0 * "Btu/lbmol"; Reac.r = 0 * "mol/l/s"; SPECIFY s1.F = 52126 * "mol/h"; s1.P = 1 * "atm"; s1.T = 534.67* "degR"; s1.z = [0.0468, 0.0783, 0.874, 0.0009, 0]; s1.v = 0.0; Reac.Vr = 300 * "gal"; Reac.Outlet.F= Reac.Inlet.F; "Adiabatic" Reac.q = 0 * "J/s"; Reac.Outlet.P= 1 * "atm"; CONNECTIONS s1 to Reac.Inlet; INITIAL Reac.Outlet.T = Reac.Inlet.T; Reac.Outlet.z = Reac.Inlet.z; OPTIONS time = [0:0.1:5]*"h"; end