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_imple McXtrace Component

12.2  The Bragg_crystal_simple McXtrace Component

Perfect Bragg reflecting slab

Identification

  • Author: Jose I. Robledo

  • Origin: FaMAF - UNC, Argentina

  • Date: February 2016

Description

Rectangle of matter perfectly reflecting the incident X-ray beam that fulfills Bragg’s law for a set of scattering vectors in the vicinity of the theoretical Q given a d-spacing. The rectangle is in the x-y plane.

Example: Bragg_crystal_simple( yheight=0.05, xwidth=0.02, DM=3.1356, err_Q= 0.000075, r0=1.0)

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

xmin

m

Lower x bound (overridden by xwidth/yheight)

1.0

xmax

m

Upper x bound (overridden by xwidth/yheight)

1.0

ymin

m

Lower y bound (overridden by xwidth/yheight)

1.0

ymax

m

Upper y bound (overridden by xwidth/yheight)

1.0

xwidth

m

Width in the x direction

0.0

yheight

m

Height in the y direction

0.0

r0

Maximum reflectivity

1

DM

Å\(^{-1}\)

d-spacing of the crystal

0

err_Q

dQ/Q relative error of the modulus of Q vector. Approximates the Darwin width of the crystal.

0.0001

Links

  • Component source code found in file Bragg_crystal_simple.comp.


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