Академический Документы
Профессиональный Документы
Культура Документы
Appendix A
Matlab Code
%To estimate the overlap integral in our device, the Gaussian fitting was
%used to represent the normalized spatial profiles of the transverse
%waveguide modes at the two wavelength along the y direction.the Hermit-
Gaussian fitting was
%used to represent the normalized spatial profiles of the transverse
%waveguide modes at the two wavelength along the x direction. the hermit
guanssian fitting
%can be expressed as following:
%f(x)=C1xexp(-x.^2/(d).^2); x</=d
%f(x)=C2exp(-(x-d)/b); x>d
hold on
%Gaussian fit for fundamentalmode in y direction=exp(-(y-0).^2./(2.*2.8.^2))
%Hermit-Gaussian fit for fundamentalmode in x direction
dd=3.6; bb=1.4; cc1=1; cc2=1.33;
x=0:0.1:3.6;
y=3.6:0.1:20;
ff1=cc1.*x.*exp(-x.^2./(dd.^2));
ff2=cc2.*exp(-(y-dd)./bb);
plot(x,ff1./1.2,y,ff2./1.2)
F1=inline('(1.*x.*exp(-(x-3.4).^2./(2.5.^2)).*exp(-(y-0).^2./(2.*2.6.^2))).^1')
V1=dblquad(F1,0,6.5,-10,10)
F2=inline('(1.81.*exp(-(x-6.5)./1.25).*exp(-(y-0).^2./(2.*2.6.^2))).^1')
V2=dblquad(F2,6.5,10,-10,10)
S1=inline('(1.*x.*exp(-(x-1.3).^2./(2.^2)).*exp(-(y-0).^2./(2.*1.8.^2))).^1')
S2=inline('(0.75.*exp(-(x-4)./0.9).*exp(-(y-0).^2./(2.*1.8.^2))).^1')
172
Appendix A: Matlab Code
V11=dblquad(S1,0,4,-10,10)
V22=dblquad(S2,4,10,-10,10)
%ef is the normalized constant of the spatial mode profile for fundamental
%wavelength
%es is the normalized constant of the spatial mode profile for SHG
%wavelength
ef=1./sqrt(V1+V2)
es=1./sqrt(V11+V22)
Fa=inline('(0.1.^2.*1.*x.*exp(-(x-3.4).^2./(2.5.^2)).*exp(-(y-
0).^2./(2.*2.6.^2))).^1.*0.2.*sqrt(1.*x.*exp(-(x-1.3).^2./(2.^2)).*exp(-(y-
0).^2./(2.*1.8.^2)))')
Fb=inline('(0.1.^2.*1.81.*exp(-(x-6.5)./1.25).*exp(-(y-
0).^2./(2.*2.6.^2))).^1.*0.2.*sqrt(0.75.*exp(-(x-4)./0.9).*exp(-(y-
0).^2./(2.*1.8.^2)))')
Va=dblquad(Fa,0,3.4,-10,10)
Vb=dblquad(Fb,3.4,10,-10,10)
V=Va+Vb
w=(((a.^2)./(c.^3)).*((8.*pi.^2)./(f.*d.*g.^2))).*b.^2.*1e8
%Gaussina fit for mode in fiber for 1550nm, the mode field diameter for
%single mode fiber G652 at 1550nm is 10.4um. so the deviation of the
%Gaussian is 2.6um.
s=2.6;m=4.2;
x=-10:0.1:20;
y=exp(-(x-m).^2./(2.*s.^2));
plot(x,y.*3.8)
hold on
%Gaussian fit for fundamentalmode in y direction=exp(-(y-0).^2./(2.*2.8.^2))
%Hermit-Gaussian fit for fundamentalmode in x direction
173
Appendix A: Matlab Code
x=0:0.1:6.5;
y=6.5:0.1:20;
ff1=cc1.*x.*exp(-(x-gg9).^2./(gg7.^2));
ff2=cc2.*exp(-(y-gg6)./gg8);
plot(x,ff1,y,ff2)
%____________________________________________________________________
s=2.6;m=4.2;
cc1=1; cc2=1.45; gg6=6.5;gg7=2.5;gg8=1.25; gg9=3.4;
F1=inline('(1.*x.*exp(-(x-3.4).^2./(2.5.^2)).*exp(-(y-0).^2./(2.*2.6.^2))).^1')
V1=dblquad(F1,0,6.5,-10,10)
F2=inline('(1.45.*exp(-(x-6.5)./1.25).*exp(-(y-0).^2./(2.*2.6.^2))).^1')
V2=dblquad(F2,6.5,15,-10,10)
S1=inline('exp(-(x-4.2).^2./(2.*2.6.^2)).*exp(-(y-0).^2./(2.*2.6.^2))')
V11=dblquad(S1,-5,15,-10,10)
%ef is the normalized constant of the spatial mode profile for fundamental
%wavelength
%es is the normalized constant of the spatial mode profile for 1550nm
%wavelength inside fibre
ef=1./sqrt(V1+V2)
es=1./sqrt(V11)
Fa=inline('0.1.*sqrt(1.*x.*exp(-(x-3.4).^2./(2.5.^2)).*exp(-(y-
0).^2./(2.*2.6.^2))).*0.15.*sqrt(exp(-(x-4.2).^2./(2.*2.6.^2)).*exp(-(y-
0).^2./(2.*2.6.^2)))')
Fb=inline('0.1.*sqrt(1.45.*exp(-(x-6.5)./1.25).*exp(-(y-
0).^2./(2.*2.6.^2))).*0.15.*0.15.*sqrt(exp(-(x-4.2).^2./(2.*2.6.^2)).*exp(-(y-
0).^2./(2.*2.6.^2)))')
Va=dblquad(Fa,0,6.4,-10,10)
Vb=dblquad(Fb,6.4,15,-10,10)
V=(Va+Vb).^2
174
Appendix B: Publications, International Conference Papers and Patents
Appendix B
175
Appendix B: Publications, International Conference Papers and Patents
Patents
176