Magneto-rotational physics
mlpoppyns.simulator.magneto_rotational_physics.initial_period
Initial probability distribution of pulsar periods.
Authors:
Vanessa Graber (graber@ice.csic.es)
Michele Ronchi (ronchi@ice.csic.es)
pdf_period_lognormal(mean, sigma, NS_number)
Log-normal distribution for the initial spin periods as suggested in Igoshev et al. (2022). The mean and standard deviation are defined in the configuration file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mean
|
float
|
Mean of the Gaussian initial period distribution, in [s]. |
required |
sigma
|
float
|
Standard deviation of the initial period distribution, in [s]. |
required |
NS_number
|
int
|
Total number of neutron stars created in the simulation. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Initial pulsar period in [s] drawn from a Log-normal distribution. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/initial_period.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
pdf_period_normal(mean, sigma, NS_number)
Normal (Gaussian) distribution for the initial spin periods as suggested in Faucher-Giguère & Kaspi (2006) and Gullon et al. (2014). The mean and standard deviation are defined in the configuration file. Note that for physical reasons, we reject negative spin-periods and redraw them again from the Gaussian distribution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mean
|
float
|
Mean of the Gaussian initial period distribution, in [s]. |
required |
sigma
|
float
|
Standard deviation of the initial period distribution, in [s]. |
required |
NS_number
|
int
|
Total number of neutron stars created in the simulation. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Initial pulsar period in [s] drawn from a Gaussian distribution. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/initial_period.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
mlpoppyns.simulator.magneto_rotational_physics.magnetic_field_evolution
This module compute the evolution in time of the pulsar dipolar magnetic field.
Authors:
Vanessa Graber (graber@ice.csic.es)
Michele Ronchi (ronchi@ice.csic.es)
magnetic_field_evolution_analytical(B_initial, t, B_asymptotic, L, sigma, n_e)
Calculating the evolution of the magnetic field strength of a pulsar based on a simplified model (see eq. (17) of Aguilera et al. (2008)) that captures the characteristics of more complicated numerical simulations of pulsar magnetic field evolution, i.e., at early timescales the Hall evolution dominates, while at late times the exponential magnetic field decay due to Ohmic dissipation kicks in. Note that as explained in Aguilera et al. (2008) the Hall timescale corresponds to that of the initial field strength.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B_initial
|
float
|
Initial magnetic field strength in [G]. |
required |
t
|
float
|
Time in [s]. |
required |
B_asymptotic
|
float
|
Asymptotic magnetic field strength at late times in [G]. |
required |
L
|
float
|
Characteristic length scale on which the magnetic field varies, measured in [cm]. |
required |
sigma
|
float
|
Conductivity of the dominating dissipative process, measure in [1/s]. |
required |
n_e
|
float
|
Electron density, measured in [g/cm^3]. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Magnetic field derivatives for a simulated pulsars in [G/yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magnetic_field_evolution.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
magnetic_field_evolution_analytical_numpy(B_initial, t, B_asymptotic, L, sigma, n_e)
Calculating the evolution of the magnetic field strength of a pulsar based on a simplified model (see eq. (17) of Aguilera et al. (2008)) that captures the characteristics of more complicated numerical simulations of pulsar magnetic field evolution, i.e., at early timescales the Hall evolution dominates, while at late times the exponential magnetic field decay due to Ohmic dissipation kicks in. Note that as explained in Aguilera et al. (2008) the Hall timescale corresponds to that of the initial field strength.
This method is compatible with NumPy arrays and is used if one wants to save the entire evolution output in the magneto_rotational_evolution method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B_initial
|
float
|
Initial magnetic field strength in [G]. |
required |
t
|
ndarray
|
Time in [s]. |
required |
B_asymptotic
|
float
|
Asymptotic magnetic field strength at late times in [G]. |
required |
L
|
float
|
Characteristic length scale on which the magnetic field varies, measured in [cm]. |
required |
sigma
|
float
|
Conductivity of the dominating dissipative process, measure in [1/s]. |
required |
n_e
|
float
|
Electron density, measured in [g/cm^3]. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Magnetic field derivatives for a simulated pulsars in [G/yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magnetic_field_evolution.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | |
magnetic_field_evolution_fit(B_initial, t, B_asymptotic, a1, a2, A1, A2, b1, b2, tau_late, a_late)
An analytical fit for the magnetic field evolution curves from the magneto-thermal evolution simulations. This method is used when solving the differential equations if one wants to save only the final state in the magneto_rotational_evolution method.
The fit parameters for each magneto-thermal model specified in the config_simulator.py file were adjusted by hand (see the notebook tutorials/analysis_notebooks/magnetic_field_evolution_fit.ipynb for more details).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B_initial
|
float
|
Initial magnetic field strength in [G]. |
required |
t
|
float
|
Time in [s]. |
required |
B_asymptotic
|
float
|
Asymptotic magnetic field strength at late times in [G]. |
required |
a1
|
float
|
Power-law index for the first power-law component for the magnetic-field evolution fit. |
required |
a2
|
float
|
Power-law index for the second power-law component for the magnetic-field evolution fit. |
required |
A1
|
float
|
Normalization for the timescale parameter of the first power-law component for the magnetic-field evolution fit. |
required |
A2
|
float
|
Normalization for the timescale parameter of the second power-law component for the magnetic-field evolution fit. |
required |
b1
|
float
|
Power-law index for the timescale parameter of the first power-law component for the magnetic-field evolution fit. |
required |
b2
|
float
|
Power-law index for the timescale parameter of the second power-law component for the magnetic-field evolution fit. |
required |
tau_late
|
float
|
Timescale in [yr] when transitioning from the simulated curves to the simple late-time power-law evolution of the magnetic field strength. |
required |
a_late
|
float
|
Power-law index for the late-time evolution of the magnetic field strength. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Magnetic field value in [G] at time t. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magnetic_field_evolution.py
242 243 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 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 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 | |
magnetic_field_evolution_fit_numpy(B_initial, t, B_asymptotic, a1, a2, A1, A2, b1, b2, tau_late, a_late)
An analytical function for the magnetic field evolution curves from the magneto-thermal evolution simulations. This method is compatible with NumPy arrays and is used if one wants to save the entire evolution output in the magneto_rotational_evolution method.
The fit parameters for each magneto-thermal model specified in the config_simulator.py file were adjusted by hand (see the notebook tutorials/analysis_notebooks/magnetic_field_evolution_fit.ipynb for more details).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B_initial
|
float
|
Initial magnetic field strength in [G]. |
required |
t
|
ndarray
|
Time in [s]. |
required |
B_asymptotic
|
float
|
Asymptotic magnetic field strength at late times in [G]. |
required |
a1
|
float
|
Power-law index for the first power-law component for the magnetic-field evolution fit. |
required |
a2
|
float
|
Power-law index for the second power-law component for the magnetic-field evolution fit. |
required |
A1
|
float
|
Normalization for the timescale parameter of the first power-law component for the magnetic-field evolution fit. |
required |
A2
|
float
|
Normalization for the timescale parameter of the second power-law component for the magnetic-field evolution fit. |
required |
b1
|
float
|
Power-law index for the timescale parameter of the first power-law component for the magnetic-field evolution fit. |
required |
b2
|
float
|
Power-law index for the timescale parameter of the second power-law component for the magnetic-field evolution fit. |
required |
tau_late
|
float
|
Timescale in [yr] when transitioning from the simulated curves to the simple late-time power-law evolution of the magnetic field strength. |
required |
a_late
|
float
|
Power-law index for the late-time evolution of the magnetic field strength. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Magnetic field evolution in [G] as a function of time t. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magnetic_field_evolution.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | |
timescale_Hall(B, L, n_e)
Calculating the Hall timescale for a given field strength, characteristic magnetic field length scale and electron density. Note that for our purposes, we neglect the fact that all quantities can vary significantly with depth inside the neutron star, and we simply use effective quantities that reflect the conservative Hall process. For our choices of L and n_e see the configuration file. B will be identified with the initial dipolar magnetic field components at the pulsars' pole.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B
|
float
|
Local magnetic field strength, measured in [G]. |
required |
L
|
float
|
Characteristic length scale on which the magnetic field varies, measured in [cm]. |
required |
n_e
|
float
|
Electron density, measured in [g/cm^3]. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Hall timescale in [yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magnetic_field_evolution.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
timescale_ohmic(L, sigma)
Calculating the ohmic diffusion timescale for a given conductivity and characteristic magnetic field length scale. Note that for our purposes, we neglect the fact that both quantities can vary significantly with depth inside the neutron star, and we simply use effective quantities that reflect the ohmic diffusion process. For our choices see the configuration file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
L
|
float
|
Characteristic length scale on which the magnetic field varies, measured in [cm]. |
required |
sigma
|
float
|
Conductivity of the dominating dissipative process, measure in [1/s]. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Ohmic diffusion timescale in [yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magnetic_field_evolution.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
mlpoppyns.simulator.magneto_rotational_physics.magneto_rotational_evolution
Combined evolution of the pulsar period, misalignment angle and magnetic field relying on an analytical approximation for the magnetic field evolution or fits to magneto-thermal simulations.
Authors:
Vanessa Graber (graber@ice.csic.es)
Michele Ronchi (ronchi@ice.csic.es)
combined_derivatives_analytical(t, y, B_initial, B_asymptotic, L, sigma, n_e, NS_mass, NS_radius)
Combining the two derivative functions for the misalignment angle and the spin period (combined into a single two-component vector y) into a single function to allow combined integration.
This function is applicable for the case, where the magnetic field is prescribed analytically.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t
|
float
|
Unused time variable, required for the integration below. |
required |
y
|
ndarray
|
Two magneto-rotational parameters, i.e., chi in [rad] and P in [s] for a single pulsar at a given time. |
required |
B_initial
|
float
|
Initial magnetic field magnitude for one pulsar, measured in [G]. |
required |
B_asymptotic
|
float
|
Asymptotic magnetic field strength at late times in [G]. |
required |
L
|
float
|
Characteristic length scale on which the magnetic field varies, measured in [cm]. |
required |
sigma
|
float
|
Conductivity of the dominating dissipative process, measure in [1/s]. |
required |
n_e
|
float
|
Electron density, measured in [g/cm^3]. |
required |
NS_mass
|
float
|
Neutron star mass, measured in [g]. |
required |
NS_radius
|
float
|
Neutron star radius, measured in [cm]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Derivative of the two magneto-rotational parameters for one pulsar, |
ndarray
|
quantities are referred to in respective changes per [yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magneto_rotational_evolution.py
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 51 52 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 88 89 | |
combined_derivatives_fit(t, y, B_initial, B_asymptotic, a1, a2, A1, A2, b1, b2, tau_late, a_late, NS_mass, NS_radius)
Combining the two derivative functions for the misalignment angle and the spin period (combined into a single two-component vector y) into a single function to allow combined integration.
This function is applicable for the case, where the magnetic field is prescribed as a numerical fit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t
|
float
|
Unused time variable, required for the integration below. |
required |
y
|
ndarray
|
Two magneto-rotational parameters, i.e., chi in [rad] and P in [s] for a single pulsar at a given time. |
required |
B_initial
|
float
|
Initial magnetic field magnitude for one pulsar, measured in [G]. |
required |
B_asymptotic
|
float
|
Asymptotic magnetic field strength at late times in [G]. |
required |
a1
|
float
|
Power-law index for the first power-law component for the magnetic-field evolution fit. |
required |
a2
|
float
|
Power-law index for the second power-law component for the magnetic-field evolution fit. |
required |
A1
|
float
|
Normalization for the timescale parameter of the first power-law component for the magnetic-field evolution fit. |
required |
A2
|
float
|
Normalization for the timescale parameter of the second power-law component for the magnetic-field evolution fit. |
required |
b1
|
float
|
Power-law index for the timescale parameter of the first power-law component for the magnetic-field evolution fit. |
required |
b2
|
float
|
Power-law index for the timescale parameter of the second power-law component for the magnetic-field evolution fit. |
required |
tau_late
|
float
|
Timescale in [yr] when transitioning from the simulated curves to the simple late-time power-law evolution of the magnetic field strength. |
required |
a_late
|
float
|
Power-law index for the late-time evolution of the magnetic field strength. |
required |
NS_mass
|
float
|
Neutron star mass, measured in [g]. |
required |
NS_radius
|
float
|
Neutron star radius, measured in [cm]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Derivative of the two magneto-rotational parameters for one pulsar, |
ndarray
|
quantities are referred to in respective changes per [yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magneto_rotational_evolution.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
evolve_population_magrot(dict_pop_initial_magrot, output_path)
Evolve the magneto-rotational properties of a neutron star population over time based on initial conditions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dict_pop_initial_magrot
|
dict
|
Dictionary containing initial magneto-rotational properties of the population. |
required |
output_path
|
Path
|
The path where the evolution data will be saved if enabled in the configuration. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
A dictionary containing the properties of the evolved neutron star population. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magneto_rotational_evolution.py
385 386 387 388 389 390 391 392 393 394 395 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 | |
initialize_population_magrot(age)
Initialize the magneto-rotational properties of a neutron star population.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
age
|
ndarray
|
An array of ages in [yr] fot the neutron stars that has to be initialized for the magneto-rotational evolution. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
A dictionary containing the initialized magneto-rotational properties of the neutron star population in the survey sky coverage. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magneto_rotational_evolution.py
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 | |
magneto_rotational_evolution(B_initial, chi_initial, P_initial, t_age)
Evolving the neutron stars' magnetic fields, misalignment angles and periods according to their respective ages forward in time to obtain their current magnetic field strengths, misalignment angles and periods. Note that right now the times at which these three parameters are evaluated (apart from the current time) do not agree for pulsars.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B_initial
|
ndarray
|
Pulsars' initial magnetic field magnitudes, measured in [G]. |
required |
chi_initial
|
ndarray
|
Pulsars' initial misalignment angles, measured in [rad]. |
required |
P_initial
|
ndarray
|
Pulsars' initial rotation periods, measured in [s]. |
required |
t_age
|
ndarray
|
Array of neutron star ages in [yr]. |
required |
Returns:
| Type | Description |
|---|---|
Tuple[ndarray, ndarray, ndarray, dict]
|
Tuple consisting of three arrays defining the neutron stars' final magnetic field strengths in [G], misalignment angles in [rad] and rotation periods in [s] and a dictionary containing the time evolution of these quantities for each neutron star (if the option to save the time evolution is enabled). |
Source code in mlpoppyns/simulator/magneto_rotational_physics/magneto_rotational_evolution.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 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 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 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 | |
mlpoppyns.simulator.magneto_rotational_physics.misalignment_angle_derivative
Time derivative of the pulsar misalignment angle.
Authors:
Vanessa Graber (graber@ice.csic.es)
Michele Ronchi (ronchi@ice.csic.es)
misalignment_angle_derivative(B, chi, P, NS_mass, NS_radius)
This function determines the change in the misalignment angle, i.e., the angle between the magnetic dipolar moment and the rotation axis of a pulsar. It is taken from eq. (71) of Pons & Vigano (2019). For more details see, e.g., Spitkovsky (2006) or Philippov et al. (2014), who determine the coefficients k_0, k_1, k_2 (defined in the configuration file) for a pulsar embedded in a force-free and resistive magnetosphere from numerical simulations. Note that all three input parameters are time-dependent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B
|
float
|
Values of the dipolar component of the magnetic field at the magnetic pole for the sample of simulated neutron stars, measured in [G]. |
required |
chi
|
float
|
Angles between the magnetic dipolar moment, i.e., the magnetic field axis, and the rotation axis for all simulated pulsars, measured in [rad]. |
required |
P
|
float
|
Spin periods of simulated pulsars, measured in [s]. |
required |
NS_mass
|
float
|
Neutron star mass, measured in [g]. |
required |
NS_radius
|
float
|
Neutron star radius, measured in [cm]. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Misalignment angle derivatives for all simulated pulsars in [rad/yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/misalignment_angle_derivative.py
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 51 52 53 54 55 56 57 58 59 60 61 62 | |
mlpoppyns.simulator.magneto_rotational_physics.period_derivative
Time derivative of the pulsar period.
Authors:
Vanessa Graber (graber@ice.csic.es)
Michele Ronchi (ronchi@ice.csic.es)
period_derivative(B, chi, P, NS_mass, NS_radius)
This function determines the change in the rotation period of a pulsar. It is taken from eq. (70) of Pons & Vigano (2019). For more details see, e.g., Spitkovsky (2006) or Philippov et al. (2014), who determine the coefficients k_0, k_1, k_2 (defined in the configuration file) for a pulsar embedded in a force-free and resistive magnetosphere from numerical simulations. Note that all three input parameters are time-dependent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B
|
float
|
Value of the dipolar component of the magnetic field at the magnetic pole for a simulated neutron star, measured in [G]. |
required |
chi
|
float
|
Angle between the magnetic dipolar moment, i.e., the magnetic field axis, and the rotation axis for a simulated pulsar, measured in [rad]. |
required |
P
|
float
|
Spin period of a simulated pulsar, measured in [s]. |
required |
NS_mass
|
float
|
Neutron star mass, measured in [g]. |
required |
NS_radius
|
float
|
Neutron star radius, measured in [cm]. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Period derivative of a simulated pulsar in [s/yr]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/period_derivative.py
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 51 52 53 54 55 56 57 58 59 60 | |
period_derivative_numpy(B, chi, P, NS_mass, NS_radius)
This is the numpy array version of the function above. It determines the change in the rotation period of a pulsar. It is taken from eq. (70) of Pons & Vigano (2019). For more details see, e.g., Spitkovsky (2006) or Philippov et al. (2014), who determine the coefficients k_0, k_1, k_2 (defined in the configuration file) for a pulsar embedded in a force-free and resistive magnetosphere from numerical simulations. Note that all three input parameters are time-dependent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
B
|
ndarray
|
Array of values of the dipolar component of the magnetic field at the magnetic pole for the simulated neutron stars, measured in [G]. |
required |
chi
|
ndarray
|
Array of angles between the magnetic dipolar moment, i.e., the magnetic field axis, and the rotation axis for the simulated pulsars, measured in [rad]. |
required |
P
|
ndarray
|
Array of spin period of a simulated pulsars, measured in [s]. |
required |
NS_mass
|
float
|
Neutron star mass, measured in [g]. |
required |
NS_radius
|
float
|
Neutron star radius, measured in [cm]. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Array of period derivatives of the simulated pulsars in [s/s]. |
Source code in mlpoppyns/simulator/magneto_rotational_physics/period_derivative.py
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |