I’ve added some new options for generating material parameter variations, in particular 2D and 3D Voronoi cells generators. For example see the figure below showing a polycrystalline structure generated for the K1 magneto-crystalline anisotropy constant.
This can be combined with a rotation generator by using the same pseudo-random generator seed number, to generate magneto-crystalline anisotropy easy axes variation between the different crystallites.
You can also simulate a granular structure with non-magnetic phase separation, by using either the 2D or 3D Voronoi cells generators directly on the magnetisation mesh. For example see the figure below showing a 3D granular structure with a magnetisation configuration obtained at zero field.