OOMMF Home next up previous contents
Next: Data table format (ODT) Up: File Formats Previous: File Formats


Problem specification format (MIF)

Micromagnetic simulations are specified to the OOMMF solver using the OOMMF Micromagnetic Input Format (MIF). This is also the native file type for the OOMMF problem editor, mmProbEd. All values are in SI units.

A sample MIF file is included below. The first line of a MIF file must be of the form ``# MIF x.y'', where x.y represents the format revision number. OOMMF reads and writes the MIF 1.1 format. (There was a MIF 1.0 format, but it was never part of a released version of OOMMF.) It is recommended that MIF files be given names ending in the .mif file extension so that MIF files may be easily identified.

After the format identifier line, any line ending in a backslash, `\', is joined to the succeeding line before any other processing is performed. Lines beginning with a `#' character are comments and are ignored. Blank lines are also ignored.

All other lines must consist of a Record Identifier followed by a parameter list. The Record Identifier is separated from the parameter list by one or more `:' and/or `=' characters. Whitespace and case is ignored in the Record Identifier field.

The parameter list must be a proper Tcl list. The parameters are parsed (broken into separate elements) following normal Tcl rules; in short, items are separated by whitespace, except as grouped by double quotes and curly braces. The grouping characters are removed during parsing. Any `#' character that is found outside of any grouping mechanism is interpreted as a comment start character. The `#' and all following characters on that line are interpreted as a comment.

Order of the records in a MIF file is unimportant, except as explicitly stated below. If two or more lines contain the same Record Identifier, then the last one takes precedence (except for Field Range records, of which there may be several active). All records are required unless listed as optional. Some of these record types are not yet supported by mmProbEd, however your may edit a MIF file by hand and supply it to mmSolve2D using FileSource.

For convenience, the Record Identifier tags are organized into several groups; these groups correspond to the buttons presented by mmProbEd. We follow this convention below.

Material parameters

Demag specification

Part geometry

Initial magnetization

Experiment parameters

The following records specify the applied field schedule:

Output specification

Miscellaneous



# MIF 1.1
#
# All units are SI.
#
####################### MATERIAL PARAMETERS ############################
Ms:  800e3                 # Saturation magnetization in A/m.
A:   13e-12                # Exchange stiffness in J/m.
K1:  0.5e3                 # Anisotropy constant in J/m^3.
Anisotropy Type: uniaxial  # One of <uniaxial|cubic>.
Anisotropy Dir1: 1 0 0     # Directional cosines wrt to coordinate axes

####################### DEMAG SPECIFICATION ############################
Demag Type: 3dSlab   # One of <3dSlab|2dSlab|3dCharge|FastPipe|None>.

########################## PART GEOMETRY ###############################
Part Width:     0.25e-6    # Nominal part width in m
Part Height:    1.0e-6     # Nominal part height in m
Part Thickness: 1e-9       # Part thickness in m.
Cell Size:      8.1e-9     # Cell size in m.
#Part Shape:    # One of <Rectangle|Ellipse|Oval|Mask>.  Optional.

###################### INITIAL MAGNETIZATION ###########################
Init Mag: Uniform 90 45 # Initial magnetization routine and parameters

###################### EXPERIMENT PARAMETERS ###########################
Field Range: -.05 -.01 0. .05 .01 0. 100 # Start_field Stop_field Steps
Field Range: .05 .01 0. -.05 -.01 0. 100
Field Type: Multi 4 \
 7 Ribbon 1 0 1.0e-6 0.25e-6 1.0e-6 1e-9 \
 7 Ribbon 1 0 0     0.25e-6 0     1e-9 \
 9 Tie 100 0 0 0.12e-6 0.5e-6 0.13e-6 0.5e-6 8.1e-9 \
 1 Uniform
# The above positions ribbons of positive charge along the upper
# and lower edges with strength Ms, applies a large (100 Ms) field
# to the center cell, and also applies a uniform field across the
# sample stepped from (-.05,-.01,0.) to (.05,.01,0.) (Tesla), and
# back, in approximately 0.001 T steps.

###################### OUTPUT SPECIFICATIONS ###########################
Base Output Filename: samplerun

########################## MISCELLANEOUS ###############################
Randomizer seed: 1   # Value to seed random number generator with.
Converge Torque Value: 1e-5  # Stopping criterion, relative to Ms.
Figure 3: Example MIF file. (Description.)



OOMMF Home next up previous Contents

OOMMF Documentation Team
February 23, 2000