====Modified Halbach Arrays==== José Borges de Almeida Universidade do Minho Physics Department [[josebda@gmail.com]] **Description** This Octave script models an infinite double layer of modified magnet arrays to produce a very strong trapezoidal field in the inter-magnet space. There are a number of user definable parameters and true Halbach arrays can be obtained by setting ''interMagnet = 0''. Halbach arrays are unstable and the magnets must be bound to backing plates in order to stay in place; in this model the backing plates are made of 1 mm thick steel but they could be made of non ferromagnetic material in the case of true Halbach arrays. {{:upload:images:halbachfig1.png|HalbachFig1.png}}\\ Fig. 1 One module of the infinite Halbach array. {{:upload:images:halbachfig2.png|HalbachFig2.png}}\\ Fig. 2 Normal flux density plot. * {{:upload:halbachexample:drawmagnet.m|drawMagnet.m}} * {{:upload:halbachexample:halbachgen.m|halbachgen.m}}