stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

2h 39m 37s logged

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:

  • P is the power radiated by the pulsar, measured in watts.
  • I is 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

https://github.com/Coverst-ux/Space-sim-Cpp-Port

0
17

Comments 0

No comments yet. Be the first!