Commit graph

35 commits

Author SHA1 Message Date
Paul Romano
e130701f10
Fix MeshFilter.get_pandas_dataframe to handle all mesh types (#3817) 2026-02-24 07:35:23 +00:00
Paul Romano
5c63e0df21
Fix a few warnings, rename add_to_tallies_file (#3639) 2025-11-18 17:57:12 -06:00
Ilham Variansyah
ecb0a3361f
Combing for fission site sampling, and delayed neutron emission time (#2992)
Co-authored-by: Gavin Ridley <gavin.keith.ridley@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-09-19 08:10:08 +00:00
GuySten
4500f07b44
Remove reorder_attributes from openmc._xml (#3519) 2025-08-08 16:59:22 +07:00
Paul Romano
91fd60be69
Immediately resolve complement operators for regions (#3145) 2024-10-10 12:58:15 -05:00
Paul Romano
ac941f79e0
Add RectangularPrism and HexagonalPrism composite surfaces (#2739)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2023-11-01 09:13:40 -05:00
Patrick Myers
1cb22075ef
Changed xml to lxml (#2489) 2023-05-09 10:41:04 -05:00
Ethan Peterson
11e618fe81 adding export_to_xml to run and updating tests 2023-03-24 18:54:54 -04:00
Paul Romano
091241070f Update test results with numpy 1.24 and anisotropic fission 2023-02-10 12:21:42 -06:00
Paul Romano
54ac2042fb Add ReducedAbsorptionXS class for MGXS (absorption - n2n - 2*n3n - 3*n4n) 2022-08-03 15:58:54 -05:00
Olaf Schumann
8114482084
Merge branch 'openmc-dev:develop' into mesh 2022-01-09 11:33:12 +01:00
Paul Romano
cad7f68129 Update test results that depend on inverse-velocity score 2022-01-05 07:43:44 -06:00
Olaf Schumann
32d33f25cb Remove acidentially included files 2022-01-04 15:21:36 +01:00
Olaf Schumann
8b0b11b6c5 Bug: Forget to declare and define UnstructuredMesh::get_mesh_type() 2021-12-22 18:37:55 +01:00
Olaf Schumann
f92993d443 Update tests with changed results.results_true 2021-12-22 09:24:13 +01: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
9552be7316 Update test results from new random number stream 2021-05-03 10:32:16 -05:00
Miriam
6b3374a15e Fixed typo in mgxs.py and modified all tests except distribcell 2020-10-07 19:36:03 +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
44a5a03744 Updated testing 2020-09-17 19:01:33 +00:00
Miriam
979317f614 Added surfaces to the reordering of pandas dataframe 2020-07-19 20:52:25 +00:00
Miriam
b903775c46 Ordered the pandas dataframe
In the get_pandas_dataframe function of SurfaceMGXS, I removed all by_nuclide and micro options.
I also ordered the dataframe so that results would be ordered reliably.
This was necessary for tests to pass. Since the domain object is a little different for current than for the other classes,
I had to treat the reorder uniquely for the SurfaceMGXS class because of the presence of the mesh surface filter.
While other classes assume all meshes have a x, y, and z component, regardless of the dimension, this is not true in SurfaceMGXS. Therefore, I added an if statement for each dimension.
2020-07-19 18:10:23 +00:00
Miriam
1c7e7fe3f1 Test passes after modifying get_pandas_dataframe
Since the inherted get_pandas_dataframe sorted values by x, y, z, and the current has a different labelling system
(doesn't include z if only 2 dimensional, and then also includes x-in, x-out, y-in, y-out, z-in z-out...)
I had to redefine get_pandas_dataframe in the SurfaceMGXS class and remove the sorting.
2020-07-19 14:00:21 +00:00
Miriam
676bcefb1e Finalized check for mesh & made progress on regression test
I had to put domain properties back into the SurfaceMGXS class to perform a checktype on the domain_type.
I updated the regression test mgxs_library_mesh to expect the correct input.
However, now the test fails for a 2-dimensional mesh. In 3D, the Current MGXS fails because it does not contain a 'z' dimension.
Meanwhile, all the other classes contain a 'z' dimension, equal to 1.
I need to figure out why the mesh used by SurfaceMGXS doesn't contain the same information as the other classes, even though it is the same mesh used in all.
2020-07-19 04:40:31 +00:00
Paul Romano
c245f78148 Update mgxs_library_mesh test 2019-08-21 10:42:35 -05:00
Sterling Harper
9ddd8b3067 Change Python Mesh class to RegularMesh 2019-06-07 08:51:09 -04:00
Paul Romano
62edb23fd3 Update test results to reflect slightly different summing of total xs 2018-11-12 14:55:30 -06: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
bd5b7afc2d Fix bug related to bin ordering for mesh filters 2018-03-16 13:47:01 -05:00
Paul Romano
23324fe24b Fix broken tests 2018-03-15 11:02:07 -05:00
Paul Romano
b7c63be018 Use super() in Python classes in tests package 2018-02-06 13:14:17 -05:00
Paul Romano
740f03fce1 Use single package-level fixture for regression tests 2018-02-05 07:35:19 -06:00
Paul Romano
98d5496102 Ability to run regression tests using pytest 2018-02-05 07:35:19 -06:00
Paul Romano
920afa123e Make tests directory a package (for pytest) 2018-02-05 07:35:19 -06:00
Paul Romano
c3af1c915b Move regression tests into separate directory 2018-02-05 07:35:19 -06:00