Eigenmodes in a 2D photonic crystal
consider a 2D photonic crystal consisting of cylinders with circular cross-section and infinite height, arranged in a triangular lattice;
this program calculates and plots the spatial distributions in the unit cell (E&H) of eigenmodes allowed at a given frequency ; 'omega'is taken as input; oblique propagation is implicit, so the polarization states cannot be separated in E-pol and H-pol;
Fourier coefficients for the expansion of dielectric constant are calculated analytically;
the materials considered here are dielectric and dispersionless;
the package contains the following programs:
pwem2Dc.m - main program
epsgg.m - routine for calculating the matrix of Fourier coefficients of dielectric function
prcellgrid.m - routine for discretization of direct space, to be used for plotting the field distribution
kvect2.m - routine for calculating diagonal matrices with elements (kx+Gx) and (ky+Gy), where G=(Gx,Gy) is a reciprocal lattice vector
oblic_eigs.m - routine for solving the eigenvalue problem for
H-field
rfields.m - routine for calculation of field spatial distributions
Cite As
Cazimir-Gabriel Bostan (2025). Eigenmodes in a 2D photonic crystal (https://www.mathworks.com/matlabcentral/fileexchange/22808-eigenmodes-in-a-2d-photonic-crystal), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Sciences > Physics > Condensed Matter & Materials Physics >
- Sciences > Physics > Atomic, Molecular & Optical > Photonics >
- Engineering > Electrical and Computer Engineering > Microelectronics, Photonics and Nanotechnology >
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |