Skip to main content

SammyInpConfig

Struct SammyInpConfig 

Source
pub struct SammyInpConfig {
Show 19 fields pub title: String, pub isotope_symbol: String, pub awr: f64, pub energy_min_ev: f64, pub energy_max_ev: f64, pub temperature_k: f64, pub flight_path_m: f64, pub delta_l_sammy: f64, pub delta_e_sammy: f64, pub delta_g_sammy: f64, pub no_broadening: bool, pub broadening_delta_l: Option<f64>, pub broadening_delta_g: Option<f64>, pub broadening_delta_e: Option<f64>, pub scattering_radius_fm: f64, pub thickness_atoms_barn: f64, pub target_spin: f64, pub spin_groups: Vec<SammySpinGroup>, pub observation_type: SammyObservationType,
}
Expand description

Beamline and sample configuration from a SAMMY .inp file.

Fields§

§title: String§isotope_symbol: String

Isotope symbol as written in the file (e.g. “60NI”, “FE56”).

§awr: f64

Atomic weight ratio (target mass / neutron mass).

§energy_min_ev: f64

Lower energy bound for resonance range (eV).

§energy_max_ev: f64

Upper energy bound for resonance range (eV).

§temperature_k: f64

Sample temperature (K).

§flight_path_m: f64

Flight path length (m).

§delta_l_sammy: f64

Card 5, field 3: Deltal — flight path uncertainty (SAMMY units).

Maps to rslRes parameter 1 → Bo2 in SAMMY’s resolution broadening. SAMMY Ref: minp06.f90 line 226.

§delta_e_sammy: f64

Card 5, field 4: Deltae — exponential tail parameter (SAMMY units).

Maps to rslRes parameter 3 → Co2 in SAMMY’s resolution broadening. When zero, no exponential broadening is applied (Iesopr=1, pure Gaussian).

§delta_g_sammy: f64

Card 5, field 5: Deltag — timing uncertainty (SAMMY units).

Maps to rslRes parameter 2 → Ao2 in SAMMY’s resolution broadening.

§no_broadening: bool

When true, broadening is explicitly disabled for this case (e.g., BROADENING IS NOT WANTED or NO LOW-ENERGY BROADENING).

§broadening_delta_l: Option<f64>

BROADENING card override for Deltal (rslRes param 1). Non-zero values override Card 5 delta_l_sammy. SAMMY Ref: minp18.f90 lines 89-94.

§broadening_delta_g: Option<f64>

BROADENING card override for Deltag (rslRes param 2).

§broadening_delta_e: Option<f64>

BROADENING card override for Deltae (rslRes param 3).

§scattering_radius_fm: f64

Scattering radius (fm).

§thickness_atoms_barn: f64

Sample thickness (atoms/barn).

§target_spin: f64

Target nuclear spin I. Determines the statistical weight g_J = (2J+1) / ((2I+1)(2s+1)). Parsed from field 6 of the spin group header in Card Set 10 (all headers should agree). Defaults to 0.0 (even-even nuclei like Fe-56, Ni-58, Ni-60).

§spin_groups: Vec<SammySpinGroup>

Spin group definitions.

§observation_type: SammyObservationType

Observation type (Transmission, TotalCrossSection, or Fission).

Implementations§

Source§

impl SammyInpConfig

Source

pub fn effective_delta_l(&self) -> f64

Effective Deltal: BROADENING card override if non-zero, else Card 5.

Source

pub fn effective_delta_g(&self) -> f64

Effective Deltag: BROADENING card override if non-zero, else Card 5.

Source

pub fn effective_delta_e(&self) -> f64

Effective Deltae: BROADENING card override if non-zero, else Card 5.

Trait Implementations§

Source§

impl Clone for SammyInpConfig

Source§

fn clone(&self) -> SammyInpConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SammyInpConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more