tardis.model.base module¶
- class tardis.model.base.Radial1DModel(*args, **kwargs)[source]¶
Bases:
tardis.io.util.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¶