Commit graph

13804 commits

Author SHA1 Message Date
Ethan Peterson
1af84f94de added docstring info and test 2022-08-10 08:28:18 -04:00
Ethan Peterson
527d97916d allow settings properties to be set through constructor 2022-08-10 08:28:18 -04:00
Paul Romano
90608665b7
Merge pull request #2154 from shimwell/adding_log_width_bins_to_energy_filter
added bin_log_width to EnergyFilter() to help with plotting
2022-08-09 21:56:22 -05:00
Paul Romano
30c561c70e
Merge pull request #2147 from paulromano/reduced-absorption-xs
Add a new "reduced" absorption MGXS type
2022-08-09 17:05:43 -05:00
Jonathan Shimwell
7004ff5467 [skip ci] pep8 def spaces 2022-08-09 12:40:45 +01:00
Paul Romano
c5d47a0918
Merge pull request #2142 from shimwell/adding_specific_activity
added specific_activity to openmc.Material
2022-08-09 06:35:43 -05:00
shimwell
8c72e4b7b0 added lethargy_bin_width test 2022-08-08 22:57:32 +01:00
Jonathan Shimwell
7ba45aaa35
[skip ci] review comments from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-08 22:21:37 +01:00
Jonathan Shimwell
5d5bc53a15
Fixing the activity tests @eepeterson
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-08 20:46:57 +01:00
Paul Romano
0ba14b2cf0 Fix use of energy groups in MicroXS.from_model 2022-08-08 12:20:11 -05:00
Paul Romano
c5a5a3b9a6 Merge branch 'develop' into reduced-absorption-xs 2022-08-08 12:17:18 -05:00
Paul Romano
6254be3758
Merge pull request #2153 from pshriwise/small_fixes
Some small fixes
2022-08-08 12:15:20 -05:00
Jonathan Shimwell
77c3c82c7a renamed method to bin_lethargy 2022-08-08 17:52:49 +01:00
Ethan Peterson
3271c08d22
Apply suggestions from @paulromano code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-08 11:34:10 -04:00
Paul Romano
18bf88bab0 Fix typos in mgxs.py spotted by @mkreher13 2022-08-08 10:23:42 -05:00
Jonathan Shimwell
63b517aebc
updated tests to use units args by @eepeterson
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-08 14:52:35 +01:00
Jonathan Shimwell
a94fb43418 review comments from @paulromano 2022-08-08 14:00:25 +01:00
Jonathan Shimwell
bb764b960a added return type to bin width method 2022-08-08 13:52:50 +01:00
Patrick Shriwise
98f5da737f rm space 2022-08-08 07:50:11 -05:00
Jonathan Shimwell
75548aade8 added bin_log_width to energyfilter 2022-08-08 13:34:20 +01:00
Patrick Shriwise
3f06b97400
Merge pull request #2145 from paulromano/universe-plot-mg-fix
Check for macroscopic data in materials when running Universe.plot
2022-08-06 11:32:01 -05:00
Patrick Shriwise
d3535a521e Add Python pickle files to ignore 2022-08-06 06:18:54 -05:00
Patrick Shriwise
c943128587 Add pytest request path to location of cleanup files in cpp driver test 2022-08-06 06:18:54 -05:00
Patrick Shriwise
f69fc37275
Merge pull request #2150 from paulromano/fix-combine-dist-test
Bump up number of samples in test_combine_distributions
2022-08-05 11:58:28 -05:00
Paul Romano
2adf34b9a6
Merge pull request #2022 from JoffreyDorville/kalbach_mann_slope
Kalbach-Mann slope calculation for ENDF files
2022-08-05 11:51:00 -05:00
Paul Romano
abc0fd2693
Merge pull request #2100 from yardasol/transportoperator-subclass-notransport
Add class to allow running depletion simulation independent of the OpenMC transport solver
2022-08-05 08:20:26 -05:00
shimwell
496dda717c removed missing bracket 2022-08-04 23:59:51 +01:00
Jonathan Shimwell
75d82a7df7
reverting to pytest.approx
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 23:43:42 +01:00
Olek
c75524cfa0
simplify from_model
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-04 16:11:11 -05:00
Ethan Peterson
39eaf9d887
Apply suggestions from code review
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2022-08-04 16:50:18 -04:00
Joffrey Dorville
fc3d94b781 Apply @paulromano suggestions 2022-08-04 11:38:04 -06:00
yardasol
3ef15da62f fix MicroXS.from_model() 2022-08-04 12:13:07 -05:00
yardasol
d5a8e29b7c fix IndependentOperator._load_prev_results() 2022-08-04 12:12:52 -05:00
yardasol
c3921b735f Changes from @paulromano's 6th round of comments
- add more detail to `MicroXS` example in User's Guide
- Cleanup the `from_model` method
- Reduce repeated code between `MicroXS` and `CoupledOperator`
2022-08-04 10:51:38 -05:00
Jonathan Shimwell
152a149488
density set to 1.5 to test different activities scaling
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 16:15:12 +01:00
Jonathan Shimwell
a30f9b88fd combined activity unit tests as suggested @eepeterson 2022-08-04 15:49:11 +01:00
Jonathan Shimwell
8164f309e9 added pre volume attribute tests for stable nuclide 2022-08-04 15:37:01 +01:00
Jonathan Shimwell
c036403c98
simpler if else statement for normalization
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-08-04 14:55:45 +01:00
Paul Romano
13c83a1c00 Bump up number of samples in test_combine_distributions 2022-08-04 08:54:20 -05:00
Paul Romano
58f3b1d849
Merge pull request #2148 from openmc-dev/yardasol-patch-1
Minor styling fix in `Material.py`
2022-08-04 06:33:37 -05:00
Paul Romano
5fc70d8a67
Merge pull request #2143 from shimwell/adding_years_to_get_time
added option for year as time units
2022-08-04 06:33:24 -05:00
Jonathan Shimwell
e4d54d49a8 moved volume lower 2022-08-04 09:39:14 +01:00
Jonathan Shimwell
c900e4784e
Corrections to activity calcs
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 07:55:35 +01:00
Ethan Peterson
3f3b0282f7
Merge pull request #2135 from paulromano/decay-data
Add ability to get sources from `Decay` class
2022-08-03 19:58:39 -04:00
Ethan Peterson
39708e120e
Merge pull request #2146 from paulromano/rpp-consistency
Change ordering of halfspaces for RectangularParallelepiped
2022-08-03 19:55:00 -04:00
Olek
15f66ed50a
Minor styling fix in Material.py
change `E` to `e` for scientific notation.
2022-08-03 17:46:26 -05:00
shimwell
98c707ea07 refactor activities to single method 2022-08-03 22:46:50 +01:00
Olek
cbb0ee9964
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-03 16:45:25 -05:00
yardasol
65624df58d add chain_file, dilute_initial parameters to MicroXS.from_model 2022-08-03 16:16:19 -05:00
Paul Romano
54ac2042fb Add ReducedAbsorptionXS class for MGXS (absorption - n2n - 2*n3n - 3*n4n) 2022-08-03 15:58:54 -05:00