curl_fourier

Contents

curl_fourier#

abtem.potentials.charge_density.curl_fourier(vector_field, cell)[source]#

Calculate the curl of a vector field in 3D using Fourier-space differentiation.

Parameters:
  • vector_field (np.ndarray) – Array representing a vector field of dimension 3.

  • cell (ase.cell.Cell) – ASE Cell object defining the region of space where the vector field is defined.

Returns:

curl – Array representing the curl of the vector field.

Return type:

np.ndarray