OOMMF Tutorial Part 2: Running OOMMF

By | May 22, 2014

Starting OOMMF

Part 2 of this OOMMF tutorial covers how to start OOMMF, and some tricks for starting OOMMF via the command line in both Windows and Linux.

For more details on starting OOMMF, please see the official manual.

Windows

One way to load oommf is to double click on the oommf icon. If you installed tcl correctly (see part 1), then it should load oommf with no problems.

I sometimes find it easier to load oommf from the command line. To help me with this I’ve made a simple batch script to save having to remember the location of tcl and oommf:

REM oommf.bat
tclsh C:\oommf-1.2a5\oommf.tcl %*

The %* also allows me to pass command line arguments to oommf, something which will become useful when performing analysis (see future part of this tutorial).

I put this in a scripts folder, which I’ve added to the path. I can then easily load oommf, or use any of its command line programs from any location. To open a command prompt in a folder I can shift-right click on the folder, or go into the folder and type ‘cmd’ into the address bar. Running oommf.bat starts oommf from this directory.

See also: Adding directories to the path

Linux

In Linux I also use a simple startup script to load oommf:
# oommf.sh
#!/usr/bin/bash
tclsh /path/to/oommf/oommf.tcl $@

Again, I save this in a scripts directory in my home directory. I run sudo chmod u+x oommf.sh and I can then run this when ever you want to load oommf.

See also: Adding directories to the path

Starting Oxsii

Whether we started OOMMF from the command line with one of the startup scripts, or by clicking on the icon, we should be greeted with the OOMMF window.

To get to something useful we need to click through the check boxes until we get a list of possible OOMMF sub-programs. We’ll be looking at the 3d micromagnetic solver ‘Oxsii’, so click that.

Clicking through the OOMMF windows to load Oxsii

Clicking through the OOMMF windows to load Oxsii

In part 3 of this tutorial we’ll look at oommf problem files and some of the examples that come with oxsii.


OOMMF Tutorial

3 thoughts on “OOMMF Tutorial Part 2: Running OOMMF

  1. Cupio Scire

    As rum oommf without graphycs interface?

Comments are closed.