Commit graph

366 commits

Author SHA1 Message Date
Paul Romano
bbe39dbc1b Added some missing versionadded directives 2023-01-13 13:41:00 +07:00
Paul Romano
606457a1f0 A few style fixes in material.py 2023-01-13 13:36:51 +07:00
Paul Romano
c4227f7dc1 Change Material.from_ncrystal to accept kwargs 2023-01-10 17:20:14 +07:00
Paul Romano
b6d6bdf3f5 Merge branch 'develop' into mixed_ncrystal_pr 2023-01-09 13:13:14 +07:00
Patrick Shriwise
145594ebb8
Apply @paulromano suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-12-12 20:23:49 -06:00
Thomas Kittelmann
f2c28706a6
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-12-07 10:12:23 +01:00
Patrick Shriwise
6f7a6febd3 Updating model XML file format w/ indentation. 2022-12-06 13:03:38 -06:00
Patrick Shriwise
9391f17cff Adding import for single or multiple XMLs 2022-12-06 13:03:38 -06:00
Patrick Shriwise
a09a61e77b Writing all output under a single root node 2022-12-06 13:03:38 -06:00
Patrick Shriwise
ad746cb3e1 Writing all main nodes to a single XML file 2022-12-06 13:03:38 -06:00
jiankai-yu
a17fe6cc82
Add decay heat function in material (#2287)
* add decay heat in material.py

* add decay_energy.json into eggs

* fix a bug when returned decay_ery is None

* add unit test for decayheat

* fix typo in doc string

* address reviewer's comments

* add user defined decay energy

* remove json for decay energy

* address a few comments

* add to docs
2022-11-17 22:57:01 -06:00
Jonathan Shimwell
3623408bc5 avoid namespace overwrite of union 2022-10-27 17:38:27 +01:00
Paul Romano
53b6d8ab11 Change 0.14.0 --> 0.13.2 2022-10-21 07:08:52 -05:00
Paul Romano
a0e5ba4418 Add 0.13.2 release notes 2022-10-21 07:08:49 -05:00
Thomas Kittelmann
a5b811ec89 Use new NCrystal getFlattenedComposition method to better support more complicated materials 2022-10-21 10:40:30 +02:00
Jose Ignacio Marquez Damian
2e19260dea Implement recommended changes 2022-10-21 10:40:30 +02:00
Thomas Kittelmann
0f33e0b11c Add temporary requirement of natural elements in NCrystal materials 2022-10-21 10:40:30 +02:00
Jose Ignacio Marquez Damian
0e0cd0a22d Added hooks for NCrystal 2022-10-21 10:40:30 +02:00
Paul Romano
fe04a839c2 Make sure Material.decay_photon_energy works with no unstable nuclides 2022-10-05 14:28:18 -05:00
Paul Romano
10abbe910a Clarify probability units for decay_photon_energy 2022-09-28 13:25:00 -05:00
Paul Romano
7815a5e02d Address @shimwell comments on #2234 2022-09-28 09:31:12 -05:00
Paul Romano
ce1abc5350 Documentation updates 2022-09-26 12:58:54 -05:00
Paul Romano
a917fd94c1 Add decay_photon_source property on Material 2022-09-26 12:58:53 -05:00
Paul Romano
225e40db0c Add mg_cross_sections to openmc.config 2022-09-07 16:46:10 -05:00
Paul Romano
a074e0a5cf Use openmc.config['cross_sections'] instead of OPENMC_CROSS_SECTIONS 2022-09-07 16:46:10 -05:00
Paul Romano
aea5628819
Merge pull request #2207 from shimwell/type_hinting_for_results
type hints added to openmc.deplete.Results
2022-09-07 16:45:38 -05:00
Paul Romano
b779141b57
Merge pull request #2205 from yardasol/add_components_metastable_fix
Fix errorneous behavior when adding metastable nuclides via `add_components`
2022-09-07 16:45:06 -05:00
Olek
e34f786c6f
str->component in flow control
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-09-07 11:52:06 -05:00
Jonathan Shimwell
225dc5c43c create PathLike type for hints 2022-09-06 17:22:31 +01:00
Olek
2d01241b53
Cleanup flow control for detecting nuclides
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-09-01 14:33:44 -05:00
yardasol
0214b22036 fix errorneous behavior when adding metastable nuclides via add_components 2022-09-01 11:52:21 -05:00
shimwell
b857fbd261 appending to list if not in list 2022-08-29 18:10:52 +01:00
shimwell
5f1b05f5fa added element filter to get_nuclide 2022-08-29 17:01:34 +01:00
Jonathan Shimwell
cacf279fc8 moved parameters below 0.13.1 directive 2022-08-25 15:13:24 +01:00
Jonathan Shimwell
474f0742ba
[skip ci] suggestion from review by @Paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-25 15:10:45 +01:00
Jonathan Shimwell
2a71a244d9 if statement no longer needed 2022-08-23 16:44:56 +01:00
Jonathan Shimwell
6171e09ed3 improved test fixed sum bug 2022-08-23 16:42:22 +01:00
Jonathan Shimwell
085125ef86 added optional nuclide to atom densities 2022-08-23 16:30:53 +01:00
Paul Romano
02f1815299 Add missing versionadded directives 2022-08-15 13:20:59 -05:00
Paul Romano
c5d47a0918
Merge pull request #2142 from shimwell/adding_specific_activity
added specific_activity to openmc.Material
2022-08-09 06:35:43 -05:00
Jonathan Shimwell
5d5bc53a15
Fixing the activity tests @eepeterson
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-08 20:46:57 +01:00
Ethan Peterson
3271c08d22
Apply suggestions from @paulromano code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-08 11:34:10 -04:00
Jonathan Shimwell
63b517aebc
updated tests to use units args by @eepeterson
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-08 14:52:35 +01:00
Jonathan Shimwell
a94fb43418 review comments from @paulromano 2022-08-08 14:00:25 +01:00
Ethan Peterson
39eaf9d887
Apply suggestions from code review
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2022-08-04 16:50:18 -04:00
Jonathan Shimwell
c036403c98
simpler if else statement for normalization
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-08-04 14:55:45 +01:00
Jonathan Shimwell
c900e4784e
Corrections to activity calcs
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 07:55:35 +01:00
Olek
15f66ed50a
Minor styling fix in Material.py
change `E` to `e` for scientific notation.
2022-08-03 17:46:26 -05:00
shimwell
98c707ea07 refactor activities to single method 2022-08-03 22:46:50 +01:00
Jonathan Shimwell
98c287b83a volume not needed when finding specific activity 2022-08-02 17:24:48 +01:00