GTTbToFortran
  • See Also
    • GTTbDatabaseInfo
    • GTTbDatabaseRetrieve
    • GTTbHamiltonian
    • GTTbParameterNames
    • GTTbToFortranList
  • Related Guides
    • The Mathematica Group Theory Package GTPack, V 1.4
    • Tight Binding
    • See Also
      • GTTbDatabaseInfo
      • GTTbDatabaseRetrieve
      • GTTbHamiltonian
      • GTTbParameterNames
      • GTTbToFortranList
    • Related Guides
      • The Mathematica Group Theory Package GTPack, V 1.4
      • Tight Binding

GTTbToFortran[Hamiltonian,maximal angular momentum,maximum shell number,file name]

transforms a k-space tight-binding Hamiltonian into a FORTRAN module.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Options  
GOVerbose  
GOTbBasis  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTTbDatabaseInfo
    • GTTbDatabaseRetrieve
    • GTTbHamiltonian
    • GTTbParameterNames
    • GTTbToFortranList
  • Related Guides
    • The Mathematica Group Theory Package GTPack, V 1.4
    • Tight Binding
    • See Also
      • GTTbDatabaseInfo
      • GTTbDatabaseRetrieve
      • GTTbHamiltonian
      • GTTbParameterNames
      • GTTbToFortranList
    • Related Guides
      • The Mathematica Group Theory Package GTPack, V 1.4
      • Tight Binding
GroupTheory`
GroupTheory`

GTTbToFortran

GTTbToFortran[Hamiltonian,maximal angular momentum,maximum shell number,file name]

transforms a k-space tight-binding Hamiltonian into a FORTRAN module.

Details and Options

  • GTPack constructs Hamiltonians in an analytic form. Numerical calculations (band structure, density of states) can also be performed. Sometimes it is more efficient to do numerical calculations outside of Mathematica. GTTbToFortran translates the Hamiltonian into a FORTRAN module for further use in other program packages.
  • If a parameter set corresponding to the constructed Hamiltonian is available, this set can substitute maximal angular momentum in the input. The list of symbols will be extracted from the parameter set.
  • The command saves time in programming, but the result has to be checked carefully!
  • The following options can be given:
  • GOTbBasis 0Suppresses subscripts within element names
    GOVerbose FalseControls the output of additional information
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica

Examples

open all close all

Basic Examples  (1)

First load the package:

Wolfram Language code: Needs["GroupTheory`"]

Set the directory of pre-defined data

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

Read the Hamiltonian for fcc structure and spd basis

Wolfram Language code: hfcc = GTReadFromFile["fcc.ham"];

The maximum angular momentum is l=2 and the maximum shell number is sh=2.

Wolfram Language code: SetDirectory[$TemporaryDirectory]; GTTbToFortran[hfcc, 2, 2, "hfcc.f90"]
Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets"]; cu = GTTbDatabaseRetrieve["TB_parametersets/TB_Handbook", "Cu"];

Instead of a maximum angular momentum an external parameter set can be used. The parameters are extracted from this parameter set and are not generated internally.

Wolfram Language code: SetDirectory[$TemporaryDirectory]; GTTbToFortran[hfcc, cu, 2, "hfcc1.f90", GOVerbose -> True]

Options  (2)

GOVerbose  (1)

The FORTRAN code is not displayed.

Wolfram Language code: GTTbToFortran[hfcc, 2, 2, "hfcc.f90", GOVerbose -> False]

The Hamiltonian transformed to FORTRAN is printed out.

Wolfram Language code: GTTbToFortran[hfcc, 2, 2, "hfcc.f90", GOVerbose -> True]

GOTbBasis  (1)

The Hamiltonian for zinc blende structure is read.

Wolfram Language code: SetDirectory[NotebookDirectory[] <> "datasets"];
Wolfram Language code: hzb = GTReadFromFile["zinc_blende.ham"];
Wolfram Language code: hzb[[5, 6]]

The Hamiltonian contains s and p orbitals but also a s* orbital. Instead of the definition of a maximum l, a parameter set from a database is used.

Wolfram Language code: GTTbDatabaseInfo["TB_parametersets/TB_Semiconductors"];
Wolfram Language code: gaas = GTTbDatabaseRetrieve["TB_parametersets/TB_Semiconductors", 15]

GTTbParameterNames extracts the parameter symbols from a parameter set. This method is used in GTTbToFortran .

Wolfram Language code: names = GTTbParameterNames[gaas]
Wolfram Language code: SetDirectory[$TemporaryDirectory];
Wolfram Language code: GTTbToFortran[hzb, gaas, 2, "hzb.f90", GOVerbose -> True]

See Also

GTTbDatabaseInfo  GTTbDatabaseRetrieve  GTTbHamiltonian  GTTbParameterNames  GTTbToFortranList

Related Guides

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