Troubleshooting MCNP6: 'Bad Trouble in Subroutine Source' & More

Click For Summary
The user is encountering a "bad trouble in subroutine source" error when running MCNP6, indicating a potential issue with the source subroutine despite having included KCODE and KSRC in the code. Additionally, a warning about missing tallies is causing confusion, as the user believes they have correctly implemented them. Suggestions for troubleshooting include checking the installation of MCNP6, as an incomplete installation may lead to such errors. It's also advised to examine the input file for odd character codes or incorrect formatting, which could prevent proper parsing. Addressing these issues may help resolve the errors encountered.
tysonman166
Messages
7
Reaction score
1
TL;DR
Hi! so i kinda stuck when i tried to run my code in MCNP6 because the output keep showing me "bad trouble in subroutine source of mcrun
you need a source subroutine."
While im sure i already put my KCODE and KSRC in my code (on the picture below). Could anyone help me where i should start looking for the mistake? thank you!
Hi! so i kinda stuck when i tried to run my code in MCNP6 because the output keep showing me "bad trouble in subroutine source of mcrun
you need a source subroutine."
While I am sure i already put my KCODE and KSRC in my code (on the picture below). Could anyone help me where i should start looking for the mistake? thank you!
1656338769465.png


And this is kinda small but the output said "warning. there are no tallies in this problem." where it really got me confused since i already put the tally in there? i tried to swap the position with the material card but that leads me to more error (my material can't be read by MCNP). If anyone could help me it could be really great...

Many Thanks!
 
Engineering news on Phys.org
That error message sounds like your installation of MCNP6 is not complete. You might have to reinstall it.
 
This is a deep techy error. If MCNP can't find a card to specify source parameters it calls the user source routine, which by default is a dummy routine that reports an error and quits.

Most probable is something is preventing the correct parsing of the input file. This could be an odd character code in the input file, or wrong number of empty lines that separate sections.
 
What type of energy is actually stored inside an atom? When an atom is split—such as in a nuclear explosion—it releases enormous energy, much of it in the form of gamma-ray electromagnetic radiation. Given this, is it correct to say that the energy stored in the atom is fundamentally electromagnetic (EM) energy? If not, how should we properly understand the nature of the energy that binds the nucleus and is released during fission?

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
6
Views
665
Replies
6
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 24 ·
Replies
24
Views
6K
Replies
2
Views
914
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K