McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Mailing list

Links

Search

Code-repository (GitHub)

Report bugs (GitHub)


The Bragg_rystal_ent_C McXtrace Component

12.4  The Bragg_crystal_bent_BC McXtrace Component

Bent, perfect crystal with common cubic structures (diamond, fcc, or bcc, and others if symmetry form factor multipliers provided explicitly)

Identification

  • Author: Marcus H Mendenhall, NIST <marcus.mendenhall@nist.gov>

  • Origin: NIST

  • Date: Dec 2016

Description

Bragg_crystal_bent_BC.com is intended to supercede Bragg_Crystal_bent.comp For details see: The optics of focusing bent-crystal monochromators on X-ray powder diffractometers with application to lattice parameter determination and microstructure analysis, Marcus H. Mendenhall,* David Black and James P. Cline, J. Appl. Cryst. (2019). 52, https://doi.org/10.1107/S1600576719010951

Reads atomic formfactors from a data input file. The Bragg_Crystal code reflects ray in an ideal geometry, does not include surface imperfections or mosaicity

The crystal code reflects ray in an ideal geometry, i.e. does not include surface imperfections or mosaicity. The crystal planes from which the reflection is made lies in the X-Z plane on the unbent crystal rotated by an angle alpha about the Y axis with respect to the crystal surface.

The crystal itself is set in the X-Z plane positioned such that the long axis of the crystal surface coincides with the Z-axis, withs normal pointing in the poisitivce Y-direction.

The asummetry angle alpha is defined so that positive alpha reduces the Bragg angle to the plane i.e. alpha=Thetain grazes the planes. if alpha!=0, one should restrict to rays which have small kx values, since otherwise the alpha rotation is not around the diffraction axis.

The mirror is positioned such that the a-axis of the mirror ellipsoid is on the z-axis, the b-axis is along the y-axis and the c is along the x-axis. The reference point of the mirror is the ellipsoid centre, offset by one half-axis along the y-axis. (See the component manual for a drawing).

Notation follows Tadashi Matsushita and Hiro-O Hashizume, X-RAY MONOCHROMATORS. Handbook on Synchrotron Radiation,North-Holland Publishing Company, 1:263–274, 1983.

NOTE: elliptical coordinate code and documentation taken from Mirror_elliptic.comp distributed in McXtrace v1.2 written by: Erik Knudsen. However, the coordinates are rotated to be consistent with Perfect_Crystal.comp and NIST_Perfect_Crystal.comp Idealized elliptic mirror with surface ellipse and lattice ellipses independent, to allow construction of Johansson optics, for example.

Non-copyright notice: Contributed by the National Institute of Standards and Technology; not subject to copyright in the United States. This is not an official contribution, in that the results are in no way certified by NIST.

Example: Bragg_crystal_bent_BC( length=0.05, width=0.02, V=160.1826, h=1, k=1, l=1, alpha=0)

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

x_a

m

1st short half axis (along x). Commonly set to zero, which really implies infinite value, so crystal is an elliptic cylinder.

0

y_b

m

2nd short half axis (along y), which is also the presumed near-normal direction, reflection near the y-z plane.

1.0

z_c

m

Long half axis (along z). Commonly a=0. b=c, which creates a circular cylindrical surface.

1.0

lattice_x_a

m

Curvature matrix component around a for underlying lattice, for bent/ground/rebent crystals

0

lattice_y_b

m

Curvature matrix component around b for underlying lattice, for bent/ground/rebent crystals

1.0

lattice_z_c

m

curvature matrix component around c for underlying lattice, for bent/ground/rebent crystals THERE HAS BEEN NO TESTING for the case in which lattice_x_a != x_a.

1.0

length

m

z depth (length) of the crystal.

0.05

width

m

x width of the crystal.

0.02

V

Å\(^{3}\)

unit cell volume

160.1826

form_factors

str

Data file with atomic form factors

”FormFactors.txt”

material

Si, Ge (maybe also GaAs?)

”Si.txt”

alpha

rad

Asymmetry angle (alpha=0 for symmetric reflection, i.e. the Bragg planes are parallel to the crystal surface)

0.0

R0

Reflectivity. Overrides the computed Darwin reflectivity. Probably only useful for debugging.

0

debye_waller_B

Å\(^{2}\)

Debye-Waller temperature factor, M=B*(sin(theta)/lambda)ˆ2*(2/3), default=silicon at room temp.

0.4632

crystal_type

1 => Mx_crystal_explicit: provide explicit real and imaginary form factor multipliers structure_factor_scale_r, structure_factor_scale_i; 2 => Mx_crystal_diamond: diamond; 3 => Mx_crystal_fcc: fcc; 4 => Mx_crystal_fcc: bcc

1

h

Miller index of reflection

1

k

Miller index of reflection

1

l

Miller index of reflection

1

structure_factor_scale_r

1

real part of complex explicit override of structure factor multiplier for crystal structure if Bragg_crystal_explicit

0.0

structure_factor_scale_i

1

imaginary part of complex explicit override of structure factor multiplier for crystal structure if Bragg_crystal_explicit

0.0

verbose

if non-zero: Output more information (warnings and messages) to the console.

0

Links

  • Component source code found in file Bragg_crystal_bent_BC.comp.

  • material datafile obtained from http://physics.nist.gov/cgi-bin/ffast/ffast.pl


Last Modified: Monday, 05-Oct-2026 10:48:07 CEST
Search website mailinglist archive GitHub repos