Struct Tmesh
pub struct Tmesh {Show 19 fields
pub id: u32,
pub particles: Vec<Particle>,
pub geometry: Geometry,
pub n_cora: usize,
pub n_corb: usize,
pub n_corc: usize,
pub cora: Vec<f64>,
pub corb: Vec<f64>,
pub corc: Vec<f64>,
pub n_voxels: usize,
pub n_region_bins: usize,
pub n_flagged_bins: usize,
pub n_user_bins: usize,
pub n_segment_bins: usize,
pub n_multiplier_bins: usize,
pub n_cosine_bins: usize,
pub n_energy_bins: usize,
pub n_time_bins: usize,
pub results: Vec<TallyResult>,
}
Expand description
TMESH tally type data
§Overview
MCNP6 offers two mesh tallies. The TMESH
tally was developed for MCNPX,
and FMESH
for MCNP5. These are very similar and both were kept when
merging MCNP5 and MCNPX into MCNP6.
For whatever reason, the TMESH data are also written to the MCTAL file. These are also known in user manuals as “Superimposed Mesh Tally Type A”.
§Supported types
For reference, below are the supported types:
Type | Description |
---|---|
1 | Track-Averaged Mesh Tally |
2 | Source Mesh Tally |
3 | Energy Deposition Mesh Tally |
4 | DXTRAN Mesh Tally |
Fields§
§id: u32
Tally number
particles: Vec<Particle>
Particle type
geometry: Geometry
Tally type (pinhole, ring, detector, etc…)
n_cora: usize
Number of i bins (i.e. fmesh iints
)
n_corb: usize
Number of j bins (i.e. fmesh jints
)
n_corc: usize
Number of k bins (i.e. fmesh kints
)
cora: Vec<f64>
Bin edges for i coordinate (i.e. fmesh imesh
)
corb: Vec<f64>
Bin edges for j coordinate (i.e. fmesh jmesh
)
corc: Vec<f64>
Bin edges for k coordinate (i.e. fmesh kmesh
)
n_voxels: usize
Number of voxels in the mesh
n_region_bins: usize
Number of cell or surface numbers
n_flagged_bins: usize
Number of flagged bins (total vs. direct or flagged vs. unflagged)
n_user_bins: usize
Number and type of user bins
n_segment_bins: usize
Number of segment bins
n_multiplier_bins: usize
Number of multiplier bins
n_cosine_bins: usize
Number and type of multiplier bins
n_energy_bins: usize
Number and type of energy bins
n_time_bins: usize
Number and type of time bins
results: Vec<TallyResult>
All tally values read directly
Implementations§
§impl Tmesh
impl Tmesh
pub fn n_expected_results(&self) -> usize
pub fn n_expected_results(&self) -> usize
Calculate expected number of results from MCTAL bin records
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tmesh
impl RefUnwindSafe for Tmesh
impl Send for Tmesh
impl Sync for Tmesh
impl Unpin for Tmesh
impl UnwindSafe for Tmesh
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
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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.