Commit graph

61 commits

Author SHA1 Message Date
Paul Romano
9fee6534b6
Prepare for NumPy 2.0 (#2845) 2024-03-26 12:00:06 -04:00
Patrick Shriwise
3b575a4daa
Adding openmc.read_source_file (#2858)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-02-16 21:16:36 +00:00
Paul Romano
85c963e223
Move 'import lxml' to third-party block of imports (#2803) 2023-12-13 14:11:32 +00:00
Patrick Shriwise
e0d03812b9
Mesh Source Class (#2759)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2023-12-02 17:35:23 +00:00
Paul Romano
fa2330103d
Release of version 0.14.0 (#2754) 2023-11-06 14:50:16 -06:00
Paul Romano
94f02ae10b
Bump version to 0.14.0-dev (#2740) 2023-10-31 16:55:19 -05:00
Patrick Shriwise
eda39ad9ca
Python source class refactor (#2524)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-20 21:27:55 -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
Patrick Myers
1cb22075ef
Changed xml to lxml (#2489) 2023-05-09 10:41:04 -05:00
Patrick Shriwise
fc67b38ba4 Adding roundtrip test for mesh sampling 2023-02-03 20:11:35 -06:00
Patrick Shriwise
e873db9a07
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-01-12 23:13:09 -06:00
NybergWISC
9f6d536959 Commit including most of the sampling work in distribution_spatial.cpp and testing 2022-12-29 09:23:12 -06:00
Jonathan Shimwell
375af321d8
corrected types from code review by @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-11-01 15:49:22 +00:00
Jonathan Shimwell
3623408bc5 avoid namespace overwrite of union 2022-10-27 17:38:27 +01:00
Jonathan Shimwell
459b0f1fcf avoid union namespace overwrite 2022-10-27 16:17:49 +01:00
Jonathan Shimwell
2af754baa9 forward ref for openmc.source 2022-10-26 20:32:44 +01:00
Jonathan Shimwell
84b055e15b reordered imports to avoid circular imports 2022-10-26 20:24:23 +01:00
Jonathan Shimwell
5d177a5ace
Apply suggestions from code review by @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-10-26 20:21:06 +01:00
Jonathan Shimwell
4116f6cda0 used forwards ref to avoid circlar imports 2022-10-21 19:04:45 +01:00
Jonathan Shimwell
17a6552027 added return types 2022-10-21 18:47:07 +01:00
Jonathan Shimwell
1a7066a885 added type hints for source.py 2022-10-21 18:38:44 +01:00
Paul Romano
3e5c9d83c5 Expand source rejection to cells, materials, and universes 2022-09-26 13:25:41 -05:00
Paul Romano
aff6316642 Simple rejection based on a vector of cell IDs 2022-09-26 13:25:41 -05:00
Paul Romano
2e0472d57c Respond to @shimwell comments on #2071 2022-05-23 12:28:28 -05:00
Paul Romano
2e9560a72c Add TrackFile Python class for parsing track files 2022-05-19 13:27:33 -04:00
Olaf Schumann
759aba2e98
Update openmc/source.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-01-07 15:53:10 +01:00
Olaf Schumann
d93df33dfb Implementation of time distribution for the source 2022-01-05 21:06:09 +00:00
Paul Romano
ef61563079 Ensure time is propagated to secondary particles 2022-01-05 07:43:43 -06:00
Paul Romano
56fa60983d Add doc section on file-based sources 2021-03-17 07:34:01 -05:00
YoungHui Park
58a65222a1 Add missing changes on source.py 2021-01-18 14:36:05 -06:00
Paul Romano
490eadd864 Make sure write_source_file creates filetype attribute 2020-10-20 14:07:45 -05:00
Paul Romano
441d081dd5 Implement write_source_file function 2020-10-14 15:46:58 -05:00
Dan Short
9435020197 Update docstring
custom source -> custom source library
2020-08-28 09:38:38 +01:00
Dan Short
8bb10563c1 Pass serialization as parameter attribute
Changes the implementation of the serialization to be on an attribute of
the source XML element within settings.xml. This removes the need for a
new file containing the serialization.
Parameters are provided as a key-value string, separated by a comma and
a space, although the implementation can change this is required.
Change example values to align with existing custom_source to make
comparisons easier.
Update documentation to be consistent.
2020-08-03 14:24:17 +01:00
Dan Short
61cf4f71a9 Add a serialization attribute to Source
Adds serialization as an optional attribute to Source objects.
This attribute represents the path to the file containing the serialized
representation of the source.
2020-07-31 10:26:33 +01:00
Paul Romano
5547ecf88f Add versionadded directive for new arguments/functions in 0.12 2020-04-10 21:52:43 -05:00
Paul Romano
4943ae9307 Alphabetize import ordering (and use relative imports in a few places) 2020-04-06 15:16:09 -05:00
Paul Romano
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05:00
Paul Romano
8e8d5e0478 Documentation updates 2020-02-24 19:53:46 -06:00
Andrew Davis
991e49585f added unit test for dlopen source, and changed library variable name 2020-02-12 12:37:21 +00:00
Andrew Davis
a38a543fe3 Fix the python part 2020-02-12 12:37:21 +00:00
Andrew Davis
0545c46fa3 Added python bindngs for library based source 2020-02-12 12:37:21 +00:00
Andrew Davis
5e98373036 Fix the python part 2020-02-12 12:37:21 +00:00
Andrew Davis
9ec9fc000f Added python bindngs for library based source 2020-02-12 12:37:21 +00:00
Andrew Davis
c2ed0ddc75 Fix the python part 2020-02-12 12:37:21 +00:00
Andrew Davis
1d998984b2 Added python bindngs for library based source 2020-02-12 12:37:21 +00:00
amandalund
2f09b7ca85 Fixed some univariate/multivariate from_xml_element issues and updated unit tests 2019-05-22 19:26:15 -06:00
amandalund
489a03c648 Get value from either attribute or element when reading settings from XML 2019-04-25 20:07:53 -05:00
amandalund
8f48ecf7de Add method for generating settings from an XML file 2019-04-18 08:22:40 -05:00