mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Merge pull request #1648 from mkreher13/transient-rewrite
One more MGXS fix
This commit is contained in:
commit
efc6f5a214
4 changed files with 9 additions and 4 deletions
|
|
@ -1094,6 +1094,11 @@ class Library:
|
|||
xsdata.set_beta_mgxs(mymgxs, xs_type=xs_type, nuclide=[nuclide],
|
||||
subdomain=subdomain)
|
||||
|
||||
if 'decay-rate' in self.mgxs_types:
|
||||
mymgxs = self.get_mgxs(domain, 'decay-rate')
|
||||
xsdata.set_decay_rate_mgxs(mymgxs, xs_types=xs_type, nuclide=[nuclide],
|
||||
subdomain=subdomain)
|
||||
|
||||
# If multiplicity matrix is available, prefer that
|
||||
if 'multiplicity matrix' in self.mgxs_types:
|
||||
mymgxs = self.get_mgxs(domain, 'multiplicity matrix')
|
||||
|
|
|
|||
|
|
@ -2044,7 +2044,7 @@ class XSdata:
|
|||
xs_grp.create_dataset("beta", data=self._beta[i])
|
||||
|
||||
if self._decay_rate[i] is not None:
|
||||
xs_grp.create_dataset("decay rate",
|
||||
xs_grp.create_dataset("decay-rate",
|
||||
data=self._decay_rate[i])
|
||||
|
||||
if self._scatter_matrix[i] is None:
|
||||
|
|
@ -2210,7 +2210,7 @@ class XSdata:
|
|||
xs_types = ['total', 'absorption', 'fission', 'kappa-fission',
|
||||
'chi', 'chi-prompt', 'chi-delayed', 'nu-fission',
|
||||
'prompt-nu-fission', 'delayed-nu-fission', 'beta',
|
||||
'decay rate', 'inverse-velocity']
|
||||
'decay-rate', 'inverse-velocity']
|
||||
|
||||
temperature_group = group[temp]
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ PLOT_TYPES = ['total', 'scatter', 'elastic', 'inelastic', 'fission',
|
|||
PLOT_TYPES_MGXS = ['total', 'absorption', 'scatter', 'fission',
|
||||
'kappa-fission', 'nu-fission', 'prompt-nu-fission',
|
||||
'deleyed-nu-fission', 'chi', 'chi-prompt', 'chi-delayed',
|
||||
'inverse-velocity', 'beta', 'decay rate', 'unity']
|
||||
'inverse-velocity', 'beta', 'decay-rate', 'unity']
|
||||
# Create a dictionary which can be used to convert PLOT_TYPES_MGXS to the
|
||||
# openmc.XSdata attribute name needed to access the data
|
||||
_PLOT_MGXS_ATTR = {line: line.replace(' ', '_').replace('-', '_')
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ XsData::from_hdf5(hid_t xsdata_grp, bool fissionable, AngleDistributionType scat
|
|||
fission_from_hdf5(xsdata_grp, n_ang, is_isotropic);
|
||||
}
|
||||
// Get the non-fission-specific data
|
||||
read_nd_vector(xsdata_grp, "decay rate", decay_rate);
|
||||
read_nd_vector(xsdata_grp, "decay-rate", decay_rate);
|
||||
read_nd_vector(xsdata_grp, "absorption", absorption, true);
|
||||
read_nd_vector(xsdata_grp, "inverse-velocity", inverse_velocity);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue