Examples

The GitHub repository contains a number of standard examples on how to run the code.

The examples for both magnetostatic calculations and micromagnetic simulations can be found in matlab/examples.

The first of these, example 001, simply computes the magnetic field generated by a 5 cm x 5 cm x 5 cm square permanent magnet cube with a remanence of 1.2 T, an easy axis relative permeability of 1.06 and an off-axis relative permeability of 1.17. The direction of the remanence is parallel to four of the sides of the cube. The computed magnetic field is shown in the image below. Notice how the field opposes the magnetization inside the cube.