tardis.model.base module

class tardis.model.base.SimulationState(*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

abundancepd.DataFrame
time_explosionastropy.units.Quantity

Time since explosion

t_innerastropy.units.Quantity
elemental_mass: pd.Series
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 blackbody_packet_source
property density
property dilution_factor
property elemental_number_density
classmethod from_config(config, atom_data, legacy_mode_enabled=False)[source]

Create a new SimulationState instance from a Configuration object.

Parameters:
configtardis.io.config_reader.Configuration
atom_datatardis.io.AtomData
Returns:
SimulationState
classmethod from_csvy(config, atom_data=None, legacy_mode_enabled=False)[source]

Create a new SimulationState instance from a Configuration object.

Parameters:
configtardis.io.config_reader.Configuration
atom_datatardis.io.AtomData
Returns:
SimulationState
hdf_name = 'simulation_state'
hdf_properties = ['t_inner', 'dilution_factor', 't_radiative', 'v_inner', 'v_outer', 'density', 'r_inner', 'time_explosion', 'abundance']
property isotopic_number_density
property no_of_raw_shells
property no_of_shells
property r_inner
property r_middle
property r_outer
property radius
property t_inner
property t_radiative
property v_boundary_inner
property v_boundary_outer
property v_inner
property v_inner_boundary
property v_middle
property v_outer
property velocity
property volume