4 views

Uploaded by eng2011tech

MATLAB code for evolution of a Gaussian pulse in optical fibers

- Energy&Power
- [CHOO, Yan Min] H1 Mathematics Textbook (Singapore(B-ok.xyz)
- Sustaining Earth's Energy Resources(2011)ANN HEINRICHS
- ap statistics normal curve lesson plan
- FirePlaces CustomerPrice Feb2008
- Wiki. Normal Distribution
- Uncertainty-Measurements-and-Error-Analysis-PowerPoint-2015.pdf
- CHAPTER (2) Statistical Treatment of Experimental Data
- Fixed-Income Portfolio Analytics
- A S O
- Maximum Expected Demand Form
- Stat 491 Chapter 5--Continuous Probability Distributions
- Porter Beginners Guide Fragility
- Cleco-Power-LLC-21_S-Seasonal-Service
- New Connection 15
- Application 12
- Spec Sheet 12 Watt
- 06-14-PP CHAPTER 06 Continuous Probability
- Stochasticmodeling-Jul172009
- sub-gaussian-random-variables-6.pdf

You are on page 1of 6

% Gauss_evolve

%

% Calculate and plot the evolution in an optical fiber of a Gaussian pulse

% Input parameters

%

N = 1024

%

T_domain = 100

%

t_FWHM_0 = 20

%

P_0 = 1

%

D = -1

%

z_plot = [0 100 200

total time domain kept [in ps]

initial pulse FWHM [in ps]

initial peak power [in mW]

dispersion coefficient [in ps/nm-km]

500] % z-values to plot [in km]

% Derived parameters

%

Delta_t = T_domain/N;

% node spacing in time

Delta_om = 2*pi/T_domain;

% node spacing in radial frequency

Amp = sqrt(P_0);

% initial amplitude of the Gaussian

t_0 = t_FWHM_0/(2*sqrt(log(2)));

% initial pulse standard deviation

k_0_dp = -1.2*D; % translation to ps^2/km

% WARNING: Only valid at 1.5 microns

% Input vectors

%

t_vec = Delta_t*(-N/2:1:(N/2)-1);

%create array of time points

om_vec = Delta_om*(-N/2:1:(N/2)-1); %create array of radial frequency points

u_vec = Amp*exp(-t_vec.^2/(2*t_0^2)); %create array of initial amplitudes

% Shift u-vec for the DFT

%

a_vec(1:N/2) = u_vec((N/2)+1:N);

a_vec((N/2)+1:N) = u_vec(1:N/2);

% Shift and square om_vec for use in calculating z-evolution

%

om_vec_square_shift(1:N/2) = om_vec((N/2)+1:N).^2;

om_vec_square_shift((N/2)+1:N) = om_vec(1:N/2).^2;

% Carry out IFFT (appropriate for physics convention)

%

a_tilde_vec = ifft(a_vec,N);

% Enter loop to determine and plot z-evolution

%

n_plot = length(z_plot);

%determine number of z-values

for i_plot = 1:n_plot;

% Determine the z-value and the exponential factor for evolution

%

z_val = z_plot(i_plot);

factor = exp((sqrt(-1)/2)*k_0_dp*om_vec_square_shift*z_val);

% NOTE: I use sqrt(-1) for i to avoid problems with re-definition

% Carry out the z-shift and transform to time domain

%

a_tilde_vec_z = a_tilde_vec.*factor;

a_vec_z = fft(a_tilde_vec_z,N);

% Calculate powers as a function of array number and time

%

P_a_z = a_vec_z.*conj(a_vec_z);

% power as a function of array number

P_u_z(1:N/2) = P_a_z((N/2)+1:N); % shift to obtain power as a ...

P_u_z((N/2)+1:N) = P_a_z(1:N/2); % function of time

% Calculate analytical formula for the power for comparison

%

t_z = sqrt(t_0^2 + (k_0_dp*z_val)^2/t_0^2); % new standard deviation

t_FWHM_z = 2*sqrt(log(2))*t_z;

% new FWHM duration

P_comp_z = P_0*(t_0/t_z)*exp(-t_vec.^2/t_z^2);

% Plot results

%

plot(P_a_z)

% power as a function of array number

axis([1 N 0 P_0])

xlabel('array number')

ylabel('power [in mW]')

titlabel = sprintf('Evolution of a Gaussian function, z = %4.0f km'...

,z_val);

title(titlabel)

timetext = sprintf('FWHM pulse duration = %3.0f ps',t_FWHM_z);

text(0.25*N, 0.8*P_0,timetext)

pause

%

plot(t_vec,[P_u_z;P_comp_z])

% power as a function of time

axis([-T_domain/2 T_domain/2 0 P_0])

xlabel('time [in ps]')

ylabel('power [in mW]')

titlabel = sprintf('Evolution of a Gaussian function, z = %4.0f km'...

,z_val);

title(titlabel)

% --- suppress plotting of t_FWHM when it will overlap plot

if t_0/t_z < 0.8

timetext = sprintf('FWHM pulse duration = %3.0f ps',t_FWHM_z);

text(-0.25*T_domain, 0.8*P_0,timetext)

end

pause

end

MATLAB output z = 0 km

0 km

1

0.9

FWHM pulse duration = 20 ps

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

100

200

300

400

500

600

array number

700

800

900

1000

0 km

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

-50

-40

-30

-20

-10

0

10

time [in ps]

20

30

40

50

1

0.9

FWHM pulse duration = 26 ps

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

100

200

300

400

500

600

array number

700

800

900

1000

1

0.9

FWHM pulse duration = 26 ps

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

-50

-40

-30

-20

-10

0

10

time [in ps]

20

30

40

50

1

0.9

FWHM pulse duration = 39 ps

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

100

200

300

400

500

600

array number

700

800

900

1000

1

0.9

FWHM pulse duration = 39 ps

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

-50

-40

-30

-20

-10

0

10

time [in ps]

20

30

40

50

1

0.9

FWHM pulse duration = 86 ps

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

100

200

300

400

500

600

array number

700

800

900

1000

1

0.9

FWHM pulse duration = 86 ps

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

-50

-40

-30

-20

-10

0

10

time [in ps]

20

30

40

50

- Energy&PowerUploaded byBhuvaneshwari_ira
- [CHOO, Yan Min] H1 Mathematics Textbook (Singapore(B-ok.xyz)Uploaded bygog
- Sustaining Earth's Energy Resources(2011)ANN HEINRICHSUploaded byIon Zabet
- ap statistics normal curve lesson planUploaded byapi-215517770
- FirePlaces CustomerPrice Feb2008Uploaded byShivansh Singh Gautam
- Wiki. Normal DistributionUploaded bybrunoschwarz
- Uncertainty-Measurements-and-Error-Analysis-PowerPoint-2015.pdfUploaded byzilangamba_s4535
- CHAPTER (2) Statistical Treatment of Experimental DataUploaded byAhamed Saleel C
- Fixed-Income Portfolio AnalyticsUploaded byIshpreet singh
- A S OUploaded bypavan_8808
- Maximum Expected Demand FormUploaded byOrley Fadriquel
- Stat 491 Chapter 5--Continuous Probability DistributionsUploaded byHarry Berry
- Porter Beginners Guide FragilityUploaded bysatyam
- Cleco-Power-LLC-21_S-Seasonal-ServiceUploaded byGenability
- New Connection 15Uploaded bypedritinino
- Application 12Uploaded byDr. Ir. R. Didin Kusdian, MT.
- Spec Sheet 12 WattUploaded bygreengadgets
- 06-14-PP CHAPTER 06 Continuous ProbabilityUploaded byNawarajPokhrel
- Stochasticmodeling-Jul172009Uploaded byAnonymous WIDbfSVE
- sub-gaussian-random-variables-6.pdfUploaded by112536
- Normal Dis TribUploaded byMebrat Wubante
- Math-Supplement-.pdfUploaded byRajat Garg
- US Federal Trade Commission: wp264Uploaded byftc
- Ch2 Reading NotesUploaded by1012219
- 8 Image Processing 18Uploaded byPtb4doc
- שפות סימולציה- הרצאה 12 | Output Data Analysis IUploaded byRon
- elderu-solar lesson 2Uploaded byapi-257213385
- AQA-6380-W-SP-14.PDFUploaded byChris Punungwe
- AP 3419471957Uploaded byIJMER
- Pyrolysis Q'sUploaded byVallestero Siegfred

- publication_3_12475_913Uploaded byeng2011tech
- Khan 2008Uploaded byeng2011tech
- all_papers.pdfUploaded byeng2011tech
- [28]Uploaded byeng2011tech
- 01 Ofdm IntroUploaded byeng2011tech
- PAPR reduction techniquesUploaded bykiranpatrudu
- [30]Uploaded byeng2011tech
- [24]Uploaded byeng2011tech
- 139120085-Performance-Analysis-of-Coherent-Optical-OFDM-CO-OFDM-System-with-Dispersion-Compensation.pdfUploaded byeng2011tech
- 61ajd2q9hg846vUploaded byeng2011tech
- Kastro RCMNUploaded byeng2011tech
- Solv Laser Equa tUploaded byeng2011tech
- IJSHRE_2125Uploaded byeng2011tech
- IJCIT-120111.pdfUploaded byeng2011tech
- Error-Correction-Coding-Part-3.pdfUploaded byeng2011tech
- li2008Uploaded byeng2011tech
- 248737962-Error-Correction-Coding-Part-1.pdfUploaded byeng2011tech
- BER BPSKUploaded byeng2011tech
- cofdmUploaded byeng2011tech
- Optical Communications LaboratoryUploaded byeng2011tech
- 02 Ofdm TechUploaded byeng2011tech
- Capitalization Rule1Uploaded byeng2011tech
- Slm Ofdm 16qamUploaded byeng2011tech
- Qam Important code in matlabUploaded byeng2011tech
- OFDMUploaded byeng2011tech
- hri4P5aEUploaded byeng2011tech
- Channel Behaviour.mUploaded byeng2011tech
- Compute Symbol Error Rate Qam Ofdm Awgn.mUploaded byeng2011tech
- i8086 Instruction Set-with ExamplesUploaded byNarsimha Putta Jcnm

- Adomian decomposition methodUploaded bylekan4
- Chapter7.Numerical.analysisUploaded byadoncia123
- Assignment 1 Mathematics IUploaded byUjjWal MahAjan
- C4 Practice A2Uploaded byalekon323
- CP odd weak basis invariantsUploaded bySanjeev Kumar
- Gen_Analysis_Reference[Gen]Uploaded byAlexander Tan
- Algebra II Unit 1 Planning.docxUploaded byAdam Ladj
- SME_8e_Ch_04_Section_1Uploaded byelfishsamurai147
- Maxwell EquationsUploaded byAnupam0103
- 12 All TransformationsUploaded byAnwar Hossain
- 0606_s02_qp_2Uploaded bysiti akhiriyah
- Introduction to Super String Theory by PeskinUploaded byAvinanda Chaudhuri
- Chapter 1Uploaded byMuhammad Awais
- [Raymond a. Serway John W. Jewett] Physics for Sc(BookFi.org)Uploaded byHương Thảo
- XHENUploaded bykartho otho
- Tmp_23385-Div, Grad, Curl and All That - An Informal Text on Vector Calculus 3rd Ed - H. Schey (Norton, 1973) WW_text828558384Uploaded bysafariore
- qonotes-v4.7Uploaded byPino Bigbird
- ps2316-21Uploaded byGustavo Sánchez
- Simulink Ball BeamUploaded byJosé Perez
- mf4.pdfUploaded byShweta Sridhar
- AE Notification - 2018Uploaded byVikramSingh
- Real Time Oscilloscope Spectrum Analyzer and MatlabUploaded byShujun Pan
- 11th BusinessMath Model PaperUploaded byShawn Parker
- Handout 03 Continuous Random VariablesUploaded bymuhammad ali
- Calibration of Local Stochastic Vol Models to Market Smiles - Monte Carlo ApproachUploaded byabhishek210585
- Grade 8 Mathematics Test Examples (NY)Uploaded byyyanan1118
- FEM AssignmentUploaded byKarl Todd
- 1 DiffusionUploaded byHugh Huijue Fan
- RPT MATH F2 2012Uploaded byHurun Ain' Apple
- FEM ritz methodUploaded bywiesler