streakline_stream

gala.dynamics.mockstream.streakline_stream(hamiltonian, prog_orbit, prog_mass, release_every=1, Integrator=<class 'gala.integrate.pyintegrators.dopri853.DOPRI853Integrator'>, Integrator_kwargs={}, snapshot_filename=None, output_every=1, seed=None)[source]

Generate a mock stellar stream in the specified potential with a progenitor system that ends up at the specified position.

This uses the Streakline method from Kuepper et al. (2012).

Parameters
hamiltonianHamiltonian

The system Hamiltonian.

prog_orbitOrbit

The orbit of the progenitor system.

prog_massnumeric, array_like

A single mass or an array of masses if the progenitor mass evolves with time.

release_everyint (optional)

Release particles at the Lagrange points every X timesteps.

IntegratorIntegrator (optional)

Integrator to use.

Integrator_kwargsdict (optional)

Any extra keyword argumets to pass to the integrator function.

snapshot_filenamestr (optional)

Filename to save all incremental snapshots of particle positions and velocities. Warning: this can make very large files if you are not careful!

output_everyint (optional)

If outputing snapshots (i.e., if snapshot_filename is specified), this controls how often to output a snapshot.

seedint (optional)

A random number seed for initializing the particle positions.

Returns
streamPhaseSpacePosition