micromagneticmodel.examples.macrospin#

micromagneticmodel.examples.macrospin()#

Macrospin system example.

Returns a macrospin example (a single discretisation cell) with the sample size (1e-9, 1e-9, 1e-9). Energy equation contains only Zeeman energy term with external magnetic field H=(0, 0, 1e6). Dynamics equation contains precession (gamma0=mm.consts.gamma0) and damping (alpha=0.1) terms. The saturation magnetisation is Ms=1e6 and the initial magnetisation is m=(0, 1, 1). The name of the returned system is 'macrospin'.

Returns:

Macrospin system.

Return type:

micromagneticmodel.System

Examples

  1. Getting macrospin example system.

>>> import micromagneticmodel as mm
...
>>> mm.examples.macrospin()
System(name='macrospin')