[mcxtrace-users] Errors when using Mirror_curved.comp and Mirror_elliptic.comp(McXtrace 1.7)

Peter Kjær Willendrup pkwi at fysik.dtu.dk
Tue Oct 18 18:53:19 CEST 2022

Dear Yangkang Wu,

Thank you for reaching out about your McXtrace 1.7 issues.

In regard to your compilation-issue with Mirror_elliptic.comp you are completely right, the version shipped with v. 1.7 contained errors.

The component has already been corrected by Antoine Pado from SOLEIL. You may download the updated component via this link:

In regard to your issue with Mirror_curved I am not completely convinced there is a problem, but will of course investigate further.
In the meantime, please study how the component is used in the example instruments of your McXtrace 1.7 version. The mirror is in use in several instrument models:


In XFEL_SPB.instr Mirror_curved is used in a Kirkpatrick-Baez geometry and seems to work as expected.

Best regards,
Peter Willendrup

On 18 Oct 2022, at 17.51, 吴燕康 <wuyk21 at mails.tsinghua.edu.cn<mailto:wuyk21 at mails.tsinghua.edu.cn>> wrote:

    I am using McXtrace v1.7 to simulate Kirkpatrick-Baez focusing.Recently,I encountered some problems when I used two components  (Mirror_curved.comp and Mirror_elliptic.comp) for X-ray optical tracing.

    The position of the cylindrical mirror was wrong. If this instrument contains Mirror_elliptic.comp, there will be an error that the compiler translates the instrument definition into a Monte Carlo simulation program provided in ISO-C,some parameters undeclared. When using a cylindrical mirror, the mirror will be extended from the center of the mirror, backward along the z-axis to the aperture position and forward along the z-axis to the length of a mirror.

    This is obviously not true. I have proven it in the attached document. But so far, I haven’t found the solution to this problem, and the purpose of writing this letter is to sincerely ask for advice.

    Any help would be appreciated.

Yangkang WU
mcxtrace-users mailing list
mcxtrace-users at mcxtrace.org<mailto:mcxtrace-users at mcxtrace.org>

Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent
Næstformand for DTU Fysik LSU

DTU Physics

[cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk]

Technical University of Denmark

[cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk]

Department of Physics
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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcxtrace.org/pipermail/mcxtrace-users/attachments/20221018/4f50b068/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcxtrace.org/pipermail/mcxtrace-users/attachments/20221018/4f50b068/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcxtrace.org/pipermail/mcxtrace-users/attachments/20221018/4f50b068/attachment-0003.gif>

More information about the mcxtrace-users mailing list