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
lasyfile to be zero (irrespective of the metadata fortminthat is actually present in thelasyfile). This convention was chosen for convenience, becausetmininlasycould otherwise result in large delays before emitting the laser, especially when usinglasy’spropagatefeature.- filename: string
The path to the
lasyfile.- 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
lasyfile. (As explained above, FBPIC ignores any initial time offset in thelasy. This offset is replaced by t_start (or zero if unspecified).
Warning
This laser profile can only be emitted with the
antennamethod (not with thedirectmethod).Example