pub struct TransportConfig {
pub cutoff_ev: f64,
pub escape_rule: EscapeRule,
pub max_events: u64,
pub secondaries: SecondaryModel,
pub boundary: BoundaryModel,
pub cutoff_reference: CutoffReference,
}Expand description
Run configuration, recorded in the RunMetadata.
Fields§
§cutoff_ev: f64An electron stops when its energy falls below this (measured as
TransportConfig::cutoff_reference says), eV.
escape_rule: EscapeRuleWhat a face of the target does to an electron reaching it.
max_events: u64Safety cap on collisions and face reflections per electron (the
primary and each secondary count separately). An electron that
reaches it ends with Fate::EventCap.
secondaries: SecondaryModelSecondary-electron generation at inelastic events.
boundary: BoundaryModelWhat the faces do.
cutoff_reference: CutoffReferenceWhere the cutoff is measured from.
Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn new(cutoff_ev: f64) -> Self
pub fn new(cutoff_ev: f64) -> Self
A configuration with the given cutoff (from the band bottom),
EscapeRule::BothFaces, a cap of 10 million events per electron, no
secondaries and transparent faces.
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransportConfig
Source§impl Debug for TransportConfig
impl Debug for TransportConfig
Source§impl PartialEq for TransportConfig
impl PartialEq for TransportConfig
Source§impl Serialize for TransportConfig
impl Serialize for TransportConfig
impl StructuralPartialEq for TransportConfig
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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