Skip to content

Visualization issue #1196

@sweber04

Description

@sweber04

Dear All,

I prepared an electron beam and studying its evolution in vacuum before coupling with other beamline elements. The electron has to travel 2 meters in vacuum. I used the following command to see the beam at 2 meter:

# add beam diagnostics
monitor = elements.BeamMonitor("monitor", backend="h5")

sim.lattice.extend([ monitor,
                     elements.Drift(name="drift", ds=2.0),
                     monitor])

# run simulation
sim.track_particles()

For visualization, I used the attached python file. I noticed that the figure always giving me the initial electron beam and not after 2 meters.

Any suggestions will be highly appreciated.

Thank you.

visualize.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions