[mcxtrace-users] error
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Sat Oct 15 12:46:34 CEST 2016
Dear Ali,
Please try to take just a little time reading the error messages before simply posting them here… :-) Even though they are not always easy to understand, they always provide some sort of information.
The error message is:
“Unmatched actual parameter filename for component Monitor()”
- which means that the Monitor() component does not have a filename parameter. From the mxdoc documentation accessible via "Help (MxDoc)” -> "Component Library Index” you will find that the only parameters of Monitor.comp are these:
xmin: Lower x bound of detector opening (m)
xmax: Upper x bound of detector opening (m)
ymin: Lower y bound of detector opening (m)
ymax: Upper y bound of detector opening (m)
xwidth: Width of detector. Overrides xmin,xmax. (m)
yheight: Height of detector. Overrides ymin,ymax. (m)
restore_xray: If set, the monitor does not influence the xray state (1)
- Meaning: No filename. Monitor.comp just measures intensity as a scalar number, printed to the simulation terminal. If you need file-based output, please use one of the other monitors that do allow a filename.
Best regards and have a nice weekend,
Peter Willendrup
Peter Kjær Willendrup
Senior Research Engineer, Special Advisor
DTU Physics
Technical University of Denmark
[cid:image002.gif at 01CCCAF1.5E6331F0]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>
On 15 Oct 2016, at 12:34 , Ali Kazemi <alikazemi7 at hotmail.com<mailto:alikazemi7 at hotmail.com>> wrote:
Hi
What is the problem with definition component Monitor:
COMPONENT backdet = Monitor(filename="back.dat", xwidth=500e-6, yheight=85e-6)
AT (500e-6,0,(d3+0.01)) RELATIVE Origin
the error is attached.
Thanks
<error detetor.png>_______________________________________________
mcxtrace-users mailing list
mcxtrace-users at mcxtrace.org<mailto:mcxtrace-users at mcxtrace.org>
http://mailman.mcxtrace.org/cgi-bin/mailman/listinfo/mcxtrace-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20161015/1dbc00ba/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20161015/1dbc00ba/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20161015/1dbc00ba/attachment-0001.gif>
More information about the mcxtrace-users
mailing list