magneticScattering.structures.vortex#
- vortex(nx, ny)#
Creates a vortex with dimensions (nx, ny) at the center of the array.
- Parameters:
nx (int) – x size of the vortex.
ny (int) – y size of the vortex.
- Returns:
Vortex state with dimensions (3, x, y), where the first index runs over the components.
- Return type:
ndarray