Profile from a file produced by lasy

class fbpic.lpa_utils.laser.FromLasyFileLaser(filename, t_start=0.0)[source]

Define a laser whose profile is determined by a lasy file.

When the laser is initialized by this function, FBPIC forces the beginning of the time axis in the lasy file to be zero (irrespective of the metadata for tmin that is actually present in the lasy file). This convention was chosen for convenience, because tmin in lasy could otherwise result in large delays before emitting the laser, especially when using lasy’s propagate feature.

filename: string

The path to the lasy file.

t_start: float (in seconds), optional, default: 0

Physical time (in the simulation), at which the laser will start being emitted. This can be used in order to introduce a time delay that was not originally present in the lasy file. (As explained above, FBPIC ignores any initial time offset in the lasy. This offset is replaced by t_start (or zero if unspecified).

Warning

This laser profile can only be emitted with the antenna method (not with the direct method).

Example