magpack.structures.vortex#

vortex(nx, ny, winding=1)#

Creates a 2D magnetization vortex.

Parameters:
nx, nyint

x and y dimensions of the vortex.

windingfloat (optional)

Winding number of the vortex

Returns:
np.ndarray

Magnetization vector of a 2D vortex with specified winding number.