Commit graph

21 commits

Author SHA1 Message Date
Joffrey Dorville
47ca2916aa
Kinetics parameters using Iterated Fission Probability (#3133)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-04-14 14:07:48 +00:00
Paul Romano
94f02ae10b
Bump version to 0.14.0-dev (#2740) 2023-10-31 16:55:19 -05:00
Christopher Fichtlscherer
e3cd406a9b
Pulse height tally for photons (#2452)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-07-09 22:50:08 -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 Shriwise
610a5d8c34
Global Weight Window Generation via CAPI (#2359)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-09 10:47:27 -05:00
Paul Romano
c123ce0fa0
New multiply_density option on tallies (#2539) 2023-06-09 08:24:00 -04:00
lewisgross1296
a8b0f1714a mistaken, dont need _get_tally_index, we call the openmc C++ api one instead 2022-08-16 14:09:05 -05:00
lewisgross1296
5b6c6667cb put _get_tally_index(self,key) back and forgot return in __getitem__ 2022-08-16 13:43:15 -05:00
Lewis Gross
209954ee2f
change back to prevent accidental infinite recursion
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-08-16 13:08:35 -05:00
lewisgross1296
15a863e645 suggestion by Paul Romano. removed need for _get_tally_index_ funciton by using python's fancy self[key] and self[key]._index capabilities 2022-08-15 15:01:34 -05:00
lewisgross1296
7fdd96a573 forgot a space for formatting requirements 2022-08-15 13:46:26 -05:00
Lewis Gross
c772972808
add space for compliant formatting
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-15 13:34:19 -05:00
lewisgross1296
d1775181e9 added deletion operator to TallyMapping class. used in tests and changed delete invalid id to access invalid id 2022-08-12 15:49:08 -05:00
Lewis Gross
74e093ae45
renamed function and forgot to update these commands
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-12 10:55:21 -05:00
lewisgross1296
21f7cda6bc changed return type to match signature change 2022-08-11 14:50:57 -05:00
lewisgross1296
9d146a3e0f added openmc_remove_tally_from_tallies to C++ API
in tally.py
2022-08-10 15:44:00 -05:00
Gavin Ridley
9483c409a8 convert all but one thing in cell.h to enums 2020-01-16 15:41:45 -05:00
Andrew Johnson
7a1a424d0f
Tally.writeable -> Tally.writable
Oops

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-09-26 20:34:11 -04:00
Andrew Johnson
66593fd7e1
Expose tally.writeable_ through openmc.lib
Add two functions to capi.h:
openmc_tally_set_writeable and openmc_tally_get_writeable
which are exposed to the Python API through the
openmc.lib.Tally.writeable property. These functions are very
similar to the set/get active counterparts as both act on a boolean
Tally attribute

A new unit test test_tally_writeable has been added that toggles
the writeable state of a tally. It is important to note that the
writeable state must be reset, otherwise tallies in subsequent
tests will be skewed. This is because the test_tally_writeable
function requires the capi_simulation_init fixture and the tallies
are shared by those functions that use the capi_run fixture
2019-09-20 10:13:26 -05:00
Paul Romano
348dd74dcc Merge branch 'develop' into local-photon-heating 2019-09-16 11:00:33 -05:00
Paul Romano
bbb0b78383 Rename openmc.capi -> openmc.lib 2019-09-13 10:38:26 -05:00
Renamed from openmc/capi/tally.py (Browse further)