[mcxtrace-users] improved perfect crystal model

Mendenhall, Marcus marcus.mendenhall at nist.gov
Thu Oct 15 14:38:17 CEST 2015


Erik:

I now have a working doubly-bent crystal model, too, capable of creating a Johannson optic.  I also have updated the Source_lab.comp into Source_lab_lorentzian.comp.  The original Source_lab, although documented to produce Lorentzian lines, actually produces Gaussians, if one looks at the code.  The Source_Lab_Lorentzian produces reasonable facsimilies of the spectra of some commonly-used anode materials.

I have slightly updated the NIST_Perfect_crystal I provided before, so that I think it handles non-zero alpha angles (angle between crystal surface and lattice planes).

I would like to start writing documentation for these.  What format do you want text for your manual?  (LaTeX would be my preferred format).

I am attaching an updated NIST_Perfect_crystal.comp, Source_Lab_Lorentzian.comp, and the new NIST_bent_crystal.comp, along with an instrument which uses these.  The comments and math in the sample instrument show how to compute the correct curvatures for an asymmetric (different source and focal distance) Johannson optic for a given material and center wavelength. I am also attaching a PDF of the geometries of the two crystal types, just as a start on documentation.

Finally, I am attaching a modified version of PSD_Monitor.comp.  The monitor, as provided in the distribution, results in invalid output if you make it a 1-dimensional monitor.  This is because in the function which finalizes the output from a general n-dimensional detector in mcdetector_import() in mccode_r.c, the downconversion of the rank of the detector preserves the variables as X & Y (correct for a 2 detector), instead of converting them to X and (I, Ierr) which is correct for the 1D case.  This probably should ultimately be fixed at this level, but for now the new PSD_Monitor checks to see if it is really 1D, and directly calls the appropriate output function.

All of these should, of course, be considered very beta code for now, although I have tried to validate both crystals fairly thoroughly.

Marcus Mendenhall

Materials Measurement Science Division
National Institute of Standards and Technology
100 Bureau Dr. stop 8370 (217/B115)
Gaithersburg MD 20899 USA
phone: +1(301) 975-8631
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DBD_IBM_Si_analyzer.instr
Type: application/octet-stream
Size: 7269 bytes
Desc: DBD_IBM_Si_analyzer.instr
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NIST_Perfect_Crystal.comp
Type: application/octet-stream
Size: 18506 bytes
Desc: NIST_Perfect_Crystal.comp
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NIST_bent_crystal.comp
Type: application/octet-stream
Size: 23239 bytes
Desc: NIST_bent_crystal.comp
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Source_lab_lorentzian.comp
Type: application/octet-stream
Size: 14265 bytes
Desc: Source_lab_lorentzian.comp
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PSD_monitor.comp
Type: application/octet-stream
Size: 5364 bytes
Desc: PSD_monitor.comp
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0004.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NIST_mcx_crystals.pdf
Type: application/pdf
Size: 57848 bytes
Desc: NIST_mcx_crystals.pdf
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/mcxtrace-users/attachments/20151015/acd6a642/attachment-0005.htm>


More information about the mcxtrace-users mailing list