On a horizontal surface, two sufficiently long parallel metal rails are fixed at separation d. Let the near rail be P and the far rail be Q.
One plate of a capacitor with capacitance C is connected to the left end of rail P; the other plate is connected via a switch and a coil of self-inductance L in series to the left end of rail Q.
A metal bar of mass m is placed across the two rails perpendicularly. The bar can slide smoothly without friction while maintaining electrical contact with the rails.
A uniform downward magnetic field of flux density B is applied to the entire system. The electrical resistance of the bar, rails, wire, and coil are all negligible.
Initially, the bar is at rest and the switch is open. The capacitor is charged to Q0 with the plate connected to rail P being positive.
At time t=0, the switch is gently closed. The discharging capacitor exerts an Ampere force on the bar, and the bar starts to move on the rails.
During the subsequent motion, the magnetic energy stored in the coil fluctuates over time.
Let Umax be the maximum magnetic energy stored in the coil during the motion. Find the value of Umax expressed in millijoules (mJ).
Give the value of Umax as a positive integer.