Scripts to process OOMMF vector files (.ovf) Configuration files for OOMMF and mumax
Methods
- plot_2D_quiver
- Takes two arguments: (file_path: str, mag_dir: str)
- Takes an ovf file (OOMMF format) and parses the xnodes, ynodes, znodes as well as the x, y and z step sizes. These are required to construct the mesh
- mag_dir takes in a string of either 'x', 'y', 'z' or 'total', and specifies what to display for the magnitude of the contour line
- The function assumes a zslice in the centre
- The units of the data corresponds to the setting in the OOMMF file
Methods
- plot_strayfield
- Take four arguments: (file_path: str, mag_dir: str, yslice: [int], dotted=False)
- Takes an ovf file (OOMMF format) and parses the xnodes, ynodes, znodes as well as the x, y and z step sizes.
- mag_dir takes in a string of either 'x', 'y', 'z' or 'total'
- yslice specifies the distance to plot stray field at
- dotted is a graph display parameter
Simulated annealing was implemented in the optimisation folder. This optimises for maximum stray field at the centre of a square array of magnets.
# Download essentials $ sudo apt-get install build-essential # Download OOMMF binary from website $ wget https://math.nist.gov/oommf/dist/oommf20a2_20190930.tar.gz $ gunzip -c oommf20a2_20190930.tar.gz | tar xvf - # Download tcl $ sudo apt-get install tcl # Download extra tcl/tk components $ sudo apt-get install tcl8.6-dev $ sudo apt-get install tk8.6-dev # Check if installation went okay $ cd ./oommf && tclsh oommf.tcl +platform # Build oommf $ tclsh oommf.tcl pimake upgrade $ tclsh oommf.tcl pimake distclean $ tclsh oommf.tcl pimake
$ tclsh oommf.tcl boxsi