Materials
- class mcnpy.Material(*args, **kwargs)
Bases:
IDManagerMixin
,Material
A representation of the model object Material.
- Parameters
name (int) – Name for Material.
nuclides (iterable of mcnpy.Nuclide) – Nuclides for Material.
gas (int) – Gas for Material.
electron_substep_count (int) – ElectronSubstepCount for Material.
heavy_ion_substep_count (int) – HeavyIonSubstepCount for Material.
neutron_library (mcnpy.Library) – NeutronLibrary for Material.
photoatomic_library (mcnpy.Library) – PhotoatomicLibrary for Material.
photonuclear_library (mcnpy.Library) – PhotonuclearLibrary for Material.
electron_library (mcnpy.Library) – ElectronLibrary for Material.
proton_library (mcnpy.Library) – ProtonLibrary for Material.
conductor (float) – Conductor for Material.
a (float) – A for Material.
b (float) – B for Material.
c (float) – C for Material.
d (float) – D for Material.
b1 (float) – B1 for Material.
c1 (float) – C1 for Material.
b2 (float) – B2 for Material.
c2 (float) – C2 for Material.
b3 (float) – B3 for Material.
c3 (float) – C3 for Material.
comment (str) – Comment for Material.
- property density
- property density_unit
- next_id = 1
- property nuclides
- property s_alpha_beta
- property unit
- used_ids = {}
Unit |
Symbol (Python) |
Symbol (MCNP) |
---|---|---|
$atom/bcdot cm$ |
|
|
$g/cm^{3}$ |
|
|
- class mcnpy.Nuclide(*args, **kwargs)
Bases:
Nuclide
A representation of the model object Nuclide.
- Parameters
name (int) – Name for Nuclide.
library (mcnpy.Library) – Library for Nuclide.
unit (mcnpy.FractionUnit) – Unit for Nuclide.
fraction (float) – Fraction for Nuclide.
- element_name()
- property fraction
- property library
- property name
Operation |
Symbol (Python) |
Symbol (MCNP) |
---|---|---|
Atomic Fraction |
|
|
Weight Fraction |
|
|
Weight Percent |
|
N/A |
- class mcnpy.Library(*args, **kwargs)
Bases:
Library
A representation of the model object Library.
- property library
- class mcnpy.Sab(*args, **kwargs)
Bases:
Sab
,MaterialSetting
A representation of the model object Sab.
- Parameters
material (mcnpy.Material) – Material for Sab.
libraries (iterable of mcnpy.SabLibrary) – Libraries for Sab.
- property libraries
- property material
- class mcnpy.SabLibrary(*args, **kwargs)
Bases:
SabLibrary
A representation of the model object SabLibrary.
- Parameters
nuclide (mcnpy.SabNuclide) – Nuclide for SabLibrary.
library (mcnpy.Sablib) – Library for SabLibrary.
- property library
- class mcnpy.Sablib(*args, **kwargs)
Bases:
Sablib
A representation of the model object Sablib.
- Parameters
lib (str) – Lib for Sablib.
t (str) – T for Sablib.
- property lib
- class mcnpy.NuclideSubstitution(*args, **kwargs)
Bases:
NuclideSubstitution
,MaterialSetting
A representation of the model object NuclideSubstitution.
- Parameters
material (mcnpy.Material) – Material for NuclideSubstitution.
nuclides (iterable of str) – Nuclides for NuclideSubstitution.
particles (iterable of mcnpy.Particle) – Particles for NuclideSubstitution.
- class mcnpy.PhotonuclearNuclideSelection(*args, **kwargs)
Bases:
PhotonuclearNuclideSelection
,MaterialSetting
A representation of the model object PhotonuclearNuclideSelection.
- Parameters
material (mcnpy.Material) – Material for PhotonuclearNuclideSelection.
zaids (iterable of str) – Zaids for PhotonuclearNuclideSelection.
particles (iterable of mcnpy.Particle) – Particles for PhotonuclearNuclideSelection.
- class mcnpy.OnTheFlyDopplerBroadening(*args, **kwargs)
Bases:
OnTheFlyDopplerBroadening
,MaterialSetting
A representation of the model object OnTheFlyDopplerBroadening.
- Parameters
zaids (iterable of str) – Zaids for OnTheFlyDopplerBroadening.
- class mcnpy.TotalFission(*args, **kwargs)
Bases:
TotalFission
,MaterialSetting
A representation of the model object TotalFission.
- Parameters
prompt_only (mcnpy.Boolean) – PromptOnly for TotalFission.
- class mcnpy.FissionTurnoff(*args, **kwargs)
Bases:
FissionTurnoff
,MaterialSetting
A representation of the model object FissionTurnoff.
- Parameters
options (iterable of str) – Options for FissionTurnoff.
- class mcnpy.AtomicWeight(*args, **kwargs)
Bases:
AtomicWeight
,MaterialSetting
A representation of the model object AtomicWeight.
- Parameters
nuclides (iterable of str) – Nuclides for AtomicWeight.
library (iterable of mcnpy.Library) – Library for AtomicWeight.
ratios (iterable of float) – Ratios for AtomicWeight.
- class mcnpy.CrossSectionFile(*args, **kwargs)
Bases:
CrossSectionFile
,MaterialSetting
A representation of the model object CrossSectionFile.
- Parameters
name (int) – Name for CrossSectionFile.
nuclides (mcnpy.Nuclide) – Nuclides for CrossSectionFile.
x_s_file (str) – XSFile for CrossSectionFile.
entries (iterable of float) – Entries for CrossSectionFile.
- class mcnpy.Void(*args, **kwargs)
Bases:
Void
,MaterialSetting
A representation of the model object Void.
- Parameters
cells (iterable of mcnpy.Cell) – Cells for Void.
- class mcnpy.MultigroupTransport(*args, **kwargs)
Bases:
MultigroupTransport
,MaterialSetting
A representation of the model object MultigroupTransport.
- Parameters
mode (mcnpy.MultigroupTransportMode) – Mode for MultigroupTransport.
combined_electron_photon_xsecs (str) – CombinedElectronPhotonXsecs for MultigroupTransport.
energy_group_count (int) – EnergyGroupCount for MultigroupTransport.
importances (str) – Importances for MultigroupTransport.
adjoint_biasing (str) – AdjointBiasing for MultigroupTransport.
reference_cell (mcnpy.Cell) – ReferenceCell for MultigroupTransport.
weight_window_normalization (float) – WeightWindowNormalization for MultigroupTransport.
compression_limit (str) – CompressionLimit for MultigroupTransport.
- class mcnpy.DiscreteReactionCrossSection(*args, **kwargs)
Bases:
DiscreteReactionCrossSection
,MaterialSetting
A representation of the model object DiscreteReactionCrossSection.
- Parameters
nuclides (iterable of str) – Nuclides for DiscreteReactionCrossSection.
library (iterable of mcnpy.Library) – Library for DiscreteReactionCrossSection.
- class mcnpy.MaterialSetting
Bases:
ABC