计算脉冲在非线性耦合器中演化的Matlab 程序 Lf&p2p?~c
ync2X{9D
% This Matlab script file solves the coupled nonlinear Schrodinger equations of k+{-iPm{
% soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of ZTWbe
% Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear n@mWBUM
% pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004 ^TJn&k
bBc<yaN
%fid=fopen('e21.dat','w'); G@oY2sM"
N = 128; % Number of Fourier modes (Time domain sampling points) p-GlGEt_X
M1 =3000; % Total number of space steps *T*=~Y4kE
J =100; % Steps between output of space @H"~/ m_o
T =10; % length of time windows:T*T0 aIpDf|~
T0=0.1; % input pulse width cXFNX<
MN1=0; % initial value for the space output location KtU I(*$`
dt = T/N; % time step ^1BQejD
n = [-N/2:1:N/2-1]'; % Index ``)ys^V
t = n.*dt; G,e>dp_cPu
u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10
xN:ih*+,v
u20=u10.*0.0; % input to waveguide 2 ns9iTU)
u1=u10; u2=u20; P&V,x`<Z
U1 = u1; p3`'i
U2 = u2; % Compute initial condition; save it in U 6&S;Nrg9
ww = 4*n.*n*pi*pi/T/T; % Square of frequency. Note i^2=-1. XL>cTM
w=2*pi*n./T; x'{L %c>L
g=-i*ww./2; % w=2*pi*f*n./N, f=1/dt=N/T,so w=2*pi*n./T M2(+}gv;7p
L=4; % length of evoluation to compare with S. Trillo's paper 3XYCtp8
dz=L/M1; % space step, make sure nonlinear<0.05
`@b+'L
for m1 = 1:1:M1 % Start space evolution ZWQrG'$?o8
u1 = exp(dz*i*(abs(u1).*abs(u1))).*u1; % 1st sSolve nonlinear part of NLS k, &