OOMMF Home next up previous contents index
Next: Calculating H Fields from Up: Command Line Utilities Previous: Bitmap File Format Conversion:

Vector Field File Format Conversion: avf2ovf

The avf2ovf program converts vector field files from any of the recognized formats (OVF, VIO) into the OVF 1.0 format.

The avf2ovf launch command is:

tclsh oommf.tcl avf2ovf [standard options] [-format <text|b4|b8>] \
   [-grid <reg|irreg>] infile >outfile
-format <text|b4|b8>
Specify output data format. The default is ASCII text; b4 selects 4-byte binary, b8 selects 8-byte binary. (The OVF format has an ASCII text header in all cases.)
-grid <reg|irreg>
Specify output grid structure. The default is reg, which will output a regular (rectangular) grid if the input is recognized as a regular grid. The option -grid irreg forces irregular mesh style output.
Name of input file to process. Must be one of the recognized formats, OVF 0.0, OVF 1.0, or VIO.
Avf2ovf writes its output to stdout. Use the redirection operator ``>'' to send the output to a file.

The -format text and -grid irreg options are useful for preparing files for import into non-OOMMF applications, because all non-data lines are readily identified by a leading ``#,'' and each data line is a 6-tuple consisting of the node location and vector value. Pay attention, however, to the scaling of the vector value as specified by ``# valueunit'' and ``# valuemultiplier'' header lines.

For output format details, see the OVF file description.

OOMMF Home next up previous Contents index

OOMMF Documentation Team
January 15, 2004