PAOFLOW.utils.get_K_grid_fft#
Functions#
|
Build the Cartesian k-grid and uniform k-point weights from the FFT mesh. |
|
Build the k-grid in reduced crystal coordinates. |
Module Contents#
- PAOFLOW.utils.get_K_grid_fft.get_K_grid_fft(data_controller)[source]#
Build the Cartesian k-grid and uniform k-point weights from the FFT mesh.
- Parameters:
data_controller (DataController) – Object providing
data_arraysanddata_attributes. Required arrays:b_vectors(shape(3, 3)). Required attributes:nk1,nk2,nk3.- Returns:
Adds the following entries to
data_controller.data_arrays:kgrid: np.ndarray, shape(3, nktot)— Cartesian k-coordinates (in units of \(2\pi/a\)) of allnktot = nk1*nk2*nk3grid points, centred around \(\Gamma\) (folded into \([-0.5, 0.5)\)).kq_wght: np.ndarray, shape(nktot,)— uniform k-point weights, each equal to1 / nktot.
- Return type:
None
- PAOFLOW.utils.get_K_grid_fft.get_K_grid_fft_crystal(nk1, nk2, nk3)[source]#
Build the k-grid in reduced crystal coordinates.
- Parameters:
- Returns:
k-coordinates in reduced crystal units, centred around \(\Gamma\) (each component folded into \([-0.5, 0.5)\)).
- Return type:
np.ndarray, shape
(nk1*nk2*nk3, 3), float