This package contains all the necessary code to reproduce the figures and animations from the paper "Langevin dynamics of generalized spins as SU(N) coherent states" by D. Dahlbom, C. Miles, H. Zhang, C. Batista and K. Barros. The code is written in the Julia programming language. Some of the examples, in particular those involving skyrmions, additionally require the package Sunny.jl, which implements many of the ideas in the paper and makes them available for use in a general purpose package for simulating spin systems. In this file we briefly describe how to install and use the code in the Julia REPL. A similar procedure can be followed in VSCode or the the Julia environment of your choice.
- Open up the Julia REPL from the directory
SchrodingerLangevin
. - In the Julia REPL, type
]
to enter the package mode, and then typeactivate .
and press "enter". - While still in the package mode, type
instantiate
. This will install all the necessary dependencies. Once this process is finished, hit the backspace key to re-enter Julia's standard mode. - Now type
include("src/SchrodingerLangevin.jl")
, followed by the enter key. When this is completed, executeusing .SchrodingerLangevin
to bring all the relevant functions into the REPL environment. - It is now possible to call any of the functions that produce the figures and animations. In particular,
fig1()
,fig2()
andfig3()
reproduce the three figures in the paper. Callingquench_animation()
andthermalize_animation()
will reproduce the two animations included in the paper's supplementary materials. Note thatthermalize_animation()
may take quite a while to run, depending on your computer (~20 minutes).