You are on page 1of 23

PROGRAMA DE CARACTERIZACION DE UN COLECTOR SOLAR

SERGIO AUGUSTO CACERES PAREDES COD: 2080470 GRUPO: B1 PROFESOR: OMAR GELVES

FACULTAD DE CIECIAS FISICO-MECANICAS INGENIERIA MECANICA SISTEMAS TERMICOS 2012

OBJETIVO GENERAL Entender y comprender el comportamiento de un colector trmico por medio de una caracterizacin con ciertas condiciones inciales. OBJETIVOS ESPECIFICOS Realizar un programa por medio de Matlab que nos permita comprender el comportamiento de un colector. Realizar una grafica de transmisividad efectiva contra los distintos ngulos de incidencia que se pueden tomar. Realizar una grafica de F en funcin del flujo msico a travs de un tubo. Realizar una grafica de Fr en funcin del flujo msico. Entender y comprender cada una de las formulas que se utilizar teniendo en cuenta un calor de incidencia en la superficie reflectiva constante.

CODIGO DEL PROGRAMA A continuacin se presenta la interfaz de entrada de datos:

Como se puede observar existen una serie de parmetro que dependen del fabricante de los diferentes tipos de colectores solares. Los datos fueron sacados de alguno colectores ya existente en el mercado.

Para efectos prcticos, en el clculo de coeficiente por conveccin del fluido interno se asumi propiedades a 35 grados centgrados y se miro por medio del Reynolds si era un flujo laminar o un flujo forzado y se aplicaron las respectivas formulas. A continuacin se coloca el cdigo de matlab y en la ltima parte se colocan las graficas.
function varargout = referenciavidrio(varargin) % REFERENCIAVIDRIO M-file for referenciavidrio.fig % REFERENCIAVIDRIO, by itself, creates a new REFERENCIAVIDRIO or raises the existing % singleton*. % % H = REFERENCIAVIDRIO returns the handle to a new REFERENCIAVIDRIO or the handle to % the existing singleton*. % % REFERENCIAVIDRIO('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in REFERENCIAVIDRIO.M with the given input arguments. % % REFERENCIAVIDRIO('Property','Value',...) creates a new REFERENCIAVIDRIO or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before referenciavidrio_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to referenciavidrio_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 referenciavidrio % Last Modified by GUIDE v2.5 28-Feb-2012 00:45:44 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @referenciavidrio_OpeningFcn, ... 'gui_OutputFcn', @referenciavidrio_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 referenciavidrio is made visible. function referenciavidrio_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 referenciavidrio (see VARARGIN) % Choose default command line output for referenciavidrio handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes referenciavidrio wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. function varargout = referenciavidrio_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 n1_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 n1_CreateFcn(hObject, eventdata, handles) % hObject handle to edit2 (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 n2_Callback(hObject, eventdata, handles) % hObject handle to n2 (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 n2 as text % str2double(get(hObject,'String')) returns contents of n2 as a double

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

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

% --- Executes during object creation, after setting all properties. function coe_extin_CreateFcn(hObject, eventdata, handles) % hObject handle to coe_extin (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) n1=str2double(get(handles.n1,'string')); n2=str2double(get(handles.n2,'string')); esp_vid=str2double(get(handles.esp_vid,'string')); k_e=str2double(get(handles.coe_extin,'string')); i=1; for theta_1=0:pi/36:pi/2; %incrementos de 5 grados hasta 90 grados

theta_2=asin((n1*sin(theta_1))/n2);

rhoper=((tan(theta_2-theta_1))^2)/((tan(theta_1+theta_2))^2); %reflectividad perpendicular rhopara=((sin(theta_2-theta_1))^2)/((sin(theta_1+theta_2))^2); %reflectividad paralela

transmi_r=(0.5)*(((1-rhoper)/(1+rhoper))+((1-rhopara)/(1+rhopara))); %transimisividad reflectiva transmi_a=exp(-((k_e*esp_vid)/(cos(theta_2)))); transmi_efectiva=(transmi_r*transmi_a); efectiva y(i)=transmi_efectiva; x(i)=theta_1*((180)/pi); i=i+1; %tranmisividad

end axes(handles.axes2) plot(x,y,'r')

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

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

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

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

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

% --- Executes during object creation, after setting all properties. function esp_vidd_CreateFcn(hObject, eventdata, handles) % hObject handle to esp_vidd (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 abs_placa_Callback(hObject, eventdata, handles) % hObject handle to abs_placa (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 abs_placa as text

% str2double(get(hObject,'String')) returns contents of abs_placa as a double

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

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

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

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

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

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

% --- Executes during object creation, after setting all properties. function emisivi_placa_CreateFcn(hObject, eventdata, handles)

% hObject % eventdata % handles called

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

% --- Executes during object creation, after setting all properties. function prand_CreateFcn(hObject, eventdata, handles) % hObject handle to prand (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 pushbutton2. function pushbutton2_Callback(hObject, eventdata, handles) % hObject handle to pushbutton2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) n1=1; n2=1.5; sigma=(5.67*10^(-8)); qsb=str2double(get(handles.qsb,'string')); teta_1=str2double(get(handles.teta_1,'string')); k_ee=str2double(get(handles.k_ee,'string')); esp_vidd=str2double(get(handles.esp_vidd,'string')); abs_placa=str2double(get(handles.abs_placa,'string')); rho_difuso=str2double(get(handles.rho_difuso,'string')); vel_viento=str2double(get(handles.vel_viento,'string')); beta=str2double(get(handles.beta,'string')); t_placa=str2double(get(handles.t_placa,'string')); t_ambiente=str2double(get(handles.t_ambiente,'string')); emisivi_placa=str2double(get(handles.emisivi_placa,'string')); emisivi_cubierta=str2double(get(handles.emisivi_cubierta,'string')); l_a=str2double(get(handles.l_a,'string')); l_l=str2double(get(handles.l_l,'string')); l_z=str2double(get(handles.l_z,'string')); w=str2double(get(handles.w,'string')); k_aislante=str2double(get(handles.k_aislante,'string')); k_placa=str2double(get(handles.k_placa,'string'));

espesor_placa=str2double(get(handles.espesor_placa,'string')); d_exterior=str2double(get(handles.d_exterior,'string')); l_x=str2double(get(handles.l_x,'string')); d_interno=str2double(get(handles.d_interno,'string')); cp_agua=str2double(get(handles.cp_agua,'string')); visco_dinamica=str2double(get(handles.visco_dinamica,'string')); k_agua=str2double(get(handles.k_agua,'string')); prand=str2double(get(handles.prand,'string')); i=1; for masa_agua=0.019:0.002:0.1; %incrementos de la masa de agua en 0.002 [kg/s] grados hasta 90 grados teta_1=teta_1*((pi)/(180)); teta_2=asin((n1*sin(teta_1))/n2);

rhoper=((tan(teta_2-teta_1))^2)/((tan(teta_1+teta_2))^2); %reflectividad perpendicular rhopara=((sin(teta_2-teta_1))^2)/((sin(teta_1+teta_2))^2); %reflectividad paralela

transmi_r=(0.5)*(((1-rhoper)/(1+rhoper))+((1-rhopara)/(1+rhopara))); %transimisividad reflectiva transmi_a=exp(-((k_ee*esp_vidd)/(cos(teta_2)))); transmi_efectiva=(transmi_r*transmi_a); efectiva %tranmisividad

zeta_absortiva=(((transmi_efectiva)*(abs_placa))/(1-(rho_difuso)*(1abs_placa))); %transmitancia abosortividad h_viento=5.7+3.6*(vel_viento); cierta velocidad s=(qsb)*(zeta_absortiva); %coeficiento de conveccion del aire a

%energia que llega a la placa %constante para la formula de Ul %constante para la formula de Ul %constante para la formula de Ul

c=520*(1-(0.000051*(beta)^2)); f_cte=1+0.089*h_viento; e_cte=0.430*(1-(100/t_placa)); t_placa=t_placa+273; t_ambiente=t_ambiente+273;

u_t=(((((1)/((c/t_placa)*(((t_placat_ambiente)/(1+f_cte))^(e_cte))))+((1)/(h_viento)))^(1))+(((sigma)*(t_placa+t_ambiente)*(((t_placa)^(2))+((t_placa)^(2))))/((e misivi_placa)+((0.0059)*(h_viento))+((2+f_cte+((0.133)/(emisivi_placa)))/ (emisivi_cubierta))-(1)))); %Ut a_cubierta=l_x*l_z; a_lateral=l_a*l_z; %area de la cubierta %area lateral del aislante

u_b=k_aislante/l_a; %Ub u_lateral=k_aislante/l_l; %U lateral u_bt=((u_b)+(u_lateral)*(a_lateral/a_cubierta)); u_l=u_t+u_bt; m=((((u_l)/(k_placa*espesor_placa)))^(0.5)); %Ubt %U total %constante m %f

f=((tanh((m)*((m-d_exterior)/(2))))/((m)*((m-d_exterior)/(2))));

reynold=(((4)*(masa_agua))/((pi)*(d_interno)*(visco_dinamica))); %numero de Reynold while(reynold<2300) %si se trata de flujo laminar h_fluido=((3.66*k_agua)/(d_interno)); %coeficiente de conveccion interna del agua end while(reynold>2300) %si se trata de flujo turbulento f_nieliski=((((0.79)*(ln(reynold)))-1.64)^(-2)); %Nieliski nusset=(((f_nieliski/8)*(reynold1000)*(prand))/((1)+((12.7)*((f_nieliski/8)^(0.5))*(((prand)^(2/3))1)))); %nusset h_fluido=(((nusset)*(k_agua))/(d_interno)); %coeficiente de conveccion interna del agua end f_prima=(((1)/(u_l))/((w)*(((1)/((((wd_exterior)*(f))+d_exterior)*(u_l)))+((1)/((h_fluido)*(pi)*(d_interno)))) )); %f prima g=((masa_fluido)/(u_l)); %flujo masico por unidad de area

f_r=((((g)*(cp_agua))/(u_l))*(1-((exp)^((((f_prima)*(u_l))/((g)*(cp_agua))))))); calor f(i)=f_r f_pri(i)=f_prima g(i)=g i=i+1; end axes(handles.axes3) plot(f,g,'r') axes(handles.axes4) plot(f_pri,g,'b')

%factor de remocion de

GRAFICAS

Como se puede ver en la grafica se cumple que la transmisividad va disminuyendo conforme el ngulo de incidencia del rayo se va inclinando o aumentando mas.

You might also like