Pulsar#

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

Bases: object

Magnetic dipole spin-down pulsar model.

Parameters
P_0float

Period at birth.

BQuantity

Magnetic field strength at the poles (Gauss).

nfloat

Spin-down braking index.

Ifloat

Moment of inertia.

Rfloat

Radius.

Methods Summary

energy_integrated(t)

Total energy released by a given time.

luminosity_spindown(t)

Spin down luminosity.

magnetic_field(t)

Magnetic field at polar cap (assumed constant).

period(t)

Rotation period.

period_dot(t)

Period derivative at age t.

tau(t)

Characteristic age at real age t.

Methods Documentation

energy_integrated(t)[source]#

Total energy released by a given time.

Time-integrated spin-down luminosity since birth.

E(t)=L˙0τ0tt+τ0
Parameters
tQuantity

Time after birth of the pulsar.

luminosity_spindown(t)[source]#

Spin down luminosity.

L˙(t)=L˙0(1+tτ0)n+1n1
Parameters
tQuantity

Time after birth of the pulsar.

magnetic_field(t)[source]#

Magnetic field at polar cap (assumed constant).

B=3.21019(PP˙)1/2 Gauss
Parameters
tQuantity

Time after birth of the pulsar.

period(t)[source]#

Rotation period.

P(t)=P0(1+tτ0)1n1
Parameters
tQuantity

Time after birth of the pulsar.

period_dot(t)[source]#

Period derivative at age t.

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

P˙(t)=B23.21019P(t)
Parameters
tQuantity

Time after birth of the pulsar.

tau(t)[source]#

Characteristic age at real age t.

τ=P2P˙
Parameters
tQuantity

Time after birth of the pulsar.