Skip to main content

broaden_in_lattice

Function broaden_in_lattice 

Source
pub fn broaden_in_lattice(
    energies: &[f64],
    data: &ResonanceData,
    temperature_k: f64,
    spectrum: &PhononSpectrum,
    channel: Channel,
) -> Result<TierOneBroadening, LatticeError>
Expand description

Value and temperature derivative of channel at every target energy, broadened by nuclei bound in a harmonic crystal with phonon spectrum spectrum at temperature_k. negative_values counts the negative values; nothing is roundoff-limited.

§Errors

LatticeError::InvalidTemperature; LatticeError::Grid for an empty or invalid grid or a mass ratio that is not finite and positive; LatticeError::BelowZero; LatticeError::Jump for a File-3 jump within a kernel’s reach; LatticeError::TooManyPoints and LatticeError::TooMuchWork; LatticeError::Unresolved for a kernel whose weights do not sum to 1 within 1e-7.