A linear electrical machine may function as an alternator or a motor. Three annular
magnets may be provided that move relative to a core. The magnets may all have
a different magnetic orientation. Two magnets may have a north pole oriented in
a direction parallel to an axis along which the magnets move relative to the core.
Another magnet may have a north pole oriented in a direction perpendicular to the axis.