ishockpy.shell module

class ishockpy.shell.Shell(initial_gamma: float, initial_mass: float, initial_radius: float, jet)[source]

Bases: object

activate(time: float) None[source]

turn the shell on and record the comoving time

collide_shell(other_shell)[source]

FIXME! briefly describe function

Parameters

other_shell

Returns

Return type

deactivate(time: float) None[source]

turn the shell of and record when the shell when dead

property energy: float
property gamma: float
property history: ishockpy.shell_history.ShellHistory
property id: int
property is_active: bool
property mass: float
move(delta_time) None[source]
property radius: float

the comoving radius of the shell in cm

record_history(time: float) None[source]
set_id(id: int) None[source]

set the shell ID

Parameters

id (int) –

Returns

property status: bool
property velocity: float

get the velocity in cm/s

class ishockpy.shell.ShellSet(list_of_shells: List[ishockpy.shell.Shell])[source]

Bases: object

activate_shells(time=0.0, *shell_index) None[source]
property active_shells: List[ishockpy.shell.Shell]
deactivate_shells(time=0.0, *shell_index) None[source]
property gamma_distribution
move(delta_time) None[source]

Move the active shells

Parameters

delta_time

Returns

Return type

property n_active_shells: int
property n_shells
property radii: List[float]
record_history(time) None[source]
property time_to_collisions: List[float]
property velocities: List[float]
property velocity_ordered_shells: List[ishockpy.shell.Shell]

return the active shells that are ordered in velocity