计算脉冲在非线性耦合器中演化的Matlab 程序 y
?]GOQI
U)a}XRS
% This Matlab script file solves the coupled nonlinear Schrodinger equations of #p}I 84Q
% soliton in 2 cores coupler. The output pulse evolution plot is shown in Fig.1 of Ej>5PXp'2
% Youfa Wang and Wenfeng Wang, “A simple and effective numerical method for nonlinear {tMpI\>S
% pulse propagation in N-core optical couplers”, IEEE Photonics Technology lett. Vol.16, No.4, pp1077-1079, 2004 M~7 gUb|
$J&wwP[
%fid=fopen('e21.dat','w'); o:jLM7$=
N = 128; % Number of Fourier modes (Time domain sampling points) xM}lX(V!w
M1 =3000; % Total number of space steps :<f7;.
J =100; % Steps between output of space j_c0oclSz
T =10; % length of time windows:T*T0 q:@$$}FjL
T0=0.1; % input pulse width W&dYH 4O
MN1=0; % initial value for the space output location szN`"Yi){
dt = T/N; % time step $]EG|]"Ns
n = [-N/2:1:N/2-1]'; % Index B'>(kZYMs
t = n.*dt; zz3Rld!b[
u10=1.*sech(1*t); % input to waveguide1 amplitude: power=u10*u10 V6Ie\+@.\
u20=u10.*0.0; % input to waveguide 2 hK*:pf
u1=u10; u2=u20; X(kyu,w
U1 = u1; E$] 7w4,n
U2 = u2; % Compute initial condition; save it in U <<