计算脉冲在非线性耦合器中演化的Matlab 程序 .oM;D~(=9
/ hg)=p
% This Matlab script file solves the coupled nonlinear Schrodinger equations of JmC2buO
% soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of Z.`0
% Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear ;OC{B}.vH
% pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004 E~c>j<'-"<
woa|h"T
%fid=fopen('e21.dat','w'); :w]NN\
N = 128; % Number of Fourier modes (Time domain sampling points) =om<* \vsO
M1 =3000; % Total number of space steps 9a#Y
D;-p
J =100; % Steps between output of space @=OX7zq\h-
T =10; % length of time windows:T*T0 :Wihb#TO)
T0=0.1; % input pulse width ~l('ly
MN1=0; % initial value for the space output location (coaGQ@d
dt = T/N; % time step Wcbm,O4u
n = [-N/2:1:N/2-1]'; % Index 'U,\5jj'Y
t = n.*dt; kzVK%[/
u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10 ^fV-m&F)K*
u20=u10.*0.0; % input to waveguide 2 qOAP_\@T
u1=u10; u2=u20; cqaq~
U1 = u1; 7pN&fAtj/
U2 = u2; % Compute initial condition; save it in U
3L-$+j~u
ww = 4*n.*n*pi*pi/T/T; % Square of frequency. Note i^2=-1. X/buz
w=2*pi*n./T; V/xjI<