资源简介
光纤光栅耦合模算法的MATLAB代码
光纤光栅耦合模算法的MATLAB代码
代码片段和文件信息
% APPENDIX A : Matlab Code for Simulation of
% Gratings using the Transfer
% Matrix Method
%THIS M-FILE USES THE TRANFER MATRIX METHOD TO EVALUATE THE COUPLED-MODE
%EQUATIONS. THE REFLECTION SPECTRUM OF THE GRATING AND THE TRANSMISSION
%SPECTRUM DELAY AND DISPERSION OF THE FABRY-PEROT FILTER ARE SIMULATED
clear all
close all
clc
%======================================================================
% Fibre simulation parameters
walD = 1.55e-6; %design wavelength
wal1 = 0.999*walD;
wal2 = 1.001*walD;
step = 500;
wal = [wal1:(wal2-wal1)/step:wal2];
%======================================================================
%For a grating of maximun reflectance R = 0.2
Rmax = 0.2; %required maximum reflectivity
rmax = sqrt(Rmax);
kacL = atanh(rmax);
c = 2.99793e8; %Speed of light
h = 25e-9;
v = 1; %Fringe visibilty
%======================================================================
%Implementation of the transfer matrix method for solution of
%coupled-mode equations
nef = 1.47; %core index of photosensitive fibre
L = 3000e-6; %length of grating in micrometers
M = 100;
dz = L/M;
dzo = - L + 10.69e-3; %Distance between gratings
kac = kacL/L; %“AC“ coupling coefficient
kdc = 2*kac/v; %“DC“ coupling coefficient
for (r = 1:step+1)
w = wal(r);
F = [1 0; 0 1];
for(s = 1:M)
det = 2*pi*nef*(1/w - 1/walD);
gdc = det + kdc;
p1 = sqrt(kac^2 - gdc^2);
p2 = gdc^2/kac^2;
f11 = cosh(p1*dz) - i*(gdc/p1)*sinh(p1*dz);
f12 = -i*(kac/p1)*sinh(p1*dz);
f21 = i*(kac/p1)*sinh(p1*dz);
f22 = cosh(p1*dz) + i*(gdc/p1)*sinh(p1*dz);
ff = [f11 f12; f21 f22];
F = ff*F;
end
r3(r) = F(21)/F(11); %amplitude reflection coefficient
R3(r) = (abs(
- 上一篇:multisim字发生器
- 下一篇:chirp.m线性调频信号
相关资源
- 均匀布拉格光栅的原理及MATLAB反射谱
- 啁啾光纤光栅的光学特征matlab
- 长周期光栅光谱matlab仿真
- matlab计算光栅衍射效率
- 啁啾光栅matlab仿真
- 闪耀光栅输出光强分布仿真
- matlab对光栅的仿真代码
- 通过达曼光栅生成点阵的matlab程序
- matlab产生正弦光栅条纹
- 光栅条纹投影生成gui
- 切趾光纤光栅仿真
- 布拉格光栅MATLAB反射谱仿真
- Matlab生成一维光栅
- 光栅生成程序
- MATLAB写的简单的光栅条纹生成代码
- matlab模拟光纤光栅算法与代码
- 啁啾光纤光栅matlab仿真源程序
- 光栅反射率光谱的matlab仿真代码
- 啁啾光纤光栅
- 用matlab研究光栅衍射
- 光纤布拉格光栅和长周期光栅算法与
- 通过达曼光栅生成点阵的matlab程序.
- 求解四步相移法的光栅相位的matlab程
- matlab对各种光纤光栅的仿真
- heterodyne_unwrap 包含用于条纹图像的旋
- 光纤Bragg光栅反射谱
- 正弦光栅、矩孔、圆孔的菲涅尔衍射
- 切趾光栅反射谱
评论
共有 条评论