Code

The MagTense code is directly available from the MagTense repository on Github

At present the calculation of the demagnetization field from the tile elements of the geometry is done in Fortran.

The remainder of the micromagnetism model is currently implemented in Matlab, but will be transitioned to Fortran soon.

The calculation of the demagnetization field is done through a Matlab/Fortran MEX interface, which allows the Fortran code to be called directly from Matlab. Examples of how to use the interface is provided in examples in the code itself, as well as under Examples. A Python interface, similar to the Matlab/Fortran MEX interface, is also in development.