Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:functions:newtightbinding [2024/08/29 17:47] – Micheangelo Tagliavini | documentation:language_reference:functions:newtightbinding [2024/08/29 18:03] (current) – Micheangelo Tagliavini | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== NewTightBinding ====== | ====== NewTightBinding ====== | ||
- | # Tight Binding | ||
- | ## Overview | + | // |
- | Tight Binding | + | |
- | - **Name** | + | |
- | - **Cell** | + | |
- | - **Atoms** | + | |
- | - **Units** | + | |
- | You can either assign | + | * Name: "" |
+ | * Cell: {a,b,c} with a, b, c as random vectors. | ||
+ | * Atoms: {} | ||
+ | * Units: {" | ||
+ | * NF: `0` (number of orbitals defined in Atoms) | ||
- | ### NewTightBinding() | + | The //Units// property is a list of three strings |
- | `NewTightBinding()` initiates | + | * Units[1]: Sets the scaling for the reciprocal lattice, e.g., $\vec{r}\cdot\vec{g}=2\pi$ for "2Pi" |
- | - **Name**: `"" | + | * Units[2]: Defines the unit of measurement as "Angstrom", "Bohr", |
- | - **Cell**: `{a,b,c}` with `a`, `b`, `c` as random vectors. | + | * Units[3]: Selects " |
- | - **Atoms**: `{}` | + | |
- | - **Units**: `{"2Pi", "Angstrom", "Absolute"}` | + | |
- | - **NF**: `0` (number | + | |
- | ### Units Property | + | Once a Tight Binding object is created, all properties can be assigned except //.NF//, which is determined by the number |
- | The `Units` property has the following options: | + | |
- | - `Units[1]`: Sets the scaling for the reciprocal lattice, e.g., `2Pi` for `" | + | |
- | - `Units[2]`: Defines | + | |
- | - `Units[3]`: Selects `" | + | |
- | Once a Tight Binding object is created, all properties can be assigned except `.NF`, which is determined by the number of orbitals defined in `Atoms`. | + | ===== Input ===== |
- | ## Example | + | ===== Output ===== |
+ | * A Tight Binding Object | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- | ||
### Input | ### Input | ||
```lua | ```lua | ||
Line 70: | Line 69: | ||
} | } | ||
+ | </ | ||
- | ===== Input ===== | + | ==== Result |
+ | <file Quanty_Output> | ||
+ | Printing the TB Object | ||
- | * bla : Integer | + | Settings of a tight binding model: |
- | * bla2 : Real | + | |
- | ===== Output ===== | + | 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 0 | ||
+ | Containing a total number of 0 orbitals | ||
+ | Hopping definitions ( 0 ) | ||
- | * bla : real | ||
- | ===== Example ===== | + | Callable Properties: |
+ | Cell: { { 6.0134700169991e-154 , 1.0216608544487e-259 , 2.7856078039899e-91 } , | ||
+ | { 4.4759381595362e-91 , 4.4759381595362e-91 , 4.4759381595362e-91 } , | ||
+ | { 4.4759381595362e-91 , 4.4759381595362e-91 , 4.4759381595362e-91 } } | ||
+ | Units: { 2Pi , Angstrom , Absolute } | ||
+ | Atoms: | ||
+ | Hopping: | ||
+ | NF: 0 | ||
- | ### | + | Settings of a tight binding model: My wishes for dinner |
- | description text | + | |
- | ### | + | |
- | ==== Input ==== | + | printout of Crystal Structure |
- | <code Quanty Example.Quanty> | + | Units: 2Pi (g.r=2Pi) Bohr |
- | -- some example code | + | Unit cell parameters: |
- | </ | + | a: |
+ | b: | ||
+ | c: | ||
+ | Reciprocal latice: | ||
+ | a: | ||
+ | b: | ||
+ | c: | ||
+ | Number of atoms 2 | ||
+ | # 0 | pizza ( 0 ) at position { | ||
+ | | Margherita shell with 1 orbitals { 0 } | ||
+ | # 1 | pasta ( 0 ) at position { | ||
+ | | Pesto shell with 1 orbitals { 0 } | ||
+ | | Carbonara shell with 1 orbitals { 0 } | ||
+ | Containing a total number of 3 orbitals | ||
+ | Hopping definitions ( 4 ) | ||
+ | Hopping from 0 : pizza - Margherita to 1 : pasta - Pesto with translation vector in unit cells: { 0 , 1 , 0 } ({ 0.00000000E+00 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
- | ==== Result | + | Hopping from 1 : pasta - Pesto to 0 : pizza - Margherita with translation vector in unit cells: { 0 , -1 , 0 } ({ 0.00000000E+00 -1.00000000E+00 |
- | <file Quanty_Output> | + | Matrix |
- | text produced as output | + | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) |
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 0 : pizza - Margherita to 1 : pasta - Carbonara with translation vector in unit cells: { 0 , 1 , 0 } ({ 0.00000000E+00 | ||
+ | Matrix | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | [ 0] | ||
+ | [ | ||
+ | |||
+ | Hopping from 1 : pasta - Carbonara to 0 : pizza - Margherita with translation vector in unit cells: { 0 , -1 , 0 } ({ 0.00000000E+00 -1.00000000E+00 | ||
+ | Matrix = | ||
+ | Real Part of Matrix with dimensions [Ni=1][Nj=1] ([Rows][Collums]) | ||
+ | | ||
+ | [ | ||
</ | </ | ||