Stefano Segantin
e12c65dff9
openmc.Material.mix_materials() allows for **kwargs ( #3336 )
2025-03-06 07:44:10 -06:00
Thomas Kittelmann
ced8929128
NCrystal becomes runtime rather than buildtime dependency ( #3328 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-03-05 15:45:27 -06:00
Jonathan Shimwell
c26fde6665
Adding per kg as unit option on material functions ( #3329 )
...
Co-authored-by: Jon Shimwell <jon@proximafusion.com>
2025-02-28 08:00:40 -06:00
Paul Romano
d643ad0c41
Simulation of decay photons through the D1S method ( #3235 )
...
D1S FTW!
2025-02-21 12:47:38 -05:00
Skywalker
27f3afefa4
Fix the bug in the Material.from_xml_element function ( #3278 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-01-28 07:57:27 +00:00
Rayan HADDAD
9c9a13c48e
enable polymorphisme for mix_materials ( #3180 )
...
Co-authored-by: r.haddad <r.haddad@naarea.fr>
2024-10-28 11:28:59 -05:00
Paul Romano
04ecf54907
Improve clipping of Mixture distributions ( #3154 )
...
Co-authored-by: Ethan Peterson <eepeterson3@gmail.com>
2024-10-11 07:13:10 -04:00
Paul Romano
b4a796e9b4
Avoid writing subnormal nuclide densities to XML ( #3144 )
2024-10-10 13:39:16 -05:00
Paul Romano
579777a3e5
Consistency in treatment of paths for files specified within the Model class ( #3153 )
2024-10-10 12:17:40 -05:00
Jonathan Shimwell
1a520c9f4d
Adding material.get_element_atom_densities ( #3103 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-10-04 01:37:51 +00:00
John Vincent Cauilan
4c0e08bae8
Replace all deprecated Python typing imports and syntax with updated forms ( #3085 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-07-18 17:40:42 +00:00
John Vincent Cauilan
e74dc5037e
Enforce non-negative percents for material.add_nuclide to prevent unintended ao/wo flipping ( #3075 )
2024-07-08 16:29:49 -05:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing ( #2987 )
2024-04-29 16:45:37 -05:00
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