31.08.2018 Views

Eduardo Kausel-Fundamental solutions in elastodynamics_ a compendium-Cambridge University Press (2006)

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

222 MATLAB programs<br />

if k >=1; D2(1:k)=0; end<br />

S1 = S1.*D1;<br />

S2 = S2.*D2;<br />

D1 = 2*D1.*s1;<br />

D2 = 2*D2.*s2;<br />

% Displacements due to impulsive l<strong>in</strong>e load<br />

sgn = fac*sign(x)*sign(z);<br />

Uxx = fac*real(p2.*S2-Q1.*D1);<br />

Uzz = fac*real(p1.*S1-Q2.*D2);<br />

Uzx = sgn*imag(q1.*p1.*D1-q2.*S2);<br />

Uxz = sgn*imag(q1.*S1-q2.*p2.*D2);<br />

end<br />

T = [T0,T];<br />

Uxx = [Uxx0,Uxx];<br />

Uzz = [Uzz0,Uzz];<br />

Uxz = [Uxz0,Uxz];<br />

Uzx = [Uzx0,Uzx];<br />

% Plot results<br />

plot (T,Uxx);<br />

tmax = max(T);<br />

tit = spr<strong>in</strong>tf(...<br />

‘Horizontal displacement due to horizontal l<strong>in</strong>e load, \\nu=%5.2f’,...<br />

pois);<br />

titx = ‘Time’;<br />

title (tit);<br />

grid on;<br />

%axis([0 tmax -2 2]);<br />

pause;<br />

plot (T,Uzz);<br />

tit = spr<strong>in</strong>tf((...<br />

‘Vertical displacement due to vertical l<strong>in</strong>e load, \\nu=%5.2f’,pois);<br />

title (tit);<br />

grid on;<br />

%axis([0 tmax -2 2]);<br />

pause;<br />

plot (T,Uzx);<br />

tit = spr<strong>in</strong>tf((...<br />

‘Vertical displacement due to horizontal l<strong>in</strong>e load, \\nu=%5.2f’,pois);<br />

title (tit);<br />

grid on;<br />

%axis([0 tmax -0.5 0.5]);<br />

if theta > mang<br />

hold on<br />

plot ([tr tr], [0 -wr]);<br />

end<br />

hold off;<br />

pause;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!