31.08.2018 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

204 MATLAB programs<br />

function [] = Blast2D(pois)<br />

% Computes the plane-stra<strong>in</strong> response elicited by an<br />

% SV-P l<strong>in</strong>e blast source <strong>in</strong> a full, homogeneous 2D space<br />

% Arguments:<br />

% pois = Poisson’s ratio<br />

% Default data<br />

nt = 300; % Number of time <strong>in</strong>tervals<br />

nf = 200; % Number of frequency <strong>in</strong>tervals<br />

cs = 1;<br />

% Shear wave velocity<br />

rho = 1; % Mass density<br />

r = 1;<br />

% epicentral distance<br />

tmax = 5; % Maximum time for plott<strong>in</strong>g<br />

wmax = 20; % maximum frequency for plott<strong>in</strong>g (rad/s)<br />

mu = rho*csˆ2; % Shear modulus<br />

cp = cs*sqrt((2-2*pois)/(1-2*pois)); % P-wave velocity<br />

a = cs/cp;<br />

a2 = aˆ2;<br />

% Frequency doma<strong>in</strong><br />

f = 0.25/mu/cp;<br />

dw = wmax/nf;<br />

Ws = [dw:dw:wmax]*r/cs; % dimensionless frequency for S waves<br />

Wp = a*Ws;<br />

% dimensionless frequency for P waves<br />

H1p = besselh(1,2,Wp);<br />

Gr = f*Wp.*H1p; % Green’s function for radial displacement<br />

tit = ‘Radial displacement <strong>in</strong> full space due to l<strong>in</strong>e blast load’;<br />

plot (Ws,real(Gr));<br />

hold on;<br />

plot (Ws,imag(Gr),‘r’);<br />

grid on;<br />

title(tit);<br />

titx = ‘Dimensionless frequency w*r/Cs = k*r’;<br />

xlabel(titx);<br />

pause;<br />

hold off;<br />

EasyPlot(‘B2D FDr.ezp’, tit, titx, Ws, Gr, ‘c’);<br />

clear G* H*<br />

% Time doma<strong>in</strong><br />

f = 1/(2*pi*mu*r);<br />

tp = r/cp; % arrival time of P waves<br />

ts = r/cs; % arrival time of SV waves<br />

ts2 = tsˆ2;<br />

tp2 = tpˆ2;<br />

dt = tmax/nt;<br />

T = [0:dt:tmax]+eps;<br />

P = sqrt(T.ˆ2-tp2);

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

Saved successfully!

Ooh no, something went wrong!