Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:functions:newtightbinding [2016/10/06 21:46] – created Maurits W. Haverkort | documentation:language_reference:functions:newtightbinding [2025/01/21 08:28] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== NewTightBinding ====== | ||
+ | |||
+ | |||
+ | // | ||
+ | |||
+ | * Name: "" | ||
+ | * Cell: {a,b,c} with a, b, c as zero vectors. | ||
+ | * Atoms: {} | ||
+ | * Units: {" | ||
+ | * Hopping: {} | ||
+ | |||
+ | * The Name is a string one can choose for printing | ||
+ | * The Cell is the unit cell in real-space ($R$) used for the calculation. The units are defined in units and can be Angstrom, BohrRadius or nanometer. The Reciprocal cell ($G$) is calculated automatically from the real-space cell and we can define its units such that $R \cdot G = 2 \pi$ or $R \cdot G = 1$. | ||
+ | * Atoms is a list defining the atom names, positions, shell names per atom and orbital names per shell. Atom positions can be given in absolute positions (same units as the Cell in Cartesian coordinates) or using the Cell parameters, as defined in units. | ||
+ | * The Hopping contains a table defining the hopping between shells at different atoms and cells. | ||
+ | |||
+ | // | ||
+ | For more details see the [[documentation: | ||
+ | |||
+ | Besides defining TightBinding objects by hand they can be generated from the output of DFT calculation (see, for example, // | ||
+ | |||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | |||
+ | The following example creates a minimal tight binding object for a Dichalcogenide lattice. The parameters are not set to represent a real material. | ||
+ | |||
+ | ==== Input ==== | ||
+ | |||
+ | <code Quanty Example.Quanty> | ||
+ | -- set parameters | ||
+ | dAB = 0.2 | ||
+ | tnn = 1.1 | ||
+ | -- create the tight binding Hamiltonian | ||
+ | HTB = NewTightBinding() | ||
+ | HTB.Name = " | ||
+ | HTB.Cell = {{sqrt(3), | ||
+ | {sqrt(3/ | ||
+ | {0,0,1}} | ||
+ | HTB.Atoms = { {" | ||
+ | {" | ||
+ | HTB.Hopping = {{" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | } | ||
+ | |||
+ | print(" | ||
+ | print(HTB) | ||
+ | |||
+ | print(" | ||
+ | HCl = CreateClusterHamiltonian(HTB, | ||
+ | print(HCl) | ||
+ | </ | ||
+ | ### | ||
+ | |||
+ | ==== Output ==== | ||
+ | |||
+ | <file Quanty_Output> | ||
+ | Tight-binding object: | ||
+ | |||
+ | Settings of a tight binding model: dichalcogenide tight binding | ||
+ | |||
+ | printout of Crystal Structure | ||
+ | Units: 2Pi (g.r=2Pi) Angstrom Absolute atom positions | ||
+ | Unit cell parameters: | ||
+ | a: | ||
+ | b: | ||
+ | c: | ||
+ | Reciprocal latice: | ||
+ | a: | ||
+ | b: | ||
+ | c: | ||
+ | Number of atoms 2 | ||
+ | # 0 | A ( 0 ) at position { | ||
+ | | p shell with 1 orbitals { 0 } | ||
+ | # 1 | B ( 5 ) at position { | ||
+ | | p shell with 1 orbitals { 0 } | ||
+ | Containing a total number of 2 orbitals | ||
+ | Hopping definitions ( 8 ) | ||
+ | Hopping from 0 : A - p to 0 : A - p with translation vector in unit cells: { 0 , 0 , 0 } ({ 0.00000000E+00 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ 0] -1.00000000E-01 | ||
+ | |||
+ | Hopping from 1 : B - p to 1 : B - p with translation vector in unit cells: { 0 , 0 , 0 } ({ 0.00000000E+00 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 0 : A - p to 1 : B - p with translation vector in unit cells: { -1 , 0 , 0 } ({ 0.00000000E+00 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 1 : B - p to 0 : A - p with translation vector in unit cells: { 1 , 0 , 0 } ({ 0.00000000E+00 -1.00000000E+00 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 0 : A - p to 1 : B - p with translation vector in unit cells: { 0 , -1 , 0 } ({ 8.66025404E-01 -5.00000000E-01 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 1 : B - p to 0 : A - p with translation vector in unit cells: { 0 , 1 , 0 } ({-8.66025404E-01 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 0 : A - p to 1 : B - p with translation vector in unit cells: { -1 , -1 , 0 } ({-8.66025404E-01 -5.00000000E-01 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 1 : B - p to 0 : A - p with translation vector in unit cells: { 1 , 1 , 0 } ({ 8.66025404E-01 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | |||
+ | |||
+ | create a periodic cluster Hamiltonian with 4 unit-cells along the z-axis: | ||
+ | |||
+ | Operator: Operator | ||
+ | QComplex | ||
+ | MaxLength | ||
+ | NFermionic modes = 8 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis) | ||
+ | NBosonic modes | ||
+ | |||
+ | Operator of Length | ||
+ | QComplex | ||
+ | N | ||
+ | C 0 A 0 | -1.00000000000000E-01 | ||
+ | C 1 A 1 | 1.00000000000000E-01 | ||
+ | C 0 A 1 | 3.30000000000000E+00 | ||
+ | C 1 A 0 | 3.30000000000000E+00 | ||
+ | C 2 A 2 | -1.00000000000000E-01 | ||
+ | C 3 A 3 | 1.00000000000000E-01 | ||
+ | C 2 A 3 | 3.30000000000000E+00 | ||
+ | C 3 A 2 | 3.30000000000000E+00 | ||
+ | C 4 A 4 | -1.00000000000000E-01 | ||
+ | C 5 A 5 | 1.00000000000000E-01 | ||
+ | C 4 A 5 | 3.30000000000000E+00 | ||
+ | C 5 A 4 | 3.30000000000000E+00 | ||
+ | C 6 A 6 | -1.00000000000000E-01 | ||
+ | C 7 A 7 | 1.00000000000000E-01 | ||
+ | C 6 A 7 | 3.30000000000000E+00 | ||
+ | C 7 A 6 | 3.30000000000000E+00 | ||
+ | </ | ||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> | ||