nm size representing magnetic particles. A single particle consists of 16 grains, which are cubes of 10 nm edge length. Two phases have been considered: A hard magnetic Nd2Fe14B rich phase (red cubes) and a soft magnetic phase of Fe3B(blue). The material parameters are given in table 3. The grains have been arranged in a checkerboard like pattern.