Installation, scripting, & data generation demo of computational micro and nanomagnetism in MuMax3. Formed & written by Onri Jay Benally.
Main MuMax3 website: (https://mumax.github.io/index.html)
Uses code heavily-modified for clarity, inspired from: (https://github.com/mumax/3) & (https://mumax.github.io/examples.html)
Some examples computed in this repository were performed on an Nvidia (RTX 4070 Ti Super) GPU, connected externally (via a Thunderbolt 4 to PCIe x16 adapter) to a Microsoft Surface Pro 8, later upgraded to a Surface Pro 10. If you are curious about this kind of GPU-accelerated computing setup, then it is best to make sure your Windows machine is Thunderbolt 4 compatible or greater. Other examples were computed directly in the Google Colab environment using available GPU resources in Colab (T4 [free], L40, A100, etc.)
To use MuMax3 in Google Colab, simply change the runtime type to one of the GPU accelerators and enter this into the first code cell:
#@title Check GPU + driver
!nvidia-smi --query-gpu="name,driver_version,compute_cap" --format=csv
#@title Install MuMax³ (MuMax³ 3.10 CUDA 10.1)
# Download the mumax3 binary
!wget -q https://mumax.ugent.be/mumax3-binaries/mumax3.10_linux_cuda10.1.tar.gz
!tar -xvf mumax3.10_linux_cuda10.1.tar.gz
!rm mumax3.10_linux_cuda10.1.tar.gz
!rm -rf mumax3.10 && mv mumax3.10_linux_cuda10.1 mumax3.10
# Update the PATH environment variable
import os
os.environ["PATH"] += ":/content/mumax3.10"
Now you can write the MuMax3 code and Python visualization scripts in the remaining cells. See the Google Colab notebook examples for more information.
If MuMax3 is installed already, start the GUI by typing the following 2 lines into a non-admin command prompt or non-admin PowerShell:
cd <directory_to_your_MuMax3_file>
mumax3 -i <your_MuMax3_TXT_file_name.txt>
Note: MuMax3 scripts can be written as TXT file types. The above script will load and automatically run the script into a browser.
Online OVF file type visualization: (https://mumax.ugent.be/mumax-view). While using the viewer, you can load multiple OVF files to play an animation of the magnetization frame capture.
Quantity | Symbol | Conversion |
---|---|---|
Field | ||
Flux | ||
Flux density | ||
Magnetic moment | ||
Magnetization per unit volume | ||
Magnetization per unit mass | ||
Magnetic polarization | ||
Volume susceptibility | ||
Mass susceptibility | ||
Permeability | ||
Relative permeability (SI) | ||
Energy density | ||
Demagnetizing factor | ||
Energy product |
|
Mx = maxwell, G = gauss, Oe = oersted, Wb = weber, V = volt, s = second, T = tesla, m = meter, A = ampere, J = joule, kg = kilogram, g = gram, cm = centimeter, with

Ferromagnetic response for dysprosium and terbium at various low temperatures, from the MuMax3 Colab computation:
