Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

Pulsar

class gammapy.astro.source.Pulsar(P_0=<Quantity 0.1 s>, logB=10, n=3, I=<Quantity 1.e+45 cm2 g>, R=<Quantity 1000000. cm>, age=None, L_0=None, morphology='Delta2D')[source]

Bases: gammapy.astro.source.SimplePulsar

Magnetic dipole spin-down pulsar model.

Reference: http://www.cv.nrao.edu/course/astr534/Pulsars.html

Parameters:

P_0 : float

Period at birth

logB : float

Logarithm of the magnetic field, which is constant

n : float

Spin-down braking index

I : float

Moment of inertia

R : float

Radius

Methods Summary

energy_integrated([t]) Total released energy at age t.
luminosity_spindown([t]) Spin down luminosity at age t.
luminosity_tev([t, fraction]) Gamma-ray luminosity assumed to be a certain fraction of the spin-down luminosity.
magnetic_field([t]) Magnetic field strength at the polar cap.
period([t]) Period at age t.
period_dot([t]) Period derivative at age t.
tau([t]) Characteristic age at real age t.

Methods Documentation

energy_integrated(t=None)[source]

Total released energy at age t.

Time-integrated spin-down luminosity since birth.

Parameters:

t : Quantity

Time after birth of the pulsar.

Notes

The time integrated energy is given by:

E(t)=˙L0τ0tt+τ0
luminosity_spindown(t=None)[source]

Spin down luminosity at age t.

Parameters:

t : Quantity

Time after birth of the pulsar.

Notes

The spin-down luminosity is given by:

˙L(t)=˙L0(1+tτ0)n+1n1
luminosity_tev(t=None, fraction=0.1)[source]

Gamma-ray luminosity assumed to be a certain fraction of the spin-down luminosity.

Parameters:

t : Quantity

Time after birth of the pulsar.

magnetic_field(t=None)[source]

Magnetic field strength at the polar cap. Assumed to be constant.

Notes

The magnetic field is given by:

B=3.21019(P˙P)1/2[\textnormal(Gauss)]
period(t=None)[source]

Period at age t.

Parameters:

t : Quantity

Time after birth of the pulsar.

Notes

The period is given by:

P(t)=P0(1+tτ0)1n1
period_dot(t=None)[source]

Period derivative at age t.

P_dot for a given period and magnetic field B, assuming a dipole spin-down.

Parameters:

t : Quantity

Time after birth of the pulsar.

Notes

The period derivative is given by:

˙P(t)=B23.21019P(t)
tau(t=None)[source]

Characteristic age at real age t.

Parameters:

t : Quantity

Time after birth of the pulsar.

Notes

The characteristic age is given by:

τ=P2˙P