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:51] – Micheangelo Tagliavini | documentation:language_reference:functions:newtightbinding [2024/08/29 18:03] (current) – Micheangelo Tagliavini | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | ### NewTightBinding() | + | //NewTightBinding()// initiates a Tight Binding object with the following standard properties: |
- | `NewTightBinding()` | + | |
- | *Name*: `"" | + | |
- | *Cell*: `{a,b,c}` with `a`, `b`, `c` as random vectors. | + | |
- | *Atoms*: `{}` | + | |
- | *Units*: `{" | + | |
- | *NF*: `0` (number of orbitals defined in Atoms) | + | |
- | ### Units Property | + | * Name: "" |
- | The `Units` property has the following options: | + | * Cell: {a,b,c} with a, b, c as random vectors. |
- | - `Units[1]`: Sets the scaling for the reciprocal lattice, e.g., `2Pi` for `" | + | * Atoms: {} |
- | - `Units[2]`: Defines the unit of measurement as `"Angstrom"`, `"Bohr"`, or `"nanometer"`. | + | * Units: |
- | - `Units[3]`: Selects | + | * NF: `0` (number |
- | Once a Tight Binding object | + | The //Units// property |
+ | * Units[1]: Sets the scaling for the reciprocal lattice, e.g., $\vec{r}\cdot\vec{g}=2\pi$ for " | ||
+ | * Units[2]: Defines the unit of measurement as " | ||
+ | * Units[3]: Selects " | ||
- | ## Example | + | 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 ===== | ||
+ | |||
+ | ===== Output ===== | ||
+ | |||
+ | * A Tight Binding Object | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | -- | ||
### Input | ### Input | ||
```lua | ```lua | ||
Line 60: | 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]) | ||
+ | | ||
+ | [ | ||
</ | </ | ||