slactrac.elegant_sim

slactrac.elegant_sim(beamline, dir=None, filename=None, **kwargs)[source]

Creates and runs a simulation in Elegant.

Parameters:

dir : str

If none, simulated in a tempfile.mkdtemp temporary directory.

filename : str

If none, simulated with a tempfile.mkstemp temporary file.

Returns:

(path, root, ext) : (str, str, str)

A tuple of the path of the simulation, the filename of the simulation, and the extension of the simulation

Previous topic

Elegant

Next topic

PWFA