openmc icon indicating copy to clipboard operation
openmc copied to clipboard

Add incident proton data class

Open jiankai-yu opened this issue 3 months ago • 1 comments

I'm adding incident proton data class for the library conversion from ACE to HDF5. In the code implementation, it is almost a replication of the incident neutron data class with a modification in file name suffix (1001.00h).

In addition, I added a function to include stopping power or traverse range just in case they are needed for the transport purpose.

Feel free to let me know if you have any comments.

Description

Please include a summary of the change and which issue is fixed if applicable. Please also include relevant motivation and context.

Fixes # (issue)

Checklist

  • [x] I have performed a self-review of my own code
  • [x] I have run clang-format (version 15) on any C++ source files (if applicable)
  • [x] I have followed the style guidelines for Python source files (if applicable)
  • [x] I have made corresponding changes to the documentation (if applicable)
  • [x] I have added tests that prove my fix is effective or that my feature works (if applicable)

jiankai-yu avatar Oct 14 '25 17:10 jiankai-yu

The incident proton data files converted from CP2020 are attached for your reference.

https://drive.google.com/drive/folders/1rLzDTK_Wt6Fmr5nqA_sjU3ryQaZWCnBF?usp=drive_link

jiankai-yu avatar Oct 14 '25 17:10 jiankai-yu