tardis.io.model.parse_radiation_field_configuration module¶
- tardis.io.model.parse_radiation_field_configuration.calculate_geometric_dilution_factor(geometry)[source]¶
Calculates the geometric dilution factor w for models without a defined w.
- Parameters:
- geometryGeometry
The geometry object
- Returns:
- np.array
The dilution factors for the inout geometry
- tardis.io.model.parse_radiation_field_configuration.calculate_t_radiative_from_t_inner(geometry, packet_source)[source]¶
Calculates the radiative temperature based on the inner temperature and the geometry of the system.
- Parameters:
- geometryGeometry
The geometry object.
- packet_sourcePacketSource
The packet source object.
- Returns:
- Quantity
The calculated radiative temperature.
- tardis.io.model.parse_radiation_field_configuration.parse_radiation_field_state_from_config(config, geometry, dilution_factor=None, packet_source=None)[source]¶
Parses the radiation field state based on the provided configuration, radiative temperature, geometry, dilution factor, and packet source.
- Parameters:
- configConfig
The configuration object.
- geometryGeometry
The geometry object.
- dilution_factor{None, ndarray}, optional
The dilution factor. If None, it is calculated based on the geometry.
- packet_source{None, PacketSource}, optional
The packet source object.
- Returns:
- DiluteThermalRadiationFieldState
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, csvy_model_config, csvy_model_data, geometry, packet_source)[source]¶
Parses the radiation field state for CSVY model inputs.
- Parameters:
- configConfig
The configuration object.
- csvy_model_configConfig
CSVY model configuration.
- csvy_model_dataConfig
CSVY model data
- geometryGeometry
The geometry object.
- packet_source{None, PacketSource}, optional
The packet source object.
- Returns:
- DiluteThermalRadiationFieldState
The parsed radiation field state.