tardis.io.model.parse_radiation_field_configuration module

tardis.io.model.parse_radiation_field_configuration.calculate_geometric_dilution_factor(geometry: HomologousRadial1DGeometry) ndarray[source]

Calculates the geometric dilution factor w for models without a defined w.

Parameters:
geometry

The geometry object.

Returns:
dilution_factors

The dilution factors for the input geometry.

tardis.io.model.parse_radiation_field_configuration.calculate_t_radiative_from_t_inner(geometry: HomologousRadial1DGeometry, packet_source: BasePacketSource) Quantity[source]

Calculates the radiative temperature based on the inner temperature and the geometry of the system.

Parameters:
geometry

The geometry object.

packet_source

The packet source object.

Returns:
t_radiative

The calculated radiative temperature.

tardis.io.model.parse_radiation_field_configuration.parse_radiation_field_state_from_config(config: Configuration, geometry: HomologousRadial1DGeometry, dilution_factor: ndarray | None = None, packet_source: BasePacketSource | None = None) DilutePlanckianRadiationField[source]

Parses the radiation field state based on the provided configuration, geometry, dilution factor, and packet source.

Parameters:
config

The configuration object.

geometry

The geometry object.

dilution_factor

The dilution factor. If None, it is calculated based on the geometry.

packet_source

The packet source object.

Returns:
radiation_field

The parsed radiation field state.

Raises:
AssertionError

If the length of t_radiative or dilution_factor is not compatible with the geometry.

tardis.io.model.parse_radiation_field_configuration.parse_radiation_field_state_from_csvy(config: Configuration, csvy_model_config: Configuration, csvy_model_data: DataFrame | None, geometry: HomologousRadial1DGeometry, packet_source: BasePacketSource) DilutePlanckianRadiationField[source]

Parses the radiation field state for CSVY model inputs.

Parameters:
config

The configuration object.

csvy_model_config

CSVY model configuration.

csvy_model_data

CSVY model data.

geometry

The geometry object.

packet_source

The packet source object.

Returns:
radiation_field

The parsed radiation field state.