Calculations

In MagTense, a magnetostatic and a micromagnetism calculation framework is available. The basic pipeline for a magnetostatic calculation consists of three parts:

  • MagTiles

  • Evaluation points

  • State function

As output, the three-dimensional H-field vector in the evaluation points is returned.

Examples of how to calculate magnetostatic and micromagnetic problems can be found for Matlab and python, and the micromagnetic ones are described in Micromagnetic examples and validation.

The parameters of a micromagnetic problem are of a different kind than the MagTile properties below, and are documented separately in Micromagnetic parameter reference.

MagTile

type(MagTile),dimension(n_tiles) :: tiles

MagTiles are the basic structure of MagTense, where n_tiles is the number of given magnetic tiles. They can be specified with several parameters corresponding to the following properties:

Evaluation points

real,dimension(n_ele,3) :: pts

The three-dimensional evaluation points are defined with respect to the global coordinate system, where n_ele is the number of given points.

State function

type(MagStateFunction),dimension(n_stf) :: stateFunction

The state functions (hysteresis loops) for different materials and temperatures can be given and used if the given MagTile is representing a soft magnet, where n_stf is the number of given state functions.

H-field

real,dimension(n_ele,3) :: H

The three-dimensional H-field is returned in the unit \([A/m]\) and its vector is given with respect to the global coordinate system.