hyperion.sources.ExternalBoxSource#
- class hyperion.sources.ExternalBoxSource(name=None, peeloff=True, **kwargs)#
An rectangular external source.
This can be used for example to simulate the interstellar radiation field. This source emits inwards.
- Parameters:
- namestr, optional
The name of the source
- peeloffbool, optional
Whether to peel-off photons from this source
Notes
Any additional arguments are are used to initialize attributes.
Attributes
name
A string identifying the source (optional)
luminosity
The bolometric luminosity of the source (ergs/s)
temperature
The temperature of the source (K)
spectrum
The spectrum of the source, specified either as an astropy.table.Table instance with
'nu'
and'fnu'
columns, or as a(nu, fnu)
tuple, where the frequency is given in Hz, and the flux is given as F_nu (units are unimportant since the normalization is set by the luminosity).bounds
The cartesian boundaries of the rectangular box specified as
[[xmin, xmax], [ymin, ymax], [zmin, zmax]]
(cm).