コード例 #1
0
ファイル: resonance.py プロジェクト: smharper/openmc
 def ranges(self, ranges):
     cv.check_type('resonance ranges', ranges, MutableSequence)
     self._ranges = cv.CheckedList(ResonanceRange, 'resonance ranges',
                                   ranges)
コード例 #2
0
ファイル: settings.py プロジェクト: mkreher13/WalshOpenMC
 def volume_calculations(self, vol_calcs):
     if not isinstance(vol_calcs, MutableSequence):
         vol_calcs = [vol_calcs]
     self._volume_calculations = cv.CheckedList(
         VolumeCalculation, 'stochastic volume calculations', vol_calcs)
コード例 #3
0
ファイル: settings.py プロジェクト: mkreher13/WalshOpenMC
    def __init__(self):

        # Run mode subelement (default is 'eigenvalue')
        self._run_mode = 'eigenvalue'
        self._batches = None
        self._generations_per_batch = None
        self._inactive = None
        self._particles = None
        self._keff_trigger = None

        # Energy mode subelement
        self._energy_mode = None
        self._max_order = None

        # Source subelement
        self._source = cv.CheckedList(Source, 'source distributions')

        self._confidence_intervals = None
        self._cross_sections = None
        self._multipole_library = None
        self._ptables = None
        self._run_cmfd = None
        self._seed = None
        self._survival_biasing = None

        # Shannon entropy mesh
        self._entropy_mesh = None

        # Trigger subelement
        self._trigger_active = None
        self._trigger_max_batches = None
        self._trigger_batch_interval = None

        self._output = None

        # Output options
        self._statepoint = {}
        self._sourcepoint = {}

        self._threads = None
        self._no_reduce = None

        self._verbosity = None

        self._trace = None
        self._track = None

        self._tabular_legendre = {}

        self._temperature = {}

        # Cutoff subelement
        self._cutoff = None

        # Uniform fission source subelement
        self._ufs_mesh = None

        # Domain decomposition subelement
        self._dd_mesh_dimension = None
        self._dd_mesh_lower_left = None
        self._dd_mesh_upper_right = None
        self._dd_nodemap = None
        self._dd_allow_leakage = False
        self._dd_count_interactions = False

        self._resonance_scattering = {}
        self._volume_calculations = cv.CheckedList(VolumeCalculation,
                                                   'volume calculations')

        self._create_fission_neutrons = None
コード例 #4
0
ファイル: settings.py プロジェクト: mkreher13/WalshOpenMC
 def source(self, source):
     if not isinstance(source, MutableSequence):
         source = [source]
     self._source = cv.CheckedList(Source, 'source distributions', source)
コード例 #5
0
    def __init__(self):

        # Run mode subelement (default is 'eigenvalue')
        self._run_mode = 'eigenvalue'
        self._batches = None
        self._generations_per_batch = None
        self._inactive = None
        self._particles = None
        self._keff_trigger = None

        # Energy mode subelement
        self._energy_mode = None
        self._max_order = None

        # Source subelement
        self._source = cv.CheckedList(Source, 'source distributions')

        self._confidence_intervals = None
        self._electron_treatment = None
        self._photon_transport = None
        self._ptables = None
        self._seed = None
        self._survival_biasing = None

        # Shannon entropy mesh
        self._entropy_mesh = None

        # Trigger subelement
        self._trigger_active = None
        self._trigger_max_batches = None
        self._trigger_batch_interval = None

        self._output = None

        # Output options
        self._statepoint = {}
        self._sourcepoint = {}

        self._no_reduce = None

        self._verbosity = None

        self._trace = None
        self._track = None

        self._tabular_legendre = {}

        self._temperature = {}

        # Cutoff subelement
        self._cutoff = None

        # Uniform fission source subelement
        self._ufs_mesh = None

        self._resonance_scattering = {}
        self._volume_calculations = cv.CheckedList(VolumeCalculation,
                                                   'volume calculations')

        self._create_fission_neutrons = None
        self._log_grid_bins = None

        self._dagmc = False