# StreaklineStreamDF¶

class gala.dynamics.StreaklineStreamDF

A class for representing the “streakline” distribution function for generating stellar streams based on Kuepper et al. 2012

Parameters

Generate a leading tail. Default: True.

trailbool (optional)

Generate a trailing tail. Default: True.

random_stateRandomState (optional)

To control random number generation.

Attributes Summary

 lead random_state random_state: object trail

Methods Summary

 sample(self, prog_orbit, prog_mass[, …]) Generate stream particle initial conditions and initial times.

Attributes Documentation

lead
random_state

random_state: object

trail

Methods Documentation

sample(self, prog_orbit, prog_mass, hamiltonian=None, release_every=1, n_particles=1) sample(prog_orbit, prog_mass, hamiltonian=None, release_every=1, n_particles=1)

Generate stream particle initial conditions and initial times.

This method is primarily meant to be used within the MockStreamGenerator.

Parameters
prog_orbitOrbit

The orbit of the progenitor system.

prog_massQuantity [mass]

The mass of the progenitor system, either a scalar quantity, or as an array with the same shape as the number of timesteps in the orbit to account for mass evolution.

hamiltonianHamiltonian

The external potential and reference frame to numerically integrate orbits in.

release_everyint (optional)

Controls how often to release stream particles from each tail. Default: 1, meaning release particles at each timestep.

n_particlesint, array_like (optional)

If an integer, this controls the number of particles to release in each tail at each release timestep. Alternatively, you can pass in an array with the same shape as the number of timesteps to release bursts of particles at certain times (e.g., pericenter).

Returns
xyzQuantity [length]

The initial positions for stream star particles.

v_xyzQuantity [speed]

The initial velocities for stream star particles.

t1Quantity [time]

The initial times (i.e. times to start integrating from) for stream star particles.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5248415470123291, "perplexity": 8788.941733198682}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-45/segments/1603107876768.45/warc/CC-MAIN-20201021151342-20201021181342-00663.warc.gz"}