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: Test_PowderN

[ Identification | Description | Examples | Input parameters | Links ]

The Test_PowderN Instrument

Unit-test instrument for the PowderN sample component.

Identification

  • Site: Tests_samples
  • Author: Erik B Knudsen (erkn@fysik.dtu.dk)
  • Origin: DTU Physics
  • Date: 2009

Description

Simply a model source illuminating a powder sample.
The default sample itself is an LaB6-powder.
Alternatively, the Single_crystal (powder mode) and FluoPowder components can also be tested.

Examples

(Test cases in bold)
  • Test: index=1 Detector: Sph_mon_I=1.26755e-11
  • Example: index=2 Detector: Sph_mon_I=4.44793e-13
  • Test: index=3 Detector: Sph_mon_I=1.98093e-11
  • (Unittest disabled for Single_crystal powder-mode, numerically unstable on GPU)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
E0keVSource energy (width 1 keV)15
L1mSource-sample distance10
directbeam1Suppress direct beam (0) or not (1)0
reflectionsstrList of powder reflections, LAU/LAZ/CIF format."LaB6.cif"
SPLITS1Number of SPLIT's before sample1
frac_c1Fraction of stats assigned to coherent scattering0.8
frac_i1Fraction of stats assigned to incoherent scattering0.1
frac_t1Fraction of stats assigned to unscattered, "direct beam"0.1
d_phidegAngle corresponding to the vertical angular range to focus to, e.g. detector height. 0 for no focusing.0
index1Index of the sample component to use. 1=PowderN, 2=Single_crystal, 3=FluoPowder1

Links


[ Identification | Description | Examples | Input parameters | Links ]

Generated for mcxtrace 3.8.4


Last Modified: Friday, 11-Sep-2026 15:00:06 CEST
Search website mailinglist archive GitHub repos