[Gate-users] volume/phantom orientation and generic move
Juan Sebastian Useche Parra
js.useche10 at uniandes.edu.co
Thu Jun 9 09:19:45 CEST 2022
Hi Howard,
You are right, the generic move overrides any of the placements for a geometry (up to my knowledge of GATE). So you have to set it to rotate each time it does a general movement. From my understanding, you want to rotate in around the X-axis so the list of placements should look like this:
###### List of placement (translation and rotation) according to time
###### Column 1 is Time in s (second)
###### Column 2 is rotationAngle in degree
###### Columns 3,4,5 are rotation axis
###### Columns 6,7,8 are translation in mm
Time s
Rotation deg
Translation mm
0 0 1 0 0 0 0 0
1 1 1 0 0 0 0 0
Hopefully it works
Juan Sebastian Useche
Albert-Ludwigs-Universität Freiburg
Freiburger Materialforschungszentrum (FMF)
Stefan-Meier-Str. 21
79104 Freiburg
Germany
From: Howard <lomahu at gmail.com>
Sent: Wednesday, 8 June 2022 17:38
To: Gate-users <gate-users at lists.opengatecollaboration.org>
Subject: [Gate-users] Fwd: volume/phantom orientation and generic move
Hi Gate-users,
I posted this problem ~ a month ago but received no response. And I still could not figure out what was wrong. Could someone who is familiar with generic move or phantom setup help me out?
Many thanks in advance,
Howard
---------- Forwarded message ---------
From: Howard <lomahu at gmail.com>
Date: Sun, May 15, 2022 at 12:59 PM
Subject: volume/phantom orientation and generic move
To: Gate-users <gate-users at lists.opengatecollaboration.org>
Hi Gate Users,
I encountered an issue of the volume/phantom orientation when using generic move. Here is the detail.
The phantom is rotated upright along the y-axis (vertical direction) using the following script:
/gate/world/daughters/name waterCylinder
/gate/world/daughters/insert cylinder
/gate/waterCylinder/geometry/setRmin 0. mm
/gate/waterCylinder/geometry/setRmax 8. mm
/gate/waterCylinder/geometry/setHeight 20. mm
/gate/waterCylinder/setMaterial Water
/gate/waterCylinder/vis/forceWireframe
/gate/waterCylinder/vis/setColor cyan
/gate/waterCylinder/placement/setRotationAxis 1 0 0
/gate/waterCylinder/placement/setRotationAngle 90. deg
1. I could make the rotation around y-axis using the following script. Everything is working well (see the first attached figure).
# Apply a rotation (1 deg/sec) to the cylinder so that it will finally rotate around the Y axis
# Note: the moves commands are applied onto the original orientation of the object (before rotations are applied)
/gate/waterCylinder/moves/insert rotation
/gate/waterCylinder/rotation/setSpeed 1. deg/s
/gate/waterCylinder/rotation/setAxis 0 0 1
2. If i comment out the three lines above
#/gate/waterCylinder/moves/insert rotation
#/gate/waterCylinder/rotation/setSpeed 1. deg/s
#/gate/waterCylinder/rotation/setAxis 0 0 1
and instead use the generic move (see the following script which is placed in a placement file of course), the phantom shows its alignment with the z-axis. In other words, the action around the x-axis to rotate 90 degrees takes no effect. It seems like the generic move overrides the phantom placement action. I cannot think why unless I did not use the generic move correctly
###### List of placement (translation and rotation) according to time
###### Column 1 is Time in s (second)
###### Column 2 is rotationAngle in degree
###### Columns 3,4,5 are rotation axis
###### Columns 6,7,8 are translation in mm
Time s
Rotation deg
Translation mm
0 0 0 0 1 0 0 0
1 1 0 0 1 0 0 0
2 2 0 0 1 0 0 0
3 3 0 0 1 0 0 0
4 4 0 0 1 0 0 0
5 5 0 0 1 0 0 0
6 6 0 0 1 0 0 0
7 7 0 0 1 0 0 0
8 8 0 0 1 0 0 0
9 9 0 0 1 0 0 0
10 10 0 0 1 0 0 0
11 11 0 0 1 0 0 0
12 12 0 0 1 0 0 0
...
Is there a way to fix the issue I am encountering? Many thanks.
Howard
More information about the Gate-users
mailing list