For the TRISO problem, I noticed that only explicit modeling can be done in OpenMC. I want to solve the TRISO transport problem by modifying the source code of OpenMC to implement the Chord Length Sampling（CLS） Method.The core idea of Chord Length Sampling is to use probability distribution functions to describe the distance(i.e. the chord length) by which the particles will travel in the matric or in the fuel particles. By using the exponential distribution approximately, the positions of new fuel particles are sampled ‘‘on-the-fly’’ during the tracking process rather than being calculated explicitly（Zimmerman, G., Adams, M., 1991. Algorithms for Monte Carlo particle transport in binary statistical media. Trans. Am. Nucl. Soc. 64, 287–288）.
For OpenMC, I can only use Python API skillfully, but I have no experience in developing Monte Carlo programs. I do not know how to start, so I want to know what I should to learn if I want to realize this idea.
Any help regarding this topic would be very appreciated.
Hi @skyawlker. This sounds like a very interesting idea. In order to implement something like this, you would need to make modifications to the core C++ code. If you haven’t worked with C++ before, picking up a good book on C++ would be the first place you want to start. Once you have some C++ skills, you’ll need to get a sense of how the code fits together. A good place to start might be the src/simulation.cpp source file, in particular the
Thank you for your guidance@paulromano
I still have a question that OpenMC mentioned in this paper is written in standard Fortran 2008, but in fact the current source code is written in C + +, so openmc was rewritten after this article was published ?
Romano P K, Horelik N E, Herman B R, et al. OpenMC: A state-of-the-art Monte Carlo code for research and development[J]. Annals of Nuclear Energy, 2015, 82: 90-97.
Correct, the rewrite happened primarily in the 2018–2019 timeframe. If you’re interested in the motivation, you can have a look at the discussion here.