INNER CODE UNIT · Rust
dipole_f
TeamAtomECS/AtomECS · src/dipole/mod.rs:59
let dipole_f = constant::C / dipole_beam_wavelength;
let prefactor = -3. * constant::PI * constant::C.powf(2.0)
/ (2. * (2. * constant::PI * transition_f).powf(3.0))
* optical_transition_linewidth
* -(1. / (transition_f - dipole_f) + 1. / (transition_f + dipole_f));
Polarizability { prefactor }
}
}
/// A system that attaches `DipoleLightIndex` components to entities which have `DipoleLight` but no index.
pub struct AttachIndexToDipoleLightSystem;
impl<'a> System<'a> for AttachIndexToDipoleLightSystem {
type SystemData = (
Entities<'a>,
ReadStorage<'a, DipoleLight>,
ReadStorage<'a, LaserIndex>,
Read<'a, LazyUpdate>,
);