I am trying to implement two radioactive body sources.In the past study, I used the newly released custom source file to realize the equal probability volume source.
Unfortunately, I don’t know fortran very well, I didn’t get the gist, and I didn’t realize this work.I hope to get help from experts in this work to help me better understand the design of complex source items!
Thanks in advance!
fengfeng mul-box-xf.inp (1.3 KB) source_newgen_with_regionsource.f (19.7 KB)
The problem with your routine is that you didn’t declare the variable “random”. You could have seen a clear error message in the output window after failing the compilation.
Once you declare the variable, the routine compile and the executable is generated.
If you run it, you would get this particle fluence distribution: