Core
This page provides the documentation for the core physics functions used by the application.
TiBi.core.get_BZ_grid(unit_cell, n1, n2, n3, typ)
¶
Generate a grid of points in the BZ.
Depending on the system dimensionality, the output momentum arrays have different lengths. The user can choose between Gamma-centered and Monkhorst-Pack grids.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
unit_cell
|
UnitCell
|
|
required |
n1
|
int
|
Number of points along each reciprocal vector |
required |
n2
|
int
|
Number of points along each reciprocal vector |
required |
n3
|
int
|
Number of points along each reciprocal vector |
required |
typ
|
int
|
0 or 1, with 0 corresponding to the MP and 1 to Gamma-centered grids. |
required |
Returns:
Type | Description |
---|---|
NDArray[NDArray[float64]]
|
Array of k-points comprising the grid. |
Source code in TiBi/core/bz_points.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
TiBi.core.interpolate_k_path(points, n_total)
¶
Interpolate a path through k-space special points.
The path has the special points distributed along segments proportionally to their lengths in reciprocal space.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
points
|
list[NDArray[float64]]
|
List or array of k-points defining the path |
required |
n_total
|
int
|
Total number of points to distribute along the entire path |
required |
Returns:
Type | Description |
---|---|
NDArray[NDArray[float64]]
|
Array of interpolated k-points along the path |
Source code in TiBi/core/bz_points.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|