OOMMF Home next up previous contents
Next: OOMMF Batch System 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, SVF, VIO) into the OVF format.

Command syntax
The avf2ovf launch command is:

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

The -ascii and -irreg options are useful for preparing files for import into other 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

OOMMF Documentation Team
August 10, 1999