pub struct DecayChain {
pub lambda: f64,
pub n0_parent: f64,
}Expand description
Simple Bateman-style two-nuclide decay chain.
Parent nuclide A decays to stable daughter B with decay constant λ.
Fields§
§lambda: f64Decay constant λ (s⁻¹).
n0_parent: f64Initial number of parent atoms.
Implementations§
Source§impl DecayChain
impl DecayChain
Sourcepub fn from_half_life(t_half_s: f64, n0_parent: f64) -> Self
pub fn from_half_life(t_half_s: f64, n0_parent: f64) -> Self
Construct from half-life (s).
Sourcepub fn parent_count(&self, t: f64) -> f64
pub fn parent_count(&self, t: f64) -> f64
Parent atom count at time t (s).
Sourcepub fn daughter_count(&self, t: f64) -> f64
pub fn daughter_count(&self, t: f64) -> f64
Daughter atom count at time t (s) assuming zero initial daughters.
Sourcepub fn activity_bq(&self, t: f64) -> f64
pub fn activity_bq(&self, t: f64) -> f64
Radioactivity (Bq) at time t.
Sourcepub fn specific_activity(
&self,
molar_mass_g_per_mol: f64,
n0_mass_kg: f64,
) -> f64
pub fn specific_activity( &self, molar_mass_g_per_mol: f64, n0_mass_kg: f64, ) -> f64
Specific activity (Bq/kg) given molar mass (g/mol).
Trait Implementations§
Source§impl Clone for DecayChain
impl Clone for DecayChain
Source§fn clone(&self) -> DecayChain
fn clone(&self) -> DecayChain
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 moreSource§impl Debug for DecayChain
impl Debug for DecayChain
impl Copy for DecayChain
Auto Trait Implementations§
impl Freeze for DecayChain
impl RefUnwindSafe for DecayChain
impl Send for DecayChain
impl Sync for DecayChain
impl Unpin for DecayChain
impl UnsafeUnpin for DecayChain
impl UnwindSafe for DecayChain
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