Skip to content

Julia routines for tracking particle beams through accelerators

License

Notifications You must be signed in to change notification settings

bmad-sim/BeamTracking.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BeamTracking

Stable Dev Build Status

To develop this package, you will need AtomicAndPhysicalConstants.jl which is not yet on the official Julia registry. Therefore in the Julia REPL run:

import Pkg;
Pkg.develop(url="https://github.com/bmad-sim/AtomicAndPhysicalConstants.jl.git"); # Dependency
Pkg.develop(url="https://github.com/bmad-sim/BeamTracking.jl.git"); # This package! Replace bmad-sim with your username if working on a fork

If working on your own fork, replace bmad-sim in the above develop url with your Github username.

In your ~/.julia/dev/ directory, you will now see the directory BeamTracking. This is the Github repo where you can do your work and push changes.

If you would like to add a dependency to the project (e.g. OrdinaryDiffEq.jl), you should:

  1. In the ~/.julia/dev/BeamTracking.jl directory, start julia
  2. Enter package-mode using ], and then type activate .. This activates the Project.toml in the current directory you're in
  3. In package-mode, type add OrdinaryDiffEq. This will add the package as a dependency to the Project.toml.
  4. In the main module src/BeamTracking.jl, add a using OrdinaryDiffEq to the top of BeamTracking.jl, and in your particularly module defined below add a using ..OrdinaryDiffEq which basically says, go one module level up and get OrdinaryDiffEq.

About

Julia routines for tracking particle beams through accelerators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages