Help with mcnp modelling?

  • Thread starter jamez_302
  • Start date
  • #1
3
0

Main Question or Discussion Point

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
 

Answers and Replies

  • #2
Paul Colby
Gold Member
1,035
230
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.
 
  • #3
Astronuc
Staff Emeritus
Science Advisor
18,757
1,829
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.
 

Related Threads on Help with mcnp modelling?

  • Last Post
Replies
11
Views
655
  • Last Post
Replies
4
Views
514
  • Last Post
Replies
3
Views
9K
Replies
2
Views
1K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
1
Views
551
Replies
1
Views
1K
Replies
3
Views
469
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
3
Views
1K
Top