pub struct Nuclide { /* private fields */ }
Expand description

Efficient representation of nuclide

Implementations

Initializes a new Nuclide from a string representation.

Returns the approximate mass and binding energy of a nuclide, theorectical or real, using the Bethe-Weizacker liquid-drop approximation.

Returns the underlying unique value. Can be used in conjunction with “assign” and “change” to rapidly create or convert nuclides without decay

Returns the atomic number and the nucleon count

Returns the element name.

Returns the proton and neutron count

Approximate neutron separation energy

Approximate proton separation energy

returns a vector of all isotopes of the element

Returns the nuclide (if it exists) that has swapped proton-neutron count

Produces a vector of all nuclides sorted by atomic number, e.g all hydrogen isotopes, all helium isotopes, …

Trait Implementations

Returns an identifying string of the form {Symbol}-{Atomic number} e.g “Ra-227”

Returns the atomic mass in daltons

Returns the atomic mass in kilograms

Mass deficit as MeV

Returns the binding energy. Utilizing the mass model

Returns the isospin and parity in the form of a i8 pair, one of which is negatively signed for - parity

Returns electron affinity

Returns the ionization energies for all known levels. Values are in kj/mol.

Returns the thermochemical electronegativity as calculated by Oganov and Tantardini. Currently the best predictor of experimental values

Returns the Mullikan, or absolute, electronegativity in kj/mol

Allen Electronegativity

Pauling Electronegativity. A poor fit for experimental values, however it is here for completeness

Radius in Single-double-and-triple covalent bonds

ionic radii

Returns the Van Der Waal radius in crystalline structures. Values are in meters.

Returns the Van Der Waal radius of isolated atoms

Half-life in seconds

Approximation of decay constant

Returns true if the nuclide would have decayed in the time given. The nuclide remains unchanged

Returns the probable decay modes as a string

Performs a maximum of one decay in the time given

Returns the name and isotope number of the nuclide

use ::Nuclide::Atom;
use ::Nuclide::Nuclide;
let mut uranium = Nuclide::new("U-238").unwrap();

// total particle energy of the nuclide and vector of decay particles
let (particle_energy,particle_vector) = uranium.decay(5E+20);

 // final nuclide in the U-238 decay series
assert_eq!(uranium.identity(), "Pb-206");

Atomic number

Mass defect or the difference between the empirical mass and the mass of the constituents, in Daltons

Mass defect in Joules

Electron affinity in MeV

Returns the ionization energies for all known levels. Values are in MeV

The mean lifetime of nuclide/isomer

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.