GTPhMPBBands
  • See Also
    • GTBandsPlot
    • GTBandsPlotImprove
    • GTDensityOfStatesPlot
    • GTPhMPBFields
    • GTPhSymmetryBands
    • GTPhSymmetryField
    • GTPhSymmetryPoint
    • GTReadFromFile
  • Related Guides
    • Photonics
    • The Mathematica Group Theory Package GTPack, V 1.4
    • See Also
      • GTBandsPlot
      • GTBandsPlotImprove
      • GTDensityOfStatesPlot
      • GTPhMPBFields
      • GTPhSymmetryBands
      • GTPhSymmetryField
      • GTPhSymmetryPoint
      • GTReadFromFile
    • Related Guides
      • Photonics
      • The Mathematica Group Theory Package GTPack, V 1.4

GTPhMPBBands[file, symmetry points,basis]

is used to read a photonic band structure from a file calculated by MPB. The band structure is calculated along lines defined by the symmetry points. basis contains the reciprocal basis used in the MPB calculation.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Square Lattice  
Hexagonal lattice  
Options  
GOPlotBands  
GOVerbose  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTBandsPlot
    • GTBandsPlotImprove
    • GTDensityOfStatesPlot
    • GTPhMPBFields
    • GTPhSymmetryBands
    • GTPhSymmetryField
    • GTPhSymmetryPoint
    • GTReadFromFile
  • Related Guides
    • Photonics
    • The Mathematica Group Theory Package GTPack, V 1.4
    • See Also
      • GTBandsPlot
      • GTBandsPlotImprove
      • GTDensityOfStatesPlot
      • GTPhMPBFields
      • GTPhSymmetryBands
      • GTPhSymmetryField
      • GTPhSymmetryPoint
      • GTReadFromFile
    • Related Guides
      • Photonics
      • The Mathematica Group Theory Package GTPack, V 1.4
GroupTheory`
GroupTheory`

GTPhMPBBands

GTPhMPBBands[file, symmetry points,basis]

is used to read a photonic band structure from a file calculated by MPB. The band structure is calculated along lines defined by the symmetry points. basis contains the reciprocal basis used in the MPB calculation.

Details and Options

  • The results of a photonic bandstructure calculation by means of MPB is stored in the output of MPB which cannot be used inside GTPack. The scripts GSMPBBands2D and GSMPBBands3D extract the information for the bands in a readable form. In the two-dimensional case filles are usually generated for TE and TM polarization. The constructed data set can be used by the GTBandsPlot command. Use of this script:
  • GSMPBBands2D output_mpb
  • Output of this script are the files bands2D_TE and bands2D_TM containing the data in the appropriate form. The scripts are located in the datasets/MPB directory.
  • basis has to be the basis used in the MPB calculation. symmetry points are the symmetry points are expressed not in Cartesian coordinates, but in basis.
  • The following option can be given:
  • GOPlotBands TrueControls the plot of the band structure in the Brillouin zone
    GOVerbose TrueControls the output of additional information
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica, chapter 11.1
  • J. D. Joannopoulos, S. G. Johnson, J. N. Winn, R. D. Meade, Photonic Crystals. Molding the flow of light, Princton 2008, p.68
  • K. Sakoda, Optiical Properties of Photonic Crystals, Springer, Berlin 2001

Examples

open all close all

Basic Examples  (3)

First load the package:

Wolfram Language code: Needs["GroupTheory`"]
Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets/MPB/"];

Square Lattice  (1)

The example of a square array of dielectric columns (see Joannopoulos et al., p. 68) with r=0.2 a is used. The permittivity is set to ϵ = 8.9 (alumina). The band structure is calculated along the lines Γ-X-M-Γ.

The reciprocal basis for this example is given by:

Wolfram Language code: basisc = {{1, 0}, {0, 1}};
Wolfram Language code: kpoints = {{{0, 0, 0}, "Γ"}, {{.5, 0, 0}, "X"}, {{.5, .5, 0}, "M"}};

It will be checked, if the file exists. First the calculated TM modes will be plotted.

Wolfram Language code: tmbands = GTPhMPBBands["bands2D_TM", kpoints, basisc];
Wolfram Language code: tmplt = GTBandsPlot[tmbands, 8, PlotRange -> {{0, 1.71}, {0, 1}}, FrameLabel -> {"", "ω a/(2 π c)"}, PlotLabel -> "Bands MPB", Joined -> True]

Now the calculated TE modes are plotted

Wolfram Language code: tebands = GTPhMPBBands["mbnds_te", kpoints, basisc];
Wolfram Language code: teplt = GTBandsPlot[tebands, 8, PlotRange -> {{0, 1.71}, {0, 1}}, FrameLabel -> {"", "ω a/(2 π c)"}, PlotLabel -> "Bands MPB", Joined -> True, PlotStyle -> Red]

The TM modes (blue) and TE modes (red) shown together.

Wolfram Language code: Show[teplt, tmplt]

Hexagonal lattice  (1)

We calculated the TM band of Sakoda's example (see his book, p. 57ff) by means of GTPack.

Wolfram Language code: γ = 0.62;ra = 0.423299;
Wolfram Language code: structure = {{"CircularRod", 1.0, {γ, ra, ra, 0, 0}, {0, 0, 0}}};eback = 2.72;

This is the reciprocal basis as given in Sakoda'S example.

Wolfram Language code: basish = {{1., -1 / Sqrt[3]}, {0, 2. / Sqrt[3]}};

Construction of reciprocal lattice vectors:

Wolfram Language code: clat = GTLatCluster[basish, 9]; gvec = GTLatShells[clat, GOSort -> True];

Path in the BZ.

Wolfram Language code: kpath = {{{1 / 2, -Sqrt[3] / 6, 0}, {0, 0, 0}, {2 / 3, 0, 0}}, {"M", "Γ", "K"}};kpts = GTBZLines[kpath, {22, 22}];

The Brillouinzone the basis vectors and the vectors to the symmetry points M and K are presented:

Wolfram Language code: bz = GTVoronoiCell[basish, {4, 2, 4}, kpath]

Γ, M, K expressed in terms of the basis vectors:

Wolfram Language code: kbas = {{{0, 0, 0}, "Γ"}, {{1 / 2, 0, 0}, "M"}, {{2 / 3, 1 / 3, 0}, "K"}}//N;

Γ, M, K in therms of the Cartesian coordinate system:

Wolfram Language code: kcart = {{{0, 0, 0}, "Γ"}, {{2 / 3, 0, 0}, "K"}, {{1 / 2, -Sqrt[3] / 6}, "M"}};
Wolfram Language code: hamTM = GTPhMasterObjects[structure, eback, gvec, GOPhPol -> "TM"];
Wolfram Language code: bandsTM = GTBands[hamTM, kpts, 15, GOPhotonic -> True, GOVerbose -> False];
Wolfram Language code: plotTM = GTBandsPlot[bandsTM, 15, FrameLabel -> {"", "ω a/(2 π c)"}, PlotLabel -> "TM polarization Sakoda example", Joined -> True, PlotRange -> {{0, 1.24402}, {0, 1.4}}]
Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets/MPB/"];

In MPB k-vectors are expressed in terms of the reciprocal basis vectors. Thus, we provide the basis used in the MPB calculation and the symmetry points defined as multiples of those basis vectors.

Wolfram Language code: tmbands = GTPhMPBBands["hexagonal_TM", kbas, basish];
Wolfram Language code: tmplt = GTBandsPlot[tmbands, 15, PlotRange -> {{0, 1.245}, {0, 1.4}}, FrameLabel -> {"", "ω a/(2 π c)"}, PlotLabel -> "Bands MPB", Joined -> True, PlotStyle -> Red]
Wolfram Language code: Show[tmplt, plotTM]

The dielectric contrast is low in this case, i.e. we get a good agreement with the MPB result with relatively small number of plane waves.

The input file for the calculation of the hexagonal example is given as hexagonal.ctl in the datatasets/MPB directory.

Options  (2)

GOPlotBands  (1)

Data for the calculation of then density of states are read from a file (square lattice example) . The argument kpoints is not used in this case, but the basis has to be given.

Wolfram Language code: Clear[kpoints]
Wolfram Language code: bandsTM = GTPhMPBBands["dos2D_TM", , basisc, GOPlotBands -> False];

Data are used to calculate the density of states for TM polarisation (dielectric rods in air, ϵ=8.9, r=0.2 a)

Wolfram Language code: parm = {0, 1, 501, .0, 1};GTDensityOfStatesPlot[bandsTM, parm, FrameLabel -> {"ωa/(2πc)", "DOS (arb. units)"}, PlotLabel -> "Density of states (TM polarization)"]

GOVerbose  (1)

Information not provided.

Wolfram Language code: tebands = GTPhMPBBands["bands2D_TE", kpoints, basisc, GOVerbose -> False];

See Also

GTBandsPlot  GTBandsPlotImprove  GTDensityOfStatesPlot  GTPhMPBFields  GTPhSymmetryBands  GTPhSymmetryField  GTPhSymmetryPoint  GTReadFromFile

Related Guides

    ▪
  • Photonics
  • ▪
  • The Mathematica Group Theory Package GTPack, V 1.4
Not Found - Wolfram Cloud