[MCNPX] How to run an entire folder?

  • Thread starter Alexander Camargo
  • Start date
  • Tags
    Mcnp Mcnpx
In summary, the person is asking how to run an entire folder in mcnp with entries inside, but it seems that none of the mcnp programs can do that. It is suggested to write a batch file for either Windows or Linux to do the job. They mention having over 12,000 simulations and using a batch method to automate the process. There is a program called WORM that can create input files, but it does not run mcnp or extract results. The person found a solution using Python to edit input files and run mcnp, and is now waiting for the simulations to finish.f
  • #1
I know that "mcnpx n=filename" I run the file, but how do I run the entire folder with the entries inside?
 
  • #2
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?
 
  • #3
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?

Hi, thanks for replying. That was the conclusion I came to. I wanted the method I mentioned because I have more than 12 thousand simulations to do. I renamed them all and used the same batch method.
 
  • #4
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.
 
  • #5
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.
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. hahaha
 

Suggested for: [MCNPX] How to run an entire folder?

Replies
5
Views
854
Replies
1
Views
917
Replies
2
Views
186
Replies
3
Views
889
Replies
2
Views
931
Replies
5
Views
1K
Back
Top