More accurately simulate the neutron flux profile#3653
More accurately simulate the neutron flux profile#3653OceanNuclear wants to merge 127 commits intomainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3653 +/- ##
==========================================
+ Coverage 47.81% 48.24% +0.42%
==========================================
Files 143 145 +2
Lines 29993 30930 +937
==========================================
+ Hits 14342 14921 +579
- Misses 15651 16009 +358 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a7c3d81 to
56884d7
Compare
5ada3ea to
3336c23
Compare
76579e7 to
fa6d266
Compare
…ng the strength of the macroscopic (self and other) scattering matrix.
…(...)), instead of using complex number to cover both +ve and -ve sign in the sqrt.
…esmos). Next step is to write the program for solving multi-group fluxes.
…r message, leaving the instructions on how to perform iteration calculations in the comments.
… created without knowing the nuclear data first, *and then* knowing what isotopes' nculear data needs to be get, populate_from_nuclear_data_library() can then help backfill these values, long after the instantiation of these materials.
…_set when raising the RuntimeError for missing isotopes in the nuclear data library.
…nics_data.MaterialMacroInfo class.
fc5c51d to
710c90b
Compare
|
@chris-ashe In the new folder structure, would you prefer the neutronics.py and neutronics_data.py to live in |
je-cook
left a comment
There was a problem hiding this comment.
I'm not sure descriptors is the right way to go. Most descriptor stuff I've written I have eventually rewritten without descriptors because I found a better way.
On the atomic data is there any reason we cant use something like periodictable which we use in elsewhere.
|
Happy to hear out examples of where descriptors were removed and see if I can implement anything similar. So far I'm unaware of any other ways of writing the code that wouldn't make it even more spaghetti: the @summarize_values decorator is doing a lot of heavy lifting and cutting the amount of code that I have to write down by half. |
|
Great, need to have a think but will let you know |
|
I haven't figured out yet the right way of getting the abundance values in |
|
I'll add a bit of context for your consideration while thinking about refactoring away the descriptors: Regarding the @summarize_values decorators, I think they can be improved upon as well, for the following reasons:
|



Description
Calculates the neutron flux profile in the first wall and blanket, using an extremely simplified diffusion-based model of an infinite slab sandwich.
Reason for choosing this model
It's better than not having a neutronics model.
It's also very simplified, so it can be calculated on the fly, without installing any deterministic neutron transport codes as dependency.
Checklist
I confirm that I have completed the following checks: