Enabled inverse-velocities to use polar/azimuthal angles consistent with the actual coding

This commit is contained in:
Adam Nelson 2017-01-16 15:00:42 -05:00
parent d4c7a9cdda
commit ac57f5004d
2 changed files with 6 additions and 8 deletions

View file

@ -122,8 +122,9 @@ Temperature-dependent data, provided for temperature <TTT>K.
spectra as well and thus will have one additional dimension
for the outgoing energy group. In this case, `nu-fission` has the
same dimensionality as `multiplicity matrix`.
- **inverse-velocity** (*double[]*) -- Average inverse velocity
for each of the groups in the library. This dataset is optional.
- **inverse-velocity** (*double[]* or *double[][][]*) --
Average inverse velocity for each of the groups in the library.
This dataset is optional.
**/<library name>/<TTT>K/scatter_data/**

View file

@ -502,12 +502,9 @@ class Library(object):
mgxs_type, name=self.name, num_polar=self.num_polar,
num_azimuthal=self.num_azimuthal)
else:
mgxs = openmc.mgxs.MGXS.get_mgxs(mgxs_type, name=self.name)
# The inverse velocity does not use angular-dependent data,
# so do not initialize it with such bins
if mgxs_type != 'inverse-velocity':
mgxs.num_polar = self.num_polar
mgxs.num_azimuthal = self.num_azimuthal
mgxs = openmc.mgxs.MGXS.get_mgxs(
mgxs_type, name=self.name, num_polar=self.num_polar,
num_azimuthal=self.num_azimuthal)
mgxs.domain = domain
mgxs.domain_type = self.domain_type