17.1 MIF 1.1

17.1.4 Initial magnetization

  • Init Mag: Name of routine to use to initialize the simulation magnetization directions (as a function of position), and routine parameters, if any. Optional, with default Random. The list of routines is long, and it is easy to add new ones. See the file oommf/app/mmsolve/maginit.cc for details. A few of the more useful routines are:

    • Random
      Random directions on the unit sphere. This is somewhat like a quenched thermal demagnetized state.

    • Uniform θ ϕ
      Uniform magnetization in the direction indicated by the two additional parameters, θ and ϕ, where the first is the angle from the z-axis (in degrees), and the second is the angle from the x-axis (in degrees) of the projection onto the xy-plane.

    • Vortex
      Fits an idealized vortex about the center of the sample.

    • avfFile filename
      The second parameter specifies an OVF/VIO (i.e., “any” vector field) file to use to initialize the magnetization. The grid in the input file will be scaled as necessary to fit the grid in the current simulation. The file must be accessible to the intended solver application.