Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given that A = [ - 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0

Given that A =[-1,0,0,0,0,0,0,0,1,0,0,0,-1,-1 ; 0,-1,0,0,0,0,0,0,0,1,0,0,-1,0; 0,0,-1,0,0,0,0,0,0,0,1,0,1,-1 ; 0,0,0,-1,0,0,0,0,0,0,0,1,0,1 ; 1,0,0,0,-1,0,0,0,-1,0,0,0,0,0; 0,1,0,0,0,-1,0,0,0,-1,0,0,0,0; 0,0,1,0,0,0,-1,0,0,0,-1,0,0,0; 0,0,0,1,0,0,0,-1,0,0,0,-1,0,0; 0,0,0,0,0,0,0,0,-0.9,0,0,0,1,1; 0,0,0,0,0,1,0,0,0,-1,0,0,0,0; 0,0,0.85,0,0,0,0,0,0,0,-1,0,0,0; 0,0,0,-0.65,0,0,0,0,0,0,0,1,0,0; 0.1,0,0,0,-1,0,0,0,0,0,0,0,0,0; 0,0,0,0,0,0,0,0,0,0,0,0,-0.3,0.7];
and
B =[-10 ; -20 ; 0; 0; 0; 0; 0; 0; 9; 0; 0; 0; 0; 0];
Where Ax = B :
- write a MATLAB, user-defined function that will solve the set of equations using the Gauss Seidel method. Compare how this performs against the results generated using MATLAB's in-built functions.
-Test your MATLAB code to study the range of possible solutions, i.e. solutions for which realistic solutions are possible (for example, negative flowrates can be solutions, but are not possible).
- Try and expand your MATLAB code to develop a code that would handle a more complicate Flowsheet balance -( each unknown in the balance represents an unknown ffrom a process flow diagram ie edit amount of inputs, unknowns etc)(arbitrary number of reactions , for example, or additional units of equipment).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Momentum Heat And Mass Transfer

Authors: James Welty, Gregory L. Rorrer, David G. Foster

6th Edition

1118947460, 978-1118947463

More Books

Students also viewed these Chemical Engineering questions

Question

a score of 70 or higher on the test?

Answered: 1 week ago