MCNP6.2 - Combination of transformations

In summary, the conversation discusses difficulties with combining multiple transformations, particularly rotations. There is confusion about which reference frame is used for the rotation angle when applying consecutive transformations. An example involving a tilted channel and successive transformations is given to clarify the issue. The correct order of transformations is also mentioned, with the rotational part being applied first and then the translation. Ultimately, it is determined that the reference for a transformation will be the new origin created by the previous transformation.
  • #1
19matthew89
47
12
TL;DR Summary
It's unclear which reference frame is used for consecutive transformations and so how to combine TR
Hi everyone.

I am struggling understanding how to combine more than one transformations, especially rotations. This stems mainly form the fact that it's unclear to me what reference frame is used to define the transformations angle if two consecutive transformations are applied. If I have a rotation TR1 and then another rotation TR2, will the reference for rotation TR2 be the original reference frame or the tilted one defined by TR1.
I give the example of interest.
I have a channel which is tilted and translated with respect to center (translation doesn't matter, but let's say of (0 0 1)).
I want to have axial segmentation of this tilted channel to have tallies axially.

The model (too complicated to be changed so I'll stick to how it defines the channel) defines the surface of the tilted and translated channel in two steps

First a transformation TR1 of all the surfaces (let's assume phi=30°, theta=10° and no psi, i.e. psi=0°) is defined and applied in the definition of the surfaces.
E.g. TR1 reads
Code:
TR1= 0                  0              0   
         0.85286867     -0.5         0.15038294
         0.49240396     0.8660254    0.08682363
        -0.17364727      0.0       0.98480791

and for instance a plane 11 (originally parallel to XY plane) is defined via
Code:
11 PZ 1 10.0
.

Then another successive transformation for the cell defining the channel is applied with TRCL, and this rotation is about the z axis (which one? the original one?) and of -60° so it reads:
Code:
TRCL= 0.0         0.0         1.0
       0.5       0.8660254     0.0
      -0.8660254    0.5        0.0
        0.0         0.0        1.0
Now my question. In order to have a series of planes orthogonal to the axis of the channel, do I need to define another transformation, let' say TR3, given by the rotational part of TRCL_rot and TR1 (i.e TRCL_rot*TR1), and then apply that to the planes, such as
Code:
11 PZ 3 10.0
.
?

Or the last one is not necessary because the rotation of TRCL will occur around the new z axis defined by TR1 and so the orthogonality of the planes is already guaranteed by the first transformation TR1?

Thanks in advance

P.S. I have a related question about the orders of the transformation. Is the rotational part applied first and then the result being translated, or first translated and then rotated? I ask because in the latter case, if the orginal reference frame is considered, rotation phi of 180° after a translation is equivalent to bringing the item on the other side of the origin.
 
Engineering news on Phys.org
  • #2
Ok,
I solved it and found out that if a transformation is applied the reference for the following transformation will be the new origin, given by the first transformation.

About the order I solved it and it's actually the opposite of what I was expecting.
For the example given above, indeed a new transformation TR3 has to be defined with: the right translation vector, but teh order of the rotation is TR1*TRCL_rot, with TRCL_rot the rotational part of the TRCL card defined.

So the right transformation card reads:

Code:
TR3        0         0         1 
       0.85944703  0.48860593  0.15038294
       -0.50379801  0.85944704  0.08682363
       -0.08682363 -0.15038295  0.98480791
 
  • Like
Likes Alex A

Related to MCNP6.2 - Combination of transformations

What is the purpose of combining transformations in MCNP6.2?

Combining transformations in MCNP6.2 allows users to apply multiple geometric transformations (such as translations, rotations, and reflections) to a single object or set of objects within a simulation. This capability is useful for accurately modeling complex geometries and ensuring that all parts of the model are correctly positioned and oriented.

How do I define a transformation in MCNP6.2?

In MCNP6.2, transformations are defined using the TRn cards, where 'n' is a unique identifier for each transformation. Each TRn card specifies the parameters for the transformation, such as translation vectors and rotation angles. These transformations can then be applied to cells or surfaces by referencing the corresponding TRn identifier.

Can multiple transformations be applied to a single cell or surface in MCNP6.2?

Yes, multiple transformations can be applied to a single cell or surface in MCNP6.2 by combining them into a single transformation sequence. This is done by referencing multiple TRn cards in the desired order, allowing for complex combinations of translations, rotations, and other transformations to be applied in a specific sequence.

What is the syntax for combining transformations in MCNP6.2?

The syntax for combining transformations involves listing multiple TRn identifiers in the order they should be applied. For example, if you have two transformations defined as TR1 and TR2, and you want to apply TR1 followed by TR2 to a cell, you would reference them as TR1 TR2 in the cell definition. The transformations are applied in the order they are listed.

Are there any limitations or considerations when combining transformations in MCNP6.2?

When combining transformations in MCNP6.2, it is important to consider the order in which transformations are applied, as this can affect the final position and orientation of the objects. Additionally, users should be aware of potential numerical precision issues that can arise when applying multiple transformations, especially if the transformations involve very small or very large values. Properly testing and validating the combined transformations is essential to ensure accurate modeling results.

Similar threads

Replies
1
Views
1K
Replies
8
Views
2K
Replies
2
Views
4K
Replies
5
Views
2K
Replies
4
Views
872
Replies
3
Views
2K
Replies
7
Views
1K
Back
Top