Openmc run njoy error


openMC is not able to run njoy with NJOY2016 installed

@flowersoul Welcome to the forum

@flowersoul Open .bashrc file with your favorite text editor and add the following line at the end of it

export PATH=$PATH:$HOME/Desktop/NJOY2016/bin

save it and source it using source ~/.bashrc. Hope this will fix your problem.

Best
pranto

many thx for your answer,but the problem still exists after the PATH environment variable being configured

@flowersoul Did you try it after restart the Jupyter kernel? If not then restart and give it a try one more time.

restarted but still didn’t work(sigh)

@flowersoul Could you show me the output of

$ which njoy

command?

image

Everything looks good to me but don’t understand why python gives File not found error. Let’s try another way

h2 = openmc.data.IncidentNeutron.from_njoy('h2.endf', temperatures=[300., 400., 500.], stdout=True, njoy_exec= '/home/hydro/Desktop/NJOY2016/bin/njoy')

and also show me output of

$ echo $PATH

command.


looks nice
so that is to say, i have to give parameter ‘njoy_exec’ every time i use njoy in openmc
and this is echo output

That’s great!

Nope, njoy_exec='njoy' is the default option for the NJOY executable.

I would suggest to close and relaunch the jupyter notebook. Hope this will fix your problem

cant thank you enough
Anyway, it worked
details should be improved later
i have to run it to finish my work before deadline
very very much thank you

hi,have you solved this problem? I also meet this problem. Looking forward to your reply.