Magnetic monopoles in Halbach array? I am a bit confused by the description of Halbach arrays. It is said that the line of magnets aligned in a certain way results in cancellation of magnetic field on one side of the array, and amplification on the other side.
And there is a schematic distribution of magnetic flux: 
I don't understand what happens to the poles of magnets, or the direction of magnetic flux. Does it change its direction in each next or third element of the array? Or is it possible to make something like a magnetic monopole, so that the direction of magnetic flux will be uniform on one side of the array?
There are some other images showing different arrays with arrows which, I suppose, represent the direction of the magnetic flux.

Diagram 1

Diagram 2
The Diagram 2 looks like a monopole, because there is the same direction of flux all the time.
Is it true, or am I misunderstanding something?
 A: At first, I agreed with Walter (above) and thought that the structure was symmetric yet produced an asymmetric result, an impossibility. But then I looked more closely at these Wikipedia images (copied below), and the structure is not symmetric concerning the strong/weak sides:

The strong side groups the red and green areas, while the weak side has them always alternating, never grouped.  It makes no difference if red is assigned the North or South magnetic pole, as one would expect.
Thank you to Wikipedia and the contributor of these diagrams!
A: No, the Halbach array is not related to the monopole at all. It is just a special arrangement of magnets.
Any arrangement of a "dipole" magnet would not result in any monopole. It can be easily understood as follows: If each individual magnet contains no magnetic monopole, i.e., $\nabla\cdot\mathbf{B}_i=0$ true for whole space, then the resulting magnetic field is $\mathbf{B} = \mathbf{B}_1 + \mathbf{B}_2$ when you put them together. Hence the resulting divergence is also $\nabla\cdot\mathbf{B}=0$.

I don't understand what happens to the poles of magnets, or the direction of magnetic flux? Does it change its direction in each next or third element of array?

You should know that magnetic pole is not a very well defined concept as the "boundary" of the magnetic pole is not fixed. The flux line does change the direction across the boundary. But the most important things (in the first figure) is that the magnetic field line is continuous and closed, which means that there is no magnetic monopole.
All the field lines go out have to come back at the next nearest neighbor. The effect of Halbach array is simply to push the closed magnetic field line on one side, hence the resulting magnetic field was enhanced on one side.

The Diagram 2 looks like a monopole, because there is the same direction of flux all the time? Is it true, or am I misunderstanding something?

No, the flux direction is not in the same direction over the whole region, they are alternating instead. You can think of it by putting two array in diagram one (flipped one of them) together. Each of them forming a small field line loop. At the center of two up arrows ($\uparrow$) the magnetic field is pointing up. Also, at the center of two down arrows ($\downarrow$), the magnetic field line is pointing down. Hence, it is clear that the field line is alternating after each next nearest neighbor. The wiggler of the electron path is the result of the alternating magnetic field.
I think there is a problem for the Diagram 2, the oscillating frequency is double of what it is supposed to be. It should be the same as the period of the array.
A: No wonder you are confused, because the diagram is a cheat!  If you take the picture of the arrangement, with the labels of top and bottom, and turn it by $180°$, you get exactly the same arrangement but either displaced by 1 period, or simply with the magnetic lines in opposite direction, but now suddenly the strong field and weak field is reversed.  In the picture of the magnetic lines as presented, direction is not shown. The bar is symmetric and there's no way the field can be asymmetric. The true arrangement must be something asymmetric, which is not shown.
