Skip to content

SunnySuite/SchrodingerLangevin.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SchrodingerLangevin.jl

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.

  1. Open up the Julia REPL from the directory SchrodingerLangevin.
  2. In the Julia REPL, type ] to enter the package mode, and then type activate . and press "enter".
  3. 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.
  4. Now type include("src/SchrodingerLangevin.jl"), followed by the enter key. When this is completed, execute using .SchrodingerLangevin to bring all the relevant functions into the REPL environment.
  5. It is now possible to call any of the functions that produce the figures and animations. In particular, fig1(), fig2() and fig3() reproduce the three figures in the paper. Calling quench_animation() and thermalize_animation() will reproduce the two animations included in the paper's supplementary materials. Note that thermalize_animation() may take quite a while to run, depending on your computer (~20 minutes).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages