I don’t know how to run openmc with python API.
In the example files, there are three files: jupter ,python and xml.
I know how to run openmc in xml files, it is easy.
but I don’t know how to deal with those in python.
for example, in /python/ basic/build-xml.py, I have no idea how to run? what should i do?
I am trying to learn how to build an assembly.
I didn’t find one similar model in examples files.
Is there any model available for reference?
oh yeah, I finally get to know how to use it
It is easy to implement.
build an empty .py files and type as the following text:
import openmc
aaaa=openmc.examples.pwr_assembly()
aaaa.export_to_xml()
save and run this .py and we can easily get a 17*17 PWR assembly model.
This might be very useful for new learner likes me hahahah