Star
Instances of Star are objects representing a model star.
A model star is constituted by:
an ambient Schwarzschild spacetime solution;
a discrete representation (on leaves of a spacetime foliation) of an embedded stellar 2-surface exterior to which the ambient spacetime solution is assumed valid;
a discrete representation of the local comoving source radiation field in time and photon phase-space over the stellar 2-surface;
a discrete representation of the time-invariant null mapping from the stellar 2-surface to effective infinity;
and low-level integrators of the radiation field incident in the neighbourhood of a point at effective infinity to obtain pulses.
- class xpsi.Star.Star(spacetime, photospheres)[source]
Bases:
ParameterSubspaceInstances of
Starrepresent model stars.Each model star is abstractly constructed from an ambient spacetime,
Spacetime, and a collection of photosphere objects which are each embedded in that ambient spacetime for disjoint intervals of coordinate time.- Parameters:
spacetime (obj) – An instance of
Spacetime.photospheres (list) – Each element must be an instance of
Photosphere.
- property photospheres
Get the list of photosphere objects.
- update(threads=1, force_update=False)[source]
Update the star.
- Parameters:
threads (int) – Number of
OpenMPthreads to spawn for embedding photosphere objects in the ambient spacetime.force_update (bool) – Setting to force update even if both the photosphere and spacetime say they do not need updating.