The Equations class¶
The Equations
class is top-level class in KENV. It contains all
the equations data, and has the high-level methods envelope_prime
, centroid_prime
, particle_prime
that performs the integrate.
-
class
kenv.solver.
Equations
(beam, accelerator, particle=<kenv.beam.Particle object>)[source]¶ Initializes an Equations.
- Parameters
beam (an instance of
Beam
) – Beam dataaccelerator (an instance of
Accelerator
) – Accelerator dataParticle (an instance of
Particle
, optional) – Particle data
-
centroid_prime
(z: numpy.arange, X: list) → list[source]¶ Located derivative for further integration Kapchinscky equation for centroid trajectory.
- Parameters
z (an instance of the np.arange class) – Axis z
X (list) – Initial conditions, [x0, xp0, y, yp0, larmor_angle]