Efficiently Running Multiple MCNP Simulations with Variable Source Positions

  • Thread starter Thread starter jamez_302
  • Start date Start date
  • Tags Tags
    Mcnp Modelling
AI Thread Summary
To efficiently model a HPGe detector with a Co-60 source in MCNP across 50 different positions, it's recommended to use a scripting language like Bash or Python to automate the process. This approach allows for the generation of multiple input files without manual editing, saving time and effort. Additionally, running the jobs in parallel can further optimize the workflow if multiple machines are available. Utilizing programming languages like Fortran or C++ with an interaction loop is another viable method for handling such computations. Automating the input file generation streamlines the modeling process significantly.
jamez_302
Messages
3
Reaction score
0
I'm currently working on a project using mcnp to model a HPGe detector with a Co-60 source. I have defined my cells and got my geometry spot on but the project requires me to move the source around about 50 different positions relative to the detector. I was wondering if there was any way to basically incorporate this into one input file to save me having to edit it 50 times and run it on 50 separate occasions? Thanks
 
Engineering news on Phys.org
Don't know about mcnp in particular but 50 input files and a scripting language like bash or python would make short work of it. You could even run the jobs in parallel if multiple machines are to be had.
 
Paul Colby said:
Don't know about mcnp in particular but 50 input files and a scripting language like bash or python would make short work of it. You could even run the jobs in parallel if multiple machines are to be had.
I had the same thought this morning, but didn't respond. That's pretty much how folks do a series of computations, if not using Fortran or C++ with an interaction loop and 50 line input file.
 
Hello everyone, I am currently working on a burnup calculation for a fuel assembly with repeated geometric structures using MCNP6. I have defined two materials (Material 1 and Material 2) which are actually the same material but located in different positions. However, after running the calculation with the BURN card, I am encountering an issue where all burnup information(power fraction(Initial input is 1,but output file is 0), burnup, mass, etc.) for Material 2 is zero, while Material 1...
Back
Top