Commit graph

65 commits

Author SHA1 Message Date
amandalund
c912cdce70 Merge branch 'develop' into photon-new 2018-06-28 16:19:54 -05:00
Paul Romano
4dade28630 Start adding support for reading photon data from ACE files 2018-03-15 11:07:37 -05:00
Paul Romano
dca39f87e2 Use gnd_name in _get_metadata 2018-03-15 11:02:07 -05:00
Paul Romano
460452d4f7 Merge branch 'develop' into photon-alund 2018-03-11 13:10:00 -05:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
1ccf6c3e5e Use tempfile.TemporaryDirectory() 2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
e94dd55b31 More unit tests for openmc.data and a few small fixes 2018-01-09 06:22:55 -06:00
Paul Romano
4e9ee6c2e2 Start adding unit tests for openmc.data 2018-01-09 06:22:55 -06:00
Sterling Harper
0460d9a538 Allow optional 'latest' libver for HDF5 xs data 2017-12-17 19:48:08 -05:00
Sterling Harper
f754357aea Use 'earliest' libver in h5py for backwards-compat 2017-12-16 19:56:34 -05:00
Paul Romano
970fc566a8 Merge branch 'develop' into photon-new 2017-11-11 14:28:38 -06:00
liangjg
8bb990b65a remove the argument "error" out of "from_njoy" function 2017-07-31 21:51:11 -04:00
liangjg
7988bad6da made error tolerance a parameter for generating data from njoy 2017-07-28 12:00:27 -04:00
liangjg
35d24a955d skip adding 0K elastic xs if it already exists 2017-07-28 10:08:37 -04:00
Paul Romano
2622489b3b Read photon cross sections at XML-read time, support particle type in source 2017-06-29 10:31:49 -05:00
Paul Romano
7d3ce61717 Ability to generate incident photon library with photoatomic, atomic relaxation,
and Compton profile data.
2017-06-29 09:59:08 -05:00
Paul Romano
1e315e7af3 Fix adding fission energy release 2017-04-28 06:42:29 -05:00
Paul Romano
31e5a9e081 Fix saving pendf in make_ace 2017-04-28 06:42:29 -05:00
Paul Romano
09ce720dc1 Add ThermalScattering.from_njoy 2017-04-28 06:42:26 -05:00
Paul Romano
d01f9d5576 Add initial version of IncidentNeutron.from_njoy 2017-04-26 14:59:58 -05:00
Paul Romano
a76d46de18 Adopt Fudge method for reconstructing resonances 2017-03-30 10:08:47 -05:00
Paul Romano
f15f740abf Make sure all energies are positive when reconstructing resonances
Apparently E_peak - gamma/2 can go negative (e.g. U235)
2017-03-27 22:37:18 -05:00
Paul Romano
f49e0f9cf1 When reconstructing resonances, add energies at half-height 2017-03-24 14:53:25 -05:00
Paul Romano
8c7ca7afea Use resonance energies when performing reconstruction for 0 K elastic 2017-03-22 09:38:15 -05:00
Paul Romano
24c00acad4 Allow 0K elastic scattering to be added to IncidentNeutron from ENDF files 2017-03-21 14:40:51 -05:00
Adam Nelson
20ce145e36 Read in total_nu as a derived product for MT=18 if it only exists as summed, and more correctly treated yields 2016-11-21 20:30:54 -05:00
Paul Romano
89a7857c1a Add version information to nuclear data format. 2016-10-31 15:37:49 -05:00
Paul Romano
6da9f16d29 Convert ACE data from MeV to eV 2016-10-31 14:46:47 -05:00
Paul Romano
7e2d171803 Merge branch 'develop' into scopatz-six 2016-10-13 06:09:10 -05:00
Paul Romano
6976960d17 Disallow export_to_hdf5() when data came from ENDF 2016-10-11 14:28:58 -05:00
Paul Romano
5a126d086e Use six.string_types instead of basestring 2016-10-06 21:55:12 -05:00
Paul Romano
dfcb4bc935 Merge branch 'develop' into pyapi-data-endf 2016-09-28 06:28:50 -05:00
Paul Romano
f08550f5ed Handle reconstruction for multiple resolved ranges (Pu239 in ENDF/B-VII.1) 2016-09-21 14:32:08 -05:00
Paul Romano
3a021a2438 When adding temperature data, give warning instead of error if MT not present. 2016-09-20 11:35:29 -05:00
Paul Romano
cbcd3a7f57 Extend openmc.data to be able to import ENDF data and perform resonance
reconstruction.
2016-09-16 01:55:07 +02:00
Sam Shaner
157f1fd484 added fix to IncidentNeutron.from_hdf5() for Python 2 2016-09-15 12:33:20 -04:00
Adam Nelson
bed0b4487e Fixed docstring and unused variable issues pointed out by @smharper 2016-09-06 19:16:05 -04:00
Adam Nelson
c4744ec638 Fixed He4 and H3 issue where temperatures were not being added. This was due to an issue where when the different temperatures were reading the absorption xs from ACE, it was being stored even if it was a 0. array. At the same time, the base h5 file was read by from_hdf5 which never had the derived absorption xs created for these nuclides 2016-09-02 17:12:43 -04:00
Paul Romano
a95266ab22 Major refactor to include cross sections at multiple temperatures within the
Nuclide and SAlphaData derived types.
2016-08-31 10:13:38 -05:00
Paul Romano
19c8a1159d Make probability tables temperature-dependent 2016-08-25 20:51:30 -05:00
Paul Romano
68625ca314 Improve storage of temperature-dependent cross sections.
- Got rid of XS class
- Renamed Reaction.T_data to Reaction.xs
- Got rid of Reaction.add_temperature()
- Simplified IncidentNeutron.add_temperature_from_ace()
2016-08-25 20:51:30 -05:00
Adam Nelson
0351ed96f0 resolving first round of @paulromano comments 2016-08-24 19:57:16 -04:00
Adam Nelson
07d62fc9ae Fixed a bug in reading kTs from HDF5 library on the python side 2016-08-24 05:26:42 -04:00
Adam Nelson
8fbd41eaf4 Seem to be able to read the new hdf5 files and run at least an example problem (!!!!) 2016-08-21 13:43:07 -04:00
Adam Nelson
63b3c6dbd0 Updated openmc-ace-to-hdf5 to generate the libraries for us and fixed bugs as found when developing that script. Also updated the Format description in nuclear_data.rst 2016-08-21 11:37:39 -04:00
Adam Nelson
3b65dde0fd Folded multiple temperatures in to each h5 data file; now im getting 50% less storage required of endf70. yay! Next I think I can get rid of some s(a,b) information, will investigate that and then on to revising openMC so it can read and use this data 2016-08-21 06:05:19 -04:00
Adam Nelson
6403216911 Renamed Equality to EqualityMixin 2016-08-19 06:58:17 -04:00
Adam Nelson
f2fc06d960 Replaced prior __eq__ classes with the equality mixin 2016-08-17 05:15:57 -04:00
Sterling Harper
88ce91502c Merge remote-tracking branch 'upstream/develop' into poly_and_fission_q 2016-08-10 12:09:30 -05:00