tardis.model.geometry.radial1d_homologous module

class tardis.model.geometry.radial1d_homologous.HomologousRadial1DGeometry(v_inner, v_outer, v_inner_boundary, v_outer_boundary, time_explosion)[source]

Bases: object

Holds information about model geometry for radial 1D models.

Parameters:
v_innerastropy.units.quantity.Quantity
v_outerastropy.units.quantity.Quantity
v_inner_boundaryastropy.units.quantity.Quantity
v_outer_boundaryastropy.units.quantity.Quantity
Attributes:
volumeastropy.units.quantity.Quantity

Volume in shell computed from r_outer and r_inner

property no_of_shells

Return the number of shells.

property no_of_shells_active

Return the number of active shells.

property r_inner

Return the inner radii of all shells.

property r_inner_active

Return the inner radii of the active shells.

property r_middle

Return the radii at the middle of all shells.

property r_middle_active

Return the radii at the middle of the active shells.

property r_outer

Return the outer radii of all shells.

property r_outer_active

Return the outer radii of the active shells.

to_numba()[source]

Return a new NumbaHomologousRadial1DGeometry object.

Returns:
NumbaHomologousRadial1DGeometry

Numba version of HomologousRadial1DGeometry with properties in cgs units

property v_inner_active

Return the inner velocities of the active shells.

property v_inner_boundary_idx

Return the index of the active inner velocity boundary.

property v_middle

Return the velocity at the middle of each shell.

property v_middle_active

Return the velocity at the middle of each active shell.

property v_outer_active

Return the outer velocities of the active shells.

property v_outer_boundary_idx

Return the index after the active outer velocity boundary.

property volume

Volume in shell computed from r_outer and r_inner

property volume_active

Volume in shell computed from r_outer and r_inner

class tardis.model.geometry.radial1d_homologous.NumbaHomologousRadial1DGeometry(*args, **kwargs)[source]

Bases: NumbaHomologousRadial1DGeometry

Store homologous radial geometry in Numba-compatible form.

Store homologous radial geometry in Numba-compatible form.

class_type = jitclass.NumbaHomologousRadial1DGeometry#7f9e3e0b5950<r_inner:array(float64, 1d, A),r_outer:array(float64, 1d, A),v_inner:array(float64, 1d, A),v_outer:array(float64, 1d, A),time_explosion:float64,velocity_gradient:float64,volume:array(float64, 1d, A)>