Professional Documents
Culture Documents
com/matlabcentral/mlc-
downloads/downloads/submissions/44835/versions/8/previews/ERS_/html/Chopra_El_Centro
.html
Contents
Initial definitions
Processing
Validation
Copyright
Initial definitions
The following initial definitions are made (in the order presented below):
fid=fopen('elcentro.dat','r');
text=textscan(fid,'%f %f');
fclose(fid);
time=text{1,1};
dt=time(2)-time(1);
xgtt=text{1,2};
Set the eigenperiod of an ideally zero-stiffness SDOF oscillator, in order to calculate the
maximum velocity of the earthquake.
Tsoft=1000;
Set the eigenperiod range for which the response spectra will be calculated.
Tspectra=logspace(log10(0.02),log10(50),1000)';
Set three distinct values for the critical damping ratio ( ) of the
response spectra to be calculated.
ksi1=0;
ksi2=0.1;
ksi3=0.2;
Set the minimum absolute value of the eigenvalues of the amplification matrix.
rinf=1;
AlgID='U0-V0-Opt';
u0=0;
ut0=0;
maxxgtt=max(abs(xgtt));
Processing
[~,~,~,maxxgt,~]=ERS(dt,xgtt,Tsoft,0,rinf,AlgID,u0,ut0)
maxxgt =
0.0368
Extraction of the elastic response spectra and pseudospectra for the three values of the critical
damping ratio.
[PSa1,PSv1,Sd1,Sv1,Sa1]=ERS(dt,xgtt,Tspectra,ksi1,rinf,AlgID,u0,ut0);
[PSa2,PSv2,Sd2,Sv2,Sa2]=ERS(dt,xgtt,Tspectra,ksi2,rinf,AlgID,u0,ut0);
[PSa3,PSv3,Sd3,Sv3,Sa3]=ERS(dt,xgtt,Tspectra,ksi3,rinf,AlgID,u0,ut0);
Validation
figure('Name','Figure 6.12.1(a)','NumberTitle','off')
semilogx(Tspectra,Sv2/maxxgt,'-b','LineWidth',1.)
hold on
semilogx(Tspectra,PSv2/maxxgt,'-r','LineWidth',1.)
hold off
grid on
xlabel('T_n','FontSize',13);
ylabel('S_V/maxv or PS_V/maxv','FontSize',13);
xlim([0.02,50]);
legend('S_V/maxv','PS_V/maxv')
Plot the pseudo-velocity/relative velocity ratio for the three values of the critical damping ratio
( ).
figure('Name','Figure 6.12.1(b)','NumberTitle','off')
semilogx(Tspectra,PSv1./Sv1,'-b','LineWidth',1.)
hold on
semilogx(Tspectra,PSv2./Sv2,'-r','LineWidth',1.)
semilogx(Tspectra,PSv3./Sv3,'-g','LineWidth',1.)
hold off
grid on
xlabel('T_n','FontSize',13);
ylabel('PS_V/S_V','FontSize',13);
legend('\xi=0','\xi=0.1','\xi=0.2')
figure('Name','Figure 6.12.2(a)','NumberTitle','off')
semilogx(Tspectra,Sa2/maxxgtt,'-b','LineWidth',1.)
hold on
semilogx(Tspectra,PSa2/maxxgtt,'-r','LineWidth',1.)
hold off
grid on
xlabel('T_n','FontSize',13);
ylabel('S_A/maxa or PS_A/maxa','FontSize',13);
xlim([0.02,50]);
legend('S_A/maxa','PS_A/maxa')
Plot the pseudo-acceleration/acceleration ratio for the three values of the critical damping
ratio ( ).
figure('Name','Figure 6.12.2(b)','NumberTitle','off')
semilogx(Tspectra,PSa1./Sa1,'-b','LineWidth',1.)
hold on
semilogx(Tspectra,PSa2./Sa2,'-r','LineWidth',1.)
semilogx(Tspectra,PSa3./Sa3,'-g','LineWidth',1.)
hold off
grid on
xlabel('T_n','FontSize',13);
ylabel('PS_A/S_A','FontSize',13);
xlim([0.02,50]);
legend('\xi=0','\xi=0.1','\xi=0.2','Location','SouthWest')
Website: http://users.ntua.gr/gpapazaf/