GTBZMPBPointMesh
  • See Also
    • GTBZLines
    • GTBZPath
    • GTBZPointMesh
    • GTDensityOfStatesPlot
    • GTPhMPBBands
  • Related Guides
    • Lattice
    • See Also
      • GTBZLines
      • GTBZPath
      • GTBZPointMesh
      • GTDensityOfStatesPlot
      • GTPhMPBBands
    • Related Guides
      • Lattice

GTBZMPBPointMesh[file, kmesh, basis]

exports a set of k-points in MPB data format. basis is the reciprocal basis used in the MPB calculation.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Hexagonal lattice  
Generalizations & Extensions  
Options  
GOVerbose  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTBZLines
    • GTBZPath
    • GTBZPointMesh
    • GTDensityOfStatesPlot
    • GTPhMPBBands
  • Related Guides
    • Lattice
    • See Also
      • GTBZLines
      • GTBZPath
      • GTBZPointMesh
      • GTDensityOfStatesPlot
      • GTPhMPBBands
    • Related Guides
      • Lattice
GroupTheory`
GroupTheory`

GTBZMPBPointMesh

GTBZMPBPointMesh[file, kmesh, basis]

exports a set of k-points in MPB data format. basis is the reciprocal basis used in the MPB calculation.

Details and Options

  • It is possible to calculate the density of states by means of GTDensityOfStatesPlot from band structure data calculated with MPB. The corresponding k-mesh is generated by means of GTBZPointMesh. This data set is exported in a form that can be used in the control files of MPB.
  • Be careful with the units of k-points in GTPack and MPB. Note, in GTBZPointMesh the k-points are generated related to Cartesian unit vectors. MPB relates the k-vectors to the reciprocal basis vectors. GTBZMPBPointMesh takes care to recalculate the k-points.
  • The following options can be given:
  • GOVerbose TrueControls output of additional information
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica. Appendix C
  • K. Sakoda, Optical Properties of Photonic Crystals, Springer, Berlin, 2001

Examples

open all close all
Wolfram Language code: Needs["GroupTheory`"]

Basic Examples  (2)

Wolfram Language code: SetDirectory[$TemporaryDirectory];

Define a set of k-points to get finally the data for a DOS calculation by means of MPB.

Wolfram Language code: kmesh = GTBZPointMesh[3, 1, "square"]

Export the data. The reciprocal basis of the square lattice is given:

Wolfram Language code: basisc = {{1, 0}, {0, 1}}
Wolfram Language code: GTBZMPBPointMesh["kpoints.ctl", kmesh, basisc]
Wolfram Language code: Import["kpoints.ctl"]

In principle it is possible to export also a series of lines. In this case only the k-points itself should be exported. In such a case it is better to use the capabilities of MPB to define the lines.

Wolfram Language code: sc = GTBZPath["sc"];line = GTBZLines[sc, {5, 5, 5, 5, 5, 5}]
Wolfram Language code: kpts = Transpose[line[[1]]][[3]];
Wolfram Language code: GTBZMPBPointMesh["line.ctl", kpts, basisc]
Wolfram Language code: Import["line.ctl"]

Hexagonal lattice  (1)

We choose the example from Sakoda's book p 57ff. Band structure is calculated by means of MPB.

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

The reciprocal basis from Sakoda's book was used in the MPB calculation.

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

The symmetry points expressed in the reciprocal basis vectors are:

Wolfram Language code: kbas = {{{0, 0, 0}, "Γ"}, {{1 / 2, 0, 0}, "M"}, {{2 / 3, 1 / 3, 0}, "K"}};
Wolfram Language code: tmbands = GTPhMPBBands["hexagonal_TM", kbas, basish];
Wolfram Language code: tmplt = GTBandsPlot[tmbands, 15, PlotRange -> {{0, 1.25}, {0, 1.4}}, FrameLabel -> {"", "ω a/(2 π c)"}, PlotLabel -> "Bands MPB", Joined -> True, PlotStyle -> Red]
  • Calculate the k-points (Cartesian) and prepare the k-points for calculation in MPB.
  • Wolfram Language code: SetDirectory[$TemporaryDirectory];
    Wolfram Language code: pts = GTBZPointMesh[50, 2 / 3, "hexagonal"];
    Wolfram Language code: GTBZMPBPointMesh["k_vectors.ctl", pts, basish]

    By means of: cat head.ctl k_vectors.ctl tail.ctl >hex_DOS.ctl you will get a ctl file to calculate the eigenvalues for the DOS calculation by means of MPB (head.ctl, tail.ctl are given in datasets/MPB).

    The eigenvalues for the DOS calculation are already calculated.

    Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets/MPB/"];
    Wolfram Language code: bandsTM = GTPhMPBBands["hexagonal_DOS_TM", , basish, GOPlotBands -> False];

    Calculation of the DOS for this example.

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

    Generalizations & Extensions  (1)

    The order of the arguments doesn't matter.

    Wolfram Language code: GTBZMPBPointMesh[kmesh, "kpoints.ctl"]

    Options  (1)

    GOVerbose  (1)

    Controls the output of additional information.

    Wolfram Language code: kmesh = GTBZPointMesh[3, 1, "square"];
    Wolfram Language code: GTBZMPBPointMesh["test", kmesh, GOVerbose -> False]

    See Also

    GTBZLines  GTBZPath  GTBZPointMesh  GTDensityOfStatesPlot  GTPhMPBBands

    Related Guides

      ▪
    • Lattice
    Not Found - Wolfram Cloud