24小时热门版块排行榜    

查看: 1234  |  回复: 1

hywdx510

木虫 (小有名气)

[交流] 【讨论】光纤中光信号非线性效应的传输方程仿真的有关讨论 已有1人参与

Agrawal在其所著Nonlinear Fiber Optics(4ed)Appendix B中给出了该方程一个利用split-step解法Matlab程序。程序中按理用快速傅里叶变换fft处都用了反变换ifft,而应该用反变换ifft处都用了正变换fft(在程序中用黑体标注)。
讨论问题:
1. 这样反着用对结果有无影响?
2. 在理论层面分析为什么这样用?
% This code solves the NLS equation with the split-step method
% idu/dz - sgn(beta2)/2 d^2u/d(tau)^2 + N^2*|u|^2*u = 0
% Written by Govind P. Agrawal in March 2005 for the NLFO book
%---Specify input parameters
clear all; %
distance = input(’Enter fiber length (in units of L_D) =’); %
beta2 = input(’dispersion: 1 for normal, -1 for anomalous’);%
N = input(’Nonlinear parameter N = ’); % soliton order
mshape = input(’m = 0 for sech, m > 0 for super-Gaussian = ’);
chirp0 = 0; % input pulse chirp (default value)
%---set simulation parameters
nt = 1024; Tmax = 32; % FFT points and window size
step_num = round(20*distance*N^2); % No. of z steps to
deltaz = distance/step_num; % step size in z
dtau = (2*Tmax)/nt; % step size in tau
%---tau and omega arrays
tau = (-nt/2:nt/2-1)*dtau; % temporal grid
omega = (pi/Tmax)*[(0:nt/2-1) (-nt/2:-1)]; % frequency grid
%---Input Field profile
if mshape==0
uu = sech(tau).*exp(-0.5i*chirp0*tau.^2); % soliton
else % super-Gaussian
uu = exp(-0.5*(1+1i*chirp0).*tau.^(2*mshape));
end
%---Plot input pulse shape and spectrum
temp = fftshift(ifft(uu)).*(nt*dtau)/sqrt(2*pi); % spectrum
figure;
subplot(2,1,1);
plot(tau, abs(uu).^2, ’--k’); hold on;
axis([-5 5 0 inf]);
xlabel(’Normalized Time’);
ylabel(’Normalized Power’);
title(’Input and Output Pulse Shape and Spectrum’);
subplot(2,1,2);
plot(fftshift(omega)/(2*pi), abs(temp).^2, ’--k’); hold on;
axis([-.5 .5 0 inf]);
xlabel(’Normalized Frequency’);
ylabel(’Spectral Power’);
%---store dispersive phase shifts to speedup code
dispersion = exp(i*0.5*beta2*omega.^2*deltaz); % phase factor
hhz = 1i*N^2*deltaz; % nonlinear phase factor
%*********[ Beginning of MAIN Loop]***********
% scheme: 1/2N -> D -> 1/2N; first half step nonlinear
temp = uu.*exp(abs(uu).^2.*hhz/2); % note hhz/2
for n=1:step_num
f_temp = ifft(temp).*dispersion;
uu = fft(f_temp);

temp = uu.*exp(abs(uu).^2.*hhz);
end
uu = temp.*exp(-abs(uu).^2.*hhz/2); % Final field
temp = fftshift(ifft(uu)).*(nt*dtau)/sqrt(2*pi); %Final spectrum
%***************[ End of MAIN Loop ]**************
%----Plot output pulse shape and spectrum
subplot(2,1,1)
plot(tau, abs(uu).^2, ’-k’)
subplot(2,1,2)
plot(fftshift(omega)/(2*pi), abs(temp).^2, ’-k’)

欢迎大家讨论!
我试过,在循环迭代过程中,交换FFT和IFFT对结果没任何影响,说明FFT和IFFT只是成对出现时随便那个都可以定义为FFT,另一个就成了IFFT
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hywdx510

木虫 (小有名气)

我自己坐沙发
2楼2010-12-23 17:17:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 hywdx510 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 放榜前的不淡定 20+4 snowwithsea 2026-08-19 18/900 2026-08-25 14:50 by Weed114114
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 +4 ziyangfang 2026-08-25 4/200 2026-08-25 14:41 by ZJTJZ
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +6 yuleib84 2026-08-25 7/350 2026-08-25 14:40 by 六两废铜
[基金申请] 什么时候开奖? +12 CrisMessi 2026-08-18 13/650 2026-08-25 14:40 by ZJTJZ
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 人气不行了 +11 fansofjerry 2026-08-21 11/550 2026-08-25 11:04 by 孤独的英雄6
[基金申请] 2026国自然函评费到账 +19 羊腰板 2026-08-21 22/1100 2026-08-25 10:38 by popular289
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +3 苏东坡二世 2026-08-23 3/150 2026-08-25 10:35 by shisan1313
[基金申请] 2026年的国家社科基金项目通讯评审的新规则与新动向、新挑战 +5 process2012 2026-08-23 7/350 2026-08-25 09:42 by huixian257
[基金申请] 范进中举一文的中心思想 +7 炎黄贵胄 2026-08-22 8/400 2026-08-25 08:48 by ZJTJZ
[基金申请] 只有每年这种时候来逛逛小木虫 +25 yaoyewhu2008 2026-08-20 27/1350 2026-08-25 08:01 by Equinoxhua
[基金申请] 明天应该可查了!? +5 chengyan1220 2026-08-23 5/250 2026-08-24 23:28 by 我4大白菜
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +17 医学老男孩 2026-08-20 21/1050 2026-08-24 14:21 by refreshing11
[基金申请] 今天放榜吗? +15 布布和一二 2026-08-19 16/800 2026-08-23 09:55 by 张春生
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] 应该是下周三26日公布了吧? +4 哈哈蛤? 2026-08-21 4/200 2026-08-21 10:58 by Vivilian
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
信息提示
请填处理意见