Added a scatter-Pn option to tallies.xml. Using this option allows the user to have scatter-0 to scatter-n (n is still < 5) automatically included in the scores for them. This is a trivial change, but it is expected that scatter-Pn will be needed much more frequently than scatter-n. Both are supported. The users manual has been updated accordingly.
Added the capability to handle an arbitrary number of legendre moments. This required changes to the input, the output, and the tally handling. The input and math routines are not yet complete, as it still will not allow for any value for the scattering order. I do not expect to extend this past n=5 right now, but I want to have the framework in place so that an extension only requires changing an if-statement in input.xml and adding the additional legendre polynomials to math.F90
temporary save, in full working order
added some arbitrary scattering order support to the input processor (only a few more lines to make it complete - although it is in a functioning form now), and also changed the output of the tally score name to be a bit more sensical: P# Scattering Moment instead of #-Order Scattering Moment
Fully incorporated the arbitrary Pn scattering input, but it is still limited to n=5. I want to do more testing and look at maybe increasing to n=10. I think the CMFD changes should be working, but I dont have a properly configured machine at the moment. Working on that now so I can test
Updating the users manual to reflect scatter-n and scatter-pn
Increased the scattering order to 10
Fixed a bug where a score requested after a scatter-Pn score was not being accessed by score_analog_tally. Prett sure this bad boy is ready for a pull request.
Updating my changes to match what was done on the main branch so that the git merge goes successfully.
Merging with upstream.
Added support for the arbitrary PN in the state points.
Merge remote-tracking branch 'upstream/master' into PnInput
Merge remote-tracking branch 'upstream/master' into PnInput
Incorporated the statepoint changes to statepoint.py and statepoint.rst as revision 7.
Merge branch 'PnInput' of github.com:nelsonag/openmc into PnInput
Merge remote-tracking branch 'upstream/master' into PnInput
Apparently I forgot to update the score_types array for the Pn stuff in statepoint.py. I am pretty sure I did that, but probably lost the changes along the way. Anyways it is fixed now.
Changed tally % n_nonPN_score_bins to the more descriptive tally % n_user_score_bins
Replacing the if-block in the SCORE_SCATTER_PN analog tally case with a cycle SCORE_LOOP for readability.
Set n_user_score_bins in cmfd_input module to fix CMFD.