<div dir="ltr">Hello Ali,<div><br></div><div>I don't know if it can resolve your problem, but I've had a similar error. I resolved it adding a blanck line at the end of my materials database file.</div><div><br></div><div>Alexandre</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aeGVsYS5lcnJhY0BnbWFpbC5jb20%3D&type=zerocontent&guid=61fc4873-2400-4a3d-a99b-593b6b7511b0"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-09 13:54 GMT+02:00 Boersma David <span dir="ltr"><<a href="mailto:david.boersma@medaustron.at" target="_blank">david.boersma@medaustron.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_2055555518969630673WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Ali,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">(Please keep the discussion on the mailing list, others might have similar problems. Or they might be able to offer help.)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Just to be sure: could you check that the “setMaterialDatabase” command is *before* any “setMaterial” command in your mac file?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Good luck!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">David<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ali Ebrahimi [mailto:<a href="mailto:a.ebrahimi2008@yahoo.com" target="_blank">a.ebrahimi2008@yahoo.<wbr>com</a>]
<br>
<b>Sent:</b> Wednesday, May 9, 2018 11:12 AM<br>
<b>To:</b> Boersma David <<a href="mailto:david.boersma@medaustron.at" target="_blank">david.boersma@medaustron.at</a>><br>
<b>Subject:</b> Re: [Gate-users] Material<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Verdana",sans-serif">Dear David<br>
<br>
Thank you for your attention and your answers. I solved my problem. But there is a problem for me. when the main.mac is running, there is an error like below:<br>
[GateMaterialDatabase: could not find the definition for material 'Air' in material files]<br>
I checked the definition of Air in my materials 'db' file. but there was no problem!<br>
In the main. mac, I defined the:<br>
/gate/world/setMaterial    Air<br>
and then, I defined Air in my materials 'db' file. there is the same spell. but I don't know!<br>
<br>
I tested stuff, change the 'Air' in the   /gate/world/setMaterial  Air to /gate/world/setMaterial Teeth<br>
Then I run it, but there is an error like previous error!!<br>
I can't solve this error!<br>
Ali Ebrahimi<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div id="m_2055555518969630673yahoo_quoted_6122015999">
<div><div><div class="h5">
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">On Tuesday, 8 May 2018, 4:28:32 PM GMT+4:30, Boersma David <<a href="mailto:david.boersma@medaustron.at" target="_blank">david.boersma@medaustron.at</a>>
 wrote: <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u> <u></u></span></p>
</div>
</div></div><div><div><div class="h5">
<div id="m_2055555518969630673yiv8164912385">
<div>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Hi Ali,</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> </span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Two questions:</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> </span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msolistparagraph" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">(1)</span><span style="font-size:7.0pt;font-family:"Helvetica",sans-serif;color:#26282a">   
</span><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Do you mean “materialAF.dat” (without s before AF) or “materialsAF.dat” (with an s before AF)?</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> </span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msolistparagraph" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">(2)</span><span style="font-size:7.0pt;font-family:"Helvetica",sans-serif;color:#26282a">   
</span><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">If you provide just filename without path, then the file should be in the same directory as where you run Gate. Usually we make a dedicated workspace directory for a simulation,
 with “data”, “mac” and “output” directories, and we run (from the workspace directory) something like “Gate mac/main.mac”. Your database file would naturally be stored in the “data” directory. If that is how you did it, then in the mac file the database file
 should be called “data/materialsAF.dat” (with or without s), just “materialsAF.dat” would give an error similar to what you quote.</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> </span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Maybe you can first try to answer these questions. If that does not resolve your issue then we can try other things.</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> </span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Good luck!</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">David</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> </span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
<div id="m_2055555518969630673yiv8164912385yqt06396">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><b><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a">From:</span></b><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> Gate-users [<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">mailto:gate-users-bounces@<wbr>lists.opengatecollaboration.<wbr>org</a>]
<b>On Behalf Of </b>Ali Ebrahimi<br>
<b>Sent:</b> Sunday, May 6, 2018 12:44 PM<br>
<b>To:</b> <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<b>Subject:</b> [Gate-users] Material</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u><u></u></span></p>
</div>
</div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> <u></u><u></u></span></p>
<div>
<div>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Hi, all gate users<u></u><u></u></span></p>
</div>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> <u></u><u></u></span></p>
</div>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">I have a question about the setMaterialDetabase.<u></u><u></u></span></p>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">I
</span><span class="m_2055555518969630673yiv8164912385ydp2f732405shorttext"><span lang="EN" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">have written</span></span><span lang="EN" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">
</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">the main.mac and I have defined the setMaterialDetabase with ''.dat''. This file related to an phantom which reported by ICRP110. There are an error when running is performed.<u></u><u></u></span></p>
</div>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> <u></u><u></u></span></p>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Error:<u></u><u></u></span></p>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> <u></u><u></u></span></p>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">Could not find material database file  /home/gate/project/<wbr>materialsAF.dat<u></u><u></u></span></p>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"> <u></u><u></u></span></p>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">why the gate can not find my ''materialAF.dat''??<u></u><u></u></span></p>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:1.0in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><br>
Thanks<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<p class="m_2055555518969630673yiv8164912385msonormal" style="margin-left:.5in"><b><span lang="EN-GB" style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#26282a">Disclaimer:</span></b><span style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#26282a"><br>
</span><span lang="EN-GB" style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:#26282a">Please notice our E-Mail Disclaimer <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.medaustron.at%2Femail-disclaimer%2F&data=02%7C01%7Cdavid.boersma%40medaustron.at%7C1e6d00f3262b432c046508d5b58cf4b5%7Cadb749e06dfd4f6fbea8cd9f8e0c9b89%7C0%7C1%7C636614539381063409&sdata=epfSC2srEBUWrefwJLXmC6aSf9G%2BfhOyABb78mWtXWc%3D&reserved=0" target="_blank"><span style="color:#112359">http://www.<wbr>medaustron.at/email-<wbr>disclaimer/</span></a></span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">
  <u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a"><u></u> <u></u></span></p>
</div>
</div>
</div></div><div id="m_2055555518969630673yqt54948">
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282a">______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fmailman%2Flistinfo%2Fgate-users&data=02%7C01%7Cdavid.boersma%40medaustron.at%7C1e6d00f3262b432c046508d5b58cf4b5%7Cadb749e06dfd4f6fbea8cd9f8e0c9b89%7C0%7C1%7C636614539381073418&sdata=f7f8rKmuHu0m%2F82XOWF8Xwkx1Qc821HfZJkI1uDWNVQ%3D&reserved=0" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div><span class="">
<div class="m_2055555518969630673WordSection1">
<p class="MsoNormal"><small><span><u></u><u></u></span><b><span style="font-family:"Verdana","sans-serif";color:rgb(17,35,89)" lang="EN-GB">Disclaimer:</span></b><br>
<span style="font-family:"Verdana","sans-serif";color:rgb(17,35,89)" lang="EN-GB">Please notice our E-Mail Disclaimer <a href="http://www.medaustron.at/email-disclaimer/" target="_blank"><span style="color:rgb(17,35,89)">http://www.<wbr>medaustron.at/email-<wbr>disclaimer/</span></a></span></small><span><u></u><u></u></span><u></u> <u></u></p>
</div>
<br>
</span></div>

<br>______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br></blockquote></div><br></div>