abtem.magnetism.pauli#
Module Contents#
Functions#
Compute the action of the operator $A_{xy} cdot nabla_{xy}$ on the wave functions using the central difference gradient. |
|
Compute the gradient of a 2D array using central differences with constant boundary conditions and Numba. |
|
Compute the gradient of a 2D array using central differences with periodic boundary conditions and Numba. |
API#
- abtem.magnetism.pauli.apply_A_xy_dot_nabla_xy(...)[source]#
Compute the action of the operator $A_{xy} cdot nabla_{xy}$ on the wave functions using the central difference gradient.
- Parameters:
- Returns:
result – Result of the operation $A cdot nabla_{xy} psi$.
- Return type:
- abtem.magnetism.pauli.central_difference_gradient_cbc(...)[source]#
Compute the gradient of a 2D array using central differences with constant boundary conditions and Numba.
- Parameters:
- Returns:
grad_x (numpy.ndarray) – Gradient of X with respect to x.
grad_y (numpy.ndarray) – Gradient of X with respect to y.
- abtem.magnetism.pauli.central_difference_gradient_pbc(...)[source]#
Compute the gradient of a 2D array using central differences with periodic boundary conditions and Numba.
- Parameters:
- Returns:
grad_x (numpy.ndarray) – Gradient of X with respect to x.
grad_y (numpy.ndarray) – Gradient of X with respect to y.