Skip to content

Commit

Permalink
A nice-ish example
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Apr 24, 2024
1 parent 348b150 commit 7f32a85
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions examples/fcc_ee_solenoid/t000a_plot_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
sources=[xt._pkg_root / '_temp/boris_and_solenoid_map/boris.h'],
)

tag = 'case0'
orbit_lims = -5, 5
p0 = xt.Particles(mass0=xt.ELECTRON_MASS_EV, q0=1,
energy0=45.6e9,
x=1e-3, px=0,
y=1e-3, py=0,
delta=0)
# tag = 'case0'
# orbit_lims = -5, 5
# p0 = xt.Particles(mass0=xt.ELECTRON_MASS_EV, q0=1,
# energy0=45.6e9,
# x=1e-3, px=0,
# y=1e-3, py=0,
# delta=0)

# tag = 'case1'
# orbit_lims = -100, 100
Expand All @@ -68,14 +68,14 @@
# y=10e-3, py=-5e-3 * (1+delta),
# delta=delta)

tag = 'case3'
orbit_lims = -100, 100
delta = -0.99
p0 = xt.Particles(mass0=xt.ELECTRON_MASS_EV, q0=1,
energy0=45.6e9,
x=-170e-3, px=15e-3 * (1+delta),
y=10e-3, py=-5e-3 * (1+delta),
delta=delta)
# tag = 'case3'
# orbit_lims = -100, 100
# delta = -0.99
# p0 = xt.Particles(mass0=xt.ELECTRON_MASS_EV, q0=1,
# energy0=45.6e9,
# x=-170e-3, px=15e-3 * (1+delta),
# y=10e-3, py=-5e-3 * (1+delta),
# delta=delta)

# tag = 'case4'
# orbit_lims = -100, 100
Expand All @@ -86,6 +86,13 @@
# y=10e-3, py=-5e-3 * (1+delta),
# delta=delta)

tag = 'case5'
orbit_lims = -100, 100
p0 = xt.Particles(mass0=xt.ELECTRON_MASS_EV, q0=1,
energy0=45.6e9,
x=-70e-3, px=6e-3,
y=10e-3, py=-5e-3,
delta=0)

p = p0.copy()

Expand Down

0 comments on commit 7f32a85

Please sign in to comment.