Skip to main content

poynting_vector_kernel

Function poynting_vector_kernel 

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

Calculates the Poynting Vector (Energy Flux): $S = E \times B$.

Computes the classical 3D cross product of E and B fields. The result is returned as a 3D vector in the same multivector format.

§Arguments

  • e - Electric field vector $E$ (spatial components at indices 2, 3, 4).
  • b - Magnetic field vector $B$ (spatial components at indices 2, 3, 4).

§Returns

  • Result<CausalMultiVector<f64>, PhysicsError> - Poynting vector $S = E \times B$.