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+1n−1
-
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.2⋅1019(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)1n−1
-