pub struct ResonanceData {
pub isotope: Isotope,
pub za: u32,
pub awr: f64,
pub ranges: Vec<ResonanceRange>,
}Expand description
Top-level container for all resonance data parsed from an ENDF file.
Fields§
§isotope: IsotopeThe isotope this data belongs to.
za: u32ZA identifier (Z*1000 + A).
awr: f64Atomic weight ratio (mass of target / neutron mass).
ranges: Vec<ResonanceRange>Energy ranges containing resonance parameters.
Implementations§
Source§impl ResonanceData
impl ResonanceData
Sourcepub fn total_resonance_count(&self) -> usize
pub fn total_resonance_count(&self) -> usize
Total number of resonances across all ranges and groups.
For LRF=7 ranges, counts resonances across all spin groups.
Sourcepub fn all_resolved_resonances(&self) -> Vec<&Resonance>
pub fn all_resolved_resonances(&self) -> Vec<&Resonance>
Get all resonances in the resolved region (LRF=1/2/3 only), sorted by energy.
Returns an empty vec for LRF=7 ranges; use ResonanceRange::rml directly
to access R-Matrix Limited resonances.
Trait Implementations§
Source§impl Clone for ResonanceData
impl Clone for ResonanceData
Source§fn clone(&self) -> ResonanceData
fn clone(&self) -> ResonanceData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResonanceData
impl Debug for ResonanceData
Source§impl<'de> Deserialize<'de> for ResonanceData
impl<'de> Deserialize<'de> for ResonanceData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ResonanceData
impl Display for ResonanceData
Auto Trait Implementations§
impl Freeze for ResonanceData
impl RefUnwindSafe for ResonanceData
impl Send for ResonanceData
impl Sync for ResonanceData
impl Unpin for ResonanceData
impl UnsafeUnpin for ResonanceData
impl UnwindSafe for ResonanceData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.