95Optical Fibers: Signal Attenuation and Dispersion
3.A.5
A
ppendix: Program
Li
stings of
In
itialization File
% This file initialization file – declaring all parameters and data
% required for Simulink model and Split Step Fourier Method (SSFM)
clear all
close all
% CONSTANTS
c = 299792458;
% speed of light (m/s)
% NUMERICAL PARAMETERS
numbitspersymbol = 1
P0 = 0.003;
% peak power (W)
FWHM = 25
% pulse width FWHM (ps)
%halfwidth = FWHM/1.6651
% for Gaussian pulse
halfwidth = FWHM
% for square pulse
bitrate = 1/halfwidth;
% THz
baudrate = bitrate/numbitspersymbol;
signalbandwidth = baudrate;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% for DPSK
V
π = 5;
halfVπ = Vπ/2;
twoVπ = Vπ*2;
% nt = 2^8;
% number of points in FFT
PRBSlength = 2^5;
% Make sure : FFT time window (=nt*dt) ...