Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
% Entrada de valores
fpc=str2double(get(handles.fpc,'String'));
fy=str2double(get(handles.fy,'string'));
ey=str2double(get(handles.ey,'string'));%0.0021
esh=str2double(get(handles.esh,'string'));%0.08
eo=str2double(get(handles.eo,'string'));%0.002
ecu=str2double(get(handles.ecu,'string'));%0.0033
b=str2double(get(handles.b,'string'));
h=str2double(get(handles.h,'string'));
r=str2double(get(handles.r,'string'));
dp=str2double(get(handles.dp,'String'));
As=str2double(get(handles.As,'string'));
Asp=str2double(get(handles.Asp,'string'));
% Salida de valores
set(handles.Mn,'string',Mn);
set(handles.cc,'string',cc);
set(handles.rc,'string',rc);
Es= fy/ey;
d=h-r;
c=h/2;
dfr=100;
for i=1:h*100/2
c=h/2-(i-1)/100;
ec= c*ey/(d-c);
esp=(c-dp)*ec/c;
co=c*eo/ec;
A=fpc*(c^2)*(3*co-c)/(3*co^2);
ys=(8*c*co-3*c^2)/(12*co-4*c);
if esp<ey
Cs=esp*Es*Asp;
else
Cs=fy*Asp;
end
Cc=A*b;
Ts=fy*As;
dfr1=Ts-Cc-Cs;
if abs(dfr)>abs(dfr1)
dfr=dfr1;
Cc1=Cc;
Cs1=Cs;
Ts1=Ts;
ys1=ys;
c1=c;
rcy=ec*100/c1;
end
end
Mny=Cc1*ys1+Cs1*(c1-dp)+Ts1*(d-c1);
c1;
rcy;
% Salida de valores
set(handles.Mny,'string',Mny);
set(handles.c1,'string',c1);
set(handles.rcy,'string',rcy);
%Para el concreto en fpc=fcmáx y ec=eo');
dfr=100;
for i=1:round(c1*100)
co=c1-(i-1)/100;
esp=(co-dp)*eo/co;
A=2*fpc*co/3;
ys=5*co/8;
if esp<ey
Cs=esp*Es*Asp;
else
Cs=fy*Asp;
end
Cc=A*b;
Ts=fy*As;
dfr1=Ts-Cc-Cs;
if abs(dfr)>abs(dfr1)
dfr=dfr1;
Cc1=Cc;
Cs1=Cs;
Ts1=Ts;
ys1=ys;
c2=co;
rco=eo*100/c2;
end
end
Mno=Cc1*ys1+Cs1*(c2-dp)+Ts1*(d-c2);
c2;
rco;
% Salida de valores
set(handles.Mno,'string',Mno);
set(handles.c2,'string',c2);
set(handles.rco,'string',rco);