HotRegions
Instances of HotRegions are objects representing a pair of
radiatively intense regions of the source photosphere. The class handles
HotRegions instances, and applies the methods to compute
photon pulses from a pair of spots which may be related under some model.
- class xpsi.HotRegions.HotRegions(hotregions)[source]
Bases:
ParameterSubspaceTwo or more photospheric hot regions, where the hot regions are objects.
The hot regions can be equal or different in parametrisation complexity.
In principle you can construct multiple hot regions, but the computational expense scales ~linearly with number. Applications thus far have used two distinct hot regions with equal and unequal complexities.
- Parameters:
hotregions (tuple) – Iterable container of
HotRegion.HotRegioninstances.
- integrate(st, energies, threads, hot_atmosphere, elsewhere_atmosphere, atm_ext_else)[source]
Integrate over the photospheric radiation field.
Calls the CellMesh integrator, with or without exploitation of azimuthal invariance of the radiation field.
- Parameters:
st – Instance of
Spacetime.energies – A one-dimensional
numpy.ndarrayof energies in keV.threads (int) – Number of
OpenMPthreads for pulse integration.