IAEA-NDS / ACEMAKER

A code package to produce ACE-formatted files for MCNP calculations.
MIT License
9 stars 5 forks source link

Zeros in Law 61 angle PDF and CDF #2

Open HunterBelanger opened 3 years ago

HunterBelanger commented 3 years ago

Hello,

I just discovered this project, and was experimenting with it, and tried processing an ACE file for U238 from ENDF-8. Bellow is my input file:

U238
ACE    0
ENDF   n-092_U_238.endf
MAT    1
 9237
TEMP   1
 293.6
END

Using this, the processing seems to complete normally, but when I try and read the ACE file with my ACE library, I get a warning about inconsistent CDF's for the angular distributions in an ACE law 61. Here is the back-trace from my library with the details of where the error occurs

RuntimeError:
 #---------------------------------------------------------------------------------
 # Location: /home/hunter/Projects/papillon-ndl/src/reaction.cpp:145
 #
 # Reaction::Reaction: Could not create secondary neutron angle-energy distribution
 # for MT = 5.
 #---------------------------------------------------------------------------------
 #---------------------------------------------------------------------------------
 # Location: /home/hunter/Projects/papillon-ndl/src/tabular_energy_angle.cpp:72
 #
 # TabularEnergyAngle::TabularEnergyAngle: Could not create EnergyAngleTable for
 # the 1th incoming energy 1.300000 MeV. Index of TabularEnergyAngle in XSS block is
 # 4047934.
 #---------------------------------------------------------------------------------
 #---------------------------------------------------------------------------------
 # Location: /home/hunter/Projects/papillon-ndl/src/energy_angle_table.cpp:109
 #
 # EnergyAngleTable::EnergyAngleTable: Couldn't create angle table for 2th energy
 # 0.038155 MeV. Index of EnergyAngleTable in XSS block is 4048098.
 #---------------------------------------------------------------------------------
 #---------------------------------------------------------------------------------
 # Location: /home/hunter/Projects/papillon-ndl/src/pctable.cpp:91
 #
 # PCTable::PCTable: Last CDF entry is not 1, but 0.000000. Index of PCTable in XSS
 # block is 4048128.
 #---------------------------------------------------------------------------------

Looking at this location in the ACE file, it is an angle distribution with two points (-1 and 1), and both PDF and CDF values are all zero. Further inspection reveals that this occurs in several locations in the ACE file for the angular distributions in Law 61, where all PDF and CDF entries are zero. I can provide the ACE file, and log and such if desired, they are just too big to be attached here.

dlopezaldama commented 3 years ago

Dear Hunter Belanger,

Thank you for reporting this issue. We are working on a new release of ACEMAKER. We will take it into account.

Regards,

Daniel