mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Remove keff_temp definition
This commit is contained in:
parent
e149c68a0e
commit
ab2f3bfc75
2 changed files with 2 additions and 19 deletions
|
|
@ -226,23 +226,6 @@ def keff():
|
|||
return (mean, std_dev)
|
||||
|
||||
|
||||
# TODO Remove
|
||||
def keff_temp():
|
||||
"""Return the calculated tracklength k-eigenvalue and its standard deviation.
|
||||
|
||||
Returns
|
||||
-------
|
||||
tuple
|
||||
Mean k-eigenvalue and standard deviation of the mean
|
||||
|
||||
"""
|
||||
n = openmc.capi.num_realizations()
|
||||
mean = c_double.in_dll(_dll, 'keff').value
|
||||
std_dev = c_double.in_dll(_dll, 'keff_std').value \
|
||||
if n > 1 else np.inf
|
||||
return (mean, std_dev)
|
||||
|
||||
|
||||
def master():
|
||||
"""Return whether processor is master processor or not.
|
||||
|
||||
|
|
|
|||
|
|
@ -1954,7 +1954,7 @@ class CMFDRun(object):
|
|||
s_o = np.zeros((n,))
|
||||
|
||||
# Set initial guess
|
||||
k_n = openmc.capi.keff_temp()[0]
|
||||
k_n = openmc.capi.keff()[0]
|
||||
k_o = k_n
|
||||
dw = self._cmfd_shift
|
||||
k_s = k_o + dw
|
||||
|
|
@ -2306,7 +2306,7 @@ class CMFDRun(object):
|
|||
num_accel = self._mat_dim
|
||||
|
||||
# Get openmc k-effective
|
||||
keff = openmc.capi.keff_temp()[0]
|
||||
keff = openmc.capi.keff()[0]
|
||||
|
||||
# Define leakage in each mesh cell and energy group
|
||||
leakage = ((self._current[:,:,:,_CURRENTS['out_right'],:] - \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue