pub fn beam_spot_size_kernel(
q: ComplexBeamParameter,
wavelength: Wavelength,
) -> Result<Length, PhysicsError>Expand description
Extracts the beam spot size $w(z)$ from the complex beam parameter $q$.
Relation: $$ \frac{1}{q} = \frac{1}{R(z)} - i \frac{\lambda}{\pi w(z)^2} $$
Therefore: $$ w(z) = \sqrt{\frac{-\lambda}{\pi \text{Im}(1/q)}} $$
§Arguments
q- Complex beam parameter.wavelength- Wavelength $\lambda$.
§Returns
Result<Length, PhysicsError>- Beam radius $w(z)$.