Classical spin precession with conservation-law knobs
The two main rotary knobs set the conserved quantities: the Casimir leaf $C = |\vec{S}|²$ and the energy $H = \vec{B}\cdot \vec{S}$. The orbit is the circle cut out by the energy plane on the sphere.
Physical model
The classical spin Poisson bracket is $\{Sᵢ,Sⱼ\}=εᵢⱼₖSₖ$. With $H(\vec{S})=\vec{B}\cdot \vec{S}$, the equation of motion is $d\vec S/dt=\{\vec{S}, H\}=\vec{B} \times \vec{S}$. Hence $\vec{S}$ rotates around $\vec{B}$ while preserving both $|\vec{S}|²$ and $\vec{B}\cdot \vec{S}$.
How to use
Drag a knob, use the mouse wheel over it, or focus it and press arrow keys. Drag the main 3D panel to rotate the camera. The default values match the direction of the Julia example’s magnetic field.
Spin visualization
Rotary controls
C = |S|²H = B·Sβαφ₀ωRead the geometry from back to front: blue sphere = Casimir leaf, purple disk = Hamiltonian level set, bright cyan ring = their intersection.
Diagnostics
Legend
C∩H (full orbit)dS/dt = B×SS(t)B·S=HControl–Geometry Summary
The motion is easiest to read geometrically: the Casimir fixes a sphere, the energy fixes a plane, and the spin traces their intersection circle.
| Control | Mathematical meaning | Visual effect | Conservation-law interpretation |
|---|---|---|---|
Casimir C |
C=|S|² |
Changes the radius of the Poisson leaf sphere from √C. |
Choosing C means choosing a coadjoint orbit of SO(3). |
Energy H |
H=B·S; the normalized energy level is reported as η=H/√C. |
Moves the energy plane parallel to itself. Near |H|=√C, the circular orbit shrinks toward an equilibrium point. |
The energy knob is dynamically bounded by |H|≤0.98√C, so the plane always intersects the Casimir sphere. |
Field tilt β and azimuth α |
Set the unit vector b=B/|B|. |
Rotates the axis of precession and the normal direction of the energy plane. | They change the Hamiltonian function, but after choosing them, H=B·S remains conserved along each trajectory. |
Initial phase φ₀ |
Chooses the initial point on the same intersection circle. | Slides the current marker around the same orbit without changing C or H. |
It changes initial condition but not the selected conservation-law levels. |
Speed ω |
Sets visual angular speed in the browser. | Makes the animation faster or slower. | It does not alter the conserved quantities or the orbit shape. |
Rule of thumb: C controls the sphere size, H moves the energy plane, the output η=H/√C tells how close the plane is to the poles, and β, α rotate the whole construction in spin space.