<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi, I'm far from an expert but try to add the command :<div><br></div><div>/gate/nameofyourregularMatrixvolume/setSkipEqualMaterials 0</div><div><br></div><div>at the end of the geometry macro, after you define your volume. </div><div><br></div><div>Hope this will help..</div><div><br></div><div>Tibo </div><div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Fri, 19 Apr 2013 09:23:55 +0800<br>From: nxchu@foxmail.com<br>To: gate-users@lists.opengatecollaboration.org<br>Subject: [Gate-users] NaN errors on some pixels of regularMatrix phantom in CTScanner system<br><br>
<style><!--
.ExternalClass BLOCKQUOTE {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
MARGIN-LEFT:2em;
}
.ExternalClass OL {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
}
.ExternalClass UL {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
}
.ExternalClass {
LINE-HEIGHT:1.5;
FONT-FAMILY:??;
COLOR:#000000;
FONT-SIZE:10.5pt;
}
.ExternalClass P {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
}
--></style>
<div>Dear Gate users, </div>
<div> </div>
<div>I attached an DoseActor to the regularMatrix phantom on a CTScanner system.
The following macros show how I collect dose:</div>
<div><font size="3"><font face="Calibri">/gate/actor/addActor DoseActor
mActor</font></font></div>
<div>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/save
./output/PhantomDose.txt</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3" face="Calibri">/gate/actor/mActor/attachTo NCAT #<font face="??">the name of my
regularMatrix phantom</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/enableEdep false</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/enableUncertaintyEdep
false</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/enableSquaredEdep
false</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/enableDose true</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/enableUncertaintyDose
true</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/normaliseDose false</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">/gate/actor/mActor/setResolution 72 88 63 #the pixel size is the
same with the size of regularMatrix</font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri"></font></font> </p></div>
<div>After the simulation (more than 10^7 events), I got the output file
"PhantomDose-Dose-Uncertainty.txt" that I expected. However, I found some
NaN value in the file. It looks like: </div>
<div>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">0.335632 nan 0.283809 0.277518 0.311712 0.232881 nan nan nan
0.14158 nan nan nan 0.11352 0.118089 nan nan nan nan 0.117827 nan nan 0.111348
nan nan 0.114444 nan 0.120727 0.112061 nan nan nan nan nan nan nan nan 0.114227
nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan 0.112236 nan nan
0.116712 nan nan nan nan nan nan 0.0982464 nan 0.695156 0.736034 0.694313
0.501348 0.876738 0.593643 0.684897 </font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">0.387904 0.308451 0.292645 0.307023 0.274505 0.196699 nan 0.125794
0.119966 0.122969 nan 0.0921764 nan nan 0.116727 nan nan nan nan 0.121635 nan
nan 0.089028 nan nan nan 0.115871 0.110041 0.120644 nan nan nan nan nan nan
0.113381 nan nan nan 0.115092 0.109492 nan nan nan nan nan nan nan 0.122921 nan
nan nan nan nan nan nan nan 0.110586 nan nan 0.103074 nan nan nan nan 1 0.712306
0.555066 0.52936 0.792737 0.498393 0.627436 </font></font></p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri"></font></font> </p>
<p style="MARGIN:0cm 0cm 0pt;" class="ecxMsoPlainText"><font size="3"><font face="Calibri">Please can any expert tell me why I got these errors?
</font></font></p></div>
<div> </div>
<div>Any suggestions or comments will be sincerely appreciated.</div>
<div> </div>
<div>Best regards,</div>
<hr style="WIDTH:210px;HEIGHT:1px;" align="left" color="#b5c4df" size="1">
<div><span>Janus</span></div>
<br>_______________________________________________
Gate-users mailing list
Gate-users@lists.opengatecollaboration.org
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</div></div> </div></body>
</html>