magneticScattering.structures#

Functions

cart2pol

Converts cartesian coordinates to polar coordinates.

circle_mask

Masks the structure with a circle of radius equal to the smallest dimension of the structure.

create_mesh

Creates a mesh centered around zero with the dimensions provided.

gaussian_2d

Created a 2D gaussian centered around zero.

pad_circle

Applies a circular mask and then pads the structure with the given repeat mode.

skyrmion

Creates a skyrmion state with dimensions (nx, ny) at the center of the array.

tessellate

Create a lattice from the given unit cell.

vortex

Creates a vortex with dimensions (nx, ny) at the center of the array.