Multiband emission
mlpoppyns.simulator.multiband_emission.emission_radio
Models for the pulsars' radio beam geometry and luminosity.
Authors:
Michele Ronchi (ronchi@ice.csic.es)
Celsa Pardo Araujo (pardo@ice.csic.es)
beam_aperture(P)
Half angular aperture in [rad] of the radio beam as a function of the spin period.
For the "standard_period_cone" model, the aperture is derived by assuming that the radio beam width extends into the open field line region around the magnetic poles of the star. See eq. (3.29) in Lorimer and Kramer (2005) and eq. (2) in Johnston et al. (2020) for a derivation and discussion of this model. For the "power-law_period_cone" model, we adopted a generic power-law of the spin period (see Maciesiak et al. 2012).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P
|
ndarray
|
Array of spin periods of the pulsars in [s]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Half angular aperture of the radio beam in [rad]. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
beam_fraction(chi, rho_b)
Fraction of solid angle covered by the radio beam in an entire pulsar rotation as a function of the inclination angle chi and the radio beam aperture. This is also the probability that the radio beam intercepts our line of sight. See Appendix in Emmering and Chevalier (1989).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chi
|
ndarray
|
Array of inclination angles of the magnetic axis with respect to the rotation axis of the pulsars in [rad]. |
required |
rho_b
|
ndarray
|
Array of angular apertures of the radio beam of the pulsars in [rad]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Fraction of solid angle swept by the radio beam. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
calculate_radio_emission(P, P_dot, chi, dist)
Compute the radio beam geometry, the intrinsic bolometric radio flux and the DM. Note that the luminosity and DM are computed only for those pulsars whose beams cross our line of sight. This function is used in the simulate_population_magrot_det.py script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P
|
ndarray
|
Array of spin periods of the pulsars in [s]. |
required |
P_dot
|
ndarray
|
Array of neutron star spin period derivatives in [s s^-1]. |
required |
chi
|
ndarray
|
Array of inclination angles of the pulsars in [rad]. |
required |
dist
|
ndarray
|
Array of distances from the ICRS origin in [kpc]. |
required |
Returns:
| Type | Description |
|---|---|
Tuple[ndarray, ndarray, ndarray, ndarray, ndarray, ndarray, ndarray]
|
A Tuple |
ndarray
|
containing the following information:
|
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | |
compute_spectral_index(mean, sigma, NS_number)
Draw a random spectral index from a Gaussian distribution (see Posselt et al. 2023).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mean
|
float
|
Mean spectral index for the Gaussian distribution. |
required |
sigma
|
float
|
Standard deviation for the Gaussian distribution. |
required |
NS_number
|
int
|
Number of neutron stars for which sampling the spectral index. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Array of spectral indices. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | |
flux_density_radio(S_radio_bol, spectral_index, f, f_min=10000000.0, f_max=100000000000.0)
Compute the radio flux density at a given frequency f assuming a power law spectral shape for the radio emission.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
S_radio_bol
|
ndarray
|
pulsar bolometric radio flux in [erg s^(-1) cm^(-2)]. |
required |
spectral_index
|
float
|
spectral index of the radio emission, assuming a power-law spectrum. |
required |
f
|
float
|
frequency in [Hz] at which the radio luminosity has to be computed. |
required |
f_min
|
float
|
frequency lower limit of the radio emission spectrum [Hz]. |
10000000.0
|
f_max
|
float
|
frequency upper limit of the radio emission spectrum [Hz]. |
100000000000.0
|
Returns:
| Type | Description |
|---|---|
ndarray
|
Intrinsic pulsar radio flux density in [Jy] at the frequency f. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
flux_radio(L_radio, d, solid_angle)
Compute the intrinsic bolometric radio flux for each pulsars in [erg s^(-1) cm^(-2)].
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
L_radio
|
ndarray
|
Pulsar bolometric radio luminosity in [erg s^(-1)]. |
required |
d
|
ndarray
|
Distance to the pulsar in [kpc]. |
required |
solid_angle
|
ndarray
|
Solid angle covered by the radio beams in [sr]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Intrinsic pulsar bolometric radio flux in [erg s^(-1) cm^(-2)]. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
los_intercept(chi, rho_b, los)
Evaluate if the radio beam intercepts the line of sight (LOS), assuming random orientation of the LOS with respect to the rotation axis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chi
|
ndarray
|
Array of inclination angles of the pulsars in [rad]. |
required |
rho_b
|
ndarray
|
Array of angular apertures of the radio beam of the pulsars in [rad]. |
required |
los
|
ndarray
|
Polar angle of the line of sight intercept computed with respect to the rotation axis of the star [rad]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Array of boolean variables: true if the radio beam intercepts the LOS and false if not. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | |
loss_rotational_energy(P, P_dot)
Compute the loss of the rotational energy given the period and period derivative (see, e.g., eq. (3.5) in Lorimer and Kramer, 2004).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P
|
ndarray
|
array of spin periods of the pulsars in [s]. |
required |
P_dot
|
ndarray
|
array of spin period derivatives of the pulsars in [s/s]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Loss of the rotational energy [erg s^(-1)]. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
pdf_luminosity_radio_edot(P, P_dot)
Draw random bolometric radio luminosities from a distribution that depends on the loss of the rotational energy. We assume a random log-normal spread for the normalization constant L_0.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P
|
ndarray
|
array of spin periods of the pulsars in [s]. |
required |
P_dot
|
ndarray
|
array of spin period derivatives of the pulsars in [s/s]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
pulsar radio luminosity [erg s^(-1)] drawn from a log-normal distribution. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
pdf_luminosity_radio_ppdot(P, P_dot)
Draw random bolometric radio luminosities from a distribution that depends on the spin period and spin period derivative. We assume a random log-normal spread for the normalization constant L_0.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P
|
ndarray
|
Array of spin periods of the pulsars in [s]. |
required |
P_dot
|
ndarray
|
Array of spin period derivatives of the pulsars in [s/s]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Pulsar radio luminosity [erg s^(-1)] drawn from a log-normal distribution. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
pulse_width(chi, rho_b, los)
Formula to evaluate the intrinsic pulse width in [rad] from the radio beam angular aperture. This assumes that the line of sight intercepts the radio beam with an angle beta with respect to the center of the beam, so that -rho_b < beta < rho_b, with rho_b the angular aperture of the beam. See eq. (1) in Maciesiak et al. (2011a) and eq. (3.26) in Lorimer and Kramer (2004).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chi
|
ndarray
|
Array of inclination angles between the magnetic axis and the rotation axis [rad]. |
required |
rho_b
|
ndarray
|
Array of angular apertures of the radio beam of the pulsars in [rad]. |
required |
los
|
ndarray
|
Polar angles of the line of sight intercept computed with respect to the rotation axis of the star [rad]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Array of intrinsic pulse widths in [rad]. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
radio_population_intercepted(dict_pop, coverage_radio, full_population=False)
Filter and compute properties of a population of neutron stars whose radio beams intercept our line of sight and that fall in the survey sky coverage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dict_pop
|
dict
|
Dictionary containing the properties of a neutron star population. |
required |
coverage_radio
|
ndarray
|
A boolean mask to filter only stars in the sky coverage of radio surveys. |
required |
full_population
|
bool
|
If True, return arrays of size |
False
|
Returns:
| Type | Description |
|---|---|
dict
|
A dictionary containing properties of the neutron stars whose radio beams intercept our line of sight. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 | |
solid_angle_radio_beams(rho_b)
Total solid angle covered by the two radio beams as a function of the radio beam aperture.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rho_b
|
ndarray
|
Array of angular apertures of the radio beam of the pulsars in [rad]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Total solid angle covered by the radio beams. |
Source code in mlpoppyns/simulator/multiband_emission/emission_radio.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |