Commit graph

460 commits

Author SHA1 Message Date
Travis L.
cf4829b1d4
MeshSurfaceFilter partial current labels (#4021)
Some checks are pending
Tests and Coverage / filter-changes (push) Waiting to run
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / coverage (push) Blocked by required conditions
Tests and Coverage / Check CI status (push) Blocked by required conditions
dockerhub-publish-develop / main (push) Waiting to run
dockerhub-publish-develop-dagmc-libmesh / main (push) Waiting to run
dockerhub-publish-develop-dagmc / main (push) Waiting to run
dockerhub-publish-develop-libmesh / main (push) Waiting to run
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-07-23 16:51:39 +00:00
Paul Romano
e130701f10
Fix MeshFilter.get_pandas_dataframe to handle all mesh types (#3817) 2026-02-24 07:35:23 +00:00
Jonathan Shimwell
10f2b7534c
Fixing group names in MGXS HDF5 file (#3708) 2026-01-06 20:18:23 +00: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
Paul Romano
007ac8148b
Allow newer Sphinx version and fix docbuild warnings (#3571) 2025-09-19 07:27:41 +03:00
Patrick Shriwise
f207d4220a
Adding methods to automatically apply results to existing Tally objects. (#2671)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-01-24 22:49:58 +00:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing (#2987) 2024-04-29 16:45:37 -05:00
Patrick Shriwise
0785500bc4
Updating file extension for Excel files when exporting MGXS data (#2852) 2024-01-19 21:32:43 +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
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
Paul Romano
990b5449f5 Avoid use of np.float and np.int 2023-02-10 11:41:49 -06:00
Paul Romano
a5bdbd3adb Address a few warnings from tests 2022-12-23 00:07:02 -06:00
Adam Nelson
11f8d6eb29
Merge pull request #1916 from mkreher13/diffusion-condense
Condensing diffusion instead of transport
2022-09-20 09:00:19 -05:00
Miriam Kreher
985b2d2696 Removed the option to condense transport cross sections instead of diffusion coefficients. 2022-08-26 21:07:15 -04:00
Paul Romano
d31b083685 Address @yardasol review comments 2022-08-16 16:19:55 -05:00
Paul Romano
18bf88bab0 Fix typos in mgxs.py spotted by @mkreher13 2022-08-08 10:23:42 -05:00
Paul Romano
54ac2042fb Add ReducedAbsorptionXS class for MGXS (absorption - n2n - 2*n3n - 3*n4n) 2022-08-03 15:58:54 -05:00
Paul Romano
b32d121e22 Use add_params decorator to cut down on repeated docstrings for MGXS classes 2022-08-03 14:34:58 -05:00
Adam Nelson
21930fa795 Removing hdf5_key, and thus not keeping it as a deprecated interface to mgxs_type 2022-05-09 10:22:28 -05:00
Adam Nelson
baf35e74ca Resolved versionadded/deprecated versions per @paulromano comments and fixed failing test: missed one legacy _hdf5_key in DelayedNuFissionMatrixXS! I guess that shows the new parameter works, so, yeah, totally on purpose 2022-05-06 06:29:27 -05:00
Adam Nelson
deae584408 Renaming MGXS.hdf5_key to MGXS.mgxs_type and adding a deprecation warning for MGXS.hdf5_key by using a property which gives the warning then uses MGXS.mgxs_type 2022-04-27 12:58:41 -05:00
Adam Nelson
41e18a0893 Making MGXS.print_xs (and inheriting classes) use hdf5_key for the printed reaction type when using print_xs as that is more descriptive 2022-04-27 12:29:09 -05:00
Paul Romano
696290f051 Update nuclide naming in documentation 2022-02-22 16:45:12 -06:00
Miriam Rathbun
672bb9e431 I believe I successfully implemented condensation of diffusion coefficients (as opposed to transport cross sections). 2021-11-22 22:46:40 -07:00
Miriam Rathbun
e131e07948 Fixed issue where both P0 and P1 moments were displayed in the diffusion coefficient results. With this fix, the Legendre filter is successfully sliced. Also, there was previously concern that get_condensed_xs needed to be specially catered toward DiffusionCoefficient. However, since the MGXS get_condensed_xs method condenses the tallies before calculating the cross section, that should work great for DiffusionCoefficient as well. Tests updated. 2021-11-16 13:58:40 -07:00
Paul Romano
28b37011b0 Add release notes for 0.12.1 and a bunch of versionadded tags 2021-03-17 07:33:57 -05:00
agnelson
a9ebadaecc Fixing comments per the review by @paulromano 2020-11-09 15:59:23 -06:00
Adam Nelson
cf9ce60c89 Added an MGXS.get_flux method to obtain the weighting flux for whatever post-processing the user may need to do 2020-10-28 16:27:52 -05: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
Adam Nelson
b74c0cc18f Storing state 2020-10-20 16:50:35 -05:00
Adam Nelson
96b580d424 Incorporating changes requested by @giudgiud 2020-10-19 06:35:07 -05:00
Miriam
6b3374a15e Fixed typo in mgxs.py and modified all tests except distribcell 2020-10-07 19:36:03 +00:00
Miriam
679be77c6c Removed extra comments 2020-10-07 18:42:36 +00:00
Miriam
3182ebf66a Allowed nu=True in DiffusionCoefficient
Added nu-diffusion-coefficient to mgxs_types.

Relying on TransportXS to call the nu-dependent tallies
and assuming those are being used in DiffusionCoefficient
when called with nu=True.
2020-10-07 18:40:28 +00:00
Miriam
7dd35754a3 Cleaned up condense_xs
removed the if-statement pertaining to condense_dif_coef since
we assume that anyone who calls condense_xs() on DiffusionCoefficient
wants it condensed.

Also added an "else" to the if-statement pertaining to rxn_rate_tally is None.
In the test mgxs_library_condense, rxn_rate_tally is never called, so
the test fails if I remove that if-statement altogether. Instead,
adding an alternative in case rxn_rate_tally was already calculated
seemed like the best solution.
2020-10-07 17:40:13 +00:00
Miriam
8373a433d2 Added condense_dif_coef to docstring 2020-10-05 16:09:47 +00:00
Miriam
c50306904b Added DiffusionCoefficient class to mgxs.py
To continue in the effort of merging Sam Shaner's transient capability,
this next PR adds the class DiffusionCoefficient to mgxs.py. It uses
the TransportXS class, but has some unique features in get_condensed_xs()
requiring its own function. There won't be any other MGXS classes added
after this.

I updated the docstrings and the appropriate regression tests.
Since my system outputs different formatting for the
mgxs_library_distribcell test, it is possible this test will continue
to fail. However, I did my best to modify it by hand so that it will pass.
2020-09-23 16:35:22 +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
739af93a9a Modified doc strings related to 'nuclides' in get_xs and get_pandas_dataframe 2020-08-21 15:48:07 +00:00
Miriam
8f3dc3b8c2 Updated mgxs and tests
Doc string updates to exclusively list openmc.RegularMesh as a domain type.
I removed an if-statement related to domain == mesh, since mesh is the only allowable domain.
Other minor edits.
2020-08-17 16:25:32 +00:00
Miriam (Rathbun) Kreher
eaa266e6d7
Update openmc/mgxs/mgxs.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-15 22:33:18 -06:00
Miriam (Rathbun) Kreher
5665b4a90b
Update openmc/mgxs/mgxs.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-15 22:32:35 -06:00
Miriam (Rathbun) Kreher
4c0b6282f6
Update openmc/mgxs/mgxs.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-15 22:31:23 -06:00
Miriam (Rathbun) Kreher
9d28cc9b8e
Update openmc/mgxs/mgxs.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-15 22:31:02 -06:00
Miriam (Rathbun) Kreher
160f5f07e3
Update openmc/mgxs/mgxs.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-15 22:29:34 -06:00
Miriam (Rathbun) Kreher
7ad63241d7
Update openmc/mgxs/mgxs.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-15 22:29:05 -06:00
Miriam (Rathbun) Kreher
f9072d1e96
Update openmc/mgxs/mgxs.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-15 22:28:44 -06:00
Miriam
45e2808207 Exception for current in domain_to_filter
build_hdf5_store fails for current unless domain_to_filter is circumvented.
Because current is a 'mesh' domain, domain_to_filter would assign a mesh filter.
However, current uses a meshsurface filter instead, so domain_to_filter must allow for that exception.
2020-08-07 00:38:59 +00:00