The mag2hfield utility takes a MIF 1.1 micromagnetic problem specification file (.mif) and a magnetization file (.omf) and uses the mmSolve2D computation engine to calculate the resulting component (self-magnetostatic, exchange, crystalline anisotropy, Zeeman) and total energy and/or H fields. The main use of this utility to study the fields in a simulation using magnetization files generated by an earlier mmSolve2D run. (Deprecated; for most applications use the 3D Oxs-based computefield utility instead.)
Launching
The mag2hfield launch command is:
tclsh oommf.tcl mag2hfield [standard options] [-component [all,][anisotropy,][demag,][exchange,][total,][zeeman] \ [-data [energy,][field]] [-energyfmt fmt] [-fieldstep #] \ mif_file omf_file [omf_file2 ...]where
"%s"
.
The H field output file format is determined by the Total Field Output Format record of the input MIF 1.1 file. The output file names are constructed using the form basename-hanisotropy.ohf, basename-hzeeman.ohf, etc., where basename is the input .omf magnetization file name, stripped of any trailing .omf or .ovf extension.