<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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<br>
    2.Before the visualize,you'd better "/control/execute mac/visu.mac".
    Or organize your own "visu.mac"<br>
    <br>
    <div class="moz-cite-prefix">On 2014年09月23日 17:14, Ali User wrote:<br>
    </div>
    <blockquote
cite="mid:CAAiyeaSuux+G4pRnb0CFD2LJCTrZS5Ww9XYQuZoGYTd5vSHJmg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi dear Gate users</div>
        <div><br>
        </div>
        <div>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:</div>
        <div><br>
        </div>
        <div>I tried to define a geometry after I defined the directory
          of the materials, but Gate stopped running.</div>
        <div>here is my macro:</div>
        <div><br>
        </div>
        <div>
          <div>Idle> /gate/geometry/setMaterialDatabase
            /home/gate/Progs/Gate//gate_v6.2/Materials.xml</div>
          <div>Idle> gate/world/daughters/name H</div>
          <div>Idle> gate/world/daughters/insert box</div>
          <div><u>/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</u></div>
          <div><u>gate@vgate:~$ </u></div>
        </div>
        <div><u><br>
          </u></div>
        <div>even when I changed the directory from "Materials.xml" to
          "GateMaterials.db", some warnings appeared as follow:</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>Idle> /gate/geometry/setMaterialDatabase
            /home/gate/Progs/Gate/gate_v6.2/GateMaterials.db</div>
          <div>Idle> gate/world/daughters/name H</div>
          <div>Idle> gate/world/daughters/insert box</div>
          <div><u>I/O warning : failed to load external entity
              "Materials.xml"</u></div>
          <div><u>I/O warning: Discard the previous warning if your
              simulation doesn't transport OPTICAL PHOTONS. </u></div>
          <div><u>Otherwise, please copy the Materials.xml file from the
              gate-source directory in the directory where you run your
              main macro.</u></div>
          <div><u><br>
            </u></div>
          <div>I ignored the warning and continued entering commands,
            but I faced similar problem when I set "water" for material:
             </div>
        </div>
        <div><br>
        </div>
        <div>
          <div>Idle> /gate/geometry/setMaterialDatabase
            /home/gate/Progs/Gate/gate_v6.2/GateMaterials.db</div>
          <div>Idle> gate/world/daughters/name H</div>
          <div>Idle> gate/world/daughters/insert box</div>
          <div>I/O warning : failed to load external entity
            "Materials.xml"</div>
          <div>I/O warning: Discard the previous warning if your
            simulation doesn't transport OPTICAL PHOTONS. </div>
          <div>Otherwise, please copy the Materials.xml file from the
            gate-source directory in the directory where you run your
            main macro.</div>
          <div>Idle> gate/H/geometry/setXLength 10. cm</div>
          <div>Idle> gate/H/geometry/setYLength 20. cm</div>
          <div>Idle> gate/H/geometry/setZLength 30. cm</div>
          <div>Idle> gate/H/setMaterial water</div>
          <div><u>/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</u></div>
          <div><u>gate@vgate:~$</u> </div>
        </div>
        <div><br>
        </div>
        <div>once again, when I replaced "water" with "LSO", warning
          message appeared: </div>
        <div> </div>
        <div><br>
        </div>
        <div>
          <div>Idle> /gate/geometry/setMaterialDatabase
            /home/gate/Progs/Gate/gate_v6.2/GateMaterials.db</div>
          <div>Idle> gate/world/daughters/name H</div>
          <div>Idle> gate/world/daughters/insert box</div>
          <div>I/O warning : failed to load external entity
            "Materials.xml"</div>
          <div>I/O warning: Discard the previous warning if your
            simulation doesn't transport OPTICAL PHOTONS. </div>
          <div>Otherwise, please copy the Materials.xml file from the
            gate-source directory in the directory where you run your
            main macro.</div>
          <div>Idle> gate/H/geometry/setXLength 10. cm</div>
          <div>Idle> gate/H/geometry/setYLength 20. cm</div>
          <div>Idle> gate/H/geometry/setZLength 30. cm</div>
          <div>Idle> gate/H/setMaterial LSO</div>
          <div><u>I/O warning : failed to load external entity
              "Materials.xml"</u></div>
          <div><u>I/O warning: Discard the previous warning if your
              simulation doesn't transport OPTICAL PHOTONS. </u></div>
          <div><u>Otherwise, please copy the Materials.xml file from the
              gate-source directory in the directory where you run your
              main macro.</u></div>
          <div><br>
          </div>
          <div>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.<br>
          </div>
          <div><br>
          </div>
          <div>Idle> gate/H/vis/setColor red    </div>
          <div>Idle> gate/H/vis/forceWireframe</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I would be grateful to guide me.</div>
        <div>Thank you so much of your time </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>