chemical engineering problems

70
No. File name - Description Linear algebraic equations 1 Demo 1 - Steady-State Material Balances on a Separation Train Nonlinear algebraic equations 2 Demo 2 - Molar Volume and Compressibility factor from Van Der Waals Equat 3 Demo 3 - Three Pase Equilibrium - Bubble Point 4 Demo 4- Terminal velocity of falling particles 5 Demo 5 - Expediting the Solution of Sytems of Nonlinear Algebraic Equatio Polynomial regression 6 Demo 6a - Fitting Equations to Vapor Pressure Data - Polynomials Multiple linear regression 7 Demo 6b - Fitting Equations to Vapor Pressure Data - Clapeyron and Riede Multiple nonlinear regression 8 Demo 6c - Fitting Equations to Vapor Pressure Data - Antoine equation Ordinary differential equations 9 Demo 7- Heat Exchange in a Series of Tanks 10 Demo 8 - Shooting Method for Solving Two-Point Boundary Value Problems. Solved by Explicit Euler's method and goal seek 11 Demo 9 - Reversible , Exothermic Gas Phase Reaction in a Catalytic Reacto 12 Demo 10 - Dynamics of a heated tank Differential algebraic equations 13 Demo 11 - Binary Batch Distillation Solved by Implicit Euler's Method Partial diffential equation 14 Demo 12- Method of lines for Partial Differential Equations EXCEL SOLUTIONS TO THE CHEMICAL ENGINEERING PROBLEM SET Mathematical Software - Sessions 16 and 116* Mordechai Shacham, Department of Chemical Engineering, Ben-Gurion Univer of the Negev, Beer Sheva, Israel 84105 ([email protected]) Michael B. Cutlip, Department of Chemical Engineering, Box U-3222, Univer of Connecticut, Storrs, CT 06269-3222 ([email protected])

Upload: naveedgeo

Post on 17-Sep-2015

24 views

Category:

Documents


0 download

DESCRIPTION

Mathematical Software - Sessions 16 and 116*

TRANSCRIPT

ContentsNo.File name - DescriptionLinear algebraic equations1Demo 1 - Steady-State Material Balances on a Separation TrainNonlinear algebraic equations2Demo 2 - Molar Volume and Compressibility factor from Van Der Waals Equation (Pr=0.5)3Demo 3 - Three Pase Equilibrium - Bubble Point4Demo 4- Terminal velocity of falling particles5Demo 5 - Expediting the Solution of Sytems of Nonlinear Algebraic EquationsPolynomial regression6Demo 6a - Fitting Equations to Vapor Pressure Data - PolynomialsMultiple linear regression7Demo 6b - Fitting Equations to Vapor Pressure Data - Clapeyron and Riedel equationsMultiple nonlinear regression8Demo 6c - Fitting Equations to Vapor Pressure Data - Antoine equationOrdinary differential equations9Demo 7- Heat Exchange in a Series of Tanks10Demo 8 - Shooting Method for Solving Two-Point Boundary Value Problems.Solved by Explicit Euler's method and goal seek11Demo 9 - Reversible , Exothermic Gas Phase Reaction in a Catalytic Reactor12Demo 10 - Dynamics of a heated tankDifferential algebraic equations13Demo 11 - Binary Batch DistillationSolved by Implicit Euler's MethodPartial diffential equation14Demo 12- Method of lines for Partial Differential Equations

EXCEL SOLUTIONS TO THE CHEMICAL ENGINEERING PROBLEM SET

Mathematical Software - Sessions 16 and 116*

Mordechai Shacham, Department of Chemical Engineering, Ben-Gurion Universityof the Negev, Beer Sheva, Israel 84105 ([email protected])

Michael B. Cutlip, Department of Chemical Engineering, Box U-3222, Universityof Connecticut, Storrs, CT 06269-3222 ([email protected])

Demo 1Demo 1 - Steady-State Material Balances on a Separation TrainOriginal A matrixb (base case)-1%Xylene-2%xylene-1%Styrene-2%Styrene0.070.180.150.2410.510.39510.2910.510.50.040.240.10.6517.517.517.517.32517.150.540.420.540.128282828280.350.160.210.011414141414Inverse A matrixsolution (base case)-2.8104838711.2217741935-1.80241935486.060483871D126.2526.5526.8426.0425.8294.3629032258-29.8306451613-36.68548387141.1370967742B117.57.59-2.3222.7227.94-66.044354838720.245967741930.5282258065-36.2056451613D28.7515.6822.625.211.66-24.50806451619.36290322588.9596774194-9.9919354839B217.520.0722.6515.8614.22Molal FlowMole %Xylene4.987511.4DStyrene5.2512Toluene21.52549.2Benzene11.987527.4Total43.75100Molal FlowMole %Xylene5.512521BStyrene12.2546.67Toluene6.47524.67Benzene2.01257.67Total26.25100

Demo 2Demo 2 - Molar Volume and Compressibility factor from Van Der Waals EquationPart a - Solution for P=56 (atm) and T = 450 KEquationsInitial valuesSolution1ConstantsP = 56565656R = 0.082060.082060.082060.08206T = 450450450450Tc = 405.5405.5405.5405.5Pc = 111.3111.3111.3111.3FunctionsPr = P/Pc0.503140.503140.50314a = 27*(R^2*Tc^2/Pc)/644.196954.196954.19695b = R*Tc/(8*Pc)0.037370.037370.03737UnknownV0.70.70.57489EquationsZ = P*V/(R*T)1.061551.061550.87183f(V) = (P+a/(V^2))*(V-b)-R*T = 05.855765.855768.4999E-071Solution is obtained by Goal Seek(see under Tools dropdown menu) by setting the valueof the cell b14 at zero while changing cell b4Demo 2 - Molar Volume and Compressibility factor from Van Der Waals EquationPart b - Solution for Pr = 1, 2, 4, 10, 20ParameterPr1241020FunctionP = Pr*Pc111.3222.6445.211132226UnknownV10.233510.077270.060650.050880.04618EquationsZ = P*V/(R*T)0.703810.465780.731261.533412.78348f(V) = (P+a/(V^2))*(V-b)-R*T = 03.9402E-067.6045E-072.2077E-066.1840E-086.9615E-091Solution is obtained by Goal Seek(see under Tools dropdown menu) by setting the valueof the cell which contains the value of f(V) at zero while changing the cell which contains the value of V

Demo 3Demo 3 - Three Phase Equilibrium - Bubble PointEquationsInitial valuesSolution1Solution2ConstantsA = 1.7;1.71.71.70.7054310618B = 0.7;0.70.70.70.1779556981z1 = 0.2;0.20.20.20.3743915788z2 = 0.8;0.80.80.81.06Unknownsx11000.02269822260.552347277x12110.68674610562.63x21110.97729805975x22000.31325086971.5t10010088.53777237631.5beta0.80.80.73300147960.1530837848Functions of the unknownsp1 = 10^(7.62231-1417.9/(191.15+t));565.3426070855565.3426070855357.0494306460.4201773594p2 = 10^(8.10765-1750.29/(235+t));763.6664853284763.6664853284498.65769815420.2422216613gamma11 = 10^(A*x21*x21/((A*x11/B+x21)^2));50.118723362750.118723362733.36643250230.0001074354gamma21 = 10^(B*x11*x11/((x11+B*x21/A)^2));111.00460556160.0007723965gamma12 = 10^(A*x22*x22/((A*x12/B+x22)^2));111.1028201770.0005268022gamma22 = 10^(B*x12*x12/((x12+B*x22/A)^2));5.01187233635.01187233633.13422559150.0000008857k11 = gamma11*p1/760;37.281907539137.281907539115.6756127995k21 = gamma21*p2/760;1.00482432281.00482432280.6591503907k12 = gamma12*p1/760;0.74387185140.74387185140.5181069951k22 = gamma22*p2/760;5.03605122635.03605122632.0564548934y1 = k11*x11;000.3558085493y2 = k21*x21;1.00482432281.00482432280.6441863979f(1) = x11*(beta+(1-beta)*k11/k12)-z1 ;-0.2-0.2-0.0000016721f(2) = x12*k12-x11*k11 ;0.74387185140.7438718514-0.0000005881f(3) = x21*(beta+(1-beta)*k21/k22)-z2 ;0.03990524630.0399052463-0.0000015427f(4) = x22*k22-x21*k21 ;-1.0048243228-1.0048243228-0.000000114f(5) = x11-y1+x21-y2 ;-0.0048243228-0.00482432280.0000013352f(6) = (x11-x12)+(x21-x22) ;00-0.0000006929Sum of squares of errorssum=f1^2+f2^2+f3^2+f4^2+f5^2+f6^21.60463295381.604632953801Solution is obtained by Solver (see under Tools dropdown menu) by searching minimumof the cell containing the variable sum(b32) while changing x11,x12,x21,x22,t and beta

Demo 4Demo 4- Terminal velocity of falling particlesPart aPart bEquationsInitial valuesSolution1EquationsInitial valuesSolution1Constantsrho = 994.6;994.6994.6994.6g = 9.80665;9.806659.806659.80665rhop = 1800;180018001800Dp = 0.208e-3;0.0002080.0002080.000208vis = 8.931e-4;0.00089310.00089310.0008931ParameterAcceleration (*g)111303030Unknownvt0.0250.0250.01578244870.0250.0250.2060214756Functions of the unknownRe = Dp*vt*rho/vis;5.79097525475.79097525473.65583079415.79097525475.790975254747.722610687CD= if (Re