Simulate a module called SPLIT, which takes a feed stream (SF) and splits it into two streams

Question:

Simulate a module called SPLIT, which takes a feed stream (SF) and splits it into two streams (S1 and S2), each having the composition and temperature of the feed stream. A fraction Xi of the feed stream becomes stream S1 and a fraction (1 – X1) becomes S2. Up to four components may be present in the feed stream, so that each stream has associated with it five attributes: four component molar flow rates and the stream temperature. Test your simulation for a feed stream flowing at a rate of 150 mol/h at T = 315 K containing 35 mole% n-octane (A), 57% iso-octane (B), and the balance a chemically inert species (C), which is to be split into two streams in a 60:40 ratio.

(a) Write a spreadsheet to perform the simulation. Draw a flowchart on the spreadsheet and label each stream with the component flow rates and temperature. Include the split ratio (X1) in a separate cell and vary it to show its effect on the component flow rates in streams S1 and S2.

(b) Write a computer subprogram to simulate the module. The arguments of the subprogram should be SF, S1, and 52 (each five-membered arrays), X1, and N. the number of components in the feed stream (which may be any number from one to four). X1, N, and the elements of SF are input variables, and the elements of S1 and 52 are output variables. Write and run a calling program that assigns the test case values to the input variables, calls the module subprogram, and prints out the attributes of S1 and S2.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Elementary Principles of Chemical Processes

ISBN: 978-0471720638

3rd Edition

Authors: Richard M. Felder, Ronald W. Rousseau

Question Posted: