# ocelot.adaptors.wake_t¶

This module contains methods for coupling the plasma simulation code Wake-T with Ocelot.

## Module Contents¶

### Functions¶

 wake_t_beam_to_parray(wake_t_beam, gamma_ref=None, z_ref=None) Converts a Wake-T particle beam to an Ocelot ParticleArray. parray_to_wake_t_beam(p_array) Converts an Ocelot ParticleArray to a Wake-T ParticleBunch.
ocelot.adaptors.wake_t.wake_t_installed = True
ocelot.adaptors.wake_t.wake_t_beam_to_parray(wake_t_beam, gamma_ref=None, z_ref=None)

Converts a Wake-T particle beam to an Ocelot ParticleArray.

wake_t_beamParticleBunch (Wake-T class)

The original particle distribution from Wake-T.

gamma_reffloat (Optional)

Reference energy of the particle beam used for tracking in Ocelot. If not specified, the reference energy will be taken as the average energy of the input distribution.

z_reffloat (Optional)

Reference longitudinal position of the particle beam used for tracking in Ocelot. If not specified, the reference value will be taken as the average longitudinal position of the input distribution.

An Ocelot ParticleArray.

ocelot.adaptors.wake_t.parray_to_wake_t_beam(p_array)

Converts an Ocelot ParticleArray to a Wake-T ParticleBunch.

p_arrayParticleArray

The Ocelot distribution to be converted.

A Wake-T ParticleBunch.