tardis.model.base module

class tardis.model.base.ModelState(v_inner, v_outer, r_inner, r_outer, time_explosion, density)[source]

Bases: object

Store Model State Information.

Parameters
v_innerastropy.units.quantity.Quantity
v_outerastropy.units.quantity.Quantity
r_innerastropy.units.quantity.Quantity
r_outerastropy.units.quantity.Quantity
densityastropy.units.quantity.Quantity
time_explosionastropy.units.quantity.Quantity
Attributes
geometrypd.DataFrame

DataFrame storing v_inner, v_outer, r_inner and r_outer.

geometry_unitsdict

Units of arrays stored in the geometry dataframe.

property r_inner

Inner radius of model shells.

property r_outer

Outer radius of model shells.

property v_inner

Inner boundary velocity.

property v_outer

Outer boundary velocity.

class tardis.model.base.Radial1DModel(*args, **kwargs)[source]

Bases: HDFWriterMixin

An object that hold information about the individual shells.

Parameters
velocitynp.ndarray

An array with n+1 (for n shells) velocities “cut” to the provided boundaries

Note

To access the entire, “uncut”, velocity array, use raw_velocity

homologous_densityHomologousDensity
abundancepd.DataFrame
time_explosionastropy.units.Quantity

Time since explosion

t_innerastropy.units.Quantity
luminosity_requestedastropy.units.quantity.Quantity
t_radiativeastropy.units.Quantity

Radiative temperature for the shells

dilution_factornp.ndarray

If None, the dilution_factor will be initialized with the geometric dilution factor.

v_boundary_innerastropy.units.Quantity
v_boundary_outerastropy.units.Quantity
raw_velocitynp.ndarray

The complete array of the velocities, without being cut by v_boundary_inner and v_boundary_outer

electron_densitiesastropy.units.quantity.Quantity
Attributes
wnumpy.ndarray

Shortcut for dilution_factor

t_radastropy.units.quantity.Quantity

Shortcut for t_radiative

radiusastropy.units.quantity.Quantity
r_innerastropy.units.quantity.Quantity
r_outerastropy.units.quantity.Quantity
r_middleastropy.units.quantity.Quantity
v_innerastropy.units.quantity.Quantity
v_outerastropy.units.quantity.Quantity
v_middleastropy.units.quantity.Quantity
densityastropy.units.quantity.Quantity
volumeastropy.units.quantity.Quantity
no_of_shellsint

The number of shells as formed by v_boundary_inner and v_boundary_outer

no_of_raw_shellsint
property abundance
property density
property dilution_factor
classmethod from_config(config)[source]

Create a new Radial1DModel instance from a Configuration object.

Parameters
configtardis.io.config_reader.Configuration
Returns
Radial1DModel
classmethod from_csvy(config)[source]

Create a new Radial1DModel instance from a Configuration object.

Parameters
configtardis.io.config_reader.Configuration
Returns
Radial1DModel
hdf_name = 'model'
hdf_properties = ['t_inner', 'w', 't_radiative', 'v_inner', 'v_outer', 'homologous_density', 'r_inner']
property no_of_raw_shells
property no_of_shells
property r_inner
property r_middle
property r_outer
property radius
property t_rad
property t_radiative
property v_boundary_inner
property v_boundary_inner_index
property v_boundary_outer
property v_boundary_outer_index
property v_inner
property v_middle
property v_outer
property velocity
property volume
property w