tardis.model.geometry.radial1d_nonhomologous module
- class tardis.model.geometry.radial1d_nonhomologous.NonhomologousRadial1DGeometry(r_inner: Quantity, r_outer: Quantity, v_inner: Quantity, v_outer: Quantity, r_inner_boundary: Quantity, r_outer_boundary: Quantity, v_inner_boundary: Quantity, v_outer_boundary: Quantity)[source]
Bases:
objectHolds information about model geometry for non-homologous radial 1D models.
- Attributes:
volumeastropy.units.quantity.QuantityVolume in shell computed from r_outer and r_inner
- get_velocity(r: Quantity, shell_id: int)[source]
Calculate the velocity at a given radius within a shell, assuming a piece-wise linear velocity with radius.
- Parameters:
- rastropy.units.quantity.Quantity
Radius at which to calculate the velocity
- shell_idint
Shell index
- Returns:
- astropy.units.quantity.Quantity
Velocity at radius r within shell shell_id
Examples
geometry.get_velocity(rpacket.r, rpacket.current_shell_id)
- property no_of_shells
- property no_of_shells_active
- property r_inner_active
- property r_inner_boundary_index
- property r_middle
- property r_middle_active
- property r_outer_active
- property r_outer_boundary_index
- to_numba()[source]
Returns a new NumbaNonhomologousRadial1DGeometry object
- Returns:
- NumbaNonhomologousRadial1DGeometry
Numba version of Radial1DGeometry with properties in cgs units
- property v_inner_active
- property v_inner_boundary_idx
- property v_middle
- property v_middle_active
- property v_outer_active
- property v_outer_boundary_idx
- property velocity_gradient
Velocity gradient in each cell
- property velocity_gradient_active
Velocity gradient in each cell
- 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_nonhomologous.NumbaNonhomologousRadial1DGeometry(*args, **kwargs)[source]
Bases:
NumbaNonhomologousRadial1DGeometryRadial 1D Geometry for the Numba mode
- Parameters:
- r_innernumpy.ndarray
- r_outernumpy.ndarray
- v_innernumpy.ndarray
- v_outernumpy.ndarray
- velocity_gradientnumpy.ndarray
- volumenumpy.ndarray
- class_type = jitclass.NumbaNonhomologousRadial1DGeometry#7fd99c602f30<r_inner:array(float64, 1d, A),r_outer:array(float64, 1d, A),v_inner:array(float64, 1d, A),v_outer:array(float64, 1d, A),velocity_gradient:array(float64, 1d, A),volume:array(float64, 1d, A)>