lorentz_force_kernel

Function lorentz_force_kernel 

Source
pub fn lorentz_force_kernel(
    j: &CausalMultiVector<f64>,
    b: &CausalMultiVector<f64>,
) -> Result<CausalMultiVector<f64>, PhysicsError>
Expand description

Calculates the magnetic force component of the Lorentz Force: $F = J \times B$.

In Geometric Algebra, this is computed via the outer product $J \wedge B$, representing the force as a bivector (torque-like/plane) in this implementation. To recover the vector force in 3D, one would typically take the dual.

§Arguments

  • j - Current density vector $J$.
  • b - Magnetic field vector $B$.

§Returns

  • Ok(CausalMultiVector<f64>) - Force bivector ($J \wedge B$).
  • Err(PhysicsError) - If dimension mismatch occurs.