[Gate-users] Need visualization of the geometry

Francisco Enríquez frank.enrqz at gmail.com
Mon Nov 9 22:30:14 CET 2020


Hi Viraj,

I’m assuming that if you type /vis/open OGL you don’t get any error (i.e. That you install GATE with a visualization tool).  If that’s the case, have you tried adding this line: /vis/drawVolume?
Additionally, nothing is going to be displayed in GATE until you initialise your simulation - /gate/run/initialize

I hope these basic steps could help you.

Cheers,
Francisco


From: Gate-users <gate-users-bounces at lists.opengatecollaboration.org> on behalf of viraj sawant <virajsawant121 at gmail.com>
Date: Tuesday, 10 November 2020 at 2:03 am
To: "gate-users at lists.opengatecollaboration.org" <gate-users at lists.opengatecollaboration.org>
Subject: Re: [Gate-users] Need visualization of the geometry

Can any one help me for this

On Sat, 7 Nov, 2020, 3:54 pm viraj sawant, <virajsawant121 at gmail.com<mailto:virajsawant121 at gmail.com>> wrote:
Dear Gate user below in the geometry which is define for PET scanner.i want to visualize it can you help how i can do that  I have tried with the /vis/open OGL command but nothing is shows in the viewer kindly provide the sequence of the commands so that i can able to visualize the above geometry in the viewer.
#

#     W O R L D
#
/gate/geometry/setMaterialDatabase    GateMaterials.db


/gate/world/geometry/setXLength       400. cm
/gate/world/geometry/setYLength       400. cm
/gate/world/geometry/setZLength       400. cm





/gate/world/daughters/name                    ecat
/gate/world/daughters/insert             cylinder
/gate/ecat/placement/setTranslation           0.0 0.0 0.0 cm
/gate/ecat/geometry/setRmax                   50 cm
/gate/ecat/geometry/setRmin                   43 cm
/gate/ecat/geometry/setHeight                 25 cm
# TASK
# CHOOSE A MATERIAL
#
/gate/ecat/setMaterial                        Air
/gate/ecat/vis/forceWireframe
/gate/ecat/vis/setColor                       red

# BLOCK
/gate/ecat/daughters/name                     blockDetector
/gate/ecat/daughters/insert                   box
/gate/blockDetector/placement/setTranslation  46 0 0 cm
/gate/blockDetector/geometry/setXLength       2 cm
/gate/blockDetector/geometry/setYLength       5.35 cm # 12*4mm for crystal + 11*0.5 for gaps
/gate/blockDetector/geometry/setZLength       5.35 cm

/gate/blockDetector/setMaterial               Air
/gate/ecat/vis/forceWireframe
/gate/blockDetector/vis/setColor              green



# C R Y S T A L
/gate/blockDetector/daughters/name             crystalUnit
/gate/blockDetector/daughters/insert           box
/gate/crystalUnit/placement/setTranslation     0.0 0.0 0.0 mm
/gate/crystalUnit/geometry/setXLength          20. mm
/gate/crystalUnit/geometry/setYLength          4. mm
/gate/crystalUnit/geometry/setZLength          4. mm

/gate/crystalUnit/setMaterial                  LSO
/gate/crystalUnit/vis/setColor                 yellow
/gate/crystalUnit/vis/setVisible              0



/gate/blockDetector/repeaters/insert                  ring
/gate/blockDetector/ring/setRepeatNumber              46

/gate/blockDetector/repeaters/insert                  linear
/gate/blockDetector/linear/setRepeatNumber            4
/gate/blockDetector/linear/setRepeatVector            0.0 0.0 55 mm

/gate/crystalUnit/repeaters/insert                    cubicArray
/gate/crystalUnit/cubicArray/setRepeatNumberX         1
/gate/crystalUnit/cubicArray/setRepeatNumberY         12
/gate/crystalUnit/cubicArray/setRepeatNumberZ         12
/gate/crystalUnit/cubicArray/setRepeatVector          0.0 4.5 4.5 mm



#
/gate/systems/ecat/block/attach     blockDetector
/gate/systems/ecat/crystal/attach   crystalUnit


/gate/crystalUnit/attachCrystalSD


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201109/a25b075e/attachment.html>


More information about the Gate-users mailing list