<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Sonoko,
<div><br>
</div>
<div>This problems sounds familiar to me. Have you actually run your simulation? Try it out quickly with a back-to-back source and then check that your photons are emitted from where you think the source should be.</div>
<div><br>
</div>
<div>I vaguely remember that sources did not show their updated position in the viewer, but maybe I'm just making it up. In any case, a short simulation should tell you if your source is placed correctly or not.</div>
<div><br>
</div>
<div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Marc</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>__________________________</div>
<div><br>
</div>
<div>Marc Chamberland, MSc</div>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)</div>
</span></div>
<br>
<div>
<div>On 2013-08-27, at 5:23 PM, Sonoko Nakano <<a href="mailto:snakano@sfu.ca">snakano@sfu.ca</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hello Gate users,<br>
<br>
I tried to attach the source to a volume and rotate the volume. But the source is not rotated.<br>
Can someone help me?<br>
<br>
<br>
## PHANTOM <br>
## Create the phantom volume <br>
############################################################## <br>
/gate/world/daughters/name Phantom1 <br>
/gate/world/daughters/insert cylinder <br>
/gate/Phantom1/geometry/setRmax 5 mm <br>
/gate/Phantom1/geometry/setRmin 0. mm <br>
/gate/Phantom1/geometry/setHeight 6.3 cm <br>
/gate/Phantom1/setMaterial Air<br>
#/gate/Phantom1/vis/setColor white <br>
#/gate/Phantom1/vis/forceSolid<br>
<br>
<br>
## D E F I N E T H E S O U R C E<br>
#############################################################<br>
/gate/source/addSource SourceConfinement<br>
/gate/source/SourceConfinement/gps/type Volume <br>
/gate/source/SourceConfinement/gps/shape Cylinder <br>
/gate/source/SourceConfinement/gps/radius 1 mm<br>
/gate/source/SourceConfinement/gps/halfz 31.5 mm<br>
/gate/source/SourceConfinement/gps/centre 0. 0. 0. mm<br>
/gate/source/SourceConfinement/gps/particle gamma<br>
/gate/source/SourceConfinement/gps/energy 140. keV<br>
/gate/source/SourceConfinement/setActivity 2400000 Bq<br>
/gate/source/SourceConfinement/gps/angtype iso<br>
<br>
/gate/source/SourceConfinement/attachTo Phantom1 #<----- attach to the volume<br>
<br>
/gate/Phantom1/placement/setRotationAxis 1 0 0 #<----- rotate the volume<br>
/gate/Phantom1/placement/setRotationAngle 90 deg #<----- rotate the volume<br>
/gate/source/SourceConfinement/visualize 5000 red 2<br>
<br>
<br>
When I view the volume (called Phantom1), it is rotated.<br>
But when I view the source, it is not rotated. <br>
<br>
Thank you,<br>
<br>
Sonoko<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: "Marc Chamberland" <<a href="mailto:MarcChamberland@cmail.carleton.ca">MarcChamberland@cmail.carleton.ca</a>><br>
To: "Sonoko Nakano" <<a href="mailto:snakano@sfu.ca">snakano@sfu.ca</a>><br>
Cc: "Gate Users" <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Sent: Monday, August 19, 2013 11:25:34 AM<br>
Subject: Re: [Gate-users] Gate v6.2 Source setRotationAxis<br>
<br>
Someone can correct me if I'm wrong, but I don't think you can use these commands with a source.
<br>
<br>
<br>
You have to use the Geant4 General Particle Source (gps) commands to position a source.
<br>
<br>
<br>
See the Geant4 gps user's manual here: <a href="http://reat.space.qinetiq.com/gps/new_gps_sum_files/gps_sum.htm">
http://reat.space.qinetiq.com/gps/new_gps_sum_files/gps_sum.htm</a> <br>
<br>
<br>
<br>
<br>
But I believe a simpler alternative is to attach the source to a volume and place (or move) the volume as you wish.
<br>
<br>
<br>
<br>
<br>
Marc <br>
<br>
<br>
<br>
<br>
<br>
<br>
__________________________ <br>
<br>
<br>
Marc Chamberland, MSc PhD candidate <br>
Department of Physics <br>
Carleton University <br>
Ottawa (ON) <br>
<br>
<br>
On 2013-08-19, at 2:18 PM, Sonoko Nakano < <a href="mailto:snakano@sfu.ca">snakano@sfu.ca</a> >
<br>
wrote: <br>
<br>
<br>
Hello Gate users, <br>
<br>
My computer is MacBook Pro(Mac OSX), and I am using gate v6.2. <br>
<br>
When I use /gate/source/[source name]/setRotationAxis 1 0 0 <br>
/gate/source/[source name]/setRotationAngle 90 deg <br>
<br>
I got an error message: <br>
<br>
***** COMMAND NOT FOUND </gate/source/[source name]/setRotationAxis 1 0 0 > *****
<br>
<br>
Can someone help me? <br>
<br>
Thank you, <br>
<br>
Sonoko <br>
_______________________________________________ <br>
Gate-users mailing list <br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a>
<br>
<br>
<br>
<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>