计算脉冲在非线性耦合器中演化的Matlab 程序 tv5G']vO\
ml\A)8O]j/
% This Matlab script file solves the coupled nonlinear Schrodinger equations of K%O%#Kk
% soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of z.--"cF
% Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear 4Z,MqG>
% pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004 .hXxh)F
,..&j+m
%fid=fopen('e21.dat','w'); 6|L<?
X
N = 128; % Number of Fourier modes (Time domain sampling points) }[k~JXt
M1 =3000; % Total number of space steps rUR{MF&]D
J =100; % Steps between output of space 9ELLJ@oNC
T =10; % length of time windows:T*T0 ;kDz9Va
T0=0.1; % input pulse width gh#9<
MN1=0; % initial value for the space output location Z+x,Awq
dt = T/N; % time step h@&&.S`B
n = [-N/2:1:N/2-1]'; % Index x[zt(kC0+
t = n.*dt; ,E<(K8
u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10 /^SIJS@^`>
u20=u10.*0.0; % input to waveguide 2 [2:Q.Zj
u1=u10; u2=u20; vvwNJyU-
U1 = u1; qS:hv&~
U2 = u2; % Compute initial condition; save it in U A}W)La\
ww = 4*n.*n*pi*pi/T/T; % Square of frequency. Note i^2=-1. Z_Qs^e$
w=2*pi*n./T; x4Q*~,n
g=-i*ww./2; % w=2*pi*f*n./N, f=1/dt=N/T,so w=2*pi*n./T u1R_u9
L=4; % length of evoluation to compare with S. Trillo's paper $hXhq*5|c
dz=L/M1; % space step, make sure nonlinear<0.05 nep0<&