Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

% See also: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help energybalance % Last Modified by GUIDE v2.5 14-Dec-2019

% See also: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help energybalance % Last Modified by GUIDE v2.5 14-Dec-2019 04:32:36 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @energybalance_OpeningFcn, ... 'gui_OutputFcn', @energybalance_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before energybalance is made visible. function energybalance_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to energybalance (see VARARGIN) % Choose default command line output for energybalance handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes energybalance wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = energybalance_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output; function input1_Callback(hObject, eventdata, handles) % hObject handle to input1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of input1 as text % str2double(get(hObject,'String')) returns contents of input1 as a double % --- Executes during object creation, after setting all properties. function input1_CreateFcn(hObject, eventdata, handles) % hObject handle to input1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function input2_Callback(hObject, eventdata, handles) % hObject handle to input2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of input2 as text % str2double(get(hObject,'String')) returns contents of input2 as a double % --- Executes during object creation, after setting all properties. function input2_CreateFcn(hObject, eventdata, handles) % hObject handle to input2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function input3_Callback(hObject, eventdata, handles) % hObject handle to input3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of input3 as text % str2double(get(hObject,'String')) returns contents of input3 as a double % --- Executes during object creation, after setting all properties. function input3_CreateFcn(hObject, eventdata, handles) % hObject handle to input3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function input4_Callback(hObject, eventdata, handles) % hObject handle to input4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of input4 as text % str2double(get(hObject,'String')) returns contents of input4 as a double % --- Executes during object creation, after setting all properties. function input4_CreateFcn(hObject, eventdata, handles) % hObject handle to input4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end function input5_Callback(hObject, eventdata, handles) % hObject handle to input5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of input5 as text % str2double(get(hObject,'String')) returns contents of input5 as a double % --- Executes during object creation, after setting all properties. function input5_CreateFcn(hObject, eventdata, handles) % hObject handle to input5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end % --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, eventdata, handles) % hObject handle to pushbutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) m_1=str2double(get(handles.input1,'string')); m_2=str2double(get(handles.input2,'string')); m_3=str2double(get(handles.input3,'string')); m_4=str2double(get(handles.input4,'string')); m_5=str2double(get(handles.input5,'string')); n_input=m_1/44.05; n_input2=m_2/46.07; n_input3=m_3/18.01528; n_input4=m_4/28.01; n_input5=m_5/16.04; set(handles.n_input,'string',n_input) set(handles.n_input2,'string',n_input2) set(handles.n_input3,'string',n_input3) set(handles.n_input4,'string',n_input4) set(handles.n_input5,'string',n_input5) H1=n_input*2777.62801; H2=n_input2*8.8928; H3=n_input3*4.2224; H4=n_input4*1.63027; H5=n_input5*2.03804; Delta_H1=- (H1+H2+H3+H4+H5); h1=n_input*-3345.3077; h2=n_input2*-10.322; h3=n_input3*-4.901; Delta_h1=-(h1+h2+h3); set(handles.n_input,'string',n_input) set(handles.n_input2,'string',n_input2) set(handles.n_input3,'string',n_input3) set(handles.n_input4,'string',n_input4) set(handles.n_input5,'string',n_input5) set(handles.e_input1,'string',Delta_H1) set(handles.e_input2,'string',Delta_h1)

ABOVE IS THE MATLAB CODING WHICH HAVE ERRORS. I NEED YOUR HELP THE OUTPUT WILL BE LIKE FOLLOWING PICTURE

image text in transcribed

energybalance Energy Balance Feed of Absorber input o O Acetaldehydes Ethanol Water Methane input input kg/hr kg/hr kg/hr kg/hr kg/hr 0 0 kmother kmovhr krohr kimoVhr krohr input 0 input 0 Heat change at both Unit Absorber 0 kJ/hr Distillation Column ki/hr Calculate THANK YOU Figure 5: Energy Balance Coding energybalance Energy Balance Feed of Absorber 789 kg/hr kmoVhr Acetaldehydes Ethanol 456 kmoVhr 17.9115 9.89798 43.1301 3.92717 Water kg/hr kg/hr kg/hr kg/hr 777 CO 110 kmoVhr kmoVhr kmoVhr Methane 95 5.92269 Heat change at both Unit Absorber -50040 kJ/hr Distillation Column 60232.9 kJ/hr Calculate THANK YOU Figure 6: Energy Balance input energybalance Energy Balance Feed of Absorber input o O Acetaldehydes Ethanol Water Methane input input kg/hr kg/hr kg/hr kg/hr kg/hr 0 0 kmother kmovhr krohr kimoVhr krohr input 0 input 0 Heat change at both Unit Absorber 0 kJ/hr Distillation Column ki/hr Calculate THANK YOU Figure 5: Energy Balance Coding energybalance Energy Balance Feed of Absorber 789 kg/hr kmoVhr Acetaldehydes Ethanol 456 kmoVhr 17.9115 9.89798 43.1301 3.92717 Water kg/hr kg/hr kg/hr kg/hr 777 CO 110 kmoVhr kmoVhr kmoVhr Methane 95 5.92269 Heat change at both Unit Absorber -50040 kJ/hr Distillation Column 60232.9 kJ/hr Calculate THANK YOU Figure 6: Energy Balance input

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Where should the checks take place? L025

Answered: 1 week ago

Question

What is the difference between narcolepsy and sleep apnea?

Answered: 1 week ago

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago