mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Enabled inverse-velocities to use polar/azimuthal angles consistent with the actual coding
This commit is contained in:
parent
d4c7a9cdda
commit
ac57f5004d
2 changed files with 6 additions and 8 deletions
|
|
@ -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/**
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue