Alexander Camargo
- 37
- 10
I know that "mcnpx n=filename" I run the file, but how do I run the entire folder with the entries inside?
The discussion revolves around how to run multiple MCNPX simulation files located in a folder, particularly addressing the challenges of executing a large number of simulations efficiently. Participants explore methods for automation and file management in the context of running MCNPX simulations.
Participants generally agree that running multiple MCNPX files directly is not supported by the software, and there is a consensus on the need for automation due to the large number of simulations. However, there is no consensus on the best method to achieve this, with various suggestions and tools being proposed.
Participants mention limitations in the MCNPX software's capabilities regarding batch processing and the need for external scripts or tools to manage large-scale simulations effectively.
This discussion may be useful for users of MCNPX who are looking to automate the running of multiple simulation files, particularly those dealing with large datasets or requiring batch processing solutions.
Alex A said:I don't *think* any of the mcnp programs will do that. It's fairly trivial to write a batch file, either for windows or linux to do the job and clean up the run files. Which OS?
Thanks a lot for the help. I automate my entries with notepad++ using macros and "advanced renamer" for the different names of each file. I already put the 12k input to simulate, now just wait about 100 hours. hahahaAlex A said:That is the kind of use case WORM was created for, but it doesn't run mcnp/x or extract the results, it just creates the input files. I found some example stuff in python that will edit an input file, run mcnp, in this case 6 and extract the result here - https://www.justanswer.com/computer-programming/gfgmq-again-thank-again-excellent-help-think.html
If you have 12k problems, maybe this is worth automating at this level.