Hello,
Am new on OpenMC and would like to work on OpenMC, create a 2D pin for PWR and do simulations. Try making depletions, k-eff, detectors for materials, flux.
I have already installed the programme on terminal. I have tried using the examples on the official OpenMC site and running the programme using the nano.py script but couldn’t get through the results.
I would like to get the community assistance on this issue.
thank you.
@pshriwise please assist, How do you run the examples on terminal from the openMC site. I am new OpenMC user.
Hi @Delisa,
Thanks for posting here. Can you expand on what problem you’re running into? Were you able to install OpenMC successfully?
To test, what is the result of the following commands in your terminal?
$ which openmc
$ python -c "import openmc"
If those commands work, there’s a PWR 2D pincell model in the openmc.examples
module that can be accessed with:
>>> import openmc
>>> pwr_pincell = openmc.examples.pwr_pin_cell()
Patrick
Please check the attached photo.
But to summarise, when I wrote “which openMC” the results were / use/local/bin/openmc
When I wrote ‘python -c “import openMC” nothing showed.
When I wrote ‘import openMC’ the answer was -bash: syntax error near unexpected token ‘>’
So in general those are the results.
Bangor University
Nuclear Futures Institute
Department of Nuclear Engineering and Science
School of Computer Science and Electronic Engineering
Dean Street
Bangor, Gwynedd, LL57 2DG
United Kingdom (UK)
Thanks @Delisa. I think this is good news overall. It looks to me as though you’ve installed both the OpenMC executable and Python API successfully.
The >>>
was meant to indicate commands to be run from a Python interpreter rather than the terminal. So, in full:
$ python
>>> import openmc
>>> pwr_pincell = openmc.examples.pwr_pin_cell()
>>> pwr_pincell.run()
Remember to follow these instructions to configure cross section data for OpenMC or the simulation will fail.
Thank you very much @pshriwise
Bangor University
Nuclear Futures Institute
Department of Nuclear Engineering and Science
School of Computer Science and Electronic Engineering
Dean Street
Bangor, Gwynedd, LL57 2DG
United Kingdom (UK)