hugo-barthod
2dd5322fee
Fix undefined variable in openmc.mgxs.library (scatt_mgxs) ( #3943 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-05-30 05:35:31 +00:00
Kevin Sawatzky
4f4930b633
Temperature feedback support in the random ray solver. ( #3737 )
2026-02-09 16:54:59 -06:00
Paul Romano
5c63e0df21
Fix a few warnings, rename add_to_tallies_file ( #3639 )
2025-11-18 17:57:12 -06:00
Makarand More
a74c1424a8
Update check_type calls to accept both str and os.PathLike objects. ( #3618 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-10-28 14:50:11 +00:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing ( #2987 )
2024-04-29 16:45:37 -05: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
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
guyshtot
00657ccf87
Update openmc/mgxs/library.py
...
apply CR suggestion
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-03-25 13:50:06 +03:00
guyshtot
a704ec73f2
Applied CR suggestion
2023-03-23 13:12:36 +02:00
guyshtot
354fd34c2c
Renamed previous use of _nuclides to _atomic_weight_ratios in the library class
2023-03-21 14:59:01 +02:00
guyshtot
487f02dd1d
Add option to specify nuclides in the Library class
2023-03-21 13:18:24 +02:00
Paul Romano
45a6b31c8f
Change StatePoint.k_combined -> keff, ResultsList.get_eigenvalue -> get_keff
2022-05-02 12:09:43 -05:00
agnelson
a9ebadaecc
Fixing comments per the review by @paulromano
2020-11-09 15:59:23 -06:00
Adam Nelson
d2c00b4f1b
Added tests and fixed code accordingly
2020-10-22 14:13:32 -05:00
Adam Nelson
6f4da06580
Added ability to handle ArbitraryMatrixXS types (i.e., we can now create (n,3n) energy transition matrices). This is in addition to the previous commit's incorporation of the same for vector MGXS with the ArbitraryXS type. Also gave the user the ability to request that a domain's macroscopic Chi values be used for all isotopes in a domain. This is important because some codes do not create macroscopic Chi's with flux-weighting of the group-wise fission source, they instead assume a constant group-wise flux. This leads to errors downstream with microscopic MGXS in codes like OpenMC's MG mode and even heavily used production codes like DIF3D.
2020-10-22 09:51:14 -05:00
Miriam
7dc641bb88
Fixed typo from last pull request
...
Very sorry for missing this in my last PR. Since there isn't a test for create_mg_mode with
these delayed mgxs types, it's not super easy to catch these errors.
2020-09-15 22:39:13 +00:00
Miriam
327bca1b6c
Changed name "decay rate" to "decay-rate" to avoid seg faults
...
I added decay-rate to get_xsdata since it was missing.
However, set_decay_rate_mgxs sets it as "decay rate".
That space in the name seems to cause some errors, akin to seg faults.
By replacing that name with "decay-rate", create_mg_mode could run smoothly.
2020-08-28 17:42:15 +00:00
Miriam
0dd1448a56
Replaced cell fix with a UserWarning in create_mg_mode
...
Since lattice or universe cells should still be able to have mgxs generated,
I repealed the requirement for the cell to be filled by a material.
Instead, if a non-material filled cell is used in the library domain,
a UserWarning warns the user not to include a consistuent cell along with
that lattice/universe cell.
2020-08-25 21:40:30 +00:00
Miriam
3aff054f38
Fixed error in warning message
...
Previously, the warning message for setting a legendre order greater than 0
mistakenly said "order 0 is greater than zero" because the wrong
legendre order was referenced. With the fix, the correct variable is
referenced, and the warning is now correct. E.g "order 3 is greater
than zero"
2020-08-25 03:34:25 +00:00
Miriam
a2134ffa10
Clearly a typo: beta pointed to 'nu-fission' instead of 'beta'
...
Fixed so it now points to 'beta'
I also noticed there seems to be no test to cover delayed mgxs library
2020-08-25 03:18:34 +00:00
Miriam
f76c58f62e
Create compatability with lattice cells
...
Previously, create_mg_mode assigned a new material to all cells in the geometry.
However, in certain cases, cells are filled with a lattice instead of a material.
Therefore, checking if a cell if filled with a material determines whether it is
appropriate to assign it a new multi group material or not.
2020-08-25 03:08:44 +00:00
Adam Nelson
010ab4c051
removed an import pdb :-(
2020-05-07 09:08:25 -05:00
Adam Nelson
4305ccf5ce
Additional fix: openmc.mgxs.Library was appending nuclide name to a cross section data set twice when creating the XsData object for the MGXSLibrary class
2020-05-07 09:01:40 -05:00
Adam Nelson
1a4304c78a
Made modifications to 1) fix min data temperature and max data temperature printing, and 2) to allow openmc.mgxs.Library to tally over Cells which contaon universes instead of only allowing for cells that contain materials.
2020-05-07 07:15:19 -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
5d07976924
Changes in mgxs/library.py from PullRequest Inc. review
2020-04-01 09:22:56 -05:00
Paul Romano
e34a71b448
Remove unused imports across entire Python API
2020-03-31 18:11:31 -05:00
Paul Romano
cf6b67c05d
Remove explicit inheritance from object for Python classes
2020-03-23 12:12:31 -05:00
guillaume
a50a342f27
Add MGMC loading of regular transport cross sections
2019-12-16 17:38:29 -05:00
guillaume
d9195b93f8
Address @nelsonag 's review
2019-12-16 17:35:19 -05:00
guillaume
80dc996717
Check for multiplicity matrix tallies in routine meant to check libraries for MGMC library creation
2019-12-14 21:27:41 -05:00
guillaume
e97a69069e
Handle case where user forgot to tally multiplicities or nu-scatter more gracefully
2019-12-14 21:17:00 -05:00
Patrick Shriwise
a51108ba42
Remove un-needed indexing of nuclide value.
2019-10-23 16:33:18 -05:00
Sterling Harper
9ddd8b3067
Change Python Mesh class to RegularMesh
2019-06-07 08:51:09 -04:00
Adam G Nelson
1d2ebb71f8
Implemented Expansion filters in to the MGXS classes and removed the old score-based expansions
2018-04-27 19:45:38 -04:00
Paul Romano
8487915f2a
Use ufloat for k_combined in statepoint
2018-03-15 11:02:07 -05:00
Paul Romano
d3d6dc87dc
Remove a few more __future__ imports. Use collections.abc
2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667
Remove __future__ and six imports
2018-02-05 23:14:30 -05:00
Sterling Harper
0460d9a538
Allow optional 'latest' libver for HDF5 xs data
2017-12-17 19:48:08 -05:00
Sterling Harper
f754357aea
Use 'earliest' libver in h5py for backwards-compat
2017-12-16 19:56:34 -05:00
Paul Romano
02b8f4ec09
Change names of openmc.capi classes. Hopefully fix RTD docs build.
2017-10-05 10:52:29 -05:00
Will Boyd
0c3e586dd2
Tally merging now consolidates moment scores
2017-03-08 14:23:49 -05:00
Will Boyd
1080213912
Fixed bug with old reference to k-eigenvalue mode in MGXS Library
2017-02-27 18:46:20 -05:00
Adam Nelson
fc3df18eab
Added an openmc.run mode (summary, which just shows the timing and summary results; fixed the generation of cells from a mesh (incorrect ordering of universes in the lattice), xs_shapes for delayed groups had wrong ordering (fixed) in openmc.MGXSLibrary and openmc.Plotter, fixed error in multi-group plots which only plotted one group not all, fixed issue with setting max order to 0 for Legendre scattering (not legendre converted to tabular w/in OpenMC, the default), removed superfluous xs assignments in MG mode which only slowed things down
2017-02-25 08:17:10 -05:00
Paul Romano
e40c89b34f
Address a few more @wbinventor comments. Fix Jupyter notebooks.
2017-02-23 09:43:00 -06:00
Paul Romano
7ca46e809c
Make get_all_* methods consistent -- always return dict
2017-02-23 07:39:28 -06:00
Paul Romano
b4845f1474
Refactor openmc.Summary() class. Only store user IDs in summary/statepoint files
2017-02-21 21:26:25 -06:00
Adam Nelson
54b65c8bda
Fixes per @wbinventor comments
2017-02-11 14:21:51 -05:00
Adam Nelson
8f0d927c59
Fixed print_xs, set default of num_polar/azimuthal to 1, and fixed a max_order bug
2017-01-19 10:31:48 -05:00
Adam Nelson
ac57f5004d
Enabled inverse-velocities to use polar/azimuthal angles consistent with the actual coding
2017-01-16 15:00:42 -05:00