The mag2hfield utility takes a micromagnetic problem specification file (.mif) and a magnetization file (.omf) and uses the mmSolve2D computation engine to generate files for the resulting component (magnetostatic, exchange, crystalline anisotropy) and total H fields. The main use of this utility to study the fields in a simulation using magnetization files generated by an earlier mmSolve2D run.
The mag2hfield launch command is:
tclsh oommf.tcl mag2hfield [standard options] [-fieldstep #] \ [-component [all,][anis,][applied,][demag,][exchange,][total]] \ mif_file omf_filewhere
The H field output file format is determined by the Total Field Output Format record of the input MIF file. The output file names have the form basename-hanis.ohf, basename-happlied.ohf, etc., where basename is the input .omf magnetization file name, stripped of any trailing .omf or .ovf extension.