Question: !!!!!!! USING MATLAB !!!!!!!! !!!!!! USING MATLAB !!!!!!! The mass-balance equations for each tank state that the rate at which a chemical enters the tank

!!!!!!! USING MATLAB !!!!!!!!

!!!!!!! USING MATLAB !!!!!!!! !!!!!! USING MATLAB !!!!!!! The mass-balance equations for

!!!!!! USING MATLAB !!!!!!!

The mass-balance equations for each tank state that the rate at which a chemical enters the tank must equal the rate at which it leaves. The diagram shown illustrates an interconnected system of nine tanks, T_1 - T_9. All tanks except T_5 & T_9 receive inflow from an external source. All tanks receive inflow from at least one other tank. The concentration of chemical in flow into tank T_i is designated C_i and the flow rate from tank T_i to T_j is designated r_ij. Furthermore, the total flow into each tank must equal the flow out, r (from tank 9). For this system, the mass-balance equations are: For given flow rates and input concentrations, we can solve for the concentrations in the tanks. Write a MATLAB function named to solve for these concentrations using Gauss-Seidel, to an accuracy of 5 sig figs. The external flow rates are the input (row array of length 7). The concentrations are the output (row array of length 9). The internal flow rates and input concentrations are given in the Cody template. (Note: in the last equation, r-total outflow-is renamed to r90)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!