Sunteți pe pagina 1din 3

DIMENSIONAMIENTO DEL NUMERO TOTAL DE PANELES EN SISTEMAS HIBRIDOS EN

EL PROGRAMA MATLAB.
INTEGRANTES:

 ALEXIS CALLOAPAZA QUISPE


 KENY WITNEY HCIPANA ANGLES
 SOFIA IRENE QUENTA MAMANI
function pblimpiar_Callback(hObject, eventdata, handles)
% hObject handle to pblimpiar (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% --- Executes on button press in pbcalcular.


function pbcalcular_Callback(hObject, eventdata, handles)
e_nec=str2double(get(handles.edenergianecesaria,'string'));
hsp=str2double(get(handles.edhorasolarpico,'string'));
p_max=str2double(get(handles.edpmax,'string'));
v_nom=str2double(get(handles.edvnom,'string'));
v_pm=str2double(get(handles.edvpm,'string'));
i_pm=str2double(get(handles.edipm,'string'));
v_os=str2double(get(handles.edvos,'string'));
i_sc=str2double(get(handles.edisc,'string'));
tension=get(handles.pptensionsistema,'value');
switch tension
case 1
serie=12/v_nom;
set(handles.edserie,'string',serie);
paralelo=((e_nec/12)/i_pm*hsp);
set(handles.edparalelo,'string',paralelo);
total=serie*paralelo;
set(handles.edtotalpaneles,'string',total);
unpanel=hsp*i_pm;
set(handles.edunpanel,'string',unpanel);
potenciacampo=total*p_max;
set(handles.edpotenciacampo,'string',potenciacampo);
intensidad=i_pm*paralelo;
set(handles.edintensidad,'string',intensidad);
case 2
serie=24/v_nom;
set(handles.edserie,'string',serie);
paralelo=(e_nec/24/i_pm*hsp);
set(handles.edparalelo,'string',paralelo);
total=serie*paralelo;
set(handles.edtotalpaneles,'string',total);
unpanel=hsp*i_pm;
set(handles.edunpanel,'string',unpanel);
potenciacampo=total*p_max;
set(handles.edpotenciacampo,'string',potenciacampo);
intensidad=i_pm*paralelo;
set(handles.edintensidad,'string',intensidad);
case 3
serie=48/v_nom;
set(handles.edserie,'string',serie);
paralelo=((e_nec/48)/i_pm*hsp);
set(handles.edparalelo,'string',paralelo);
total=serie*paralelo;
set(handles.edtotalpaneles,'string',total);
unpanel=hsp*i_pm;
set(handles.edunpanel,'string',unpanel);
potenciacampo=total*p_max;
set(handles.edpotenciacampo,'string',potenciacampo);
intensidad=i_pm*paralelo;
set(handles.edintensidad,'string',intensidad);

end

% hObject handle to pbcalcular (see GCBO)


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

function edintensidad_Callback(hObject, eventdata, handles)


% hObject handle to edintensidad (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 edintensidad as


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

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

S-ar putea să vă placă și