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)


McXtrace: Reflective_grating

[ Identification | Description | Input parameters | Links ]

The Reflective_grating Component

A reflective grating.

Identification

  • Site:
  • Author: Kristian Soerensen and Philip Smith (s154443@win.dtu.dk)
  • Origin: DTU
  • Date: June 2018

Description

A reflective grating that diffracts the incident photons.
The grating is in the XZ-plane. It then reflects the incoming photon using a MC picked angle, the span of this angle is given by d_phi (default=1)

Two modes are possible;
0) Lamellar grating.
1) Blazed grating.

Using Lamellar mode, the grating is diffracted using only the incoming and MC angle.
Using the Blazed mode, the grating diffracts the photon using the blazed angle.

The grating adjusts the weight of the given photon according to its direction based on:
1) The incoming photon.
2) Directional sampling.
3) Outgoing angle.
3) Interference and diffraction patterns.
If d_phi=0 and blazed=0, a perfectly reflecting mirror is simulated.

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
d_phidegRange of diffraction angle that is to be simulated -d_phi/2 ; d_phi/2 .1
R0 Constant reflecticity of the grating [0;1].1
r_rhol/mmNumber of lines pr mm of the grating.800
bAAWidth of the spacing i Angstrom. If zero, default is found using r_rho/3.0
N_slits0
dAAWidth of the slits in Angstrom. If zero, default is found using r_rho.0
cff Fixed focus constant for the blazed grating. (Not fully developed yet)0
blazed_angle0
zdepthmThe length of the grating.0.015
xwidthmThe width of the grating.0.136
blazed If nonzero, on-blazed condition will be used. If zero, lamellar conditions is used.0
display If non-zero, information will be displayed. Nb. generates much output.0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on 2023-12-19 19:37:45


Last Modified: Thursday, 16-May-2024 15:56:15 CEST
Search website mailinglist archive GitHub repos