Commit graph

1360 commits

Author SHA1 Message Date
Jonathan Shimwell
6257c61c1c
Adding a few more imports back 2022-02-12 00:54:21 +00:00
Jonathan
0108947e70 returned used import 2022-02-11 23:46:24 +00:00
Jonathan
d91676fe1b removed unused imports 2022-02-11 22:36:46 +00:00
Paul Romano
6bb6e2ec0c Fix failing unit tests 2022-01-21 08:18:54 -06:00
Paul Romano
d57c14e06f Add tests for XML roundtripping 2022-01-20 22:28:06 -06:00
Paul Romano
f369a8ccac Add missing VolumeCalculation.from_xml_element method 2022-01-20 09:17:51 -06:00
Paul Romano
72af700ffd
Merge pull request #1947 from pshriwise/ww-final-tests
Weight windows final push
2022-01-19 09:13:07 -06:00
Patrick Shriwise
24e0f75b50 Tests: updating ww unit test with check for similarity in source bin. 2022-01-18 10:47:44 -06:00
Patrick Shriwise
0a82da0a1a
Merge pull request #1948 from paulromano/more-bugfixes
Miscellaneous bug fixes
2022-01-17 16:57:14 -06:00
Patrick Shriwise
0e23d717b9 Tests: renaming the weight windows regression test dir to be consistent with the unit test dir 2022-01-14 14:39:59 -06:00
Paul Romano
badaaacca4 Consistent use of cross sections / chain file in Operator class 2022-01-12 10:32:25 -06:00
Olaf Schumann
8114482084
Merge branch 'openmc-dev:develop' into mesh 2022-01-09 11:33:12 +01:00
Patrick Shriwise
c25403e788 Fix: reset auto IDs in ww unit test. 2022-01-08 20:38:55 -06:00
Patrick Shriwise
72cf08a0f1 Tests: Adding unit test for weight windows. 2022-01-08 17:06:51 -06:00
Paul Romano
e292125531 Support time filters used with surface current tallies 2022-01-05 07:43:44 -06:00
Paul Romano
83686f8fdb Add a simple test for time filter 2022-01-05 07:43:43 -06:00
Paul Romano
ebb6736ba6 Add TorusMixin.rotate method that can handle simple rotations 2021-12-29 10:37:54 -05:00
Paul Romano
374e9f7107 Add case to torus unit test for R slightly bigger than r 2021-12-29 09:57:50 -05:00
Paul Romano
149180ec7f Add unit and regression tests for torus 2021-12-22 11:47:37 -05:00
Olaf Schumann
efe36357a8 Update tests to check new meshes 2021-12-20 19:43:40 +01:00
Paul Romano
822879cc48 Ensure secondary particles below energy cutoff are not created 2021-12-12 16:27:12 -06:00
Paul Romano
176b148b6b
Merge pull request #1894 from pshriwise/model_deplete
Passing `openmc.Model` to depletion functions.
2021-11-09 06:51:09 -06:00
Paul Romano
eca57538cd Add missing Settings.write_initial_source property 2021-10-13 13:04:17 -05:00
Paul Romano
c2fe6327e2
Merge pull request #1890 from ojschumann/rational_dist
Rational univariate distribution
2021-10-12 22:26:02 -05:00
Olaf Schumann
c0bcc3f1ca Renamed Rational to Power Law 2021-10-11 19:48:35 +00:00
Patrick Shriwise
f1234a38b0 Updating depletion test files. Further adjustments to how materials are identified for some utility functions. 2021-10-08 14:15:40 -05:00
Paul Romano
66ef28a385 Remove convert_exec arguments, update documentation 2021-10-06 11:51:38 -05:00
Olaf Schumann
29a515c7ba Add regression and unit test for rational distribution 2021-10-05 20:06:41 +00:00
Paul Romano
7b070b7154 Remove convert arguments from Model.plot_geometry 2021-10-05 13:42:27 -05:00
Paul Romano
c3bb352f8f
Merge pull request #1884 from nelsonag/model_control
Expanded capabilities of openmc.model.Model container
2021-10-05 12:46:51 -05:00
agnelson
c9e91d42fb Replacing manual absolute error tests with pytest.approx, improving documentation, and other small changes per the review by @paulroman. 2021-10-05 08:39:24 -05:00
Paul Romano
fa500e2896
Merge pull request #1882 from ojschumann/stats_branch
Implementation of openmc.stats.Mixture distribution
2021-10-01 11:24:29 -05:00
agnelson
e4476fc0b7 Delayed mpi4py import until the user clearly indicated intent to use a communicator (or they already have created one and thus have already imported it); corrected versionchanged doc statements to include comments about what changed; added stackoverflow reference 2021-10-01 09:21:41 -05:00
Adam Nelson
e1365bd036
Applied suggested changes per @paulromano's code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-10-01 06:09:24 -05:00
agnelson
e8081207d7 Modified the C API to support setting material temperatures and to support setting the event based flag. Fixed failing MPI test. 2021-09-30 16:34:58 -05:00
agnelson
b335f82792 Made integrator quiet and fixed failing test caused by MPICommunicator types 2021-09-30 14:39:53 -05:00
agnelson
61d067f1f5 oops; had test_model.py:test_deplete commented out. fixed 2021-09-30 11:19:11 -05:00
agnelson
ad483b3fea Moved the dummy communicator to being within openmc vice openmc.deplete, added test of model.calculate_volumes and model.deplete, fixed issues identified from those tests, and added a DLL quieting method (still needs to be propagated to integrator.integrate 2021-09-30 11:18:35 -05:00
agnelson
dc80b799ac Resolving comments from @paulromano and updating tests accordingly 2021-09-29 18:51:00 -05:00
agnelson
d7bf830028 Added test of Model.plot_geometry and made changes to reflect that openmc.lib.plot_geometry wont work if openmc.lib.init wasnt told that the run mode is to plot because then plots.xml isnt read in 2021-09-29 08:22:16 -05:00
Olaf Schumann
6612b4ba04 updated unit_test for Mixture distribution 2021-09-29 08:59:43 +00:00
agnelson
e62ba9b85a Upgrading tests of model, and adding better file management, Model.calculate_volumes method and Model.plot_geometry method. These last two still need to be tested as well as Model.deplete 2021-09-28 08:44:31 -05:00
agnelson
d45af5a4ef Changes to the model.run interface again for clarity and for test passing 2021-09-27 13:45:31 -05:00
agnelson
f03b98ac0f Updating model.init_C_api and model.run to handle the kwargs that have been assigned to model.run for the CLI interface. Also updated tests 2021-09-27 12:32:25 -05:00
agnelson
0d2f923be8 Added tests of the openmc.Model class. Still need to do tests of deplete and the methods which change python and C attributes. Pushing this now to verify the CI shows passes for the MPI configs 2021-09-27 08:18:54 -05:00
Paul Romano
c08d9bc142 Fix get_decay_modes ('unknown' wasn't recognized) 2021-08-29 21:29:41 -05:00
Paul Romano
1a4cb28211
Merge pull request #1859 from nelsonag/cell_api
Addition of C-API methods to set/get a Cell's rotation and translation
2021-08-02 13:39:37 -05:00
agnelson
ad3a14fa3d Resolving comments from @paulromano. Namely, set the openmc.lib.Cell rotation and translations to be properties that can take iterables vice ndarrays. Also removed const declaration when not needed. Finally, revised code and tests so that we do not return a None for non-initialized cases. This would yield different behavior between translation and rotation and instead of leading to confusion I now simply always return a sensical ndarray of float values.That is no rotation is no longer None, but is now array([0., 0., 0.]). 2021-07-30 11:42:27 -05:00
agnelson
6a9d43bcdb Added c-api methods for rotation matrix set/get 2021-07-28 05:37:13 -05:00
Paul Romano
0d83672544 Resolve a few TODOs related to Python 3.6 2021-07-27 22:50:28 -05:00