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 fieldH=(0, 0, 1e6)
. Dynamics equation contains precession (gamma0=mm.consts.gamma0
) and damping (alpha=0.1
) terms. The saturation magnetisation isMs=1e6
and the initial magnetisation ism=(0, 1, 1)
. The name of the returned system is'macrospin'
.- Returns:
Macrospin system.
- Return type:
Examples
Getting macrospin example system.
>>> import micromagneticmodel as mm ... >>> mm.examples.macrospin() System(name='macrospin')