The total force on a closed current loop in a uniform magnetic field is always zero due to the canceling out of forces on opposing segments of the loop, but a non-zero torque acts on the loop, causing it to rotate until its magnetic dipole moment aligns with the magnetic field, with the torque's magnitude being directly proportional to the current flowing through the loop, and its direction described by the cross product $\tau=\mu \times B$, resulting in a maximum torque when the loop's plane is parallel to the magnetic field and zero when perpendicular, and the torque's effect is visually demonstrated by the Current slider.


🧮Sequence Diagram: Dynamics of Magnetic Torque and Force Simulations

This sequence diagram illustrates the logical flow of information and user interaction throughout the five demonstrations, moving from the initial mathematical derivation to the final physical simulation of force and torque.

sequenceDiagram
    participant User
    participant Controller as Simulation Controller
    participant Physics as Physics Engine
    participant View as Visualization View

    Note over User, View: Phase 1: Mathematical Foundation (Derivation)
    Controller->>Controller: Calculate Net Force (F=0 for Uniform B)
    Controller->>Controller: Derive Torque (M = m x B)

    Note over User, View: Demo 1: Basic Vector Math
    Controller->>View: Render m (Z-axis), B (Rotating), M (Resultant)
    View-->>User: Visualizes Torque changes based on orientation

    Note over User, View: Demo 2: Rotational Dynamics
    Physics->>Physics: Apply Alpha = M / I_rot
    Physics->>Physics: Integrate Angular Velocity & Orientation
    Physics->>View: Update Loop & m position
    View-->>User: Shows loop aligning with B to minimize energy

    Note over User, View: Demo 3: Interactive Control
    User->>Controller: Adjust B-field Angle (Slider)
    Controller->>View: Update Vector M instantly

    Note over User, View: Demo 4: Causal Visualization
    Controller->>View: Render Current Arrows (I) on loop
    View-->>User: Shows Right-Hand Rule connection (I -> m)

    Note over User, View: Demo 5: Force vs. Torque Contrast
    User->>Controller: Toggle "Switch B Field Mode"
    alt Non-Uniform Mode
        Controller->>Physics: Calculate Net Force (F != 0)
        Physics->>View: Render Net Force Vector (Orange)
    else Uniform Mode
        Controller->>Physics: Calculate Net Force (F = 0)
        Physics->>View: Hide/Zero Orange Vector
    end
    View-->>User: Demonstrates F=0 logic only applies to uniform fields

🪢Kanban: The Mechanics of Magnetic Torque and Loop Alignment

---
config:
 kanban:
  sectionWidth: 260
---
kanban
  ***Derivation Sheet***
   Analysis of Forces and Torques on a Current Loop in a Uniform Magnetic Field@{ticket: 1st,assigned: Primary,priority: 'Very High'}
   Dynamics of Magnetic Torque and Force Simulations@{assigned: SequenceDiagram}
  ***Resulmation***
    Visualizing Force and Torque on a Magnetic Dipole@{ticket: 2nd, assigned: Demostrate,priority: 'High'}
    Torque on a Current Loop@{assigned: Demo1}
    Torque Dynamics: Loop Alignment@{assigned: Demo2}
    Visualizing Magnetic Torque and Physical Field Dynamics@{assigned: StateDiagram}
  ***IllustraDemo***
    How Magnetic Fields Spin Wire Loops@{ticket: 3rd,priority: 'Low', assigned: Narrademo}
    The Dynamics of Magnetic Torque@{assigned: Illustrademo}
    Magnetic Interactions Force and Torque on Current Loops@{assigned: Illustragram}
    Dynamics of Magnetic Alignment in Circular Current Loops@{assigned: Seqillustrate}
  ***Ex-Demo***
    The Mechanics of Magnetic Torque and Loop Alignment@{ticket: 4th, assigned: Flowscript,priority: 'Very High'}
    Dynamics of Magnetic Torque on Current Loops@{assigned: Flowchart}
    Mechanics of Magnetic Torque on Current Loops@{assigned: Mindmap}
  ***Narr-graphic***
    The Physics of Loop Alignment@{ticket: 5th,assigned: Flowstra,priority: 'Very Low'}
    Dynamics of the Current Loop From Theory to Motion@{assigned: Statestra}

Visual and Orchestra