pub struct ProfileSnapshot {
pub beam_z: u8,
pub peak_fluence_m2: f64,
pub ions_per_column: u64,
pub grid: VoxelTallyGrid,
pub voxels: Vec<([usize; 3], ProfileCell)>,
pub outside: ProfileCell,
}Expand description
The profiles at one fluence. See the module docs.
Fields§
§beam_z: u8Atomic number of the beam species.
peak_fluence_m2: f64Peak fluence delivered when the snapshot was taken, ions/m².
ions_per_column: u64Primaries per illuminated column used.
grid: VoxelTallyGridThe grid the voxel indices refer to.
voxels: Vec<([usize; 3], ProfileCell)>Occupied voxels, [i, j, k] with their tallies, in flat-index order.
outside: ProfileCellEvents outside the grid.
Implementations§
Source§impl ProfileSnapshot
impl ProfileSnapshot
Sourcepub fn grand_total(&self) -> ProfileCell
pub fn grand_total(&self) -> ProfileCell
Sum over all voxels and the outside.
Sourcepub fn voxel_area_m2(&self) -> f64
pub fn voxel_area_m2(&self) -> f64
Voxel cross-section dx dy (m²), the divisor from atoms/m to
atoms/m³.
Sourcepub fn depth_profile(&self) -> Vec<ProfileCell>
pub fn depth_profile(&self) -> Vec<ProfileCell>
Laterally integrated profile along the depth axis: entry i sums the
voxels with x index i.
Sourcepub fn lateral_profile(&self) -> Vec<ProfileCell>
pub fn lateral_profile(&self) -> Vec<ProfileCell>
Profile along the lateral axis: entry j sums the voxels with y
index j.
Trait Implementations§
Source§impl Clone for ProfileSnapshot
impl Clone for ProfileSnapshot
Source§fn clone(&self) -> ProfileSnapshot
fn clone(&self) -> ProfileSnapshot
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 ProfileSnapshot
impl Debug for ProfileSnapshot
Source§impl<'de> Deserialize<'de> for ProfileSnapshot
impl<'de> Deserialize<'de> for ProfileSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProfileSnapshot
impl PartialEq for ProfileSnapshot
Source§impl Serialize for ProfileSnapshot
impl Serialize for ProfileSnapshot
impl StructuralPartialEq for ProfileSnapshot
Auto Trait Implementations§
impl Freeze for ProfileSnapshot
impl RefUnwindSafe for ProfileSnapshot
impl Send for ProfileSnapshot
impl Sync for ProfileSnapshot
impl Unpin for ProfileSnapshot
impl UnsafeUnpin for ProfileSnapshot
impl UnwindSafe for ProfileSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more