GTBandsPlotImprove
  • See Also
    • GTPhMPBBands
    • GTPhSymmetryBands
    • GTReadFromFile
    • GTSetTableColors
  • Related Guides
    • Electronic Structure
  • Tech Notes
    • Electronic structure
    • See Also
      • GTPhMPBBands
      • GTPhSymmetryBands
      • GTReadFromFile
      • GTSetTableColors
    • Related Guides
      • Electronic Structure
    • Tech Notes
      • Electronic structure

GTBandsPlotImprove[bands,text,modifications,minb,maxb]

is used to improve the labeling of bands with the notation of the irreducible representations stored in text in a plot. The bands from minb to maxb are analysed. With modifications the labeling can be modified.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
GOLabelShift  
See Also
Tech Notes
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTPhMPBBands
    • GTPhSymmetryBands
    • GTReadFromFile
    • GTSetTableColors
  • Related Guides
    • Electronic Structure
  • Tech Notes
    • Electronic structure
    • See Also
      • GTPhMPBBands
      • GTPhSymmetryBands
      • GTReadFromFile
      • GTSetTableColors
    • Related Guides
      • Electronic Structure
    • Tech Notes
      • Electronic structure
GroupTheory`
GroupTheory`

GTBandsPlotImprove

GTBandsPlotImprove[bands,text,modifications,minb,maxb]

is used to improve the labeling of bands with the notation of the irreducible representations stored in text in a plot. The bands from minb to maxb are analysed. With modifications the labeling can be modified.

Details and Options

  • GTBandsPlotImprove can be used to improve the labeling in plots resulting from the symmetry analysis of electronic or photonic band structures. Due to the degeneracy of the levels or small energetic distances of the eigenvalues the labels might be not placed in an optimal manner. This tool allows to shift or delete labels to create an optimal plot as a result of the symmetry analysis.
  • The list modifications allows the individual change of labels. It has the form: {{k-point, band, change}, {k-point, band, change},...}
  • change is either a relative shift of the y-coordinate of the label, or "D" to delete the label from the plot.
  • Alternatively Mathematica drawing tools can be used for an interactive change of the labels.
  • The following options can be given.
  • FrameLabel{" ", "a.u."}Axes labels
    GOLabelShift {0., 0.}shifts labels of Ireps
    JoinedTruecontinuous lines
    PlotLabel"Band structure"label of the plot
    PlotRangeAllset the range of the axes
    PlotStyle{{Thickness[Tiny], GrayLevel[0]}}styl of the plot
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica, chapter 9.6.
  • J. D. Joannopoulos, S. G. Johnson, J. N. Winn, R. D. Meade, Photonic Crystals. Molding the flow of light, Princton 2008, p .70
  • MPB: http://ab-initio.mit.edu

Examples

open all close all

Basic Examples  (1)

First load the package:

Wolfram Language code: Needs["GroupTheory`"]

As an example an eigenmode calculated by means of MPB will be analysed. The data are stored in the subdirectory datasets.

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

A circular rod in a quadratic unit cell is considered. The radius of the rod is . The point group of the problem is .

Wolfram Language code: c4v = GTInstallGroup["C4v"]

It is checked, which objects are contained in the dataset.

The objects real and imaginary part (“z.r-new”, z.i-new”) of the mode after postprocessing with the tool mpb-data are necessary to prepare the mode for the symmetry analysis. It is possible to analyse only a certain range of the data.

Wolfram Language code: GTPhSymmetryBands["bands2D_TM", "e.k01.b01.z.tm.h5", {{1, "Γ"}, {52, "X"}, {103, "M"}, {154, "Γ"}}, 1, 6, {"z.r-new", "z.i-new"}, 30, c4v, {{1, 0}, {0, 1}}, PlotRange -> {{0, 1.8}, {0, 1}}]

The results of the symmetry analysis of bands 4 to 6 are stored in a list.

Wolfram Language code: symm = GTPhSymmetryBands["bands2D_TM", "e.k01.b01.z.tm.h5", {{1, "Γ"}, {52, "X"}, {103, "M"}, {154, "Γ"}}, 1, 6, {"z.r-new", "z.i-new"}, 30, c4v, {{1, 0}, {0, 1}}, PlotRange -> {{0, 1.71}, {0, 1}}, GOPlot -> False]

The output of the symmetry analysis can be used to improve the plot. All symmetry data are extracted from the third part of symm. The band structure has to be provided separately.

Wolfram Language code: basis = {{0, 1}, {1, 0}}; kp = {{{0., 0., 0.}, "Γ"}, {{.5, 0, 0}, "X"}, {{.5, .5, 0}, "M"}}
Wolfram Language code: bands = GTPhMPBBands["bands2D_TM", kp, basis];

The modification list mod is used to correct the labels at Γ and the X point. The 6th label at the Γ point is deleted and the 4th label at the X point is shifted downwards. The row below the irreducible representation for each band contains the original energies (frequencies), i.e. y-coordinates. The next line contains the modified y-coordinates.

Wolfram Language code: mod = {{1, 6, "D"}, {2, 4, -.05}};
Wolfram Language code: GTBandsPlotImprove[bands, symm[[3]], mod, 1, 6, PlotLabel -> "Photonic bandstructure", FrameLabel -> {" ", "ω a /(2π c)"}, PlotRange -> {{0, 1.8}, {0, 1}}]

Options  (2)

FrameLabel, Joined, PlotLabel, PlotRange, and PlotStyle are options of Mathematica’s plot functions and not discussed here.

GOLabelShift  (1)

The standard offset for the labels here is {0,0}. All labels can be shifted together by means of GOLabelShift.

Wolfram Language code: GTBandsPlotImprove[bands, symm[[3]], {{2, 4, -.05}}, 1, 6, PlotLabel -> "Photonic bandstructure", FrameLabel -> {" ", "ω a /(2π c)"}, PlotRange -> {{0, 1.71}, {0, 0.85}}, GOLabelShift -> {.1, .1}]

A large shift is used to demonstrate the effect. This general shift is not expressed in the second row of energy values in the table.

See Also

GTPhMPBBands  GTPhSymmetryBands  GTReadFromFile  GTSetTableColors

Tech Notes

    ▪
  • Electronic structure

Related Guides

    ▪
  • Electronic Structure
Not Found - Wolfram Cloud