Problem 5 (35 points): As discussed in our last lecture, linear algebraic equations can arise in the solution of differe

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Problem 5 (35 points): As discussed in our last lecture, linear algebraic equations can arise in the solution of differe

Post by answerhappygod »

Problem 5 35 Points As Discussed In Our Last Lecture Linear Algebraic Equations Can Arise In The Solution Of Differe 1
Problem 5 35 Points As Discussed In Our Last Lecture Linear Algebraic Equations Can Arise In The Solution Of Differe 1 (147.87 KiB) Viewed 20 times
Problem 5 (35 points): As discussed in our last lecture, linear algebraic equations can arise in the solution of differential equations. The following differential equation results from a steady- state mass balance for a chemical in a one-dimensional canal, d²c 0 = D dc U dx kc dx2 = where x = distance along the canal (m), c= concentration, t = time, D = diffusion coefficient, U fluid velocity, and k = a first-order decay rate. - = = (a) Convert this differential equation to an equivalent system of simultaneous algebraic equations using centered difference approximations for the derivatives. (b) Develop a MATLAB function to solve these equations from x = 0 to L and return the resulting distances and concentrations. The first line of your function should be function (x,c] = reactor(D, U, K, CO, CL, L, dx) (c) Develop a MATLAB script that invokes this function and then plots the results. (d) Test your MATLAB script for the following parameters: L = 10 m, Ax = 0.5 m, D = 2 m²/d, U= 1 m/d, k = 0.2/d, c(0) = 80 mg/L, and c(10) = 20 mg/L. = =
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply