计算脉冲在非线性耦合器中演化的Matlab 程序 /f~V(DK
V^B'T]s
% This Matlab script file solves the coupled nonlinear Schrodinger equations of z #c)Q
% soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of <\!+J\YTA
% Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear %>`0hk88
% pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004 LL|$M;S
+Wh0Of
%fid=fopen('e21.dat','w'); |0:<Z(
N = 128; % Number of Fourier modes (Time domain sampling points) D@*<p h=
M1 =3000; % Total number of space steps 5jD2%"YUV
J =100; % Steps between output of space s<Pk[7`*
T =10; % length of time windows:T*T0 Bm2"} =
T0=0.1; % input pulse width qFp }+s
MN1=0; % initial value for the space output location r7o63]
dt = T/N; % time step 8X!^ 2B}J
n = [-N/2:1:N/2-1]'; % Index KZUB{Y^)
t = n.*dt; _Z z"`
u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10 hE0
p>R8
u20=u10.*0.0; % input to waveguide 2 /{
Lo0
u1=u10; u2=u20; `VY -3
U1 = u1; }D/0&