Before I pull out more of my hair, I figured I would just ask folks: I am trying to generate an ACE library for use in Serpent from a TENDL photon interaction library in ENDF format (the version they have that’s already in ACE format does not have all of the nuclides I need). NJOY is being difficult and someone in my research group suggested that the OpenMC python utility might be an easier option. None of the scripts seem to be quite what I want and I’m not particularly strong coder. Can I simply swap out what I want the end format to be in one of the existing scripts?
Thank you! This does look like what I need, but I’m running into a couple of problems. When I run it, nothing happens (I have not checked the full OpenMC installation yet on my machine and it may not be working properly because I’m using a WSL-Ubuntu environment, rather than a full Linux installation). When another person in my research group, who uses OpenMC for other projects and definitely has a working installation, runs it, we’re getting an invalid input error. The file I’m trying to convert is https://tendl.web.psi.ch/tendl_2019/gamma_file/Np/Np237/lib/endf/g-Np237.tendl (which is an ENDF format but has a .tendl file extension) and the line we both used to call OpenMC is:
#!/usr/bin/python3 openmc.data.njoy.make_ace(’/mnt/c/TENDL/g-Np237.tendl’, output_dir=’/mnt/c/TENDL/ace’, acer=TRUE)
I’m almost certain we’re probably missing something very obvious, but I’m at a loss of what else to try.
Which version of OpenMC you’re using? If you are using openmc=0.11, you will face KeyError: ‘zsymam’ error which is solved in current GitHub openmc-dev branch.
Clone openmc-dev branch and install it, hopefully, you will not face any error.
The make_ace function is intended only for incident neutron sublibrary files, not photonuclear sublibrary files. Unfortunately there is nothing “off the shelf” in OpenMC that will help you process this file at present. Also, are you sure that you want photonuclear data, as opposed to photoatomic?