Hysteresis values#
It is often needed to generate the values of the hysteresis loop, knowing the maximum, minimum, and step values. There is a convenience fuinction in ubermagutil
, which does exactly that.
Let us say we want to generate hysteresis loop values with:
\[v_\text{min} = -1\]
\[v_\text{max} = -1\]
\[\Delta v = 0.5\]
This can be done using hysteresis_values
function.
[5]:
import ubermagutil as uu
uu.hysteresis_values(vmin=-1, vmax=1, step=0.5)
[5]:
[1.0, 0.5, 0.0, -0.5, -1.0, -0.5, 0.0, 0.5, 1.0]