计算脉冲在非线性耦合器中演化的Matlab 程序 g3"`b)M
4xg%OH
% This Matlab script file solves the coupled nonlinear Schrodinger equations of M|76,2u
% soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of G?YKm1:w
% Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear UJlKw `4
% pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004 <!4'?K -N
3<?(1kSo>>
%fid=fopen('e21.dat','w'); .!=2#<
N = 128; % Number of Fourier modes (Time domain sampling points) N<O^%!bu R
M1 =3000; % Total number of space steps @YV-8;hO
J =100; % Steps between output of space o- GHAQ
T =10; % length of time windows:T*T0 N"FQMxqm
T0=0.1; % input pulse width =[vT=sHz7
MN1=0; % initial value for the space output location $FCLo8/=
dt = T/N; % time step kjjO<x?&*
n = [-N/2:1:N/2-1]'; % Index +FyG{1?<
t = n.*dt; Pm
V:J9
u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10 zq(AN<
u20=u10.*0.0; % input to waveguide 2 * 496"kU
u1=u10; u2=u20; _[IN9ZC 2G
U1 = u1; 9G 9!=J
U2 = u2; % Compute initial condition; save it in U aq[kKS`
ww = 4*n.*n*pi*pi/T/T; % Square of frequency. Note i^2=-1. }6ec2I%`o
w=2*pi*n./T; m<