What about using a series of wedge shaped magnets :
Their North-South poles can be oriented on the sides so that the fields rotate as required, and the equivalent of a flat iron washer can be placed on either side to link the fields. What you then have (and must end up with based on your...