particle module
Define objects to store initial state/trajectory of a particle.
ParticleInitialStateis just here to save the position and energy of a particle at the entrance of the linac. Saved as anListOfElementsattribute.ParticleFullTrajectorysaves the energy, phase, position of a particle along the linac. As a singleParticleInitialStatecan lead to severalParticleFullTrajectory(according to size of the mesh, the solver, etc),ParticleFullTrajectoryare stored inSimulationOutput.
- class ParticleInitialState(w_kin, phi_abs, z_in, synchronous)[source]
Bases:
objectHold the initial energy/phase of a particle, and if it is synchronous.
It is used for
ListOfElementsattribute.
- class ParticleFullTrajectory(w_kin, phi_abs, synchronous, beam)[source]
Bases:
objectHold the full energy, phase, etc of a particle.
It is stored in a
SimulationOutput.Phase is defined as:
\[\phi = \omega_{0,\,\mathrm{bunch}} t\]while in
Fieldit is:\[\phi = \omega_{0,\,\mathrm{rf}} t\]- Parameters:
- property tracewin_command: list[str]
Raise an error, this method should be called from InitialPart.