JuMag.jl

Author ww1g11
Popularity
15 Stars
Updated Last
1 Year Ago
Started In
April 2019

JuMag.jl

A Julia package for classical spin dynamics and micromagnetic simulations with GPU support.

Docs latest Build Status Actions Status codecov

Features

  • Support classical spin dynamics and micromagnetic simulations.
  • Support both CPU and GPU, which can be easily switched.
  • Easily switch between single and double using JuMag.cuda_using_double(false)
  • ...

Installation

Install JuMag is straightforward as long as Julia is installed, and it is equally easy in Windows, Linux and Mac.

Requirements:

In Julia, packages can be easily installed using

using Pkg;
Pkg.add("FFTW")

or

julia> ]
(v1.4) pkg> add FFTW

We don't have to install these packages for now, since the packages will be installed automatically when we install JuMag. To install JuMag.jl, simply using

(v1.4) pkg> add https://github.com/ww1g11/JuMag.jl

Now we will see similar messages if we type using JuMag

julia> using JuMag
[ Info: Precompiling JuMag [8b6b6816-cea2-582c-a99f-83810c20db0f]
┌ Warning: CUDA is not available!
└ @ JuMag ~/Softwares/JuMag.jl/src/JuMag.jl:41