[Gate-users] some simple question about geometry, material and visualization

肖期德 xiao7760091 at gmail.com
Wed Sep 24 04:11:28 CEST 2014


1.As the warning said"Otherwise, please copy the Materials.xml file from 
the gate-source directory in the directory where you run your main 
macro","Materials.xml" should be put in the directory $PWD where you run 
your Gate
2.Before the visualize,you'd better "/control/execute mac/visu.mac". Or 
organize your own "visu.mac"

On 2014年09月23日 17:14, Ali User wrote:
> Hi dear Gate users
>
> I have just started to use vGate (virtual Gate) and have some problems 
> that I don't know how to solve them. here are my problems:
>
> I tried to define a geometry after I defined the directory of the 
> materials, but Gate stopped running.
> here is my macro:
>
> Idle> /gate/geometry/setMaterialDatabase 
> /home/gate/Progs/Gate//gate_v6.2/Materials.xml
> Idle> gate/world/daughters/name H
> Idle> gate/world/daughters/insert box
> _/home/gate/Progs/Gate/gate_v6.2/source/geometry/src/GateMaterialDatabase.cc 
> (l.132): GateMaterialDatabase: could not find the definition for 
> material 'Vacuum' in material files_
> _gate at vgate:~$ _
> _
> _
> even when I changed the directory from "Materials.xml" to 
> "GateMaterials.db", some warnings appeared as follow:
>
>
> Idle> /gate/geometry/setMaterialDatabase 
> /home/gate/Progs/Gate/gate_v6.2/GateMaterials.db
> Idle> gate/world/daughters/name H
> Idle> gate/world/daughters/insert box
> _I/O warning : failed to load external entity "Materials.xml"_
> _I/O warning: Discard the previous warning if your simulation doesn't 
> transport OPTICAL PHOTONS. _
> _Otherwise, please copy the Materials.xml file from the gate-source 
> directory in the directory where you run your main macro._
> _
> _
> I ignored the warning and continued entering commands, but I faced 
> similar problem when I set "water" for material:
>
> Idle> /gate/geometry/setMaterialDatabase 
> /home/gate/Progs/Gate/gate_v6.2/GateMaterials.db
> Idle> gate/world/daughters/name H
> Idle> gate/world/daughters/insert box
> I/O warning : failed to load external entity "Materials.xml"
> I/O warning: Discard the previous warning if your simulation doesn't 
> transport OPTICAL PHOTONS.
> Otherwise, please copy the Materials.xml file from the gate-source 
> directory in the directory where you run your main macro.
> Idle> gate/H/geometry/setXLength 10. cm
> Idle> gate/H/geometry/setYLength 20. cm
> Idle> gate/H/geometry/setZLength 30. cm
> Idle> gate/H/setMaterial water
> _/home/gate/Progs/Gate/gate_v6.2/source/geometry/src/GateMaterialDatabase.cc 
> (l.132): GateMaterialDatabase: could not find the definition for 
> material 'water' in material files_
> _gate at vgate:~$_
>
> once again, when I replaced "water" with "LSO", warning message appeared:
>
> Idle> /gate/geometry/setMaterialDatabase 
> /home/gate/Progs/Gate/gate_v6.2/GateMaterials.db
> Idle> gate/world/daughters/name H
> Idle> gate/world/daughters/insert box
> I/O warning : failed to load external entity "Materials.xml"
> I/O warning: Discard the previous warning if your simulation doesn't 
> transport OPTICAL PHOTONS.
> Otherwise, please copy the Materials.xml file from the gate-source 
> directory in the directory where you run your main macro.
> Idle> gate/H/geometry/setXLength 10. cm
> Idle> gate/H/geometry/setYLength 20. cm
> Idle> gate/H/geometry/setZLength 30. cm
> Idle> gate/H/setMaterial LSO
> _I/O warning : failed to load external entity "Materials.xml"_
> _I/O warning: Discard the previous warning if your simulation doesn't 
> transport OPTICAL PHOTONS. _
> _Otherwise, please copy the Materials.xml file from the gate-source 
> directory in the directory where you run your main macro._
>
> I also tried to visualize the volume created, but after I entered the 
> following commands it did not work and no graphical volume was shown.
>
> Idle> gate/H/vis/setColor red
> Idle> gate/H/vis/forceWireframe
>
>
> I would be grateful to guide me.
> Thank you so much of your time
>
>
> _______________________________________________
> 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/mailman/private/gate-users/attachments/20140924/d54d50c8/attachment.html>


More information about the Gate-users mailing list