pub struct OpenMcOptions {
pub mesh_id: u32,
pub window_id: u32,
pub upper_bound_ratio: f64,
pub survival_ratio: f64,
pub max_split: u32,
pub weight_cutoff: f64,
}Expand description
OpenMC emission settings, defaulting to the values OpenMC itself uses.
Fields§
§mesh_id: u32ID written to the <mesh id="..."> attribute (referenced by
<weight_windows><mesh>).
window_id: u32ID written to the <weight_windows id="..."> attribute.
upper_bound_ratio: f64Ratio of upper to lower weight-window bounds. MAGIC produces lower
bounds only; OpenMC requires both, so the uppers are synthesized as
upper = lower * ratio. OpenMC’s own WWINP importer uses 5.0.
survival_ratio: f64Survival weight over lower bound; must be greater than 1 and less
than OpenMcOptions::upper_bound_ratio (OpenMC reader range).
max_split: u32Maximum split count; must be at least 2 (OpenMC reader range).
weight_cutoff: f64Russian-roulette weight cutoff; must be in (0, 1] (OpenMC reader
range).
Trait Implementations§
Source§impl Clone for OpenMcOptions
impl Clone for OpenMcOptions
Source§fn clone(&self) -> OpenMcOptions
fn clone(&self) -> OpenMcOptions
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 moreimpl Copy for OpenMcOptions
Source§impl Debug for OpenMcOptions
impl Debug for OpenMcOptions
Source§impl Default for OpenMcOptions
impl Default for OpenMcOptions
Source§impl PartialEq for OpenMcOptions
impl PartialEq for OpenMcOptions
impl StructuralPartialEq for OpenMcOptions
Auto Trait Implementations§
impl Freeze for OpenMcOptions
impl RefUnwindSafe for OpenMcOptions
impl Send for OpenMcOptions
impl Sync for OpenMcOptions
impl Unpin for OpenMcOptions
impl UnsafeUnpin for OpenMcOptions
impl UnwindSafe for OpenMcOptions
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