计算脉冲在非线性耦合器中演化的Matlab 程序 Fo|xzLm9*|
hYg'2OG
% This Matlab script file solves the coupled nonlinear Schrodinger equations of *@S@x{{s
% soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of uzU{z;
% Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear
4na8
% pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004 L^0v\
p{tK_ZBy]c
%fid=fopen('e21.dat','w'); B$a-og(
N = 128; % Number of Fourier modes (Time domain sampling points) ,/2LY4` 5
M1 =3000; % Total number of space steps lK(Fg
J =100; % Steps between output of space H3KTir"on
T =10; % length of time windows:T*T0 lj[,|[X7`
T0=0.1; % input pulse width c:hK$C)T
MN1=0; % initial value for the space output location ]k%PG-9
dt = T/N; % time step M]rO;^ ;6?
n = [-N/2:1:N/2-1]'; % Index M {a
#
t = n.*dt; _GA$6#]
u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10 j,-C{ K
u20=u10.*0.0; % input to waveguide 2 tw K^I6@
u1=u10; u2=u20; `DW2spd
U1 = u1; 3YL
l;TP_
U2 = u2; % Compute initial condition; save it in U 1y5Ex:JVZT
ww = 4*n.*n*pi*pi/T/T; % Square of frequency. Note i^2=-1. Te-Amu
w=2*pi*n./T; %w}gzxN^
g=-i*ww./2; % w=2*pi*f*n./N, f=1/dt=N/T,so w=2*pi*n./T uh3)0.nR
L=4; % length of evoluation to compare with S. Trillo's paper b>=_*nw9
dz=L/M1; % space step, make sure nonlinear<0.05 [c&