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: u32Tally number
particles: Vec<Particle>Particle type
geometry: GeometryTally type (pinhole, ring, detector, etc…)
n_cora: usizeNumber of i bins (i.e. fmesh iints)
n_corb: usizeNumber of j bins (i.e. fmesh jints)
n_corc: usizeNumber 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: usizeNumber of voxels in the mesh
n_region_bins: usizeNumber of cell or surface numbers
n_flagged_bins: usizeNumber of flagged bins (total vs. direct or flagged vs. unflagged)
n_user_bins: usizeNumber and type of user bins
n_segment_bins: usizeNumber of segment bins
n_multiplier_bins: usizeNumber of multiplier bins
n_cosine_bins: usizeNumber and type of multiplier bins
n_energy_bins: usizeNumber and type of energy bins
n_time_bins: usizeNumber 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