Added DiffusionCoefficient class to mgxs.py

To continue in the effort of merging Sam Shaner's transient capability,
this next PR adds the class DiffusionCoefficient to mgxs.py. It uses
the TransportXS class, but has some unique features in get_condensed_xs()
requiring its own function. There won't be any other MGXS classes added
after this.

I updated the docstrings and the appropriate regression tests.
Since my system outputs different formatting for the
mgxs_library_distribcell test, it is possible this test will continue
to fail. However, I did my best to modify it by hand so that it will pass.
This commit is contained in:
Miriam 2020-09-23 16:35:22 +00:00
parent 68361b50ab
commit c50306904b
14 changed files with 1580 additions and 1005 deletions

View file

@ -34,6 +34,7 @@ Multi-group Cross Sections
openmc.mgxs.CaptureXS
openmc.mgxs.Chi
openmc.mgxs.Current
openmc.mgxs.DiffusionCoefficient
openmc.mgxs.FissionXS
openmc.mgxs.InverseVelocity
openmc.mgxs.KappaFissionXS