dynmat
NondiagonalPhononCalculator(sc_gen, nd_phonons)
Source code in quesadilla/dynmat.py
18 19 20 |
|
from_toml(toml_file)
classmethod
Create a NondiagonalPhononCalculator object from a toml file.
Generally the toml file is called quesadilla.toml and will be in the same directory as the sc-i directories, each of which should contain a phonopy.yaml file THAT MUST INCLUDE THE FORCE CONSTANTS computed from this supercell.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
toml_file
|
Path
|
Path to the toml file |
required |
Returns:
Type | Description |
---|---|
A NondiagonalPhononCalculator object |
Source code in quesadilla/dynmat.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
_parse_ndsc_phonons(root, sc_gen)
staticmethod
Reads the phonopy.yaml files from the supercells generated by Quesadilla
Parameters:
Name | Type | Description | Default |
---|---|---|---|
root
|
Path
|
Path to the directory containing the supercells |
required |
sc_gen
|
SupercellGenerator
|
SupercellGenerator object |
required |
Source code in quesadilla/dynmat.py
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 |
|
_get_dynmat_in_ibz(average_gamma=False, average_non_gamma=False)
Gets the Fourier transformed force constant matrices
Source code in quesadilla/dynmat.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|
_get_phonopy_from_fcq(full_fcq)
Create a Phonopy object from the full force constant matrix.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sc_gen
|
SupercellGenerator object |
required | |
full_fcq
|
dict[tuple[float, float, float], ndarray]
|
The full force constant matrix |
required |
Source code in quesadilla/dynmat.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|
_fcq_to_fcr(fcq)
Fourier transform the force constants on the full q-grid to real space.
Source code in quesadilla/dynmat.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
|
_dynmat_to_fcq(D, q)
Converts the dynamical matrix as defined by phonopy into the Fourier transformer force constant matrix as defined by Quantum ESPRESSO and read by Quesadilla's symmetry routines.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
prim
|
The primitive structure |
required | |
D
|
ndarray
|
The dynamical matrix (3nat x 3nat) |
required |
q
|
ArrayLike
|
The q-point in FRAC coords |
required |
Returns:
Type | Description |
---|---|
ndarray
|
The Fourier transformed force constant matrix (3nat x 3nat) |
Source code in quesadilla/dynmat.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
|
_fcq_to_dynmat(fcq, q)
Converts the Fourier transformed force constant matrix as defined by Quantum ESPRESSO and produced by Quesadilla's symmetry routines into the dynamical matrix as defined by phonopy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
prim
|
The primitive structure |
required | |
fcq
|
ndarray
|
The Fourier transformed force constant matrix (3nat x 3nat) |
required |
q
|
ndarray
|
The q-point in FRAC coords |
required |
Returns:
Type | Description |
---|---|
The dynamical matrix (3nat x 3nat) |
Source code in quesadilla/dynmat.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
|