This example has shown how magnetization direction can be defined as a function rather than
as a constant value. The most common application for this capability is the definition of a
radial magnetization direction in surfacemount
PM motors/generators. However, other
magnetization schemes like a linear Halbach magnetization pattern can also be defined.