This repo contains the source code of a GPU-parallel Atomistic Spin Dynamics model AtomMag developed by Prof.Jiamian Hu's group at University of Wisconsin-Madison. The simulation results using this code is validated through comparison with Fidimag and analytical results. 66x speed up can be achieved on NVIDIA Tesla P100 compared to serial code.
- Various Lattice type provided including simple cubic, face-centered cubic and 2D hexagonal lattice. Self-defined atomic position can also be input through 'atomposition.in'
- Heisenberg exchange interaction, Dzyaloshinskii–Moriya interaction, uniaxial magnetocrystalline energy, dipole-dipole interaction and zeeman energy are considered
- Spin orbit torque can be simulated
- Fortran code paralleled using OpenACC
module load pgi
pgf90 -acc -Minfo=accel -o AtomMag AtomMag.f90
./AtomMag