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_FluoPowder

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

The Test_FluoPowder Instrument

Unit-test instrument for the FluoPowder sample component.

Identification

  • Site: Tests_samples
  • Author: Emmanuel Farhi (emmanuel.farhi.synchrotron-soleil.fr)
  • Origin: Synchrotron Soleil
  • Date: 2025

Description

Simply a model source illuminating a fluo/powder/sx sample.
The default sample itself is an LaB6-powder.
The idea is to compare the fluorescence and diffraction patterns:
- index=1: use PowderN              (no fluorescence)
- index=2: use Single_crystal       (no fluorescence, slower, powder mode)
- index=3: use FluoPowder           (exact)
- index=4: use Fluorescence         (no diffraction)
- index=5: use Fluorescence+PowderN (under estimates contributions)

Examples

(Test cases in bold)
  • Test: Test_FluoPowder.instr E0=15 index=1 Detector: Sph_mon_pow_I=2.23591e-18
  • Test: Test_FluoPowder.instr -n 1e5 E0=15 index=2 Detector: Sph_mon_pow_I=1.89664e-18
  • Test: Test_FluoPowder.instr E0=15 index=3 Detector: Sph_mon_I=2.8904e-18
  • Test: Test_FluoPowder.instr E0=15 index=4 Detector: Sph_mon_flu_I=6.18074e-19
  • Example: Test_FluoPowder.instr E0=15 index=5 Detector: Sph_mon_I=1.76094e-18
  • (Fluorescence+PowderN GROUP is unstable on GPU, disable index=5 test for now)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
E0keVSource mean energy of xrays.15
dEkeVSource energy half spread of x-rays.0.05
L1mSource-sample distance.10
materialstrMaterial structure/composition as formula or LAU/CIF format."LaB6.cif"
index1Index of the sample component to use. 1=PowderN, 2=Single_crystal (much slower), 3=FluoPowder, 4=Fluorescence, 5=Fluorescence+PowderN in a GROUP (slower)3
delta_d_d3e-4

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