pub struct ShellResolvedChannels { /* private fields */ }Expand description
A valence channel and inner-shell channels, each with its own optical ELF (module docs).
Implementations§
Source§impl ShellResolvedChannels
impl ShellResolvedChannels
Sourcepub fn new(
valence: SinglePolePenn,
shells: Vec<(InnerShell, OpticalElf)>,
) -> Result<Self, ElectronDataError>
pub fn new( valence: SinglePolePenn, shells: Vec<(InnerShell, OpticalElf)>, ) -> Result<Self, ElectronDataError>
Channels from a valence model and one optical ELF per inner shell,
kept in the given order. The shell models take the valence model’s
Fermi energy, tolerance and exchange setting. Each binding energy must
be finite and positive, each shell’s ELF must start at or above its
binding energy, and a (Z, subshell) may not repeat.
Sourcepub fn valence(&self) -> &SinglePolePenn
pub fn valence(&self) -> &SinglePolePenn
The valence model.
Sourcepub fn inner_shells(&self) -> &[InnerShell]
pub fn inner_shells(&self) -> &[InnerShell]
The inner-shell channels, in the order given.
Sourcepub fn shell_model(&self, i: usize) -> &SinglePolePenn
pub fn shell_model(&self, i: usize) -> &SinglePolePenn
The model of inner shell i (its own ELF, the valence settings).
Sourcepub fn inverse_imfps(
&self,
energy_ev: f64,
) -> Result<ChannelInverseImfp, ElectronDataError>
pub fn inverse_imfps( &self, energy_ev: f64, ) -> Result<ChannelInverseImfp, ElectronDataError>
The channel-resolved inverse IMFP at kinetic energy energy_ev above
the Fermi level: the valence model’s λ⁻¹, and for shell i
SinglePolePenn::imfp_and_stopping_with_binding of its model with
its binding energy (module docs).
Sourcepub fn diimfps_per_m_ev(
&self,
energy_ev: f64,
loss_ev: f64,
) -> Result<ChannelDiimfp, ElectronDataError>
pub fn diimfps_per_m_ev( &self, energy_ev: f64, loss_ev: f64, ) -> Result<ChannelDiimfp, ElectronDataError>
The channel-resolved DIIMFP at kinetic energy energy_ev and loss
loss_ev (SinglePolePenn::diimfp_with_binding_per_m_ev per
channel).
Sourcepub fn sample_channel(
&self,
energy_ev: f64,
loss_ev: f64,
u: f64,
) -> Result<Option<Channel>, ElectronDataError>
pub fn sample_channel( &self, energy_ev: f64, loss_ev: f64, u: f64, ) -> Result<Option<Channel>, ElectronDataError>
The channel of a loss loss_ev at kinetic energy energy_ev, for a
uniform variate u in [0, 1): each channel with probability
proportional to its DIIMFP there, the inner shells first in order,
then valence. None if every channel’s DIIMFP is zero there.
Deterministic in its arguments.
Sourcepub fn secondary_energy_ev(&self, channel: Channel, loss_ev: f64) -> Option<f64>
pub fn secondary_energy_ev(&self, channel: Channel, loss_ev: f64) -> Option<f64>
The kinetic energy W = ω - B handed to the secondary electron by an
inner-shell loss loss_ev, eV (dV2022 eqs. (32), (34)); None for the
valence channel (its secondary energy depends on the band structure,
see electron::secondary) and below the edge.
Trait Implementations§
Source§impl Clone for ShellResolvedChannels
impl Clone for ShellResolvedChannels
Source§fn clone(&self) -> ShellResolvedChannels
fn clone(&self) -> ShellResolvedChannels
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ShellResolvedChannels
impl RefUnwindSafe for ShellResolvedChannels
impl Send for ShellResolvedChannels
impl Sync for ShellResolvedChannels
impl Unpin for ShellResolvedChannels
impl UnsafeUnpin for ShellResolvedChannels
impl UnwindSafe for ShellResolvedChannels
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more