Commit graph

88 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
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
GuySten
04bee9c49f
Check that Surface IDs are at least 1 (#3772)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-02-06 18:44:16 +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
GuySten
ef22558f4a
fix a bug in borated_water temperature assignment (#3662) 2025-11-29 16:28:18 +01:00
GuySten
5e3249f006
fix tests that accidentaly got broken (#3543) 2025-08-21 21:13:50 +00: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
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
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
b4a796e9b4
Avoid writing subnormal nuclide densities to XML (#3144) 2024-10-10 13:39:16 -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
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
Paul Romano
c1232a83e0 Add volume arguments on several methods in Material class 2023-03-03 15:08:17 -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
Paul Romano
fe04a839c2 Make sure Material.decay_photon_energy works with no unstable nuclides 2022-10-05 14:28:18 -05:00
Paul Romano
7815a5e02d Address @shimwell comments on #2234 2022-09-28 09:31:12 -05:00
Paul Romano
95d182b73f Add tests for decay photon source 2022-09-26 12:58:54 -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
85c5c791d6
Cleanup flow control for detecting nuclides
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-09-01 14:33:24 -05:00
yardasol
0214b22036 fix errorneous behavior when adding metastable nuclides via add_components 2022-09-01 11:52:21 -05:00
shimwell
5a0884e9de corrected get nuclide tests 2022-08-29 22:41:07 +01:00
shimwell
5f1b05f5fa added element filter to get_nuclide 2022-08-29 17:01:34 +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
08f026496b
[skip ci] removed blank line pep8 2022-08-23 23:20:59 +01:00
Jonathan Shimwell
1e55089e9d
[skip ci] removed print statement 2022-08-23 23:20:18 +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
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
shimwell
496dda717c removed missing bracket 2022-08-04 23:59:51 +01:00
Jonathan Shimwell
75d82a7df7
reverting to pytest.approx
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 23:43:42 +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
152a149488
density set to 1.5 to test different activities scaling
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 16:15:12 +01:00
Jonathan Shimwell
a30f9b88fd combined activity unit tests as suggested @eepeterson 2022-08-04 15:49:11 +01:00
Jonathan Shimwell
8164f309e9 added pre volume attribute tests for stable nuclide 2022-08-04 15:37:01 +01:00
Jonathan Shimwell
e4d54d49a8 moved volume lower 2022-08-04 09:39:14 +01:00
shimwell
98c707ea07 refactor activities to single method 2022-08-03 22:46:50 +01:00
Jonathan Shimwell
742311fd1b
[skip ci] fixed typo 2022-08-02 17:37:17 +01:00
Jonathan Shimwell
98c287b83a volume not needed when finding specific activity 2022-08-02 17:24:48 +01:00
Jonathan Shimwell
064426a05f added specific_activity 2022-08-02 13:17:33 +01:00
yardasol
effc35b8ee add_elements_or_nuclides -> add_components
- changed the assumptions the function makes about the 'components'
  parameter
- added 'percent_type' parameter
- passed changes to unit test
2022-07-29 18:28:08 -05:00
yardasol
623658870d merged add_nuclides and add_elements into one function 2022-07-28 11:00:48 -05:00
yardasol
b3d0f20a00 added add_nuclides method 2022-07-27 13:15:10 -05:00
Paul Romano
7fcc204726 Implement Material.get_nuclide_atoms method 2022-06-27 22:42:12 -05:00
Paul Romano
a4f98b489c Change values in dict returned by Material.get_nuclide_atom_densities 2022-06-27 22:36:36 -05:00
Paul Romano
cdf710ad37
Merge pull request #2089 from shimwell/adding_remove_element
Adding remove element method to material class
2022-06-27 22:07:58 -05:00