Ejercicio 8-1 Ejemplo-Transferencia de Calor

Descargar como docx, pdf o txt
Descargar como docx, pdf o txt
Está en la página 1de 14

Ejercicio 8-1(ejemplo)-Yunus Cengel, transferencia de calor-tercera edicin Entra agua a 15C y a razn de 0.

3 kg/s en un tubo delgado de cobre, de 2.5 cm de dimetro interno, que forma parte de un intercambiador de calor y se calienta por medio de vapor que se condensa en el exterior a 120 C. Si el coeficiente de transferencia de calor promedio es de 800 W/m2. C, determine la longitud requerida del tubo para calentar el agua hasta 115C. Solucin La solucin se basa en el intercambiador de calor de tubo y casco: Temperatura caliente de salida, C

Temperatura de salida del condensado, C

Temperatura fra de entrada del lquido, C

Se calienta agua por medio de vapor en un tubo circular. Se desea determinar la longitud requerida del tubo para calentar el agua hasta una temperatura especfica. Suposiciones: 1234Existen condiciones de operacin estacionaria. Las propiedades del fluido son constantes. El coeficiente de transferencia de calor por conveccin es constante. La resistencia a la conduccin del tubo de cobre es despreciable, de modo que la temperatura superficial interior del mismo es igual a la temperatura de condensacin del vapor.

Propiedades El calor especifico del agua a la temperatura media de la masa de (15 + 115)/2=65C es de 4187 J/kg. C Al conocer las temperaturas de admisin y de salida del agua se determina que la razn de transferencia de calor es: ( ) ( )( )( )

La diferencia logartmica de temperatura es:

El rea superficial de transferencia de calor es:

( Entonces la longitud requerida del tubo queda:

)(

Cdigo del programa por computadora en Script, MATLAB:

% --- Executes on button press in pushbutton8. function pushbutton8_Callback(hObject, eventdata, handles) m=str2num(get(handles.edit5,'String'));% flujo masico de liquido de entrada Cp=str2num(get(handles.edit7,'String'));% capacidad calorifica del liquido a temperatura promedio(entrada y salida) Te=str2num(get(handles.edit1,'String'));% temperatura de salida de agua caliente en el tubo Ti=str2num(get(handles.edit6,'String'));% temperatura de entrada de agua fria en el tubo Ts=str2num(get(handles.edit4,'String'));% temperatura de la superficie exterior donde sale el condensado Di=str2num(get(handles.edit3,'String'));% diametro interno de la tuberia del intercambiador de calor h=str2num(get(handles.edit2,'String')); % coeficiente promedio de transferencia de calor del sistema en el intercambiador de calor Tm=(Te+Ti)/2;% temperatura promedio del liquido entrante, al intercambiador de calor Q=m*Cp*(Te-Ti);% calor del liquido de entrada VTe=Ts-Te; % diferencia de temperatura entre la superficie y la salida caliente VTi=Ts-Ti; % diferencia de temperatura entre la superficie y la entrada fria VTln=(VTe-VTi)/log(VTe/VTi); % diferencia logaritmica de temperaturaa As=Q/(h*VTln);% area superficial de transferencia de calor D=Di/100; % diametro interior en metros L=As/(3.1416*D); %longitud de tuberia requerida para al intercambiador de calor

disp('================================================================'); disp(' SIMULACION EN EL INTERCAMBIADOR DE CALOR '); disp('================================================================'); fprintf('El flujo masico de entrada del liquido(kg/s) es: %.2f\n',m); fprintf('La temperatura de ingreso del liquido frio(C) es: %.2f\n',Ti); fprintf('La temperatura de salida del liquido caliente(C) es: %.2f\n',Te); fprintf('La temperatura promedio del liquido de entrada(C): %.2f\n',Tm); fprintf('La razon de transferencia de calor del liquido(W) es: %.2f\n',Q); fprintf('Diferencia logaritmica de temperatura(C) es: %.2f\n',VTln); fprintf('Area superficial de transferencia de calor es: %.2f\n',As); fprintf('Longitud requerida de tubo del intercambiador de calor(m)es: %.2f\n',L); disp('================================================================');

Corriendo resultados:

=================================================================== SIMULACION EN EL INTERCAMBIADOR DE CALOR =================================================================== El flujo masico de entrada del liquido(kg/s) es: 0.30 La temperatura de ingreso del liquido frio(C) es: 15.00 La temperatura de salida del liquido caliente(C) es: 115.00 La temperatura promedio del liquido de entrada(C): 65.00 La razon de transferencia de calor del liquido(W) es: 125610.00 Diferencia logaritmica de temperatura(C) es: 32.85 Area superficial de transferencia de calor es: 4.78 Longitud requerida de tubo del intercambiador de calor(m)es: 60.86

====================================================================

Codigo del programa en GUIDE, MATLAB:


function varargout = TRANSFERENCIADECALOR2(varargin) % TRANSFERENCIADECALOR2 M-file for TRANSFERENCIADECALOR2.fig % TRANSFERENCIADECALOR2, by itself, creates a new TRANSFERENCIADECALOR2 or raises the existing % singleton*. % % H = TRANSFERENCIADECALOR2 returns the handle to a new TRANSFERENCIADECALOR2 or the handle to % the existing singleton*. % % TRANSFERENCIADECALOR2('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in TRANSFERENCIADECALOR2.M with the given input arguments. % % TRANSFERENCIADECALOR2('Property','Value',...) creates a new TRANSFERENCIADECALOR2 or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before TRANSFERENCIADECALOR2_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to TRANSFERENCIADECALOR2_OpeningFcn via varargin. % % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one % instance to run (singleton)". % % See also: GUIDE, GUIDATA, GUIHANDLES % Edit the above text to modify the response to help TRANSFERENCIADECALOR2 % Last Modified by GUIDE v2.5 21-May-2013 16:56:45 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @TRANSFERENCIADECALOR2_OpeningFcn, ... 'gui_OutputFcn', @TRANSFERENCIADECALOR2_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 TRANSFERENCIADECALOR2 is made visible. function TRANSFERENCIADECALOR2_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 TRANSFERENCIADECALOR2 (see VARARGIN) % Choose default command line output for TRANSFERENCIADECALOR2 handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes TRANSFERENCIADECALOR2 wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. function varargout = TRANSFERENCIADECALOR2_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;

% --- Executes during object creation, after setting all properties.

function edit1_Callback(hObject, eventdata, handles) % hObject handle to edit1 (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 edit1 as text % str2double(get(hObject,'String')) returns contents of edit1 as a double

% --- Executes during object creation, after setting all properties.

function edit1_CreateFcn(hObject, eventdata, handles) % hObject handle to edit1 (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 edit2_Callback(hObject, eventdata, handles) % hObject handle to edit2 (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 edit2 as text % str2double(get(hObject,'String')) returns contents of edit2 as a double

% --- Executes during object creation, after setting all properties. function edit2_CreateFcn(hObject, eventdata, handles) % hObject handle to edit2 (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 edit3_Callback(hObject, eventdata, handles) % hObject handle to edit3 (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 edit3 as text % str2double(get(hObject,'String')) returns contents of edit3 as a double

% --- Executes during object creation, after setting all properties. function edit3_CreateFcn(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO)

% eventdata % handles called

reserved - to be defined in a future version of MATLAB empty - handles not created until after all CreateFcns

% 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 edit4_Callback(hObject, eventdata, handles) % hObject handle to edit4 (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 edit4 as text % str2double(get(hObject,'String')) returns contents of edit4 as a double

% --- Executes during object creation, after setting all properties. function edit4_CreateFcn(hObject, eventdata, handles) % hObject handle to edit4 (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 edit5_Callback(hObject, eventdata, handles) % hObject handle to edit5 (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 edit5 as text % str2double(get(hObject,'String')) returns contents of edit5 as a double

% --- Executes during object creation, after setting all properties. function edit5_CreateFcn(hObject, eventdata, handles) % hObject handle to edit5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB

% handles called

empty - handles not created until after all CreateFcns

% 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 edit6_Callback(hObject, eventdata, handles) % hObject handle to edit6 (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 edit6 as text % str2double(get(hObject,'String')) returns contents of edit6 as a double

% --- Executes during object creation, after setting all properties. function edit6_CreateFcn(hObject, eventdata, handles) % hObject handle to edit6 (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 edit7_Callback(hObject, eventdata, handles) % hObject handle to edit7 (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 edit7 as text % str2double(get(hObject,'String')) returns contents of edit7 as a double

% --- Executes during object creation, after setting all properties. function edit7_CreateFcn(hObject, eventdata, handles) % hObject handle to edit7 (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 pushbutton5. function pushbutton5_Callback(hObject, eventdata, handles) Te=str2num(get(handles.edit1,'String'));% temperatura de salida de liquido caliente en el tubo Ti=str2num(get(handles.edit6,'String'));% temperatura de entrada de liquido frio en el tubo Tm=(Te+Ti)/2;% temperatura promedio del liquido entrante, al intercambiador de calor if Te==Ti errordlg('NO EXISTE TRANSFERENCIA DE CALOR','MENSAJE DE ERROR'); return end set(handles.text9,'String',Tm); warndlg('A ESTA TEMPERATURA ELIGA EL Cp','MENSAJE DE AVISO');

% hObject % eventdata % handles

handle to pushbutton5 (see GCBO) reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA)

% --- Executes on button press in pushbutton6. function pushbutton6_Callback(hObject, eventdata, handles) m=str2num(get(handles.edit5,'String'));% flujo masico de liquido de entrada Cp=str2num(get(handles.edit7,'String'));% capacidad calorifica del liquido a temperatura promedio(entrada y salida) Te=str2num(get(handles.edit1,'String'));% temperatura de salida de agua caliente en el tubo Ti=str2num(get(handles.edit6,'String'));% temperatura de entrada de agua fria en el tubo if Te==Ti errordlg('NO EXISTE TRANSFERENCIA DE CALOR','MENSAJE DE ERROR'); return end Q=m*Cp*(Te-Ti); set(handles.text10,'String',Q); % hObject % eventdata % handles handle to pushbutton6 (see GCBO) reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA)

% --- Executes on button press in pushbutton7. function pushbutton7_Callback(hObject, eventdata, handles)

m=str2num(get(handles.edit5,'String'));% flujo masico de liquido de entrada Cp=str2num(get(handles.edit7,'String'));% capacidad calorifica del liquido a temperatura promedio(entrada y salida) Te=str2num(get(handles.edit1,'String'));% temperatura de salida de agua caliente en el tubo Ti=str2num(get(handles.edit6,'String'));% temperatura de entrada de agua fria en el tubo Ts=str2num(get(handles.edit4,'String'));% temperatura de la superficie exterior donde sale el condensado Di=str2num(get(handles.edit3,'String'));% diametro interno de la tuberia del intercambiador de calor h=str2num(get(handles.edit2,'String')); % coeficiente promedio de transferencia de calor del sistema en el intercambiador de calor % la transferencia de calor por el liquido Q=m*Cp*(Te-Ti); % La diferencia media logaritmica de temperatura es: VTe=Ts-Te; VTi=Ts-Ti; VTln=(VTe-VTi)/log(VTe/VTi); % diferencia logaritmica %El area superficial de transferencia de calor es: As=Q/(h*VTln); % La longitud necesaria del tubo dentro del intercambiador de calor es: D=Di/100; L=As/(3.1416*D); set(handles.text11,'String',L);

% hObject % eventdata % handles

handle to pushbutton7 (see GCBO) reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA)

% --- Executes on button press in pushbutton8. function pushbutton8_Callback(hObject, eventdata, handles) m=str2num(get(handles.edit5,'String'));% flujo masico de liquido de entrada Cp=str2num(get(handles.edit7,'String'));% capacidad calorifica del liquido a temperatura promedio(entrada y salida) Te=str2num(get(handles.edit1,'String'));% temperatura de salida de agua caliente en el tubo Ti=str2num(get(handles.edit6,'String'));% temperatura de entrada de agua fria en el tubo Ts=str2num(get(handles.edit4,'String'));% temperatura de la superficie exterior donde sale el condensado Di=str2num(get(handles.edit3,'String'));% diametro interno de la tuberia del intercambiador de calor h=str2num(get(handles.edit2,'String')); % coeficiente promedio de transferencia de calor del sistema en el intercambiador de calor Tm=(Te+Ti)/2;% temperatura promedio del liquido entrante, al intercambiador de calor Q=m*Cp*(Te-Ti);% calor del liquido de entrada VTe=Ts-Te; % diferencia de temperatura entre la superficie y la salida caliente

VTi=Ts-Ti; % diferencia de temperatura entre la superficie y la entrada fria VTln=(VTe-VTi)/log(VTe/VTi); % diferencia logaritmica de temperaturaa As=Q/(h*VTln);% area superficial de transferencia de calor D=Di/100; % diametro interior en metros L=As/(3.1416*D); %longitud de tuberia requerida para al intercambiador de calor

disp('=================================================================== ================'); disp(' SIMULACION EN EL INTERCAMBIADOR DE CALOR '); disp('=================================================================== ================'); fprintf('El flujo masico de entrada del liquido(kg/s) es: %.2f\n',m); fprintf('La temperatura de ingreso del liquido frio(C) es: %.2f\n',Ti); fprintf('La temperatura de salida del liquido caliente(C) es: %.2f\n',Te); fprintf('La temperatura promedio del liquido de entrada(C): %.2f\n',Tm); fprintf('La razon de transferencia de calor del liquido(W) es: %.2f\n',Q); fprintf('Diferencia logaritmica de temperatura(C) es: %.2f\n',VTln); fprintf('Area superficial de transferencia de calor es: %.2f\n',As); fprintf('Longitud requerida de tubo del intercambiador de calor(m)es: %.2f\n',L); disp('=================================================================== ================'); % hObject % eventdata % handles handle to pushbutton8 (see GCBO) reserved - to be defined in a future version of MATLAB structure with handles and user data (see GUIDATA)

% --- Executes during object creation, after setting all properties. % hObject handle to axes2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: place code in OpeningFcn to populate axes2

% --- Executes on button press in pushbutton9. function pushbutton9_Callback(hObject, eventdata, handles) close % hObject handle to pushbutton9 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% --- Executes during object creation, after setting all properties. function a_CreateFcn(hObject, eventdata, handles) A=imread('interc.png'); image(A) axis off % hObject handle to a (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: place code in OpeningFcn to populate a.

Corriendo resultados:

También podría gustarte