You are on page 1of 25

clear all;clc

clear;
Fc=4500;
ec0=0.002;
Eco=0.002;
e50=(3+0.002*Fc)/(Fc-1000);
s=(Fc-0.5*Fc)/(e50-0.002);

Ec=57000*sqrt(Fc);
Esec=Fc/Eco;
r=Ec/(Ec-Esec);

ST=(0:1:6)*10.^-3;
Ac=316;
Pc1=zeros(10000,1);
%Steel input%
Es=29000000;
Fy=60000;
Fu=100000;
Ey=0.002;
Esh=0.013;
Esu=0.09;
Eru=0.18;
Fsh=Fy+(Esh-Ey)*0.015*Es;
As=8;
Asc=3;
Ast=3;
b=1;
k=1;
d1=2.5;
d=15.5;
h=18;
n=zeros(200,1);
m=zeros(200,1);
a=zeros(200,1);
Pn1=zeros(200,1);
Mn1=zeros(200,1);
Pn=zeros(200,1);
Mn=zeros(200,1);

en=zeros(200,1);
j=zeros(200,1);

A=316;
scc=4;
dtr=(4/8);
dlong=9/8;
sclr=scc-dtr;
bc=15-dtr;
dc=15-dtr;
io=zeros(200);

Aconf=(bc*dc);
pcc=(As/(bc*dc));
w1= (15-2*dtr-3*dlong)/2;
ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc);
Asx=2*.785*dtr^2;
fl1=(ke*(Asx/(scc*dc)))*Fy;
Fcc1=Fc*(-1.254+2.254*sqrt(1+(7.94*fl1/Fc))-2*fl1/Fc);
Px=Asx/(scc*bc);
Ecu=0.004+0.14*2*Px*(Fy/Fc);
Ecc=Eco*(1+5*(Fcc1/Fc-1));
Esec1=Fcc1/Ecc;
r1=Ec/(Ec-Esec1);
A1=A-Aconf;
j1=120;

t=10;
g=h/t;
b=1;
o=zeros(100);
fconc= zeros(200,1);
fstl = zeros(200,1);

Pn(1,1)= Fc*Ac+ Fy*As;
Mn(1,1)=0;
for ei=-0.0034:0.0001:0
for j=1:1:10
di(j)= 0.9*(2*j-1);
io= strainlay(di(j),ei)
strain(b,j)=io;
if di(j)==0.9 || di(j)==17.1
[k,l]= cover(di(j),io)
Pn(b,j)=k;
Mn(b,j)=l;

else

[k,l] =confined(di(j),io)
Pn(b,j)=k;
Mn(b,j)=l;
end

if di(j)==2.7 || di(j)==8.1 || di(j)==17.1
[k1,l1] =strsteel(di(j),io)
Pn(b,j)= Pn(b,j)+ k1;
Mn(b,j)= Mn(b,j)+l1;

end
Pn1(b)=sum (Pn(b,j));
Mn1(b)=sum (Mn(b,j));

b=b+1;

5*Fc)/(e50-0.015*Es. Fu=100000. e50=(3+0. ST=(0:1:6)*10. s=(Fc-0. Ec=57000*sqrt(Fc).002). Fc=fc*Acover. As=8.09.e) h=18. k=1. Eco=0. b=1.18.ei) Fc=4500.002.ei) Fc=4500. end function [fcc. Mom ] = cover(o. r=Ec/(Ec-Esec).end plot(Mn1.002.8*18.0035. ec0=0.002*Fc)/(Fc-1000). Fy=60000.Pn1) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function str = strainlay(o. Asc=3.002). Mom=fc*o. %Steel input% Es=29000000. ec0=0.002.0035)/h)*o)-0.5*Fc)/(e50-0. s=(Fc-0. Acover=1.002. str= (((e+0. Ast=3. Esh=0.^-3. fc=(Fc-s*(ei-ec0)). Pc1=zeros(10000. end function [fc. Eru=0. Fsh=Fy+(Esh-Ey)*0. Eco=0.1). e50=(3+0. Esu=0. Ey=0.013.002*Fc)/(Fc-1000). Ac=316.002. . Mom ] = confined(o. Esec=Fc/Eco.

Mom=fcc*o.5. Px=Asx/(scc*bc). if(o==2.004+0. sclr=scc-dtr.94*fl1/Fc))-2*fl1/Fc). w1= (15-2*dtr-3*dlong)/2. Ecu=0. fci= (Fcc1*x*r1)/(r1-1+x^r1).5.7 || o==17. scc=4.254*sqrt(1+(7. x=ei/Ecc.Mom] = strsteel(o. else Fs=fs*3. fcc=fci. Mom=Fs*o. fl1=(ke*(Asx/(scc*dc)))*Fy. pcc=(As/(bc*dc)). A1=A-Aconf. io=zeros(200). Fcc1=Fc*(-1.14*2*Px*(Fy/Fc). Mom=Fs*o. end function [Fs. j1=120. end end . Aconf=(bc*dc). bc=15-dtr. dtr=(4/8). dc=15-dtr.1) Fs=fs*3.785*dtr^2. dlong=9/8. Asx=2*.ei) Es=29000000. A=316. Esec1=Fcc1/Ecc. h=18.254+2. r1=Ec/(Ec-Esec1). fs=ei*Es. Ecc=Eco*(1+5*(Fcc1/Fc-1)). d=15. ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc).d1=2.

. ec0=0. s=(Fc-0. r=Ec/(Ec-Esec). m=zeros(200. Fc=4500. d=15. Mn=zeros(200.1). Esec=Fc/Eco. h=18.002.18.015*Es. As=8. Pn1=zeros(200.Code 1 clear all.002. Fu=100000.002*Fc)/(Fc-1000). Esu=0. Ey=0. b=1.002).1).^-3. Pn=zeros(200. a=zeros(200.1).09. Eru=0.1).5. j=zeros(200. d1=2.1).1).002.1). Fy=60000. k=1. Ec=57000*sqrt(Fc). ST=(0:1:6)*10. Mn1=zeros(200. Pc1=zeros(10000.clc clear. Esh=0.5*Fc)/(e50-0.1). en=zeros(200. Asc=3. Ac=316.013. %Steel input% Es=29000000.5. Eco=0.1). Fsh=Fy+(Esh-Ey)*0.1). e50=(3+0. n=zeros(200. Ast=3.

fstl = zeros(200. dtr=(4/8). bc=15-dtr. Mn(b.l]= coverc(di(j). dlong=9/8.io) Pn(b. Mn(1. io=zeros(200).l] =confined(di(j). end if di(j)==2. Mn1(b)=sum (Mn(b.j)=l. if di(j)==0.j)= Mn(b.7 || di(j)==8. end Pn1(b)=sum (Pn(b.1 [k1.0001:0 for j=1:1:10 di(j)= 0. io= strainlay(di(j). o=zeros(100).A=316.io) Pn(b.1 || di(j)==17. end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% .j)=io.j)). g=h/t.1). Mn(b. end b=b+1. else [k.j)).1).1)=0. sclr=scc-dtr.ei) strain(b.j)=l.j)=k.j)= Pn(b. for ei=-0. Pn(1.j)+ k1. t=10.1)= Fc*Ac+ Fy*As. Mn(b.io) Pn(b. b=1.j)=k. dc=15-dtr.l1] =strsteel(di(j). scc=4.9 || di(j)==17.j)+l1.9*(2*j-1).0034:0. fconc= zeros(200.1 [k.

end Pn1(b)=sum (Pn(b.0138 for j=1:1:10 di(j)= 0.j)=l.j)=l.9*(2*j-1).j)=io.j)+ k1.1 || di(j)==17.for ei=0:0. end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function str = strainlay(o. .io) Pn(b. Mn(b.l]= coverc(di(j).0001:0.j)= Pn(b.7 || di(j)==8.io) Pn(b.j)=k.l1] =strsteel1(di(j).j)=k. io= strainlay(di(j). if di(j)==0.j)). Mn(b.e) h=18. Mn1(b)=sum (Mn(b. end b=b+1.9 [k.j)+l1.ei) strain(b.l] =confined2(di(j).1 [k1.io) Pn(b. end if di(j)==2. else [k. Mn(b.j)).j)= Mn(b.

ei) ei=abs(ei). Eco=0. e50=(3+0.013.002). Ast=3. k=1. ST=(0:1:6)*10.5*Fc)/(e50-0. b=1.0035. Fc=4500. Fu=100000.09. Esu=0.0035)/h)*o)-0.002*Fc)/(Fc-1000). . fc=fc*Acover. Ey=0. Pc1=zeros(10000.^-3. Mom ] = confined(o. Mom=fc*o. Asc=3. Esh=0.1). Acover=1. end function [fcc. As=8. d1=2. Mom] = coverc(o. Esec=Fc/Eco. str= (((e+0. e50=(3+0. r=Ec/(Ec-Esec). ec0=0.5.5. Ac=316.002. ec0=0.002. Fsh=Fy+(Esh-Ey)*0.002.8*18. s=(Fc-0. Ec=57000*sqrt(Fc). Eru=0. s=(Fc-0.015*Es. Eco=0. d=15.002. end function [fc.002).002.002*Fc)/(Fc-1000).18. Fy=60000. Fc=4500.ei) ei=abs(ei).5*Fc)/(e50-0. fc=(Fc-s*(ei-ec0)). %Steel input% Es=29000000.

r1=Ec/(Ec-Esec1). A=316. ec0=0. fci= (Fcc1*x*r1)/(r1-1+x^r1).785*dtr^2. w1= (15-2*dtr-3*dlong)/2. Pc1=zeros(10000. end function [fcc. ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc). sclr=scc-dtr. Ecu=0. Fc=4500.002. Esec1=Fcc1/Ecc. s=(Fc-0.09. r=Ec/(Ec-Esec).14*2*Px*(Fy/Fc). Aconf=(bc*dc). Esh=0. pcc=(As/(bc*dc)).002.ei) z=ei.94*fl1/Fc))-2*fl1/Fc). Eco=0.h=18. Fy=60000. Ac=316. fcc=fci. dc=15-dtr. bc=15-dtr. dlong=9/8.002). Mom=fcc*o. ST=(0:1:6)*10. io=zeros(200).254*sqrt(1+(7. Fu=100000. Asx=2*. Mom ] = confined2(o.013. %Steel input% Es=29000000. e50=(3+0. scc=4. ei=abs(ei). Esec=Fc/Eco. dtr=(4/8). Ey=0. j1=120. Fcc1=Fc*(-1. x=ei/Ecc.002. Ec=57000*sqrt(Fc). Esu=0. fl1=(ke*(Asx/(scc*dc)))*Fy. . Ecc=Eco*(1+5*(Fcc1/Fc-1)). A1=A-Aconf.002*Fc)/(Fc-1000). Px=Asx/(scc*bc).5*Fc)/(e50-0.004+0.1).254+2.^-3.

j1=120.004+0. if(o==2. ei=abs(ei). dtr=(4/8). scc=4. Mom=fcc*o. pcc=(As/(bc*dc)). ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc). Ast=3.Eru=0. Ecc=Eco*(1+5*(Fcc1/Fc-1)).5. h=18. dlong=9/8.ei) Es=29000000. Fsh=Fy+(Esh-Ey)*0. Px=Asx/(scc*bc).14*2*Px*(Fy/Fc). Ecu=0. b=1. d=15. k=1. else . w1= (15-2*dtr-3*dlong)/2.1) Fs=fs*3. A=316.015*Es. bc=15-dtr. io=zeros(200). Mom=fcc*o. A1=A-Aconf. else fcc=0. As=8. Aconf=(bc*dc).785*dtr^2. dc=15-dtr.254+2. x=ei/Ecc.18. fs=ei*Es. sclr=scc-dtr.7 || o==17. r1=Ec/(Ec-Esec1). Asc=3. Esec1=Fcc1/Ecc. fci= (Fcc1*x*r1)/(r1-1+x^r1). Asx=2*. if z<=0 fcc=fci. Fcc1=Fc*(-1.5.Mom] = strsteel(o.94*fl1/Fc))-2*fl1/Fc). fl1=(ke*(Asx/(scc*dc)))*Fy. end end function [Fs. d1=2. Mom=Fs*o.254*sqrt(1+(7.

09. if z<=0 Fs=fs*3. else Fs=fy*Es*3*-1.013.002.18.1). Esu=0. fs=ei*Es. Ec=57000*sqrt(Fc). Ac=316. .^-3. s=(Fc-0.002.clc clear. Eco=0. e50=(3+0.5*Fc)/(e50-0.ei) Es=29000000. Esec=Fc/Eco. ST=(0:1:6)*10.Mom] = strsteel1(o. end end function [Fs. r=Ec/(Ec-Esec). Fu=100000. Mom=Fs*o. Mom=Fs*o. Mom=Fs*o.00207 Fs=fs*3*-1. ec0=0. Fs=fs*2. Elseif z>0 && z<0. Fc=4500. Eru=0. %Steel input% Es=29000000.002. end end Code 3 clear all.002).00207. Mom=Fs*o. Esh=0. Fy=60000. fy=0. Pc1=zeros(10000.002*Fc)/(Fc-1000). Ey=0. ei=abs(ei). z=ei.

1).1). Mn1=zeros(200.l]= coverc(di(j).io) Pn(b. fconc= zeros(200.0034:0. . dlong=9/8.1 [k.1).0001:0 for j=1:1:10 di(j)= 0.l] =confined(di(j). io= strainlay(di(j).015*Es. Mn(1. bc=15-dtr. d=15.9*(2*j-1).j)=k.1). sclr=scc-dtr.1). a=zeros(200. Pn=zeros(200. A=316. for ei=-0. n=zeros(200.Fsh=Fy+(Esh-Ey)*0.1). h=18. if di(j)==0.1).j)=k.5. t=10. Pn1=zeros(200.io) Pn(b. b=1.1)=0. o=zeros(100).ei) strain(b. fstl = zeros(200. g=h/t. As=8.1).9 || di(j)==17. Pn(1.5. Mn=zeros(200. io=zeros(200). k=1. d1=2. else [k.1).j)=io.1)= Fc*Ac+ Fy*As. j=zeros(200. en=zeros(200. scc=4. dtr=(4/8).1). b=1.j)=l.1). Ast=3. m=zeros(200. dc=15-dtr. Mn(b. Asc=3.

Mn1(b)= Mn1(b)-Pn1(b)*(h/2).j)=k.138 for j=1:1:10 di(j)= 0. end Pn1(b)=sum (Pn(b.l1] =strsteel(di(j).Mn(b.j)+l1. end b=b+1.j)).1 || di(j)==17.1 [k1. if di(j)==0.io) Pn(b. Mn1(b)= Mn1(b)-Pn1(b)*(h/2).j)+ k1.j)=l.j)=l.1 || di(j)==17.j)= Pn(b.9*(2*j-1). Mn(b.j)). end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% for ei=0:0. Mn1(b)=sum (Mn(b.7 || di(j)==8. else [k. end if di(j)==2. io= strainlay(di(j).7 || di(j)==8.ei) strain(b.io) Pn(b.l] = confined2(di(j).j)=l.j)+ k1.0001:0.io) Pn(b.9 [k. end if di(j)==2.l]= coverc(di(j).j)= Mn(b.j)= Pn(b.j)= Mn(b. Mn(b. Mn(b.j)+l1.j)).1 [k1.io) Pn(b. end Pn1(b)=sum (Pn(b.j)). Mn1(b)=sum (Mn(b.l1] = strsteel1(di(j).j)=io. end . Mn(b.j)=k.

ec0=0.002 fc=(Fc-s*(ei-ec0)). Mom] = coverc(o.002. Fcp=4500.002). r=Ec/(Ec-Esec).0035. Acover=1.Pn1) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function str = strainlay(o.002. Eco=0. str= (((e+0. e50=(3+0. .002.ei) ei=abs(ei). Eco=0.5*Fc)/(e50-0.8*18.0035)/h)*o)-0. end plot(Mn1.b=b+1. end function [fc.002*Fc)/(Fc-1000). s=(Fc-0. Fc=4500. if ei>=0.e) h=18. Ec=57000*sqrt(Fcp). Esec=Fcp/Eco.

h=18. Ast=3. ec0=0. end end function [fcc. Esh=0. Fsh=Fy+(Esh-Ey)*0. Eru=0.002*Fc)/(Fc-1000).1).015*Es. Ec=57000*sqrt(Fc). d1=2. As=8. Mom ] = confined(o. e50=(3+0.002. fc=fc*Acover. Fu=100000. A=316. d=15.5. b=1. k=1. Fc=4500.5*Fc)/(e50-0. scc=4. Mom=fc*o.002). Ac=316.002. dtr=(4/8). Pc1=zeros(10000. Esec=Fc/Eco.ei) ei=abs(ei). r=Ec/(Ec-Esec). dlong=9/8. Ey=0. dc=15-dtr. s=(Fc-0. Fy=60000.002. Eco=0. %Steel input% Es=29000000.fc=fc*Acover. bc=15-dtr. Esu=0. else fc=(Fcp*r*(a/Eco))/(r-1+((a/Eco)^r)).5.013.18.09. Asc=3. Mom=fc*o. sclr=scc-dtr. .

e50=(3+0.5. d1=2.015*Es.18. Asc=3. w1= (15-2*dtr-3*dlong)/2. Ey=0. Px=Asx/(scc*bc). Fc=4500. Mom ] = confined2(o. %Steel input% Es=29000000. k=1. x=ei/Ecc.1). end function [fcc.Aconf=(bc*dc). ec0=0.5. ei=abs(ei).09. ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc). Esec1=Fcc1/Ecc. Pc1=zeros(10000. . Fu=100000.013. r=Ec/(Ec-Esec).002. Fsh=Fy+(Esh-Ey)*0. b=1. A1=A-Aconf. As=8. Esh=0. fci= (Fcc1*x*r1)/(r1-1+x^r1). Ac=316. Esec=Fc/Eco.254+2. Eru=0.002*Fc)/(Fc-1000). Fcc1=Fc*(-1. j1=120. s=(Fc-0.ei) z=ei. Ec=57000*sqrt(Fc).94*fl1/Fc))-2*fl1/Fc).785*dtr^2.002. pcc=(As/(bc*dc)). fcc=fci*1. Ecc=Eco*(1+5*(Fcc1/Fc-1)). Ast=3. fl1=(ke*(Asx/(scc*dc)))*Fy. Esu=0.002).254*sqrt(1+(7. Asx=2*. Eco=0. h=18. Ecu=0. d=15.8*18.002. r1=Ec/(Ec-Esec1). Mom=fcc*o.004+0.14*2*Px*(Fy/Fc). Fy=60000.5*Fc)/(e50-0.

r1=Ec/(Ec-Esec1).A=316. Asx=2*. Mom=Fs*o. sclr=scc-dtr. Mom=Fs*o.ei) Es=29000000.785*dtr^2. x=ei/Ecc.254+2. fs=ei*Es. . if(o==2. end end function [Fs. end end function [Fs.Mom] = strsteel1(o. Ecu=0.254*sqrt(1+(7. Px=Asx/(scc*bc). j1=120.94*fl1/Fc))-2*fl1/Fc). else Fs=fs*2. dlong=9/8. Esec1=Fcc1/Ecc. Mom=fcc*o. ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc). fl1=(ke*(Asx/(scc*dc)))*Fy. scc=4. dc=15-dtr. Fcc1=Fc*(-1. io=zeros(200). else fcc=0. fci= (Fcc1*x*r1)/(r1-1+x^r1). Ecc=Eco*(1+5*(Fcc1/Fc-1)). bc=15-dtr.ei) Es=29000000.00207. w1= (15-2*dtr-3*dlong)/2. dtr=(4/8). Mom=fcc*o.14*2*Px*(Fy/Fc).7 || o==17. pcc=(As/(bc*dc)). fy=0. ei=abs(ei).1) Fs=fs*3.004+0. Aconf=(bc*dc).Mom] = strsteel(o. A1=A-Aconf.8*18. if z<=0 fcc=fci*1.

end end Code 4 clear all. s=(Fc-0. Mom=Fs*o. elseif z>0 && z<0.09. Mom=Fs*o. e50=(3+0. . Eco=0.002. Ac=316.1).002. ST=(0:1:6)*10. Eru=0. ec0=0. Fu=100000. Asc=3. ei=abs(ei).18. else Fs=fy*Es*3*-1. Pc1=zeros(10000. Esec=Fc/Eco. Ast=3. fs=ei*Es. Mom=Fs*o. Fsh=Fy+(Esh-Ey)*0. %Steel input% Es=29000000.^-3. Ec=57000*sqrt(Fc).002*Fc)/(Fc-1000). Fy=60000. Ey=0.013.002.clc clear.00207 Fs=fs*3*-1.002). Esh=0. r=Ec/(Ec-Esec). Esu=0. b=1.5*Fc)/(e50-0. Fc=4500.z=ei. As=8.015*Es. if z<=0 Fs=fs*3. k=1.

n=zeros(200.7 || di(j)==8.1). if di(j)==0.j)= Pn(b. dlong=9/8. end if di(j)==2.0034:0. io= strainlay(di(j).5. Mn(b. h=18.1)=0.j)+ k1. .io). fstl = zeros(200. dc=15-dtr.io). Pn(1.1). Pn(b.j)=k.1)= Fc*Ac+ Fy*As.1 [k.0001:0 for j=1:1:10 di(j)= 0. strain(b. dtr=(4/8). bc=15-dtr. en=zeros(200. fconc= zeros(200. Mn(1.1).5. Mn1=zeros(200. a=zeros(200.1). j=zeros(200. scc=4.l]= coverc(di(j). Mn(b.1). b=1.1).9 || di(j)==17.j)=l.1).1). o=zeros(100). for ei=-0.1). Mn=zeros(200.1).ei).j)=l. t=10.l1] =strsteel(di(j).l] =confined(di(j). A=316. d=15. io=zeros(200).d1=2. Pn(b.j)=io.1). Pn=zeros(200.1 [k1.j)=k. sclr=scc-dtr. Pn1=zeros(200. Pn(b.io). g=h/t. m=zeros(200. else [k.1 || di(j)==17.9*(2*j-1).

7 || di(j)==8.9*(2*j-1).j)=k. Mn(b.j)).Mn(b. Mn1(b)= Mn1(b)-Pn1(b)*(h/2).9 [k.io) Pn(b. Mn1(b)= Mn1(b)-Pn1(b)*(h/2).j)=l. if di(j)==0.j)).j)=io. end b=b+1.j)=l. Mn(b.io) Pn(b.l]= coverc(di(j).Pn1) .j)= Mn(b. end if di(j)==2.l] = confined2(di(j).j)= Mn(b.j)+ k1. end plot(Mn1.j)=k. end b=b+1.io) Pn(b.j)). end Pn1(b)=sum (Pn(b.138 for j=1:1:10 di(j)= 0.j)).ei) strain(b. Mn1(b)=sum (Mn(b.j)+l1. end Pn1(b)=sum (Pn(b.1 || di(j)==17.l1] = strsteel1(di(j).0001:0. io= strainlay(di(j).1 [k1.j)= Pn(b. Mn(b. Mn1(b)=sum (Mn(b. else [k.j)+l1. end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% for ei=0:0.

end .8*18. Acover=1.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function str = strainlay(o.002.5*Fc)/(e50-0.002. Eco=0. Ec=57000*sqrt(Fcp).002 fc=(Fc-s*(ei-ec0)). str= (((e+0.e) h=18. Mom=fc*o. r=Ec/(Ec-Esec). e50=(3+0.0035. else fc=(Fcp*r*(ei/Eco))/(r-1+((ei/Eco)^r)). Mom] = coverc(o. Mom=fc*o. Esec=Fcp/Eco.002. fc=fc*Acover.0035)/h)*o)-0. ec0=0.002). end function [fc. if ei>=0.002*Fc)/(Fc-1000). Fc=4500. Fcp=4500. s=(Fc-0.ei) ei=abs(ei). Eco=0. fc=fc*Acover.

end function [fcc. Mom ] = confined(o. scc=4. d1=2. w1= (15-2*dtr-3*dlong)/2.015*Es. Ast=3. ec0=0.18.002. .002. Asx=2*. A=316. r=Ec/(Ec-Esec). Fsh=Fy+(Esh-Ey)*0. Esh=0. Eco=0.002).785*dtr^2. %Steel input% Es=29000000. Eru=0. e50=(3+0.5.5*Fc)/(e50-0.ei) ei=abs(ei).002. Ac=316.254*sqrt(1+(7.002*Fc)/(Fc-1000). Aconf=(bc*dc).1). k=1.94*fl1/Fc))-2*fl1/Fc). As=8. h=18. d=15. dlong=9/8. Ey=0. Fc=4500. Asc=3. Ec=57000*sqrt(Fc). pcc=(As/(bc*dc)). ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc). Fu=100000. s=(Fc-0. b=1. Esec=Fc/Eco.254+2. bc=15-dtr.09. sclr=scc-dtr.5. Esu=0.013. Fy=60000. Pc1=zeros(10000. dtr=(4/8). Fcc1=Fc*(-1. dc=15-dtr. fl1=(ke*(Asx/(scc*dc)))*Fy.

r1=Ec/(Ec-Esec1). Mom ] = confined2(o. bc=15-dtr. Fu=100000.015*Es. . ec0=0. Ecu=0. Eco=0. e50=(3+0. Ey=0. Fy=60000. j1=120. Ast=3. Esu=0. k=1.ei) z=ei. h=18. Fsh=Fy+(Esh-Ey)*0. scc=4.18. Esh=0.002*Fc)/(Fc-1000). ei=abs(ei). fcc=fci*1.09.002). dlong=9/8. d=15.8*18. Eru=0.002.5*Fc)/(e50-0. A1=A-Aconf.Px=Asx/(scc*bc). fci= (Fcc1*x*r1)/(r1-1+x^r1). Ecc=Eco*(1+5*(Fcc1/Fc-1)).5. d1=2.002. Ec=57000*sqrt(Fc). Ac=316. Esec=Fc/Eco.1). dc=15-dtr. x=ei/Ecc. sclr=scc-dtr. Mom=fcc*o.5. Fc=4500.14*2*Px*(Fy/Fc). A=316. As=8.013. Pc1=zeros(10000.002. Asc=3. b=1. end function [fcc. r=Ec/(Ec-Esec).004+0. Esec1=Fcc1/Ecc. dtr=(4/8). s=(Fc-0. %Steel input% Es=29000000.

Mom=Fs*o. if z<=0 Fs=fs*3. fy=0.94*fl1/Fc))-2*fl1/Fc). if z<=0 fcc=fci*1.254+2. Ecc=Eco*(1+5*(Fcc1/Fc-1)). else Fs=fs*2.1) Fs=fs*3. z=ei. elseif z>0 && z<0. Mom=Fs*o. Fcc1=Fc*(-1. fci= (Fcc1*x*r1)/(r1-1+x^r1). pcc=(As/(bc*dc)). w1= (15-2*dtr-3*dlong)/2. if(o==2. ei=abs(ei).8*18.14*2*Px*(Fy/Fc). Mom=fcc*o.785*dtr^2. end end function [Fs.Mom] = strsteel(o. Ecu=0. j1=120. else fcc=0. ke=((1-((8*w1^2)/(6*bc*dc)))*(1-(sclr/(2*bc)))^2)/(1-pcc).7 || o==17. r1=Ec/(Ec-Esec1).Mom] = strsteel1(o. Aconf=(bc*dc). A1=A-Aconf.00207 . fs=ei*Es.io=zeros(200). Mom=fcc*o.254*sqrt(1+(7. end end function [Fs. Px=Asx/(scc*bc).004+0. ei=abs(ei).ei) Es=29000000.ei) Es=29000000. Esec1=Fcc1/Ecc. Asx=2*. fl1=(ke*(Asx/(scc*dc)))*Fy. x=ei/Ecc. fs=ei*Es.00207. Mom=Fs*o.

Mom=Fs*o. else Fs=fy*Es*3*-1. Fs=fs*3*-1. end end . Mom=Fs*o.