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: StringName of the material (e.g. “Lead”, “Concrete”).
atomic_number: u32Atomic number Z of the primary constituent element.
density: f64Mass density [kg/m³].
mass_attenuation: f64Mass attenuation coefficient μ/ρ [m²/kg] at the relevant photon energy.
neutron_cross_section: f64Thermal neutron absorption cross-section [barn = 1e-28 m²].
Implementations§
Source§impl RadiationMaterial
impl RadiationMaterial
Sourcepub fn new(
name: impl Into<String>,
atomic_number: u32,
density: f64,
mass_attenuation: f64,
neutron_cross_section: f64,
) -> Self
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.
Sourcepub fn polyethylene() -> Self
pub fn polyethylene() -> Self
Preset: polyethylene (high-density neutron moderator).
Trait Implementations§
Source§impl Clone for RadiationMaterial
impl Clone for RadiationMaterial
Source§fn clone(&self) -> RadiationMaterial
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RadiationMaterial
impl RefUnwindSafe for RadiationMaterial
impl Send for RadiationMaterial
impl Sync for RadiationMaterial
impl Unpin for RadiationMaterial
impl UnsafeUnpin for RadiationMaterial
impl UnwindSafe for RadiationMaterial
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