Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
fe2e7f7
First commit - made a mockup of NeutronFluxProfile calculator.
OceanNuclear May 2, 2025
99d62d2
Added the effect of neutron multiplication, which is done by increasi…
OceanNuclear May 3, 2025
d4204cf
relocated some functions
OceanNuclear May 3, 2025
d44f117
Ruff improvements.
OceanNuclear May 3, 2025
f68533b
Decided to implement a switch case for sinh(x/sqrt(-...))=-sin(x/sqrt…
OceanNuclear May 3, 2025
555e625
Some further progress on docstrings and equations.
OceanNuclear May 9, 2025
390c38a
WIP - pushing to save progress.
OceanNuclear Jun 4, 2025
83c2464
Transcribed the one-group constant (manually solved and verified by D…
OceanNuclear Jul 13, 2025
1887499
Modified expression into sum-of-exponentials form, rather than sum-of…
OceanNuclear Jul 13, 2025
210bb85
Added reaction rates calculations and neutron passage/escape flux.
OceanNuclear Jul 14, 2025
93c5e9c
Added a unit test.
OceanNuclear Jul 14, 2025
f991262
Re-distributed where functions and classes live. Materials data relat…
OceanNuclear Oct 29, 2025
5f6d625
Added publically available data (same source as openmc), so we don't …
OceanNuclear Oct 29, 2025
2f95966
Made the decorator in neutronics.py follow the open-closed principle …
OceanNuclear Oct 30, 2025
3336c23
made the four attributes: integration_constants, l_fw_2, l_bz_2, exte…
OceanNuclear Oct 30, 2025
1506730
Some quality-of-life things - _attempting_to_access attribute is made…
OceanNuclear Oct 30, 2025
faed908
Keeping test updated.
OceanNuclear Oct 30, 2025
1c9093d
Corrected the ordering of the group structure to ensure that the firs…
OceanNuclear Oct 30, 2025
e21a2d6
to cm fix.
OceanNuclear Oct 30, 2025
4aba6ef
ruff fix
OceanNuclear Oct 30, 2025
0e1c8cf
Quality of life things: (clarify non-scattering into 'exclude elastic…
OceanNuclear Oct 30, 2025
61c8cf0
Allowed source macroscopic cross-section matrix to be larger than the…
OceanNuclear Oct 31, 2025
eef85fa
Added a property 'downscatter_only' which helps quickly determine if …
OceanNuclear Oct 31, 2025
1179f5e
Clean up to make four separate dictionaries: micro_total_xs, micro_sc…
OceanNuclear Oct 31, 2025
5e3b631
Ruff fixes.
OceanNuclear Oct 31, 2025
461ba6f
Created the scattering matrix, and tested it. Next on the to-do list:…
OceanNuclear Nov 5, 2025
a207026
Added the n2n_matrix the feature, and added tests.
OceanNuclear Nov 6, 2025
aca4b38
Cleaned a bit up where the hypothetical 'integrate' function is used,…
OceanNuclear Nov 6, 2025
4c1373d
Used numpy testing in appropriate places
OceanNuclear Nov 6, 2025
6643fbe
Ruff fix: numpy.random
OceanNuclear Nov 6, 2025
fa95610
Docstring improvements
OceanNuclear Nov 6, 2025
971e0aa
Added plotting function.
OceanNuclear Nov 6, 2025
86e9518
further improved the plotting.
OceanNuclear Nov 6, 2025
44ca361
Formatting fix
OceanNuclear Nov 6, 2025
e50e851
extended_boundary renamed to extended_boundary_cm
OceanNuclear Nov 6, 2025
f304ca0
Added regression test, and fixed all the little details to make the r…
OceanNuclear Nov 7, 2025
abc1f1d
regression test fix.
OceanNuclear Nov 7, 2025
85553a6
Regression test added - conservation in total number of neutrons (the…
OceanNuclear Nov 7, 2025
9d06fbc
Added an IntegrationConstants class, which contains a validation meth…
OceanNuclear Nov 9, 2025
b82b077
Made return None more explicit in some places.
OceanNuclear Nov 9, 2025
5bd6608
self.integration_constants conversion step 1 of 3: groupwise_neutron_…
OceanNuclear Nov 9, 2025
489976c
Added d_fw and d_bz diffusion constants as attributes of NeutronFluxP…
OceanNuclear Nov 9, 2025
b5de873
Fixed the ordering of the two arguments outputted by get_diffusion_co…
OceanNuclear Nov 9, 2025
943bdeb
self.integration_constants conversion step 2 of 3: solve_group_n conv…
OceanNuclear Nov 9, 2025
868d07c
self.integration_constants conversion step 3 of 3: neutron current an…
OceanNuclear Nov 9, 2025
aa3525d
Fixed regression test
OceanNuclear Nov 9, 2025
0b85ff3
Wrote up the solver for higher order groups, not tested yet.
OceanNuclear Nov 9, 2025
5640fba
Handled events of same-characteristic-lengths more gracefully.
OceanNuclear Nov 11, 2025
ec61dec
Added validation to warn when there's elastic upscatter, or error whe…
OceanNuclear Nov 11, 2025
bf51d7b
ruff fixes.
OceanNuclear Nov 11, 2025
d48f5f6
Separated the in_source matrix from the scattering matrix in Material…
OceanNuclear Nov 11, 2025
f6f018b
Turned the base functions from exp(x),exp(-x) to cosh(x),sinh(x); suc…
OceanNuclear Nov 12, 2025
0b49790
Conversion from exponential basis to ((cosh/sinh)/(cos/sin)) bases co…
OceanNuclear Nov 12, 2025
42ea1df
Fixed where the abs() are placed for taking the absolute value of x
OceanNuclear Nov 12, 2025
b68db42
renamed the integration constants' working names to something a littl…
OceanNuclear Nov 12, 2025
d8d5b98
One more regression test for now.
OceanNuclear Nov 12, 2025
3627fad
Beginning removal of the _groupwise functions (because they don't nee…
OceanNuclear Nov 12, 2025
958192e
Minor change to the solve_n_group method to prep it for future (itera…
OceanNuclear Nov 12, 2025
c5323e7
Completed removal of the _groupwise functions.
OceanNuclear Nov 12, 2025
15b527c
Completed one-group fission regression test.
OceanNuclear Nov 20, 2025
3d4f8c0
Updated the docs for MaterialMacroInfo parameters.
OceanNuclear Nov 20, 2025
e38dc0e
Converted from cgs to metric
OceanNuclear Nov 20, 2025
d5081e3
Updated regression test to use cgs.
OceanNuclear Nov 20, 2025
0748180
Updated unit-test for checking the number of methods present.
OceanNuclear Nov 20, 2025
2ae85f8
Pre-commit ruff fix
OceanNuclear Nov 20, 2025
5450d0b
Renamed the integration_constants to coefficients (because they're no…
OceanNuclear Nov 21, 2025
8a63ad1
Removed unused constant
OceanNuclear Nov 21, 2025
a97ba17
Majority of the conversion from 2-layer model to the infinite-layer m…
OceanNuclear Nov 21, 2025
fa6d266
Neutron flux and current are defined such that they're assumed to be …
OceanNuclear Nov 21, 2025
715b379
Updated docstring on Coefficients (now gives the correct use case) an…
OceanNuclear Nov 21, 2025
57e83d5
Fixed the various off-by-one errors deliberately introduced a couple …
OceanNuclear Nov 21, 2025
202efba
Completed conversion from 2-layer model to infinite-layer model. Clea…
OceanNuclear Nov 21, 2025
85371d2
Added new class LayerSpecificGroupwiseConstants to encapsulate the be…
OceanNuclear Nov 22, 2025
7ec5689
Starting to fix plotting. Still need to verify that the layers' bound…
OceanNuclear Nov 22, 2025
7b6b87b
Slight name change
OceanNuclear Nov 22, 2025
f16d433
Finished updating the plotting function, so at the moment it works fo…
OceanNuclear Nov 22, 2025
e3de8ec
Simplified the sign extraction function
OceanNuclear Nov 23, 2025
9b498f8
Implemented an attribute to record the neutron energy; and changed un…
OceanNuclear Nov 23, 2025
2345a2a
Updated documentation and test
OceanNuclear Nov 23, 2025
8888d11
Slight fixes to docstring, and fix to regression test dummy energies …
OceanNuclear Nov 23, 2025
0e7d477
Docstring update for heating methods
OceanNuclear Nov 23, 2025
1ffe711
Added test to ensure integration of the heating term is done correctly.
OceanNuclear Nov 23, 2025
7ec2666
tested units output as well.
OceanNuclear Nov 23, 2025
4fb8519
Fixed the plot such that all discontinuity are minimized, and those d…
OceanNuclear Nov 23, 2025
b422dd2
Does not allow higher energy bins than the incident neutron energy to…
OceanNuclear Nov 24, 2025
919d743
Further modification to include a new attribute incident_neutron_grou…
OceanNuclear Nov 24, 2025
1e62542
Removed conservation of neutrons condition entirely.
OceanNuclear Nov 24, 2025
7b355ab
Fix the list of conditions so it's no longer singular
OceanNuclear Nov 24, 2025
b9bf9f8
Bug fixes prompted by ruff
OceanNuclear Nov 24, 2025
82d259f
Ruff fixes for tests too
OceanNuclear Nov 24, 2025
115b29f
Fixed plotting zorder
OceanNuclear Nov 25, 2025
16e8799
Prepared for the case that allows for contains_upscatter=True, where …
OceanNuclear Nov 25, 2025
6a8f20a
Slightly tidied up the code that calculates the non-central cosh/sinh…
OceanNuclear Nov 25, 2025
367cb4e
Added placeholder list for summing up all of the skipped coefficients.
OceanNuclear Nov 25, 2025
311d63f
slightly modified validate_length to allow for second+ passes to have…
OceanNuclear Dec 16, 2025
84e443e
Put the cosh-sinh/cos-sin switching logic into dedicated methods, so …
OceanNuclear Dec 16, 2025
055109c
Added feature to count the number of coefficient pairs.
OceanNuclear Dec 17, 2025
73734e3
THe problem of deducing the next layer's coefficient given the previo…
OceanNuclear Dec 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,594 changes: 3,594 additions & 0 deletions process/data/mass_1.mas20.txt

Large diffs are not rendered by default.

Loading
Loading