You are on page 1of 3

Data for ϕm, n

5.7553 0.0072 2.9057 2.6663 2.8960 4.8391 


 2.0262 4.9307 2.9616 0.2247 1.1051 4.5349 
 
 2.9750 0.9596 2.1433 3.8163 1.2048 4.6397 
 M ( n
max +1)
= 
1.5259 5.7643 1.6906 4.8098 1.1854 1.8064 
0.5725 3.6204 4.2937 3.4343 2.6749 4.0492 
 
 4.0691 4.2664 3.9948 5.9387 1.3128 4.4565 

Program for quantification of three individual interactions


% define a function to calculate the local amplitude directly below the
circular arc.
function [z] = height(r,phi)
T4=[5.755342727, 0.007232305, 2.905653763, 2.666263652, 2.896022939,
4.839056291; 2.026150121, 4.930662407, 2.961624343, 0.22470388, 1.105051545,
4.534939471; 2.975000234, 0.959575603, 2.143349119, 3.816338984,
1.204770972, 4.639672671; 1.525869028, 5.764347146, 1.690563808,
4.809778457, 1.185398161, 1.806404297; 0.572482776, 3.620430314, 4.29369789,
3.434345827, 2.674933204, 4.049153416; 4.069101579, 4.266388093,
3.994765718, 5.9387041, 1.312776835, 4.456548373];% random phase
L=5; % the sample length/10-6m
fr=1.6; % the parameter regarding density of frequencies
Df=2.65; % fractal dimension
G=100; % fractal roughness/10-11m
Ls=0.4; % the cutoff frequency/10-6m
M=5; % the number of superposed ridges
nmax=floor(log10(L./Ls)/log10(fr));
J1=L.*((G.*1e-5)/L)^(Df-2);
J2= sqrt (log(fr)/M);
J=1000*J1.*J2;
t=0;
for m=1:M
for n=0:nmax
t1=fr.^((Df-3)*n);
t2=cos(phi-pi*m./M);
t3=2*pi*r.*fr.^n;
t4=T4(m,n+1);
temp=t1.*(cos(t4)-cos(t3.*t2./L+t4));
t=t+temp;
end
end
z=J.*t;
end
% define a function to simulate the formula of AB interaction in double
integrals.
function [t] = fAB(a, b, c, d)
R=5000;
h=R+d+c-sqrt(R.^2-a.^2)-height(a, b);
if h<0.158
h=0.158;
end
t= a.*exp((0.158-h)/0.6);
end

% define a function to simulate the formula of LW interaction in double


integrals.
function [t] = fLW(a, b, c, d)
R=5000;
h=R+d+c-sqrt(R.^2-a.^2)-height(a, b);
if h<0.158
h=0.158;
end
t= a./(h.^2);
end

% define a function to simulate the formula of EL interaction in double


integrals.
function [t] = fEL(a, b, c, d)
zm=-28.6;
zf=-21.71;
R=5000;
h=R+d+c-sqrt(R.^2-a.^2)-height(a, b);
if h<0.158
h=0.158;
end
tem=(zm.^2+zf.^2)/(2*zm.*zf);
t=a.*tem.*(1-coth(0.328*h))+a*csch(0.328*h);
end

% main program for quantification of three individual interactions.


R=5000;
h=30;
step=50;
kAB=-5.45075;
kLW=-0.054135;
kEL=0.035187;
for i=1:step+1
x(i)=(i-1)*R./step;
y(i)=(i-1)*2*pi/step;
end
for m=1:60
d(m)=0.2*m;
tAB(m)=0;
tLW(m)=0;
tEL(m)=0;
toAB(m)=0;
toLW(m)=0;
toEL(m)=0;
UAB(m)=0;
ULW(m)=0;
UEL(m)=0;
for j=1:step/2
for i=1:step/2
toAB(m)=fAB(x(2*i-1),y(2*j-1),h,d(m))+fAB(x(2*i+1),y(2*j-1),h,d(m))+fAB(
x(2*i+1),y(2*j+1),
h,d(m))+fAB(x(2*i-1),y(2*j+1),h,d(m))+4*(fAB(x(2*i),y(2*j-1),h,d(m))+fAB
(x(2*i+1),y(2*j),h,d(m))+fAB(x(2*i),y(2*j+1),h,d(m))+fAB(x(2*i-1),y(2*j)
,h,d(m)))+16*fAB(x(2*i),y(2*j),h,d(m));
tAB(m)=tAB(m)+toAB(m);
toLW(m)=fLW(x(2*i-1),y(2*j-1),h,d(m))+fLW(x(2*i+1),y(2*j-1),h,d(m))+fLW(
x(2*i+1),y(2*j+1),
h,d(m))+fLW(x(2*i-1),y(2*j+1),h,d(m))+4*(fLW(x(2*i),y(2*j-1),h,d(m))+fLW
(x(2*i+1),y(2*j),h,d(m))+fLW(x(2*i),y(2*j+1),h,d(m))+fLW(x(2*i-1),y(2*j)
,h,d(m)))+16*fLW(x(2*i),y(2*j),h,d(m));
tLW(m)=tLW(m)+toLW(m);
toEL(m)=fEL(x(2*i-1),y(2*j-1),h,d(m))+fEL(x(2*i+1),y(2*j-1),h,d(m))+fEL(
x(2*i+1),y(2*j+1),
h,d(m))+fEL(x(2*i-1),y(2*j+1),h,d(m))+4*(fEL(x(2*i),y(2*j-1),h,d(m))+fEL
(x(2*i+1),y(2*j),h,d(m))+fEL(x(2*i),y(2*j+1),h,d(m))+fEL(x(2*i-1),y(2*j)
,h,d(m)))+16*fEL(x(2*i),y(2*j),h,d(m));
tEL(m)=tEL(m)+toEL(m);
end
end
UAB(m)= tAB(m).*R.*2*pi*kAB./(9*step.^2);
ULW(m)= tLW(m).*R.*2*pi*kLW./(9*step.^2);
UEL(m)= tEL(m).*R.*2*pi*kEL./(9*step.^2);
end

You might also like