Question: function [ A , b ] = Write a function: [ A , b ] = solveProcessGiven ( S R ) that returns a 3
function A bWrite a function:
solveProcessGiven
that returns a matrix variables including flow rates and extent of reaction variables, equations including AUx, and the RHS vector for
Homework Problem given SR the split ratio of the recycle flow rate to the product output flow rate, as an input parameter. constructMatrixsr
A b constructMatrixsr
A is a x matrix for the system of linear equations for the problem
b is the corresponding RHS vector.
Construct A
Follow the order of variables columns and the order of equations rows below in your matrix.
This is a template only. If you have any alternative way to construct the matrix like calling row and column indices, welcome to use it But follow the orders of vars and eqns.
Remember somewhere here you need to use the input variable sr for the split ratio ratio of the recycle flow rate to the product output flow rate
variable order
Str Str Str Str Str Str Str Str Str Str Str Reactor corresponding streamunit
M P B M P B M P B C D B C D C D C D B M P B M P B M P B E Evariable name
A ; Eq : M Mixer
Eq : P Mixer
Eq : B Mixer
Eq : M Reactor
Eq : P Reactor
Eq : B Reactor
Eq : C Reactor
Eq : D Reactor
Eq : M Separator
Eq : P Separator
Eq : B Separator
Eq : C Separator
Eq : D Separator
Eq : M Splitter
Eq : P Splitter
Eq : B Splitter
Eq : B Dist I
Eq : C Dist I
Eq : D Dist I
Eq : C Dist II
Eq : D Dist II
Eq : AUX : PB ratio in feed
Eq : AUX : PM ratio in feed
Eq : AUX : Benzene split at separator
Eq : AUX : Single pass conversion in reactor
Eq : AUX : Diisopropyl produced wrt cumene
Eq : AUX : Split ratio to recycle
Eq : AUX : Split ratio to recycle
Eq : AUX : Split ratio to recycle
; Eq : Specified flow rate for C
variable order
Str Str Str Str Str Str Str Str Str Str Str Reactor corresponding streamunit
M P B M P B M P B C D B C D C D C D B M P B M P B M P B E Evariable name
construct the corresponding RHS vector
b ;
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
