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, name='universal')[source]

Bases: ParameterSubspace

Instances of Star represent 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.

  • name (str) – The prescription for the stellar oblateness and effective surface gravity. Options are 'universal' (AlGendy & Morsink 2014; the default, also used when None), 'sphere', and the pulsar-specific relations 'psr j1231-1411' and 'psr j1614-2230' (see also the aliases in STAR_OBLATENESS_SURFGRAV_ALIASES). Only 'universal' can be used with PhotospherePlotter. The selected prescription is stored in the spacetime and can be read from obl_surfgrav.

property photospheres

Get the list of photosphere objects.

update(threads=1, force_update=False)[source]

Update the star.

Parameters:
  • threads (int) – Number of OpenMP threads 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.