vice.toolkit.hydrodisk.hydrodiskstars.analog_index

Type : int

The index of the analog in the hydrodynamical simulation star particle data. -1 if it has not yet been assigned.

Note

Calling this object at a given zone with the formation time and the simulation time equal resets the star particle acting as the analog.

Example Code

>>> from vice.toolkit.hydrodisk import hydrodiskstars
>>> import numpy as np
>>> example = hydrodiskstars(np.linspace(0, 20, 81))
>>> example.analog_index
-1 # no analog yet
>>> example(2, 1, 1) # final two arguments equal resets analog
15745
>>> example(10, 4, 4)
10
>>> example.analog_index
101206
>>> example.analog_data["rfinal"][example.analog_index]
2.6411
>>> example.analog_data["vrad"][example.analog_data]
92.2085