Struct KcodeResult

pub struct KcodeResult {
Show 19 fields pub collsion_keff: f64, pub absorption_keff: f64, pub tracklength_keff: f64, pub avg_collsion_keff: f64, pub avg_collsion_keff_std: f64, pub avg_absorption_keff: f64, pub avg_absorption_keff_std: f64, pub avg_tracklength_keff: f64, pub avg_tracklength_keff_std: f64, pub avg_combined_keff: f64, pub avg_combined_keff_std: f64, pub avg_combined_keff_bcs: f64, pub avg_combined_keff_bcs_std: f64, pub collision_prlt: f64, pub absorption_prlt: f64, pub combined_prlt: f64, pub combined_prlt_std: f64, pub n_histories: f64, pub fom: f64,
}
Expand description

KCODE quantities for a cycle

Fields§

§collsion_keff: f64

keff collision (col)

§absorption_keff: f64

keff absorption (abs)

§tracklength_keff: f64

keff track length (trk)

§avg_collsion_keff: f64

Average keff collision

§avg_collsion_keff_std: f64

Average keff collision, standard deviation

§avg_absorption_keff: f64

Average keff absorption

§avg_absorption_keff_std: f64

Average keff absorption, standard deviation

§avg_tracklength_keff: f64

Average keff track length

§avg_tracklength_keff_std: f64

Average keff track length, standard deviation

§avg_combined_keff: f64

Average combined col/abs/trk keff

§avg_combined_keff_std: f64

Average combined col/abs/trk keff, standard deviation

§avg_combined_keff_bcs: f64

Average combined col/abs/trk keff by cycles skipped

§avg_combined_keff_bcs_std: f64

Average combined col/abs/trk keff by cycles skipped, standard deviation

§collision_prlt: f64

Prompt removal lifetime (collision)

§absorption_prlt: f64

Prompt removal lifetime (absorption)

§combined_prlt: f64

Prompt removal lifetime (col/abs/trk-len)

§combined_prlt_std: f64

Prompt removal lifetime (col/abs/trk-len), standard deviation

§n_histories: f64

Number of histories used in the cycle

§fom: f64

Figure of merit (when mct on PRDMP is 1)

Implementations§

§

impl KcodeResult

pub fn to_vec(&self) -> Vec<f64>

Return Kcode parameters as a vector

Trait Implementations§

§

impl Clone for KcodeResult

§

fn clone(&self) -> KcodeResult

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
§

impl Debug for KcodeResult

§

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

Formats the value using the given formatter. Read more
§

impl Serialize for KcodeResult

§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<T> TryFrom<&[T]> for KcodeResult
where T: Into<f64> + Copy,

§

fn try_from(values: &[T]) -> Result<Self, Self::Error>

Initialise a KcodeResult from a list of numbers

This will fail on any list not 18-19 values long.

§

type Error = Error

The type returned in the event of a conversion error.

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.

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.

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.