Tutorial 2
Tutorial 2
DYNAMAT GROUP
MUMAX3-WORKSHOP
SESSION 2
Dr. Jonathan Leliaert,
Dr. Jeroen Mulkers
SCHEDULE
Monday 08/31, 6PM-8PM CET
Session 1: general introduction to micromagnetics in mumax3
Session 2: mumax3 ecosystem, workflow and a first simulation
>homework
2
TABLE OF CONTENTS
1. Installing mumax3 3. Workflow
- Windows - Running a simulation: standard problem 4
- Linux - (Processing) output
- Mumax3-convert
2. Mumax3 website - Mumax-view
- Home
- Download 4. Extra's
- Examples - Run flags
- API - Benchmark
- Forum - No GPU ->google collab
3
TABLE OF CONTENTS
• Installing mumax3 • Workflow
- Windows - Running a simulation: standard problem 4
- Linux - (Processing) output
- Mumax3-convert
• Mumax3 website - Mumax-view
- Home
- Download • Extra's
- Examples - Run flags
- API - Benchmark
- Forum - No GPU ->google collab
4
INSTALLING MUMAX3
• We assume you have computer running windows or linux,
• With an NVIDIA GPU with compute capability >=3.0,
• For which the drivers are installed already and up to date!
5
INSTALLING MUMAX3 ON LINUX
- find driver version, either via nvidia-smi or in nvidia-settings
6
INSTALLING MUMAX3 ON LINUX
- download binary from http://mumax.github.io/download.html
7
INSTALLING MUMAX3 ON LINUX
- extract the mumax3 binaries, e.g. in $HOME/bin/mumax3.10/
- add mumax3.10 directory to your $PATH
8
TABLE OF CONTENTS
• Workflow
• Installing mumax3
- Running a simulation: standard problem 4
- Windows
- (Processing) output
- Linux
- Mumax3-convert
- Mumax-view
• Mumax3 website
- Home
• Extra's
- Download
- Run flags
- Examples
- Benchmark
- API
- No GPU ->google collab
- Forum
9
MUMAX3 WEBSITE
• http://mumax.github.io/
10
TABLE OF CONTENTS
• Installing mumax3 • Workflow
- Windows - Running a simulation: standard problem 4
- Linux - (Processing) output
- Mumax3-convert
• Mumax3 website - Mumax-view
- Home
- Download • Extra's
- Examples - Run flags
- API - Benchmark
- Forum - No GPU ->google collab
11
STANDARD PROBLEM 4
• https://www.ctcms.nist.gov/~rdm/mumag.org.html
• Geometry
A film of thickness, t=3 nm, length, L=500 nm and width, d=125 nm will be used.
• Material parameters
A = 1.3e-11 J/m exchange length:
Ms = 8.0e5 A/m 5.68 nm
K = 0.0
α = 0.02
• Field
µ0Hx=-24.6 mT, µ0Hy= 4.3 mT, µ0Hz= 0.0 mT
12
STANDARD PROBLEM 4
• Input file • Output table
SetGridsize(128, 32, 1)
SetCellsize(500e-9/128, 125e-9/32, 3e-9)
Msat = 800e3
Aex = 13e-12
alpha = 0.02
m = uniform(1, .1, 0)
relax()
save(m) // relaxed state
autosave(m, 200e-12)
tableautosave(10e-12)
13
MUMAX3-CONVERT -HELP
Usage of mumax3-convert:
-csv
• Output formats: output in CSV format
-dump
output in dump format
-gif
GIF output
-gplot
Gnuplot-compatible output
-jpg
JPEG output
-json
output in JSON format
-numpy
Numpy output
-omf string
"text" or "binary" OVF1 output
-ovf string
"text" or "binary" OVF1 output
-ovf2 string
"text" or "binary" OVF2 output
-png
PNG output
-show
Human-readible output to stdout
-f string
Printf format string (default "%v")
-svg
SVG output
-svgz
SVGZ output (compressed)
-vtk string
"ascii" or "binary" VTK output
14
MUMAX3-CONVERT -HELP
• Image options Usage of mumax3-convert:
-arrows int
Arrow size for vector bitmap image output
-color string
Colormap for scalar image output. (default "black,gray,white")
-comp string
Select a component of vector data. (0,1,2 or x,y,z)
-max string
Maximum of color scale: "auto" or value. (default "auto")
-min string
Minimum of color scale: "auto" or value. (default "auto")
-normalize
Normalize vector data to unit length
-normpeak
Scale vector data, maximum to unit length
-o string
Save all output in this directory
-resize string
Resize. E.g.: 128x128x4
-xrange string
Crop x range min:max (both optional, max=exclusive)
-yrange string
Crop y range min:max (both optional, max=exclusive)
-zrange string
Crop z range min:max (both optional, max=exclusive)
15
MUMAX-VIEW www.mumax.ugent.be/mumax-view
16
TABLE OF CONTENTS
• Installing mumax3 • Workflow
- Windows - Running a simulation: standard problem 4
- Linux - (Processing) output
- Mumax3-convert
• Mumax3 website - Mumax-view
- Home • Extra's
- Download - Run flags
- Examples - Benchmark
- API - No GPU ->google collab
- Forum
17
MUMAX3 -HELP
jonathan@monster3:~$ mumax3 -h
Usage of mumax3:
-cache string
Kernel cache directory (empty disables caching) (default "/tmp")
-f Force start, clean existing output directory
-failfast
If one simulation fails, stop entire batch immediately
-gpu int
Specify GPU
-http string
Port to serve web gui (default ":35367")
-i Open interactive browser session
-o string
Override output directory
-test
Cuda test (internal)
-v Print version (default true)
-vet
Check input files for errors, but don't run them
18
MUMAX3 BENCHMARKS
http://mumax.github.io/index.html
19
MUMAX3 BENCHMARKS
• Benchmark: Titan RTX* https://github.com/mumax/3
http://mumax.github.io/index.html
20
* generously sponsored by the NVIDIA corporation on the occasion of this workshop
MUMAX3 BENCHMARKS
• https://colab.research.google.com/github/JeroenMulkers/mumax3-tutorial/blob/master/mumax3.ipynb
23
mumax.ugent.be Homework
• Install mumax3
• Check if it works by running standard problem 4