GTTbToFortranList[Hamiltonian,parameter set,database]
prints a Hamiltonian as FORTRAN code.
Details and Options
Examples
Basic Examples
Options
GOVerbose
See Also
Related Guides
GroupTheory`
GroupTheory`
GTTbToFortranList
GTTbToFortranList[Hamiltonian,parameter set,database]
prints a Hamiltonian as FORTRAN code.
Details and Options
- GTTbToFortranList does not prepare a ready made FORTRAN module like GTTbToFortran. It uses the internal command FortranForm to translate the Mathematica code. It produces a print of the Hamiltonian, which can be used by copy and paste to build a FORTRAN program.
- The symbols of the tight-binding parameters are transformed in a list p. Thus, a parameter set from database has to be provided for p, which corresponds to Hamiltonian.
- The following option can be given:
-
GOVerbose False Controls 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 allBasic Examples (1)
Needs["GroupTheory`"]Set the directory of predefined data.
SetDirectory[NotebookDirectory[] <> "datasets"];Read the Hamiltonian for fcc structure and spd basis.
hfcc = GTReadFromFile["fcc_spd.ham"];GTTbToFortranList[hfcc, "Cu", "TB_parametersets/TB_Handbook"];