Commit graph

88 commits

Author SHA1 Message Date
Jonathan Shimwell
270ef8346c added metastable activity test 2022-06-22 23:18:14 +01:00
Jonathan Shimwell
839c0fe81b refined remove element 2022-06-22 08:32:37 +01:00
Jonathan Shimwell
9b36424e16 added remove element to material 2022-06-22 08:19:00 +01:00
Jonathan Shimwell
acd6c567c3 added test for remove eleemnt 2022-06-21 14:19:45 +00:00
Jonathan Shimwell
e5e1daf23f
[skip ci] removed diagnostic prints 2022-06-09 15:02:10 +01:00
Jonathan Shimwell
1234e0b17c review suggestions from @PaulRomano 2022-06-09 14:59:28 +01:00
Jonathan Shimwell
90ff8fcb4a added checks and tests for cases in add_element 2021-05-19 13:31:45 +01:00
Andrew Johnson
b7871bdc85
Merge pull request #1534 from billingsley-john/feature_add_get_elements
added get_elements function and tests
2020-03-26 17:36:06 -04:00
billingsley-john
08849c3fad
removed further check for specific entry
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
2020-03-26 14:33:44 +00:00
billingsley-john
a48f679b4e
removed checks for length and specific entries
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
2020-03-26 14:04:53 +00:00
billingsley-john
1c3373ce61
Sorted returned element list and updated tests
Returned element list is now sorted alphabetically.
Tests updated to check list elements instead of list length.

Co-Authored-By: Jonathan Shimwell <jonathan.shimwell@ukaea.uk>
2020-03-26 12:59:12 +00:00
billingsley-john
ed36017015 added get_elements function and tests 2020-03-26 10:22:56 +00:00
Paul Romano
e7f4413415 Merge branch 'develop' into pullrequestinc-part2 2020-03-25 14:48:28 -05:00
=shimwell
c013f63730 pep8 format applied to imports 2020-03-25 15:03:39 +00:00
Jonathan Shimwell
4234fe45e7
Apply suggestions from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-25 14:58:02 +00:00
Paul Romano
86351747e7 Ensure remove_nuclide removes all matching nuclides. Closes #1532 2020-03-25 09:37:00 -05:00
=shimwell
ffa0cfc03e added tests for number of elements 2020-03-24 13:33:42 +00:00
=shimwell
5fe6576a9c added test to check decimal values fail 2020-03-24 11:57:17 +00:00
=shimwell
8ba369d6cc added elements from formula 2020-03-23 20:15:59 +00:00
Paul Romano
3fc25be950
Merge pull request #1503 from Mikolaj-A-Kowalski/develop
Enrichment of 2-Isotope Elements
2020-03-04 07:38:24 -06:00
Paul Cosgrove
abd8175a15 Changes to be consistent with PEP8 style 2020-02-28 12:36:57 +00:00
Paul Cosgrove
dce773dd14 Added simple test for adding elements by name 2020-02-25 12:34:56 +00:00
Mikolaj Adam Kowalski
d5f9a962e5 Adds general element enrichment to Material
Adds an option to specify an enrichment of an element composed of two
isotopes to Material.add_element
2020-02-14 18:55:50 +00:00
Ethan Peterson
8afa5ded10 Adding mix_materials method to Material class 2020-01-22 19:53:45 -05:00
Andrew Johnson
ff13e98a09
Read in material temperatures from xml subelement
Closes #1280 by reading the temperature from an xml
subelement as it is written, not an attribute.

Added loading of temperature and volume material attributes
from xml in unit test
2019-07-05 14:44:21 -05:00
Paul Romano
3246a9320e Remove option to specify multipole library outside of cross_sections.xml 2018-11-12 13:35:29 -06:00
Paul Romano
c5632794de Add tests for from_xml methods 2018-08-17 12:02:05 -05:00
Paul Romano
0508274a3d Add useful warnings for add_nuclide/add_element 2018-03-15 11:02:07 -05:00
Paul Romano
7622a1a394 Add methods on Material to get mass (if volume specified) 2018-02-22 16:00:32 -06:00
Sterling Harper
d34bdf9b98 Address #967 comments 2018-02-11 18:39:06 -05:00
Sterling Harper
9c53c085d6 Change boric_acid to borated_water; add more units 2018-02-11 15:01:51 -05:00
Sterling Harper
a06190ee40 Add convenience function for boric acid Materials 2018-02-10 02:23:50 -05:00
Paul Romano
347243876f Combine volume calculations into a single unit test 2018-02-05 07:35:48 -06:00
Paul Romano
bf8c556b5a Unit tests for openmc.Cell 2018-02-05 07:35:48 -06:00
Paul Romano
f6fc24c808 Add unit tests for plots 2018-02-05 07:35:48 -06:00
Paul Romano
1432742fbf More tests for material 2018-02-05 07:35:18 -06:00
Paul Romano
b81cbc29fb Add test for Material.add_volume_information 2018-02-05 07:35:18 -06:00
Paul Romano
894ec54ad7 Add unit tests for material classes 2018-02-05 07:35:18 -06:00