Commit graph

338 commits

Author SHA1 Message Date
Paul Romano
bf33a9e11b
Add openmc_mesh_get_volumes C API function (#2869) 2024-02-13 06:44:05 -06:00
yrrepy
63916067ee
Use huge_tree=True in lxml parsing (#2791)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-01-17 06:54:03 +00:00
Paul Romano
85c963e223
Move 'import lxml' to third-party block of imports (#2803) 2023-12-13 14:11:32 +00:00
Paul Romano
94f02ae10b
Bump version to 0.14.0-dev (#2740) 2023-10-31 16:55:19 -05:00
Paul Romano
02bd680965
Fix type hint in Materials class (#2745) 2023-10-30 07:29:28 -05:00
Paul Romano
61c43527e6
Clip low-importance points from discrete distributions (#2715)
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2023-09-29 21:13:19 -04:00
Olek
bbd7756930
Allow decay only nuclides to be specified in Material for a depletion simulation (#2616)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-09-14 01:00:52 +00:00
Jonathan Shimwell
457bea6f0b
replaced ordereddict with {} (#2641)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-19 12:15:11 +00:00
Josh May
471caa5810
Set cross_sections for element expansion in Material.add_element() (#2633)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-19 05:20:00 +00:00
Jonathan Shimwell
1d29adc080
added missing Depletable to __repr__ (#2639) 2023-08-12 11:15:27 -05:00
Nicola Rizzi
3e1a5a552a
Support for NCrystal material in from_xml_element (#2496)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-07-09 23:51:43 -05:00
Jonathan Shimwell
ee7b95245a
Static errors continuation (#2557)
Co-authored-by: Christina Cai <chrsitinacai48933@gmail.com>
Co-authored-by: christinacai123 <63215816+christinacai123@users.noreply.github.com>
2023-06-16 22:34:02 -05:00
Patrick Myers
1cb22075ef
Changed xml to lxml (#2489) 2023-05-09 10:41:04 -05:00
Christina Cai
92e2a9e3b7 Merge branch 'typehint_material_return' of https://github.com/youngwki/openmc into typehint_material_return 2023-04-18 13:51:50 -04:00
Christina Cai
dd9f03abd2 trivial change for CI 2023-04-18 13:49:36 -04:00
christinacai123
8819b5c1c4
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-04-15 16:12:38 -04:00
Christina Cai
5fc51209ce added return types for material.py 2023-04-12 15:21:49 -04:00
Paul Romano
3e6441a0d9 Address @shimwell comments on #2412 2023-03-16 09:45:29 -05:00
Paul Romano
c1232a83e0 Add volume arguments on several methods in Material class 2023-03-03 15:08:17 -06:00
Jonathan Shimwell
0d84c53818
review improvment, refactor to single line
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-02-24 22:05:00 +00:00
Jonathan Shimwell
7becabcde4
cm^3 instead of cm3 2023-02-23 21:16:52 +00:00
Jonathan Shimwell
0d4227fa1f added volume information to material repr 2023-02-07 12:26:11 +00:00
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