Energy loss
Normally, a pulsar loses energy when the magnetic field rotates. My simulation previously didn’t account for that. So that brought me to the idea of making the pulsar more realistic by implementing an energy loss system that causes the pulsar to slow down over time
New physics that was implemented
- Magnetic field radiation power: Calculated how much rotational energy the pulsar loses
- Spin down: Using that energy loss to calculate how quickly the velocity decreases
- Sneak peek into the actual physics behind this :
P = -I × Ω × Ω̇
Where:
-
Pis the power radiated by the pulsar, measured in watts. -
Iis the pulsar’s moment of inertia, which describes how difficult it is to change its rotation. -
Ωis its angular velocity, measured in radians per second. -
Ω̇is the rate of change of angular velocity, measured in radians per second squared.
The negative sign is for the loss of rotational energy. Since the pulsar is slowing down, its spin down rate is negative, while the pulsar’s radiated power is positive
Lastly, connecting everything
I updated my pybind11 bindings to integrate the new C++ code into my pygame visualization. I also made sure that rotation speed doesn’t cause the magnetic axis to jump and that everything works as intended
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.