distroi.model.rt_comp.rt_comp module#
A module defining a universal abstract interface for interacting with RT codes.
Defines an abstract interface class for interacting with an RT code. Includes methods for setting and retrieving necessary input variables (physical fitting parameters, resolution settings, etc.), the production of matching input files, executing different runs (thermal structure run, SED run, image run, etc.), and retrieving the output files of the RT code and placing them in appropriate objects (e.g. a list of Image objects for multiple images) for comparison with observational data.
Warning
All concrete implementations of RT model interface classes must inherit from the abstract class defined here. This is so the rest of the code can remain agnostic as to which RT code is used in the model.
- class distroi.model.rt_comp.rt_comp.RTComp#
Bases:
ABCAbstract class representing a radiative transfer model component.
- abstract calc_image(wavelength: float) Image#
Calculate an image at the specified wavelength.
- Parameters:
wavelength (float) – The wavelength at which to calculate the image in microns.
- Returns:
The calculated image.
- Return type:
- abstract calc_sed(wrange: tuple[float, float]) SED#
Calculate the SED within a specified wavelength interval.
- Parameters:
wrange (tuple of float) – The wavelength range (min, max) in microns.
- Returns:
The calculated spectral energy distribution.
- Return type:
- abstract get_params()#
Retrieve a dictionary of parameters for this RT component.