Commit graph

365 commits

Author SHA1 Message Date
Eden
e783e01471
Add chain parameter to Material.get_activity for half-life data (#3957)
Some checks failed
Tests and Coverage / filter-changes (push) Has been cancelled
dockerhub-publish-develop / main (push) Has been cancelled
dockerhub-publish-develop-dagmc-libmesh / main (push) Has been cancelled
dockerhub-publish-develop-dagmc / main (push) Has been cancelled
dockerhub-publish-develop-libmesh / main (push) Has been cancelled
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Has been cancelled
Tests and Coverage / coverage (push) Has been cancelled
Tests and Coverage / Check CI status (push) Has been cancelled
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-07-11 06:18:26 +00:00
Hridoy Kabiraj
3c7a030d43
Guard average molar mass and validate materials depletion inputs (#3941) 2026-05-20 13:49:00 -05:00
Hridoy Kabiraj
195dff6d1d
Fix missing volume checks in material activity/decay heat (#3939) 2026-05-18 09:20:59 -05:00
Jonathan Shimwell
9ff50499e1
Adding per m3 to material functions (#3912)
Co-authored-by: Jon Shimwell <jon@proximafusion.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-04-03 00:00:02 +00:00
Marco De Pietri
53d98ce71a
Add method on Material for computing photon contact dose rate (#3700)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-03-03 15:48:56 +00:00
Jonathan Shimwell
a9dc84f75a
Allowing material making from class constructor (#3649)
Co-authored-by: Jon Shimwell <jon@proximafusion.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-12-08 19:43:30 +00:00
Perry
2d8e006c3d
Enable nuclide filters with get_decay_photon_energy (#3614)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-11-03 11:10:30 -06:00
Rémi Delaporte-Mathurin
c5a7173864
Avoid duplicate materials written to XML (#3536)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-08-18 14:34:12 +00:00
GuySten
a11021cd07
Consistent XML parsing using functions from _xml module (#3517)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-08-08 17:47:55 +00:00
GuySten
4500f07b44
Remove reorder_attributes from openmc._xml (#3519) 2025-08-08 16:59:22 +07:00
Jonathan Shimwell
8be65513b7
Adding material depletion function (#3420)
Co-authored-by: Jon Shimwell <jon@proximafusion.com>
Co-authored-by: Micah Gale <mgale@fastmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-07-18 14:37:57 +00:00
Jonathan Shimwell
5c10214465
added openmc.Material.mean_free_path function (#3469) 2025-06-25 20:29:45 -05:00
Paul Romano
4138bc34e0
Add option to determine waste disposal rating by nuclide (#3376) 2025-05-02 20:07:43 -04:00
Paul Romano
c1a4d43da8
Add methods on Material class for waste disposal rating / classification (#3366)
Co-authored-by: Ethan Peterson <eepeterson3@gmail.com>
2025-04-11 23:43:27 +00:00
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