Analysis of Liquid and Vapor Phase Compositions and Flow Rates in a Multicomponent System: A MATLAB Simulation
- Chemical Engineering
- 5 pages
- Shared May 2025
This solved assignment uses MATLAB simulations to analyze liquid and vapor phase compositions in multicomponent systems.
Preview 2 of 5 pages
See the first 2 pages exactly as they appear in the document.
Page 1 Read page 1 as text
Analysis of Liquid and Vapor Phase Compositions and Flow Rates in a Multicomponent System: A MATLAB Simulation Matlab code function project1(z,k,k_end,F,xLeft,xRight) % This program plot the output compositions and flow rates in both phases as % functions of K7 as K7 varying from 0.05 to 4.00 by taking n - component system % with the feed compositions , K - values, total feed rate, bracket interval % for roots and the range of k7( or nth k ) % Input:: % z values % k values % k_end in the form [a b] ; in this case its k7 [0.05 4] % F -- feed rate % xLeft : Initial Lower Guess % xRight : Initial Upper Guess % Output:: % Plot the output compositions and flow rates in both phases as % functions of K7 as K7 varies from 0.05 to 4.00. % Sample Test: % F = 1500; % z = [0.16,0.09,0.21,0.13,0.06,0.15,0.20]; % k = [3.52,1.92,1.22,0.84,0.43,0.08]; % k7 = 0.05:0.01:4; % xLeft = 0; % xRight = 1; % k_end = [0.05 4]; % project1(z,k,k_end,F,xLeft,xRight) % generating values of k7 in the given interval k7 = k_end(1):0.01:k_end(2); % check for no of inputs if nargin<6,error( 'minimum 6 input arguments required' ), end % declare the output variables root = zeros(1,length(k7)); V = zeros(1,length(k7)); L = zeros(1,length(k7)); x = zeros(length(k7),length(z)); y = zeros(length(k7),length(z)); for i=1:length(k7) k1 = [k,k7(i)]; root(i) = BracketBisect(z,k1,xLeft,xRight); V(i) = root(i)*F; L(i)=F - V(i); for j=1:length(z)
Page 2
3 more pages in the full document
Unlock it once and it stays in your library, ready to chat with or turn into flashcards.
Unlock the full documentMore Chemical Engineering study materials
See all
Textbook GuidesSolution Manual For Separation Process Engineering: Includes Mass Transfer Analysis, 3rd Edition
Chemical Engineering
477 pagesMay 2025
Textbook GuidesEssentials of Chemical Reaction Engineering, 2nd Edition Solution Manual
Chemical Engineering
506 pagesMay 2025
Textbook GuidesChemical Process Equipment Design Solution Manual
Chemical Engineering
257 pagesMay 2025
Textbook GuidesFundamental Concepts and Computations in Chemical Engineering Solution Manual
Chemical Engineering
47 pagesMay 2025
Textbook GuidesSolution Manual For Fluid Mechanics For Chemical Engineers With Microfluidics And Cfd, 2nd Edition
Chemical Engineering
549 pagesMay 2025
Textbook GuidesSolution Manual For Analysis, Synthesis And Design Of Chemical Processes, 4th Edition
Chemical Engineering
603 pagesMay 2025
Textbook GuidesSolution Manual For Introduction to Chemical Engineering Thermodynamics, 8th Edition
Chemical Engineering
6656 pagesMay 2025
Textbook GuidesSolution Manual for Analysis, Synthesis, and Design of Chemical Processes, 5th Edition
Chemical Engineering
634 pagesMay 2025
Study this document with CramX
Once it is in your library, every tool can work from it.

