MCNP TR Transform Card Question

MadGander
Messages
28
Reaction score
1
TL;DR
Question regarding the surface transform card in MCNP.
I'm trying to rotate an RPP 45 degrees around the y axis (BUT NOT THE ORIGIN Y AXIS, rather the y axis at x=a, z=b). Is there a way to do this in MCNP? I've tried every single possible combination of angles and inputs to no avail. Again, I have an RPP that is not centered at the origin and I want to rotate it around the y axis that travels through the middle of the RPP cell.
 
Engineering news on Phys.org
A rotation around the origin followed by a translation is equivalent to a rotation around any arbitrary centre. Work out a rotation matrix for the 45 degree turn, then feed x=a, z=b through that. The difference between a -> a', b -> b' gets you the amount you need to subtract to put it back in it's place. The translation vector. The rotation matrix needs to be transposed and the translation numbers go in as they are. If you don't transpose the rotation will be in the wrong direction because of the way the command is defined (how to create the alt co-ordinate system from the global one).

The gritty details are here. Are you familiar with matrix transforms?
 
Alex A said:
A rotation around the origin followed by a translation is equivalent to a rotation around any arbitrary centre. Work out a rotation matrix for the 45 degree turn, then feed x=a, z=b through that. The difference between a -> a', b -> b' gets you the amount you need to subtract to put it back in it's place. The translation vector. The rotation matrix needs to be transposed and the translation numbers go in as they are. If you don't transpose the rotation will be in the wrong direction because of the way the command is defined (how to create the alt co-ordinate system from the global one).

The gritty details are here. Are you familiar with matrix transforms?
Thanks for the help. I have another mcnp related question regarding the MT card. I'm using "MT
u-uo2.40t o-uo2.40t" and getting a "xs is missing from xsdir_mcnp6.1" fatal error. I'm running the input deck on version 6.3, so based on the error I'm assuming that the .40t table is not compatible with mcnp6.3. Any idea which table identifier I should use instead?
 
Hello, I am designing an X-ray irradiator with MCNP simulation. But I am still in confusion, whether my X-ray housing will be a box or a cylinder. If the box (macrobody identifier of MCNP) is required, I am trying to match the dimension as that of the cylinder, i,e, the height will be that of the cylinder height, and the other two dimensions will be that of the radius of the cylinder (surface 52 and 53). Can anybody please help me define the surfaces? Below is my attached text file. Forgot...

Similar threads

Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
994
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K