[Gate-users] How to rotate a volume in two direction?
Mery MB
mery.mb.mph at gmail.com
Tue Apr 24 16:27:57 CEST 2018
Hi Peyman
That is an easy way and correct but some times it make problem as well. I
tried before..
Imaging that volume is the jaw of a linac. I have at lease two jaws so
their mothers cover each other as well so it cause a problem. when two
mother cover each other even if it made by air, particle do not see the
daughters and they continuer their path and do not interact with Jaws.....
So your method do not work for all condition.
By the way Thanks for your answer....
Best
Mery
On Tue, Apr 24, 2018 at 6:40 PM Peyman Ghahramani <peymangh2404 at yahoo.com>
wrote:
> Hi Mery,
>
> You can define 2 seperate volume for 2 rotation.
> The first volume material can be Air for first rotation (90 degree around
> X) and the second volume as daughter of first one for second rotation (6
> degree around z) with main material.
>
> WR,
> Peyman
> On Apr 24, 2018, at 18:15, Mery MB <mery.mb.mph at gmail.com> wrote:
>>
>> Dear John
>>
>> NOt at all!!!!!!!!!!!!!!!!!
>>
>> As you told the below lines are setting the minimum and the maximum angle
>> of the cylinder. But I want to rotate this cylinder around two axis with
>> two different angle. At first rotate around x axis for 90 degree and then
>> rotate it around z axis for 6 degree.
>> /gate/Jy6-31/geometry/setPhiStart 9 deg
>> /gate/Jy6-31/geometry/setDeltaPhi 360 deg
>>
>>
>>
>> I tried to rotation simultaneously but it is not work properly at all!!!!
>> I tried the below lines :
>>
>> /gate/Jy6-31/placement/setRotationAxis 1 0 0
>> /gate/Jy6-31/placement/setRotationAngle 90.0 deg
>> /gate/Jy6-31/placement/setRotationAxis 0 0 1
>> /gate/Jy6-31/placement/setRotationAngle 6.0 deg
>>
>>
>> or
>>
>>
>> /gate/ Jy6-31/placement/alignToY
>> /gate/Jy6-31/placement/setRotationAxis 0 0 1
>> /gate/Jy6-31/placement/setRotationAngle 6.0 deg
>>
>>
>> both of them do not work properly!!!!!!!!!!!!!!!!!
>>
>> I will be thankful if someone can help me in this issue.
>>
>> Best
>> Mery
>>
>>
>>
>>
>>
>>
>> On Tue, Apr 24, 2018 at 5:51 PM John Apostolakis <
>> John.Apostolakis at cern.ch> wrote:
>>
>>> Dear Mery,
>>>
>>> I believe that what you are setting are the minimum and maximum angle of
>>> the cylinder. Not a rotation.
>>>
>>> Is this what you wanted ?
>>>
>>> John
>>> ===================================================
>>> John Apostolakis, EP Department, CERN
>>> SFT (SoFTware for Experiments) Group
>>>
>>> On 24 Apr 2018, at 09:33, Mery MB <mery.mb.mph at gmail.com> wrote:
>>>
>>>
>>> Dear Gate user
>>>
>>> I want to rotate a volume in two direction but the result of rotation is
>>> not sth thant I want?
>>> Is there any special point for this issue?
>>>
>>> For example:
>>> I want to rotate this cylinder at first 90 degree in x axis and then 6
>>> degree in z axis?
>>> How Can I do this rotation?
>>>
>>> it is really easy in Geant but I can not found its relation in Gate!!!
>>>
>>> # Jawy 6-3 (y2-head)
>>> /gate/Gantry/daughters/name Jy6-31
>>> /gate/Gantry/daughters/insert cylinder
>>> /gate/Jy6-31/geometry/setRmax 50.9 cm
>>> /gate/Jy6-31/geometry/setRmin 43.1 cm
>>> /gate/Jy6-31/geometry/setHeight 142.35 mm
>>> /gate/Jy6-31/geometry/setPhiStart 9 deg
>>> /gate/Jy6-31/geometry/setDeltaPhi 360 deg
>>> /gate/Jy6-31/placement/setTranslation 0 0 -250 mm
>>> /gate/Jy6-31/placement/setRotationAxis 1 0 0
>>> /gate/Jy6-31/placement/setRotationAngle 90.0 deg
>>>
>>> /gate/Jy6-31/setMaterial MLC
>>> /gate/Jy6-31/vis/forceSolid
>>> /gate/Jy6-31/vis/setColor red
>>>
>>> Best
>>> Mery
>>> _______________________________________________
>>> Gate-users mailing list
>>> Gate-users at lists.opengatecollaboration.org
>>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>>
>>>
>>> ------------------------------
>>
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20180424/c8a9b5a5/attachment.html>
More information about the Gate-users
mailing list