A Julia package for beam physics analysis following the openPMD-beamphysics standard. Inspired by the Python package openPMD-beamphysics.
using Pkg
Pkg.add("BeamPhysics")using BeamPhysics
pg = ParticleGroup("particles.h5")
pg["sigma_x"] # weighted std of x [m]
pg["norm_emit_x"] # normalized x emittance [m]
twiss(pg; plane="x")
fm = FieldMesh("solenoid.h5")
fm["Bz"] # scaled Bz componentFull documentation including API reference is available at https://ndwang.github.io/BeamPhysics.jl.