#*--------------------------------------------------------------------- * 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. * *---------------------------------------------------------------------- * Samples of a stoichiometric reactor *---------------------------------------------------------------------- * * This sample file needs VRTherm (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * * There are three parallel reactions involved: * (1) C4H6(1,3-butadiene) + H2 --> C4H8(1-butene) * (2) C4H6(1,3-butadiene) + H2 --> C4H8(cis-2-butene) * (3) C4H6(1,3-butadiene) + H2 --> C4H8(trans-2-butene) * *---------------------------------------------------------------------- * Author: Rodolfo Rodrigues * $Id$ *--------------------------------------------------------------------*# using "reactors/stoic"; #*---------------------------------------------------------------------- * only vapour phase and * the extents of reactions are known *---------------------------------------------------------------------*# FlowSheet sample_stoic_extent_vap PARAMETERS PP as Plugin(Brief="External physical properties", Type="PP", Components = ["1,3-butadiene", "hydrogen", "1-butene", "cis-2-butene", "trans-2-butene"], LiquidModel = "IdealLiquid", VapourModel = "Ideal"); NComp as Integer; DEVICES Fin as source; R as stoic_extent_vap; CONNECTIONS Fin.Outlet to R.Inlet; SET NComp = PP.NumberOfComponents; R.NReac = 3; R.stoic(:,1) = [-1, -1, 1, 0, 0]; # (1) R.stoic(:,2) = [-1, -1, 0, 1, 0]; # (2) R.stoic(:,3) = [-1, -1, 0, 0, 1]; # (3) SPECIFY Fin.Outlet.F = 1000*'kmol/h'; Fin.Outlet.z = [0.25, 0.75, 0, 0, 0]; Fin.Outlet.P = 10*'kgf/cm^2'; Fin.Outlet.T = 500*'K'; R.Outlet.F = 1000*'kmol/h'*sqrt(R.Level/'m'); R.Outlet.P = 10*'kgf/cm^2'; R.Q = 0*'W'; R.extent = [85, 65, 75]*'kmol/h'; R.Across = 5*'m^2'; INITIAL R.Outletm.T = 500*'K'; R.M = [25, 75, 0, 0, 0]*'kmol'; OPTIONS TimeStep = 5; TimeEnd = 150; end #*---------------------------------------------------------------------- * only vapour phase and * the conversion of a key component is known *---------------------------------------------------------------------*# FlowSheet sample_stoic_conv_vap PARAMETERS PP as Plugin(Brief="External physical properties", Type="PP", Components = ["1,3-butadiene", "hydrogen", "1-butene", "cis-2-butene", "trans-2-butene"], LiquidModel = "IdealLiquid", VapourModel = "Ideal"); NComp as Integer; DEVICES Fin as source; R as stoic_conv_vap; CONNECTIONS Fin.Outlet to R.Inlet; SET NComp = PP.NumberOfComponents; R.NReac = 3; R.KComp = 1; # 1,3-butadiene R.stoic(:,1) = [-1, -1, 1, 0, 0]; # (1) R.stoic(:,2) = [-1, -1, 0, 1, 0]; # (2) R.stoic(:,3) = [-1, -1, 0, 0, 1]; # (3) SPECIFY Fin.Outlet.F = 1000*'kmol/h'; Fin.Outlet.z = [0.25, 0.75, 0, 0, 0]; Fin.Outlet.P = 10*'kgf/cm^2'; Fin.Outlet.T = 500*'K'; R.Outlet.F = 1000*'kmol/h'*sqrt(R.Level/'m'); R.Outlet.P = 10*'kgf/cm^2'; R.Q = 0*'W'; R.kconv = 0.9; R.Across = 5*'m^2'; OPTIONS Dynamic = false; end