計(jì)算脈沖在非線性耦合器中演化的Matlab 程序 gsp|?)]x )mMHwLDwH % This Matlab script file solves the coupled nonlinear Schrodinger equations of
y9L:2f\ % soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of
rZv5>aEI % Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear
:3Hr:~ % pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004
X"qC&oZmf .I&]G %fid=fopen('e21.dat','w');
RtVG6'Y N = 128; % Number of Fourier modes (Time domain sampling points)
IT_Fs|$ M1 =3000; % Total number of space steps
nWAx!0G J =100; % Steps between output of space
{`vv-[j| T =10; % length of time windows:T*T0
X}$uvB}+> T0=0.1; % input pulse width
i''[u MN1=0; % initial value for the space output location
J_^Ml)@iy dt = T/N; % time step
O7z-4r n = [-N/2:1:N/2-1]'; % Index
F7zBm53 t = n.*dt;
71ctjU`U2 u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10
K)C9)J< u20=u10.*0.0; % input to waveguide 2
2|n~5\K|t u1=u10; u2=u20;
8}kY^"*&X U1 = u1;
lC ^NhQi U2 = u2; % Compute initial condition; save it in U
,#PeK( ww = 4*n.*n*pi*pi/T/T; % Square of frequency. Note i^2=-1.
8s_'tw/{ w=2*pi*n./T;
vpGeG g=-i*ww./2; % w=2*pi*f*n./N, f=1/dt=N/T,so w=2*pi*n./T
h)qapC5z, L=4; % length of evoluation to compare with S. Trillo's paper
O67.DEu^ dz=L/M1; % space step, make sure nonlinear<0.05
^Pk-<b4} for m1 = 1:1:M1 % Start space evolution
71?>~PnbH} u1 = exp(dz*i*(abs(u1).*abs(u1))).*u1; % 1st sSolve nonlinear part of NLS
yF}l.>7D u2 = exp(dz*i*(abs(u2).*abs(u2))).*u2;
,nELWzz%{ ca1 = fftshift(fft(u1)); % Take Fourier transform
MR@*09zP(? ca2 = fftshift(fft(u2));
)J"Lne*" c2=exp(g.*dz).*(ca2+i*1*ca1.*dz); % approximation
'bpx c1=exp(g.*dz).*(ca1+i*1*ca2.*dz); % frequency domain phase shift
wtDy-H n u2 = ifft(fftshift(c2)); % Return to physical space
l`s_#3 u1 = ifft(fftshift(c1));
\y9( b if rem(m1,J) == 0 % Save output every J steps.
a0oM KGW: U1 = [U1 u1]; % put solutions in U array
`4'['x U2=[U2 u2];
i#M$i*H*A MN1=[MN1 m1];
=*aun& z1=dz*MN1'; % output location
csV.AN'obq end
:b&O{>M]Y end
B|-E3v:f4 hg=abs(U1').*abs(U1'); % for data write to excel
mV0.9pxS ha=[z1 hg]; % for data write to excel
^y,%Tv> t1=[0 t'];
j`Xe0U< hh=[t1' ha']; % for data write to excel file
p<\yp<g %dlmwrite('aa',hh,'\t'); % save data in the excel format
Wv]NFHe# figure(1)
4A_}:nU waterfall(t',z1',abs(U1').*abs(U1')) % t' is 1xn, z' is 1xm, and U1' is mxn
_[8BAm figure(2)
, wT$L3 waterfall(t',z1',abs(U2').*abs(U2')) % t' is 1xn, z' is 1xm, and U1' is mxn
FbVdqO Jp<Y2- 非線性超快脈沖耦合的數(shù)值方法的Matlab程序 i6p0(OS&D TlD)E 在研究脈沖在非線性耦合器中的演變時(shí),我們需要求解非線性偏微分方程組。在如下的
論文中,我們提出了一種簡(jiǎn)潔的數(shù)值方法。 這里我們提供給大家用Matlab編寫(xiě)的計(jì)算程序。
{BBL`tg60 Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004
vt3yCS G(-1"7 h[SuuW DbdxHuKa> % This Matlab script file solves the nonlinear Schrodinger equations
<j93 % for 3 cores nonlinear coupler. The output plot is shown in Fig.2 of
hVe@:1og# % Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear
5fK#*(x % pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004
H=OKm 2G'Au}
贡觉县|
麦盖提县|
迁安市|
汾阳市|
保靖县|
兰溪市|
开封县|
绥宁县|
天峻县|
浪卡子县|
铅山县|
石渠县|
涪陵区|
南陵县|
镶黄旗|
普洱|
天镇县|
行唐县|
木里|
仙桃市|
如东县|
泰宁县|
新龙县|
襄垣县|
青阳县|
全椒县|
牟定县|
黑河市|
龙州县|
太康县|
淮安市|
左权县|
福清市|
安新县|
连山|
山阳县|
阿瓦提县|
北辰区|
墨竹工卡县|
高密市|
攀枝花市|