mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
make keff_search control class private
This commit is contained in:
parent
e9ea747827
commit
1fd1ad7cda
3 changed files with 4 additions and 5 deletions
|
|
@ -17,7 +17,6 @@ from .stepresult import *
|
|||
from .results import *
|
||||
from .integrators import *
|
||||
from .transfer_rates import *
|
||||
from .keff_search_control import *
|
||||
from .r2s import *
|
||||
from . import abc
|
||||
from . import cram
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from .results import Results, _SECONDS_PER_MINUTE, _SECONDS_PER_HOUR, \
|
|||
from .pool import deplete
|
||||
from .reaction_rates import ReactionRates
|
||||
from .transfer_rates import TransferRates, ExternalSourceRates
|
||||
from .keff_search_control import KeffSearchControl
|
||||
from .keff_search_control import _KeffSearchControl
|
||||
|
||||
|
||||
__all__ = [
|
||||
|
|
@ -742,7 +742,7 @@ class Integrator(ABC):
|
|||
|
||||
@keff_search_control.setter
|
||||
def keff_search_control(self, keff_search_control):
|
||||
check_type('keff search control', keff_search_control, KeffSearchControl)
|
||||
check_type('keff search control', keff_search_control, _KeffSearchControl)
|
||||
self._keff_search_control = keff_search_control
|
||||
|
||||
def _timed_deplete(self, n, rates, dt, i=None, matrix_func=None):
|
||||
|
|
@ -1185,7 +1185,7 @@ class Integrator(ABC):
|
|||
.. versionadded:: 0.15.4
|
||||
|
||||
"""
|
||||
self._keff_search_control = KeffSearchControl(
|
||||
self._keff_search_control = _KeffSearchControl(
|
||||
self.operator,
|
||||
function,
|
||||
x0,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ from openmc.mpi import comm
|
|||
from typing import Callable
|
||||
from warnings import warn
|
||||
|
||||
class KeffSearchControl:
|
||||
class _KeffSearchControl:
|
||||
"""Controller for keff search during depletion calculations.
|
||||
|
||||
This class performs keff searches to maintain a target keff by adjusting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue