GTBZMPBPointMesh[file, kmesh, basis]
exports a set of k-points in MPB data format. basis is the reciprocal basis used in the MPB calculation.
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 True Controls 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 allNeeds["GroupTheory`"]Basic Examples (2)
SetDirectory[$TemporaryDirectory];Define a set of k-points to get finally the data for a DOS calculation by means of MPB.
kmesh = GTBZPointMesh[3, 1, "square"]Export the data. The reciprocal basis of the square lattice is given:
basisc = {{1, 0}, {0, 1}}GTBZMPBPointMesh["kpoints.ctl", kmesh, basisc]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.
sc = GTBZPath["sc"];line = GTBZLines[sc, {5, 5, 5, 5, 5, 5}]kpts = Transpose[line[[1]]][[3]];GTBZMPBPointMesh["line.ctl", kpts, basisc]Import["line.ctl"]Hexagonal lattice (1)
We choose the example from Sakoda's book p 57ff. Band structure is calculated by means of MPB.
SetDirectory[NotebookDirectory[] <> "datasets/MPB/"];The reciprocal basis from Sakoda's book was used in the MPB calculation.
basish = {{1., -1 / Sqrt[3]}, {0, 2. / Sqrt[3]}};The symmetry points expressed in the reciprocal basis vectors are:
kbas = {{{0, 0, 0}, "Γ"}, {{1 / 2, 0, 0}, "M"}, {{2 / 3, 1 / 3, 0}, "K"}};tmbands = GTPhMPBBands["hexagonal_TM", kbas, basish];tmplt = GTBandsPlot[tmbands, 15, PlotRange -> {{0, 1.25}, {0, 1.4}}, FrameLabel -> {"", "ω a/(2 π c)"}, PlotLabel -> "Bands MPB", Joined -> True, PlotStyle -> Red]SetDirectory[$TemporaryDirectory];pts = GTBZPointMesh[50, 2 / 3, "hexagonal"];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.
SetDirectory[NotebookDirectory[] <> "datasets/MPB/"];bandsTM = GTPhMPBBands["hexagonal_DOS_TM", , basish, GOPlotBands -> False];Calculation of the DOS for this example.
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)
Related Guides
-
▪
- Lattice