Physics, Python, Python Programming, Coding, Programming.
direction ky_grid (numpy array): Meshgrid of wave vector components in the y direction energy_grid (numpy array): Grid of energy eigenvalues """ # Create a grid of wave vector components k_range = np.linspace(-np.pi / a, np.pi / a, num_points) kx_grid, ky_grid = np.meshgrid(k_range, k_range) #