Skip to main content

RadiationMaterial

Struct RadiationMaterial 

Source
pub struct RadiationMaterial {
    pub name: String,
    pub atomic_number: u32,
    pub density: f64,
    pub mass_attenuation: f64,
    pub neutron_cross_section: f64,
}
Expand description

A material used for radiation shielding.

Fields§

§name: String

Name of the material (e.g. “Lead”, “Concrete”).

§atomic_number: u32

Atomic number Z of the primary constituent element.

§density: f64

Mass density [kg/m³].

§mass_attenuation: f64

Mass attenuation coefficient μ/ρ [m²/kg] at the relevant photon energy.

§neutron_cross_section: f64

Thermal neutron absorption cross-section [barn = 1e-28 m²].

Implementations§

Source§

impl RadiationMaterial

Source

pub fn new( name: impl Into<String>, atomic_number: u32, density: f64, mass_attenuation: f64, neutron_cross_section: f64, ) -> Self

Create a new radiation shielding material.

§Arguments
  • name – Human-readable label.
  • atomic_number – Atomic number Z.
  • density – Mass density [kg/m³].
  • mass_attenuation – μ/ρ at the relevant energy [m²/kg].
  • neutron_cross_section – σ_a in barn for thermal neutrons.
Source

pub fn lead() -> Self

Preset: lead (Pb). μ/ρ at 1 MeV ≈ 7.1e-3 m²/kg.

Source

pub fn concrete() -> Self

Preset: ordinary concrete. μ/ρ at 1 MeV ≈ 6.5e-3 m²/kg.

Source

pub fn water() -> Self

Preset: water. μ/ρ at 1 MeV ≈ 6.7e-3 m²/kg.

Source

pub fn polyethylene() -> Self

Preset: polyethylene (high-density neutron moderator).

Trait Implementations§

Source§

impl Clone for RadiationMaterial

Source§

fn clone(&self) -> RadiationMaterial

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RadiationMaterial

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.

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.