원시데이터 수집 시스템
선정목록으로

Formulation of perfect-crystal diffraction from Takagi–Taupin equations: numerical implementation in the <i>crystalpy</i> library

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. J. P. Guigay — European Synchrotron Radiation Facility, 71 Avenue des Martyrs, F-38000 Grenoble, France|||ESRF - European Synchrotron Radiation Facility [Grenoble] (71, avenue des Martyrs, CS 40220, 38043 Grenoble Cedex 9 - France)
  2. Manuel Sánchez del Río — European Synchrotron Radiation Facility, 71 Avenue des Martyrs, F-38000 Grenoble, France|||ESRF - European Synchrotron Radiation Facility [Grenoble] (71, avenue des Martyrs, CS 40220, 38043 Grenoble Cedex 9 - France)
DOI
10.1107/s160057752400924x
저널
Journal of Synchrotron Radiation
발행년도
2024
발행기관
Wiley
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1107/s160057752400924x
토픽
Optical Coatings and Gratings
OpenAlex ID
W4403883585

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The Takagi-Taupin equations are solved in their simplest form (zero deformation) to obtain the Bragg-diffracted and transmitted complex amplitudes. The case of plane-parallel crystal plates is discussed using a matrix model. The equations are implemented in an open-source Python library crystalpy adapted for numerical applications such as crystal reflectivity calculations and ray tracing.

본문 61,047자

본문 펼치기
© 2024 ESRF - The European Synchrotron 1. Introduction ## Formulation of perfect-crystal diffraction from Takagi-Taupin equations. Numerical implementation in the crystalpy library. Jean-Pierre Guigay <sup>a</sup> - and Manuel Sanchez del Rio <sup>a</sup> aEuropean Synchrotron Radiation Facility, 71 Avenue des Martyrs F-38000 Grenoble France. Correspon dence e-mail: guigay@esrf.eu The Takagi-Taupin equations are solved in their simplest form (zero deformation) to obtain the Bragg-diffracted and transmitted complex amplitudes. The case of plane-parallel crystal plates is discussed using a matrix model. The equations are implemented in an open-source python library crystalpy adapted for numerical applications such as crystal reflectivity calculations and ray tracing. Almost every synchrotron radiation beamline operating at hard X-rays makes use of perfect crystals. Most beamlines use crystal monochromators, typically in the DCM (double crystal monochromator) mode, but polychromators or single-crystal Laue monochromators can be also found. In addition, crystal analyzers are used in most spectroscopy beamlines. Beamline simulation tools used for the design, optimization, and commissioning of synchrotron instrumentation, implement in software the equations to calculate the reflectivity of perfect crystals. The theory of diffraction (see (Authier, 2003) for a complete reference) puts the basis of all numeric implementations. There are many simulation tools implementing the equations of the dynamical theory in different forms. This variate scenario is even more complex if we consider that the calculation of the crystal structure factor, which is an essential ingredient to calculating diffracted amplitudes and intensities, is obtained from tabulated scattering functions of multiple origins. A wide collection of software methods and tools can be found even in a single application, such as the OASYS suite (Rebuffi & Sanchez del Rio, 2017), which provides multiple solutions for calculating diffraction profiles of crystals [e.g. INPRO <sup>1</sup>, CRYSTAL (Sanchez del Rio _et_ _al._, 2015), XRAY Server (Stepanov, 2004)], as well as beamline simulation tools [based on the ray tracing code SHADOW (Sanchez del Rio _et_ _al._, 2011)] and physical wave-optics simulations with SRW (Chubar & Elleaume, 1998; Sutter _et al._, 2014). This scenario has inherited decades of advancements and has witnessed the evolution of several generations of synchrotron radiation sources. Our research aims to tackle this challenge by consolidating the resources for crystal diffraction calculations. We have two primary objectives: deducing the equations governing crystal reflectivity from first principles and integrating them into a thoroughly documented open-source software library. In section 2 we derive the Takagi-Taupin (TT) equations (Takagi, 1962; Taupin, 1964; Taupin, 1967) equations. In section 3 we solve the TT equations for a plane undeformed crystal. Given known complex amplitudes at the entrance surface, the complex amplitudes along the incident and diffracted directions at the back surface are calculated via a transfer matrix (section 3.2). For the Laue case, the transfer matrix is directly used to compute the diffracted and forward-diffracted (or transmitted) complex amplitudes (section 3.4). For the Bragg case (section 3.5) the transfer matrix is used to obtain the scattering matrix, which gives the diffracted and transmitted complex amplitudes. Section 4 is dedicated to the software implementation of the library crystalpy. A final summary and conclusions are in section 5. 2. Takagi-Taupin equations The scalar time-independent x-ray wave equation in a perfect crystal is the Helmholtz equation ∆Ψ + _k_ <sup>2</sup> (1 + _χ_ ( r )) Ψ( r ) = 0 _,_ (1) with Ψ( r ) is the wave-function, _k_ = 2 _π_ / _λ_, with _λ_ the wavelength, _<u>χ</u>_ ( r ) is the electric susceptibility (refractive index _n_ = _√_ 1 + _χ_ ) that can be expanded in a Fourier series _<u>h</u>_ <sup>_<u>−</u>_</sup> <sup>_<u>k</u>_</sup> <sup>2</sup> = <sup>_<u>k</u>_</sup> <sup>2</sup> <sup>_<u>−|</u>_</sup> <sup><u>k</u></sup> <sup><u>0 +</u></sup> <sup><u>h</u></sup> <sup>_<u>|</u>_</sup> <sup>2</sup> _k_ <sup>2</sup> _k_ <sup>2</sup> _χ_ ( r ) = _χh_ exp( _i_ h _._ r ) _,_ (2) h where the sum goes over all reciprocal lattice vectors h with (hkl) Miller indices. The spacing of the (hkl) reflection is _d_ hkl = 2 _π_ / _h_, where _h_ = _|_ h _|_ . Let us consider an incident plane wave exp( _i_ k 0 _._ r ) in vacuum. Its wavevector k 0, with modulus _k_ = _|_ k 0 _|_, is close to the Bragg condition for the diffraction vector h . In the “two-beams case” of Bragg diffraction, considered in this paper, we _define_ k _h_ _≡_ k 0 + h, of modulus _kh_ = _|_ k _h|_ . In general, the direction of k _h_ does not correspond to the Bragg-diffracted wavevector in vacuum, and _kh_ is slightly different from _k_ . The deviation from the exact Bragg position is expressed by the parameter _α_ ( _α ≪_ 1) <sup>23</sup> defined as _<u>h</u>_ _α_ = <sup>_<u>k</u>_</sup> <sup>2</sup> <sup>_<u>−</u>_</sup> <sup>_<u>k</u>_</sup> <sup>2</sup> <sup><u>k</u></sup> <sup><u>0 +</u></sup> <sup><u>h</u></sup> <sup>_<u>|</u>_</sup> <sup>2</sup> = _−_ <sup><u>h</u></sup> <sup>2 + 2</sup> <sup><u>k</u></sup> <sup><u>0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>h</u></sup> _k_ <sup>2</sup> _k_ <sup>2</sup> _._ (3) _k_ <sup>2</sup> 1 https://github.com/oasys-kit/xoppy ~~e~~ xterna ~~c~~ odes/tree/master/src/INPRO 2 In the“rotating crystal mode” _α_ = 4 sin _θB_ (sin _θ −_ sin _θB_ ) _≈_ 2( _θ −_ _θB_ ) sin(2 _θB_ ), with _θ_ the glancing angle on the reflective planes. Note that the approximated l f i t lid f f th B iti h _θ_ 0 ( l i id ) th f ti (3) i d i th t l ft The wave-field Ψ( r ) in the crystal is set empirically as the sum of “two modulated plane waves” Ψ( r ) = _D_ 0( r ) _e_ <sup>_i_</sup> <sup>k</sup> <sup>0</sup> <sup>_._</sup> <sup>r</sup> + _Dh_ ( r ) _e_ <sup>_i_</sup> <sup>k</sup> <sup>_h._</sup> <sup>r</sup> _,_ (4) in which the amplitudes _D_ 0 _,h_ ( r ) are considered as “slowly varying functions”, thus neglecting their 2 <sup>nd</sup> order derivatives in ∆Ψ( r ), ∆[ _D_ 0 _,h_ ( r ) exp( _i_ k 0 _,h._ r )] = [2 _i_ k 0 _,h.∇D_ 0 _,h_ +( _k−k_ 0 <sup>2</sup> _,h_ <sup>)</sup> <sup>_D_</sup> <sup>0</sup> <sup>_,h_</sup> <sup>] exp(</sup> <sup>_i_</sup> <sup>k</sup> <sup>0</sup> <sup>_,h._</sup> <sup>r</sup> <sup>)</sup> <sup>_,_</sup> thus giving ∆Ψ + _k_ <sup>2</sup> Ψ = exp( _i_ k 0 _._ r ) [2 _i_ k 0 _.∇D_ 0] + exp( _i_ k _h._ r ) [2 _i_ k _k.∇Dh_ + ( _k −_ _kh_ ) _Dh_ ]) _._ (5) In the product _χ_ ( r )Ψ( r ), using the equations (2) and (4), we write separately the terms containing either exp( _i_ k 0 _._ r ) or exp( _i_ k _h._ r ), and do not consider the other terms, _χ_ Ψ = [ _χ_ 0 _D_ 0+ _χ−hDh_ ] exp( _i_ k 0 _._ r )+[ _χhD_ 0+ _χ_ 0 _Dh_ ] exp( _i_ k _h._ r )+ _..._ (6) Inserting equations (5) and (6) in (1), we obtain the TT equations 2 _i_ k 0 _.∇D_ 0 + _χ_ 0 _k_ <sup>2</sup> _D_ 0 + _χ−hk_ <sup>2</sup> _Dh_ =0; (7a) 2 _i_ k _h.∇Dh_ + ( _α_ + _χ_ 0) _k_ <sup>2</sup> _Dh_ + _χhk_ <sup>2</sup> _D_ 0 =0 _._ (7b) We can use the oblique coordinates ( _s_ 0 _, sh_ ) in the diffraction plane (the plane containing k 0 and h, as well as k _h_ ), with origin _O_ on the crystal surface and unit vectors ˆ s 0 and ˆ s _h_ along k 0 and k _h_, respectively. A generic spatial position r = ( _s_ 0 _, sh, st_ ) should include a third coordinate _st_ along an axis s ˆ _t_ non coplanar with k 0 and k _h_ . We can choose s ˆ _t_ to lie on the crystal entrance surface and be perpendicular to the intersection line of the diffraction plane and the crystal surface. The chosen direction of s ˆ _t_ implies n _._ s _t_ = 0. The equation of the crystal surface is _γ_ 0 _s_ 0 + _γhsh_ = 0, with _γ_ 0 _,h_ = n _._ s 0 _,h_ _≡_ cos( _θ_ 0 _,h_ ) the director cosines with respect to n, the unit inward normal vector to the entrance plane surface. The relation _ds_ 0 = _∇s_ 0 _._ r = _∇s_ 0 _._ [ _ds_ 0 s ˆ0 + _dsh_ s ˆ _h_ + _dst_ s ˆ _t_ ] implies _∇s_ 0 _._ s ˆ0 = 1 and _∇s_ 0 _._ s ˆ _h,t_ = 0. Similarly, _∇sh._ s ˆ _h_ = 1 and _∇sh._ s ˆ0 _,t_ = 0. Therefore, _D_ 0 _,h_ ( _s_ ) = exp we obtain from equations (7) <u>∂</u> _<u>D</u>_ <u>0</u> ∂ _s_ 0 <u>∂</u> _<u>Dh</u>_ ∂ _sh_ = <sup>_<u>ik</u>_</sup> 2 <sup>[</sup> <sup>_χ_</sup> <sup>0</sup> <sup>_D_</sup> <sup>0 +</sup> <sup>_χ−hDh_</sup> <sup>] =</sup> <sup>_iu_</sup> <sup>0</sup> <sup>_D_</sup> <sup>0 +</sup> <sup>_iu−hDh_</sup> <sup>;</sup> (10a) = <sup>_<u>ik</u>_</sup> 2 <sup>[(</sup> <sup>_χ_</sup> <sup>0 +</sup> <sup>_α_</sup> <sup>)</sup> <sup>_Dh_</sup> <sup>+</sup> <sup>_χhD_</sup> <sup>0] =</sup> <sup>_i_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0 +</sup> <sup>_α′_</sup> <sup>)</sup> <sup>_Dh_</sup> <sup>+</sup> <sup>_iuhD_</sup> <sup>0</sup> <sup>_,_</sup> (10b) where we used the notation _u_ 0 _,h,−h_ = <sup>_<u>k</u>_</sup> (11a) 2 <sup>_χ_</sup> <sup>0</sup> <sup>_,h,−h,_</sup> _α_ <sup>_′_</sup> = 2 <sup>_<u>k</u>_</sup> <sup>_α._</sup> (11b) An equivalent form of the TT equations (10) is obtained in appendix A, using oblique axes along the directions of the geometrical Bragg law, and applying a crystal rotation. 3. Solutions of TT equations for a plane wave incident on a crystal with plane entrance surface It is interesting to consider first the effects of refraction and absorption without Bragg diffraction. Setting _u−h_ = 0 in equation (10a), we obtain the following equation for the refracted amplitude <u>∂</u> _<u>D</u>_ <sup>ref</sup> <u>0</u> ∂ _s_ 0 = _iu_ 0 _D_ <sup>ref</sup> 0 <sup>_._</sup> (12) Its solution satisfies the boundary conditions _D_ <sup>ref</sup> 0 Its solution satisfies the boundary conditions _D_ <sup>ref</sup> 0 = 1 for _γ_ 0 _s_ 0 + _γhsh_ = 0 (equation of the crystal surface) is _D_ <sup>ref</sup> 0 = _γ_ 0 _s_ 0 + _γhsh_ = 0 (equation of the crystal surface) is _D_ <sup>ref</sup> 0 = exp[ _iu_ 0( _s_ 0 + _shγh_ / _γ_ 0)]. We define _b_ = <sup>_<u>γ</u>_</sup> <sup><u>0</u></sup> _γh_ _._ (13) We will now consider the solutions of the TT equations (10) depending on the single variable <sup>5</sup> _s_ = _s_ 0 + _sh_ / _b_, which means ∂ _D_ 0/∂ _s_ 0 = _D_ <sup>_′_</sup> 0 <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>and</sup> <sup>∂</sup> <sup>_Dh_</sup> <sup>/∂</sup> <sup>_sh_</sup> <sup>=</sup> <sup>_D_</sup> _h_ <sup>_′_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)/</sup> <sup>_b_</sup> <sup>.</sup> <sup>The</sup> <sup>equations</sup> <sup>(10)</sup> become _D_ <sup>_′_</sup> 0 <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> <sup>_iu_</sup> <sup>0</sup> <sup>_D_</sup> <sup>0(</sup> <sup>_s_</sup> <sup>) +</sup> <sup>_iu−hDh_</sup> <sup>(</sup> <sup>_s_</sup> <sup>);</sup> (14a) _D_ <sup>_′_</sup> _h_ <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> <sup>_ib_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0</sup> <sup>+</sup> <sup>_α′_</sup> <sup>)</sup> <sup>_Dh_</sup> <sup>(</sup> <sup>_s_</sup> <sup>) +</sup> <sup>_ibuhD_</sup> <sup>0(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_._</sup> (14b) To make these equations more symmetrical, we introduce the functions _B_ 0 _,h_ ( _s_ ) by setting - _is_ <sup>_<u>u</u>_</sup> <sup><u>0 +</u></sup> <sup>_<u>b</u>_</sup> <sup><u>(</u></sup> <sup>_<u>u</u>_</sup> <sup><u>0 +</u></sup> <sup>_<u>α′</u>_</sup> <sup><u>)</u></sup> 2 _B_ 0 _,h_ ( _s_ ) = ; (8a) _._ (8b) with _∇sh_ + <sup><u>∂</u></sup> <sup>_<u>D</u>_</sup> ∂ _st_ - = <sup><u>∂</u></sup> <sup>_<u>D</u>_</sup> ∂ _s_ 0 _s_ ˆ0 _.∇D_ = _s_ ˆ0 _._ - <u>∂</u> _<u>D</u>_ ∂ _s_ 0 _∇s_ 0 + <sup><u>∂</u></sup> <sup>_<u>D</u>_</sup> ∂ _sh_ _∇st_ exp[ _is_ ( _u_ 0 + _ω_ )] _B_ 0 _,h_ ( _s_ ) _,_ (15) _ω_ = <sup>_<u>bα′</u>_</sup> <sup><u>+ (</u></sup> <sup>_<u>b −</u>_</sup> <sup><u>1)</u></sup> <sup>_<u>u</u>_</sup> <sup><u>0</u></sup> _._ (16) 2 _s_ ˆ _h∇D_ = <sup><u>∂</u></sup> <sup>_<u>D</u>_</sup> ∂ _sh_ Using the approximation <sup>4</sup> k _h.∇Dh_ = _k_ _√_ 1 _−_ _α_ <sup><u>∂</u></sup> <sup>_<u>Dh</u>_</sup> ∂ _sh_ _,_ (9) _≈_ _k_ <sup><u>∂</u></sup> <sup>_<u>Dh</u>_</sup> ∂ _sh_ The equations (14) become _B_ <sup>_′_</sup> 0 <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_iωB_</sup> <sup>0(</sup> <sup>_s_</sup> <sup>) +</sup> <sup>_iu−hBh_</sup> <sup>(</sup> <sup>_s_</sup> <sup>);</sup> (17a) _B_ <sup>_′_</sup> _h_ <sup>(</sup> <sup>_s_</sup> <sup>) =</sup> <sup>_iωBh_</sup> <sup>(</sup> <sup>_s_</sup> <sup>) +</sup> <sup>_ibuhB_</sup> <sup>0(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_._</sup> (17b) 4 If approximation in equation (9) were not used, the coefficients of _D_ 0 _,h_ in (10)b should be multiplied by (1 _−_ _α_ ) _−_ 1/2 _≈_ 1 + _α_ /2 + _..._ ; since _χ_ 0, _χh_ and _α_ are much ll th l t th hi h d t They have special solutions of the form <sup>6</sup> _B_ 0( _s_ ) = exp( _ias_ ) and _Bh_ ( _s_ ) = _ξ_ exp( _ias_ ), which, introduced in equation (17), give _ξ_ = _buh_ /( _a −_ _ω_ ) = ( _a_ + _ω_ )/ _u−h_ and _a_ <sup>2</sup> = _buhu−h_ + _ω_ <sup>2</sup> _._ (18) The general solution of equation (17) is _B_ 0( _s_ ) = _c_ 1 exp( _ias_ ) + _c_ 2 exp( _−ias_ ) _,_ (19a) _<u>ω −</u>_ _<u>a</u>_ exp( _ias_ ) + _c_ 2 _u−h_ The value of _ω_ vs _θc_ is obtained from equations (24) and (26), _ω_ = <sup>_<u>bh</u>_</sup> Im _u_ 0 _._ (27) 2 <sup>(sin</sup> <sup>_θ −_</sup> <sup>sin</sup> <sup>_θc_</sup> <sup>) +</sup> <sup>_i_</sup> <sup>_<u>b −</u>_</sup> 2 <sup><u>1</u></sup> Note that, in our representation (using waves of the form exp( _i_ k _._ r )), we have Im _u_ 0 = ( _k_ /2) Im _χ_ 0 _>_ 0. Equations (19) and (21) are expressed in terms of _a_, but they depend only on _a_ <sup>2</sup> . Using equation (27) in equation (18) we obtain _Bh_ ( _s_ ) = _c_ 1 _<u>a</u>_ <u>+</u> _<u>ω</u>_ _u−h_ exp( _−ias_ ) _._ (19b) �2 + Re( _buhu−h_ ) (28a) �2 _−_ - _<u>b −</u>_ <u>1</u> Im _u_ 0 2 For the case _s_ = 0, we obtain Re _a_ <sup>2</sup> = - _bh_ <sup><u>sin</u></sup> <sup>_<u>θ −</u>_</sup> <sup><u>sin</u></sup> <sup>_<u>θc</u>_</sup> 2 _c_ 1 = _B_ 0(0) <sup>_<u>a −</u>_</sup> <sup>_<u>ω</u>_</sup> <sup>_<u>u</u>_</sup> 2 <sup>_<u>−</u>_</sup> _a_ <sup>_<u>h</u>_</sup> <sup>;</sup> <sup>_c_</sup> <sup>2</sup> <sup>=</sup> <sup>_B_</sup> <sup>0(0)</sup> <sup>_<u>a</u>_</sup> <sup><u>+</u></sup> 2 _a_ <sup>_<u>ω</u>_</sup> _−_ _Bh_ (0) <sup>_<u>u</u>_</sup> 2 <sup>_<u>−</u>_</sup> _a_ <sup>_<u>h</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>ω</u>_</sup> + _Bh_ (0) <sup>_<u>u−h</u>_</sup> 2 _a_ 2 _a_ <sup>_<u>u−h</u>_</sup> 2 _a_ <sup>_._</sup> Consequently _B_ 0( _s_ ) = _B_ 0(0) <sup><u>(</u></sup> <sup>_<u>a −</u>_</sup> <sup>_<u>ω</u>_</sup> <sup><u>)</u></sup> <sup>_<u>eias −</u>_</sup> <sup><u>(</u></sup> <sup>_<u>a</u>_</sup> <sup><u>+</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)</u></sup> <sup>_<u>e−ias</u>_</sup> + _Bh_ (0) _u−h_ 2 _a_ _<u>e</u>_ <sup>_ias_</sup> _<u>−</u>_ _<u>e</u>_ <sup>_−ias_</sup> _,_ 2 _a_ Im _a_ <sup>2</sup> = <sup>_<u>b</u>_</sup> <sup><u>(</u></sup> <sup>_<u>b −</u>_</sup> <sup><u>1)</u></sup> _h_ (sin _θ −_ sin _θc_ ) Im _u_ 0 + Im( _buhu−h_ ) _._ 2 Note that _a_ can be expressed in terms of _a_ <sup>2</sup> as _,_ 2 _a_ _Bh_ ( _s_ ) = _B_ 0(0) _buh_ _<u>e</u>_ <sup>_ias_</sup> _<u>−</u>_ _<u>e</u>_ <sup>_−ias_</sup> _<u>−</u>_ _<u>e</u>_ <sup>_−ias_</sup> + _Bh_ (0) <sup><u>(</u></sup> <sup>_<u>a</u>_</sup> <sup><u>+</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)</u></sup> <sup>_<u>eias −</u>_</sup> <sup><u>(</u></sup> <sup>_<u>ω −</u>_</sup> <sup>_<u>a</u>_</sup> <sup><u>)</u></sup> <sup>_<u>e−ias</u>_</sup> 2 _a_ 2 _a_ - _<u>|a</u>_ <sup>2</sup> _<u>|</u>_ <u>+ Re</u> _<u>a</u>_ <sup>2</sup> (28b) _._ (29) <u>�</u> or, in terms of _D_ 0 _,h_ ( _s_ ) [equation (15)] in a more compact form _a_ = _±_ + _i_ 2 sgn(Im _a_ <sup>2</sup> ) ~~�~~ _<u>|a</u>_ <sup>2</sup> _<u>| −</u>_ <u>Re</u> _<u>a</u>_ <sup>2</sup> 2 _e_ <sup>_−is_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> _D_ 0( _s_ ) = [cos( _as_ ) _−_ _i_ <sup>_<u>ω</u>_</sup> _a_ _i_ <sup>_<u>u−h</u>_</sup> _a_ <sup>_<u>ω</u>_</sup> _a_ <sup>sin(</sup> <sup>_as_</sup> <sup>)]</sup> <sup>_D_</sup> <sup>0(0)+</sup> <sup>_<u>−</u>_</sup> _a_ <sup>_<u>h</u>_</sup> <sup>sin(</sup> <sup>_as_</sup> <sup>)</sup> <sup>_Dh_</sup> <sup>(0)</sup> <sup>_,_</sup> (21a) _e_ <sup>_−is_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> _Dh_ ( _s_ ) = _ib_ <sup>_<u>uh</u>_</sup> _a_ <sup>_<u>h</u>_</sup> _a_ <sup>sin(</sup> <sup>_as_</sup> <sup>)</sup> <sup>_D_</sup> <sup>0(0)+</sup> [cos( _as_ ) + _i_ <sup>_<u>ω</u>_</sup> _a_ _a_ <sup>sin(</sup> <sup>_as_</sup> <sup>)]</sup> <sup>_Dh_</sup> <sup>(0)</sup> <sup>_._</sup> (21b) 3.2. The Transfer matrix of a parallel crystal slab The front and back surfaces of a crystal parallel slab correspond to _s_ =0 and _s_ = _tc_ / _γ_ 0 = _T_, respectively, with _tc_ the “usual” thickness of the crystal. We can express the fields at the back surface ( _D_ 0( _T_ ) _, Dh_ ( _T_ )) in terms of those at the front surface ( _D_ 0(0) _, Dh_ (0)) in a matrix form 3.1. Expressions of _α_ , _ω_ and _a_ as a function of angles Expressing _α_ [equation (3)] as a function of the angles, we note that _h_ = 2 _k_ sin _θB_, being _θB_ the geometrical Bragg angle, and k 0 _._ h = _−kh_ sin _θ_, with _θ_ the glancing angle of k 0 on the reflecting planes. Therefore _α_ = 4 sin _θB_ (sin _θ −_ sin _θB_ ) _,_ (22) _α_ <sup>_′_</sup> [equation (11)], and _ω_ [equation (16)] are _α_ <sup>_′_</sup> = 2 _k_ sin _θB_ (sin _θ −_ sin _θB_ ) = _h_ (sin _θ −_ sin _θB_ ) _,_ (23) _ω_ = <sup>_<u>bh</u>_</sup> _u_ 0 _._ (24) 2 <sup>(sin</sup> <sup>_θ −_</sup> <sup>sin</sup> <sup>_θB_</sup> <sup>) +</sup> <sup>_<u>b −</u>_</sup> 2 <sup><u>1</u></sup> The “corrected Bragg angle” _θc_, in which the effect of the refraction is taken into account, is obtained as the _θ_ value such that Re _ω_ = 0, or sin _θc −_ sin _θB_ = <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>b</u>_</sup> Re( _u_ 0) _,_ (25) _bh_ which, under the usual conditions [sin _θc_ _−_ sin _θB_ _≈_ ( _θc_ _−_ _θB_ ) cos _θB_ ], reduces to <u>1</u> _<u>−</u>_ _<u>b</u>_ _θ_ _≈_ _θ_ + Re( _χ_ ) (26) - _D_ 0( _T_ )� = _M_ _Dh_ ( _T_ ) - _D_ 0(0)� = _Dh_ (0) - _D_ 0(0) _Dh_ (0) - _m_ 11 _m_ 12 _m_ 21 _m_ 22 �� _D_ 0(0)� _._ (30) _Dh_ (0) According to equations (21), the elements of the “transfer matrix” _M_ are - _e_ <sup>_iT_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> ; (31a) _m_ 11 = �cos( _aT_ ) _−_ _i_ <sup>_<u>ω</u>_</sup> _a_ _m_ 12 = _i_ <sup>_<u>u−h</u>_</sup> _a_ _m_ 21 = _ib_ <sup>_<u>uh</u>_</sup> _a_ _a_ <sup>sin(</sup> <sup>_aT_</sup> <sup>)</sup> <sup>_<u>−h</u>_</sup> (31b) _a_ <sup>sin(</sup> <sup>_aT_</sup> <sup>)</sup> <sup>_eiT_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>);</sup> <sup>_<u>uh</u>_</sup> (31c) _a_ <sup>sin(</sup> <sup>_aT_</sup> <sup>)</sup> <sup>_eiT_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>);</sup> - _e_ <sup>_iT_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> _._ (31d) _m_ 22 = �cos( _aT_ ) + _i_ <sup>_<u>ω</u>_</sup> _a_ _a_ <sup>sin(</sup> <sup>_aT_</sup> <sup>)</sup> The determinant of the matrix _M_ is det( _M_ ) = exp[2 _iT_ ( _u_ 0 + _ω_ )]. Its modulus _|_ det( _M_ ) _|_ _≤_ 1. It is one for a non-absorbing crystal ( _u_ 0 and _ω_ are real). This is in agreement with the expected energy conservation. It can be verified that _M_ ( _T_ 1 + _T_ 2) = _M_ ( _T_ 1) _M_ ( _T_ 2) and _M_ ( _−T_ ) = [ _M_ ( _T_ )] <sup>_−_</sup> <sup>1</sup> . Last, but not least, equation (30) is valid for both Bragg and Laue cases (with 3.3. The transfer matrix for the case of a “thick crystal” Equations (21) and (31) are expressed in terms of _a_, but they depend only on _a_ <sup>2</sup> . It is possible to write them as <u>Si 111; E = 8000 eV; α=65 deg; tμ</u> <u>=10 μm</u> Sigma-pola ization Pi-pola ization _M_ = <sup>_<u>ei</u>_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>+</sup> <sup>_a_</sup> <sup>)</sup> <sup>_T_</sup> 2 _a_ - _a −_ _ω_ _u−h_ _buh_ _a_ + _ω_ �+ <sup>_<u>ei</u>_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω−a_</sup> <sup>)</sup> <sup>_T_</sup> 2 _a_ - _a_ + _ω_ _−u−h_ _−buh_ _a −_ _ω_ _,_ 0.8 0.6 0.4 0.2 0.0 0.8 0.6 0.4 0.2 0.0 (32) where the two terms are interchangeable when _a_ is changed in _−a_ . They correspond to the two roots of _a_ <sup>2</sup> . They also correspond to the two branches of the dispersion surface. The real part of the argument of the exponential factors, _−T_ [Im _u_ 0( _b_ + 1)/2 _±_ Im _a_ ], is related to the absorption. When Im _a_ _<_ 0, the absorption is less than exp[ _−T_ Im _u_ 0( _b_ + 1)/2] for the first term, and more than that for the second one. Similarly, for Im _a_ _>_ 0 the two matrices present opposite behavior. If _T_ _|_ Im _a|_ is large (for example _T_ _|_ Im _a|_ ≳ 5), we can keep only the largest term in equation (32): −200 −100 0 100 200 θ-θB B [μ ad] B <u>Si 111; E = 8000 eV; α=65 deg; tμ</u> <u>=10 μm</u> _a −_ _ω_ _u−h_ _buh_ _a_ + _ω_ _a_ + _ω_ _−u−h_ _−buh_ _a −_ _ω_ Sigma-polarization Pi-polarization −200 −100 0 100 200 θ-θB B [μrad] _M_ <sup>thick</sup> _≈_    _<u>e</u>_ <sup>_i_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0</sup> <sup>+</sup> <sup>_ω_</sup> <sup>+</sup> <sup>_a_</sup> <sup>)</sup> <sup>_T_</sup> 2 _a_ _<u>e</u>_ <sup>_i_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0</sup> <sup>+</sup> <sup>_ω−a_</sup> <sup>)</sup> <sup>_T_</sup> 2 _a_ _,_ with the choice Im _a <_ 0 _._ _,_ with the choice Im _a >_ 0 _._ (33) B An x-ray beam may go partially through such a “thick crystal” in the condition of Bragg diffraction, where it would be absorbed without Bragg diffraction. This is a manifestation of the Borrmann effect (anomalous absorption). 3.4. Reflection and transmission amplitudes in transmission geometry (Laue case) In this case _b_ _>_ 0. The boundary conditions are ( _D_ 0(0) _, Dh_ (0)) = (1 _,_ 0). The reflection and transmission amplitudes are _rL_ = _Dh_ ( _T_ ) and _tL_ = _D_ 0( _T_ ), respectively, are directly written from the matrix equation (30): - _tL_ _r_ ¯ _L_ _rL_ _t_ ¯ _L_ Figure 1 Calculated reflectance and transmittance for a 10 µm thick Laue Si 111 crystal at 8 keV, with 65 degrees of asymmetric angle. The Bragg angle is _θB_ =14.31 <sup>_◦_</sup> . It is also interesting to consider the case of incidence along the direction of k _h_ (diffraction vector _−_ h ), for which ( _D_ 0(0) _, Dh_ (0) = (0 _,_ 1). It is directly seen from equation (30) that the transmission and reflection amplitudes are _t_ ¯ _L_ = _m_ 22 and _r_ ¯ _L_ = _m_ 12 (note that the reflection power factor is _P_ = _|b|_ in this case). These results can be written as = - _m_ 11 _m_ 12 _m_ 21 _m_ 22 = _M._ (35) <u>sin(</u> _<u>aT</u>_ <u>)</u> _rL_ = _m_ 21 = _ibuh_ _e_ <sup>_iT_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> _a_ This means that for the Laue case the matrix _M_ can be considered not only as “transfer-matrix” of the crystal slab, but also as the “scattering-matrix” ( _S_ -matrix) which relates the vacuum waves leaving the crystal to the vacuum waves entering it, in analogy with the _S_ -matrix used in general scattering theory. The exponential factor in equations (34) gives a damping term, which is (using _u_ 0 + _ω_ = [( _b_ + 1) _u_ 0 + _bα_ <sup>_′_</sup> ]/2 from equation (16), and noting that _α_ <sup>_′_</sup> is real): exp[Re( _−iT_ ( _u_ 0 + _ω_ ))] = exp[ _−T_ <sup>_<u>b</u>_</sup> <sup><u>+ 1</u></sup> Im( _u_ 0)] _._ (36) 2 The Pendell¨osung effect is due to the oscillations of _e_ <sup>_iT_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> _._ (34a) (34b) _tL_ = _m_ 11 = �cos( _aT_ ) _−_ _iω_ <sup><u>sin(</u></sup> <sup>_<u>aT</u>_</sup> <sup><u>)</u></sup> _a_ The reflecting power, or diffraction profile, often referred to as rocking curve, is obtained from equations (34) as _R_ ( _θ_ ) = _|r_ ( _θ_ ) _|_ <sup>2</sup> _P_, with the power factor _P_ = 1/ _|b|_ (see (Zachariasen, 1994) pag. 122). The transmitted profile is _T_ ( _θ_ ) = _|t_ ( _θ_ ) _|_ <sup>2</sup> . _λ_ / _|_ Re - _bχhχ−h_ + _w_ <sup>2</sup> _|_, where _w_ = ( _λ_ / _π_ ) _ω_ . At _θ_ = _θc_, _bχhχ−h_ + _w_ <sup>2</sup> = _bχhχ−h_ _−_ [(Im _χ_ 0( _b_ _−_ 1)/2] <sup>2</sup> . In symmetric Laue case ( _b_ =1) we obtain the well-known formula of the Pendell¨osung distance along the direction normal to the crystal surface [see, e.g., equation (3.48) in (Pinsker, 1978)] _<u>λ</u>_ <u>cos</u> _<u>θB</u>_ Λ = _|_ Re <sup>_~~√~~_</sup> _<u>χhχ−h|</u>_ <sup>_._</sup> (37) 3.5. Reflection and transmission amplitudes in reflection geometry (Bragg case). The S-matrix In this case _b <_ 0. We set _D_ 0(0) = 1 and _Dh_ ( _T_ ) = 0 (which means no beam entering the crystal slab on the back surface). The reflection and transmission amplitudes _rB_ = _Dh_ (0) and _tB_ = _D_ 0( _T_ ), respectively. Equation (30) is <u>Si 111; E = 8000 eV; α=0 deg; tμ</u> <u>Si 111; E = 8000 eV; α=0 deg; tμ</u> <u>=10 μm</u> Sigma-polariza ion Pi-polariza ion −200 −100 0 100 200 θ-θB B [μrad] B <u>=10 μm</u> Sigma-pola ization Pi-pola ization - _tB_ = 0 - _m_ 11 _m_ 12 _m_ 21 _m_ 22 �� 1 _rB_ (38) from which we obtain _rB_ = _−_ <sup>_<u>m</u>_</sup> <sup><u>21</u></sup> _m_ 22 _<u>−ibuh</u>_ <u>sin(</u> _<u>aT</u>_ <u>)</u> = _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) (39a) (39b) 0.8 0.6 0.4 0.2 0.0 0.6 0.5 0.4 0.3 0.2 0.1 0.0 _<u>a</u>_ <u>exp(</u> _<u>iT</u>_ <u>(</u> _<u>u</u>_ <u>0 +</u> _<u>ω</u>_ <u>))</u> _tB_ = _m_ 11 + _m_ 12 _rB_ = _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) <sup>_,_</sup> −200 −100 0 100 200 θ-θB B [μ ad] B Similarly, in the case of incidence on the crystal back side along the direction k _h_ (diffraction vector _−_ h ), we set _Dh_ ( _T_ ) = 1, _D_ 0( _T_ ) = _r_ ¯ _B_, _D_ 0(0) = 0 and _Dh_ (0) = _t_ ¯ _B_ . Therefore, [equation (30)] gives - _r_ ¯ _B_ = 0 - _m_ 11 _m_ 12 _m_ 21 _m_ 22 �� 0 _t_ ¯ _B_ _,_ (40) from which we obtain <u>1</u> _t_ ¯ _B_ = _m_ 22 _<u>a</u>_ <u>exp(</u> _<u>−iT</u>_ <u>(</u> _<u>u</u>_ <u>0 +</u> _<u>ω</u>_ <u>))</u> = _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) Figure 2 Calculated reflectance and transmittance of a symmetrical Bragg Si 111 crystal with 10 µm thickness at 8 keV. The field inside the crystal, i.e. _D_ 0( _s_ ) and _Dh_ ( _s_ ), can be calculated using equations (19), with _D_ 0(0) = 1 and _Dh_ (0) = _rB_ from equation (39a) we obtain _<u>iu−h</u>_ <u>sin(</u> _<u>aT</u>_ <u>)</u> _r_ ¯ _B_ = _m_ 12 _t_ ¯ _B_ = _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) <sup>_._</sup> Consequently, the _S_ -matrix for the Bragg case, defined as (41a) (41b) _<u>ibuh</u>_ <u>sin(</u> _<u>as −</u>_ _<u>aT</u>_ <u>)</u> _Dh_ ( _s_ ) = _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) <sup>_eis_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> <sup>=</sup> <sup>_rB_</sup> <u>sin(</u> _<u>aT</u>_ _<u>−</u>_ _<u>as</u>_ <u>)</u> _e_ <sup>_is_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> sin( _aT_ ) <u>sin(</u> _<u>aT</u>_ _<u>−</u>_ _<u>as</u>_ <u>)</u> - _D_ 0( _T_ ) = _S_ - _D_ 0(0)� _,_ (42) _Dh_ ( _T_ ) _Dh_ (0) is <u>1</u> _m_ 22 = - _m_ 11 _−_ _<u>m</u>_ <u>12</u> _m_ 22 _<u>m</u>_ <u>21</u> _−_ _<u>m</u>_ <u>12</u> _m_ 22 _<u>m</u>_ <u>21</u> _<u>mm</u>_ <u>1222</u> _−_ <sup>_<u>m</u>_</sup> <sup><u>21</u></sup> <u>1</u> _m_ 22 (44a) _D_ 0( _s_ ) = <sup>_<u>a</u>_</sup> <sup><u>cos(</u></sup> <sup>_<u>aT</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>as</u>_</sup> <sup><u>) +</u></sup> <sup>_<u>iω</u>_</sup> <sup><u>sin(</u></sup> <sup>_<u>aT</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>as</u>_</sup> <sup><u>)</u></sup> _e_ <sup>_is_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0+</sup> <sup>_ω_</sup> <sup>)</sup> _._ (44b) _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) An example of simulation of the field inside the crystal using equations (44) is in Fig. 3. For the Laue case, also shown in _S_ = - _tB_ _r_ ¯ _B_ _rB_ _t_ ¯ _B_ _._ (43) The diffraction profile (reflectance) is _R_ ( _θ_ ) = _|rB_ ( _θ_ ) _|_ <sup>2</sup> _P_, with a) b) c) d) Figure 3 Calculations for a symmetric Si 111 at 8 keV with thickness _tc_ =50 µm. The graphs show the electric field intensity inside the crystal as a function of the deviation angle _θ −_ _θB_ and penetration ratio _−s_ / _T_ (equivalent to a depth ratio _−t_ / _tc_ ), for a) Bragg _|Dh|_ <sup>2</sup>, b) Bragg _|D_ 0 _|_ <sup>2</sup>, c) Laue _|Dh|_ <sup>2</sup>, d) Laue _|D_ 0 _|_ <sup>2</sup> . Fig. 3b shows that the penetration of the incident wave inside the crystal is small with respect to the total crystal thickness. This is related to the penetration length or depth. In Fig. 4 we fitted the intensity profile of _|D_ 0( _s_ ) _|_ <sup>2</sup> versus depth for each value of _θ_ _−_ _θB_ . The fact that for a thick crystal in Bragg geometry _|D_ 0( _s_ ) _|_ <sup>2</sup> has significant values only in the vicinity of the crystal surface, in the central region, can be explained from equations (44). The moduli of the functions sin( _aT_ _−_ _as_ ) and cos( _aT_ _−_ _as_ ) are approximately proportional to exp[( _T_ _−_ _s_ ) _|_ Im _a|_ ] if the argument of this exponential function is sufficiently large. Consequently, _|D_ 0( _s_ ) _|_ <sup>2</sup> is nearly proportional to exp[ _−s_ (2 _|_ Im _a|_ + _|b_ +1 _|_ Im _u_ 0)]. Writing _|D_ 0( _s_ ) _|_ <sup>2</sup> = exp[ _−s_ / _sext_ ], with _sext_ the extinction length (measured along the _s_ 0 axis), we obtain for the Bragg symmetric ( _b_ = _−_ 1) case <u>1</u> _sext_ = 2 _|_ Im _a|_ <sup>_._</sup> (45) 20 15 10 5 0 Fitted Calculated 100 50 0 50 100 B <sup>[</sup> <sup>rad]</sup> Figure 4 Fit of the _|D_ 0 _|_ <sup>2</sup> vs _t_ of Fig. 3b with a function exp( _−t_ / _text_ ) to get the extinction depth _text_ . This result is compared with the calculated value from equation (45) that gives _text_ = sin _θBsext_ = sin _θB_ /(2 _|_ Im _a|_ ). _3.4.1_ _Reflection_ _amplitude_ _for_ _a_ _thick_ _absorbing_ _crystal_ _in_ _Bragg case_ In the case of thick (or semi-infinite) Bragg crystal, the reflection amplitude, given by equation (39), takes the form [using _M_ from equation (33)] <sup>_<u>ω</u>_</sup> _u−_ <sup>_<u>−</u>_</sup> _h_ <sup>_<u>a</u>_</sup> <sup>_,_</sup> with the choice Im _a <_ 0 _._ _B_ <sup>thick</sup> = _−_ <sup>_<u>m</u>_</sup> <sup><u>21</u></sup> _rB_ <sup>thick</sup> _m_ 22 - _−_ _a_ <sup>_<u>bu</u>_</sup> + <sup>_<u>h</u>_</sup> _abu−hω_ <sup>=</sup> <sup>_<u>ω</u>_</sup> _u−_ <sup><u>+</u></sup> _h_ <sup>_<u>a</u>_</sup> _a_ <sup>_<u>bu</u>_</sup> + _ω_ <sup>_<u>h</u>_</sup> <sup>=</sup> <sup>_<u>ω</u>_</sup> _u−_ <sup>_<u>−</u>_</sup> _h_ <sup>_<u>a</u>_</sup> <sup>_<u>ω</u>_</sup> _u−_ <sup><u>+</u></sup> _h_ <sup>_<u>a</u>_</sup> <sup>_,_</sup> with the choice Im _a >_ 0 _._ = (46) Bot _√_ <u>h</u> <u>equations</u> are equivalent assuming that the sign in _a_ = _±_ _a_ <sup>2</sup> is correctly selected. The condition on Im( _a_ ) in equa _√_ <u>h</u> _±_ _a_ <sup>2</sup> is correctly selected. The condition on Im( _a_ ) in equa tions (46) is in accordance with the physical condition that _|rB|_ go to zero when _|_ sin _θ_ _−_ sin _θc|_ is large. The condition Im _a_ _<_ 0 [Im _a_ _>_ 0] is equivalent <sup>7</sup> to sgn(Re _a_ ) = sgn(Re _ω_ ) [sgn(Re _a_ ) = _−_ sgn(Re _ω_ )] for large values of _|_ sin _θ −_ sin _θc|_ . Equation (46) is a useful result, as most crystal monochromators used in synchrotron radiation are thick crystals in Bragg (reflection) mode. _3.4.2_ _Reflection_ _amplitude_ _for_ _non-absorbing_ _crystals_ _in_ _Bragg case_ In this case _u−h_ = _u_ <sup>_∗_</sup> _h_ <sup>;</sup> <sup>_ω_</sup> <sup>[see</sup> <sup>equation</sup> <sup>(16)]</sup> <sup>and</sup> <sup>_a_</sup> <sup>2</sup> <sup>=</sup> _ω_ <sup>2</sup> _−|b|uhu_ <sup>_∗_</sup> _h_ <sup>are real. We can distinguish two cases.</sup> If _a_ <sup>2</sup> _≤_ 0, or _ω_ <sup>2</sup> _≤|b|uhu_ <sup>_∗_</sup> _h_ <sup>, then</sup> <sup>_a_</sup> <sup>=</sup> <sup>_i_</sup> ~~�~~ _|b|uuu_ <sup>_<u>∗</u>_</sup> _h_ <sup>_−_</sup> <sup>_ω_</sup> <sup>2</sup> <sup>there-</sup> fore, according to equation (46) In this case _u−h_ = _u_ <sup>_∗_</sup> _h_ _−|b|uhu_ <sup>_∗_</sup> _h_ <sup>are real. We can distinguish two cases.</sup> If _a_ <sup>2</sup> _≤_ 0, or _ω_ <sup>2</sup> _≤|b|uhu_ <sup>_∗_</sup> _h_ <sup>, then</sup> <sup>_a_</sup> <sup>=</sup> <sup>_i_</sup> ~~�~~ _|b|uuu_ <sup>_<u>∗</u>_</sup> _h_ <sup>_∗_</sup> _h_ <sup>, then</sup> <sup>_a_</sup> <sup>=</sup> <sup>_i_</sup> ~~�~~ _|b|uuu_ <sup>_<u>∗</u>_</sup> _h_ <sup>_∗_</sup> _h_ <sup>_−_</sup> <sup>_ω_</sup> <sup>2</sup> _B_ <sup>thick, transparent</sup> = _u_ <sup><u>1</u></sup> <sup>_∗_</sup> _rB_ <sup>thick, transparent</sup> _u_ <sup>_∗_</sup> _h_ <u>�</u> _._ (47) _ω_ + _i_ _|b|uhu_ <sup>_∗_</sup> _h_ _h_ If _a_ <sup>2</sup> _>_ 0, or, _ω_ <sup>2</sup> _> |b|uhu_ <sup>_∗_</sup> _h_ <sup>,</sup> _h_ _B_ <sup>thick, transparent</sup> = _u_ <sup><u>1</u></sup> <sup>_∗_</sup> _rB_ <sup>thick, transparent</sup> _u_ <sup>_∗_</sup> _h_ _ω −_ sgn( _ω_ ) ~~�~~ _ω_ <sup>2</sup> _−|b|uhu_ <sup>_∗_</sup> _h_ <u>�</u> _._ (48) _h_ Equation (48) defines the tails of the reflection profile. As discussed previously, the sign selection is such that the _|rB|_ tends to zero fior large values of _|ω|_ . Equation (47) corresponds to the zone of total reflection. In fact, the reflection power or reflectance _R_ ( _θ_ ) = _|r_ ( _θ_ ) _|_ <sup>2</sup> / _|b|_ becomes _R_ <sup>transparent, thick</sup> _B_ = 1 if _|y| ≤_ 1 _,_ ( _y −_ - _y_ <sup>2</sup> _−_ 1) <sup>2</sup> if _|y| >_ 1 _,_ (49) - _|b|uhu_ <sup>_<u>∗</u>_</sup> _h_ <sup>.</sup> with _y_ = _ω_ / <sup>_<u>∗</u>_</sup> _h_ <sup>.</sup> _r_ _trt_ _trrrt_ _tr_ ( _<u>rr</u>_ ) <sup>2</sup> _t_ 1 _µ_ m _T_ _t_ _tr_ _tr_ _trrr_ 2 _T_ _trrrrr_ _trr_ 2 _µ_ m _trrrr_ 3.6. Calculation of reflection and transmission amplitudes using the transfer matrix The matrix method permits to obtain the complex reflection and transmission amplitudes of a crystal made by layers of different crystals (or the same crystal with different orientations). For that, i) construct the transfer matrix of the total crystal by multiplication <sup>8</sup> of the transfer matrices of the different layers [each one calculated using equations (31)]; ii) if geometry is Laue, obtain reflection and transmission amplitudes using the coefficients _m_ 21 and _m_ 11 of this matrix [equation (34)], respectively; otherwise (Bragg geometry), compute the scattering matrix using equation (43) and reflection and transmission amplitudes are given in the matrix terms _s_ 21 and _s_ 11 [equation (39)], respectively. A first example shows how simple is to apply this recipe of multiplication of transfer matrices to get the reflectance of a simple two-layer crystal. Consider a bilayer of two identical crystal layers of thickness _T_ and transfer matrix _M_ for each one. Using matrix analysis, the transfer matrix of the bilayer is [ _M_ ( _T_ )] <sup>2</sup> = _M_ (2 _T_ ) from which is easy to compute the reflectivity in Bragg geometry [equation (39)]. Otherwise, if this result would be obtained via the reflectivities ( _r_ and _r_ ¯) and transmittivities ( _t_ and ¯ _t_ ) of the single layer (S-matrix), the reflectivity ofi The method of transfer matrix multiplication can also be used for analyzing distorted and bent crystals and will be explored in Figure 5 Example of calculation of the reflection amplitude _r_ 2 of a Si 111 crystal of 2 µm thickness from the amplitudes of the half-layer (1 µm). The reflectivity of the bilayer _r_ 2 can be obtained as an infinite sum _r_ 2 = _r_ + _rtt_ ¯ + _rtt_ ¯( _rr_ ¯) + _rtt_ ¯( _rr_ ¯) <sup>2</sup> + _..._ = _r_ [1 + _tt_ ¯ <sup>�</sup> _n_ <sup>_∞_</sup> =0 <sup>(</sup> <sup>_rr_</sup> <sup>¯)</sup> <sup>_n_</sup> <sup>]</sup> <sup>=</sup> <sup>_r_</sup> <sup>(1</sup> <sup>+</sup> <sup>(</sup> <sup>_tt_</sup> <sup>¯/(1</sup> <sup>_−_</sup> <sup>_rr_</sup> <sup>¯))).</sup> <sup>Calculations</sup> <sup>done</sup> <sup>with</sup> crystalpy for a photon energy of 8 keV.. A second example is the Bragg reflection of a crystal layer on a thick substrate. The transfer matrix is calculated as _M_ <sup>_′_</sup> = _M_ <sup>thick</sup> _× M,_ (50) with _M_ <sup>thick</sup> the transfer matrix of the substrate and _M_ the transfer matrix of the thin layer. We are interested in the Bragg reflectivity or _rB_ = _−_ <sup>_<u>m′</u>_</sup> <u>21</u> <sup>_′_</sup> = _−_ <sup>_<u>m</u>_</sup> <u>21</u> <sup>thick</sup> <sup>_′_</sup> 22 _m_ <sup>thick</sup> 21 <u>21</u> <sup>_<u>m′</u>_</sup> _m_ <sup>_′_</sup> 22 <sup>_<u>m</u>_</sup> <u>21</u> <sup>thick</sup> <sup>_<u>m</u>_</sup> <sup><u>11 +</u></sup> <sup>_<u>m</u>_</sup> <sup>thick</sup> <u>22</u> <sup>_<u>m</u>_</sup> <sup><u>21</u></sup> _m_ <sup>thick</sup> 21 <sup>_m_</sup> <sup>12 +</sup> <sup>_m_</sup> <sup>thick</sup> 22 <sup>_m_</sup> <sup>22</sup> <sup>thick</sup> _._ (51) <sup>thick</sup> 21 <sup>_m_</sup> <sup>12 +</sup> <sup>_m_</sup> <sup>thick</sup> 22 <sup>_m_</sup> <sup>22</sup> This can be expressed as a function of the substrate reflectivity _rS_ = _−m_ <sup>thick</sup> 21 <sup>/</sup> <sup>_m_</sup> 22 <sup>thick</sup> giving: _rB_ = <sup>_<u>rSm</u>_</sup> <sup><u>11</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>m</u>_</sup> <sup><u>12</u></sup> _m_ 22 _−_ _rSm_ 11 _._ (52) 3.7. The direction of the diffracted wave in vacuum In some applications, like for ray tracing, it is essential to know the diffracted wavevector k out that exits from the crystal. As mentioned before, the selection of the directions used to solve the TT equations is somewhat arbitrary. In our choice, k 0 vector corresponds exactly with the direction and wavelength of the incident ray or wave. The vector k _h_ (see section 2), defined as k _h_ = k 0 + h, does not correspond in general to the wavevector of the outgoing ray or wave outside the crystal. The direction of the diffracted wave has the form k out = k _h_ + _β_ n _,_ with n the unit vector along the inward normal to the crystal surface. The (real) coefficient _β_ is obtained by writing that the modulus of k out is equal to _k_ : _|_ k out _|_ <sup>2</sup> = _|_ k _h_ + _β_ n _|_ <sup>2</sup> = _k_ <sup>2</sup> _._ Note that _|_ k _h|_ <sup>2</sup> = _k_ <sup>2</sup> (1 _−_ _α_ ) and k _h._ n = _γhk_ <sup>_√_</sup> 1 _−_ _α_, from which we obtain the equation 1 _−_ _α_ + _β_ <sup>2</sup> _._ _k_ <sup>2</sup> = _k_ <sup>2</sup> (1 _−_ _α_ ) + 2 _βkγh_ Its solutions are _√_ ~~�~~ 1 _−_ _α ± k_ _α_ + _γh_ <sup>2(1</sup> <sup>_−_</sup> <sup>_α_</sup> <sup>)</sup> <sup>_,_</sup> _β_ = _−kγh_ _√_ where the _±_ sign is chosen in such a way that _β_ = 0 when _α_ = 0 (i.e., negative for Laue case with _γh_ _>_ 0 and positive for Bragg case with _γh_ _<_ 0). 4. The crystalpy library Crystalpy is a Python library that performs calculations on diffraction from perfect crystals using the formalism introduced in the previous chapters. The motivation of crystalpy was to create a modern, extensible, well-documented, and friendly library to overcome the difficulties of integrating ancient software tools based on the dynamical diffraction theory. It is specifically designed for two objectives: support for new versions of the crystal diffraction codes delivered in platforms like OASYS (Rebuffi & Sanchez del Rio, 2017), and provide a core for ray tracing simulations with crystals. The crystalpy library is written in the python language and uses standard libraries (numpy and scipy). It makes use of vector calculus and stack operations to accelerate the calculations. Therefore, it is adapted for being used in ray tracing tools, such as the future SHADOW (Sanchez del Rio _et al._, 2011) versions. To simulate a diffraction experiment using a perfect crystal, crystalpy offers functions that implement the theory described previously. Two input objects must be prepared: i) the incident wave(s) or photon ray(s), and ii) the information on the crystal (diffraction setup). The objects representing these two entities are described here. The Photon class is a minimum class for a photon, containing the energy (in eV) and a unit direction vector, normalization, rotation around an axis, etc.) of a 3D vector. A superclass of Photon is ComplexAmplitudePhoton, that contains the scalar complex amplitude for _σ_ and _π_ polarizations). These classes (Vector, Photon and ComplexAmplitudePhoton) can hold stacks (the internal storage is done with arrays to speed-up vector operations). The ComplexAmplitidePhoton classes has a corresponding ComplexAmplitudePhotonBunch superclass, decorated with methods to deal with multiple waves or beams (bunches or sets of photons). The information on the crystal itself (e.g., particular crystal material and crystal structure), its preparation (crystal cut), and related physical parameters (like the structure factor) are managed by the DiffractionSetup classes. Crystalpy allows multiple options to retrieve the crystal structure and the scattering functions needed to calculate the structure factors. The DiffractionSetupAbstract class defines the methods to access the basic information of the crystal (defined as a string, e.g. “Si”) such as angleBragg, dSpacing, and unitCellVolume, and to compute the structure factors: F0, FH, FH ~~b~~ ar. These parameters can be obtained from several libraries external to crystalpy. We implemented three options: i) DiffractionSetupXraylib using the xraylib library (Schoonjans _et_ _al._, 2011), ii) DiffractionSetupDabax that uses the DABAX library (Sanchez del Rio, 2021), and iii) using an ad-hoc generated data file. This modular structure permits disconnecting the calculation part from the access to optical and physical constants. Indeed, when using ad-hoc data files we do not have to import xraylib or dabax packages. We implemented this for the crystal material files of the SHADOW (Sanchez del Rio _et_ _al._, 2011) code in the traditional version (DiffractionSetupShadowPreprocessorV1), and in a version supporting d-spacing crystals (DiffractionSetupShadowPreprocessorV2). The DiffractionSetup classes handle the information about the crystal setup and collects all the parameters needed to fully define the physical system we are modelling: geometry ~~t~~ ype (among BraggDiffraction, BraggTransmission, LaueDiffraction and LaueTransmission), crystal ~~n~~ ame (a string, e.g. Si, Ge), thickness (crystal thickness in SI units [m]), miller ~~h~~ (,k,l) (the Miller indices), and asymmetry ~~a~~ ngle (angle in degrees between the crystal surface and the planes _hkl_ as defined in (Sanchez del Rio _et al._, 2015)). To perform the main calculations (reflectivities, transfer matrices, diffracted photons, etc.) several methods in the Diffraction class are used, getting the crystal setup and the photon bunch as inputs. For the moment, only flat perfect crystals are coded (in the PerfectCrystalDiffraction class) which directly implements the formulation and theory in section 3. For completeness, crystalpy also includes the equations of the Zachariasen formalist (Zachariasen, 1994) lated defining a `ComplexAmplitudePhoton` entity for each point, group then in a ComplexAmplitudePhotonBunch for then calculate the diffraction by the crystal using calculateDiffractedComplexAmplitudes. A user-friendly application has been written in the OASYS environment to compute diffraction profiles using crystalpy (Fig. 6). The applications automatically generates a script that can be used for further batch calculations. Figure 6 Interactive application for computing the perfect crystal diffraction profiles using crystalpy and available in OASYS. In the ray tracing SHADOW4, all calculations related to crystal optics are delegated to crystalpy. Ray tracing permits simulations of beamline optics including a realistic description of the source. It also allows the simulation of curved crystals, under the assumption that the local reflectivity of the curved crystal is the same as for the flat crystal. This assumption is not always granted and has to be verified before ray tracing curved crystals. 5. Summary and conclusions We have presented a theoretical and numerical description of the dynamical diffraction in perfect crystals. In the first part of this paper, we presented a new perspective of the well-known dynamical theory of diffraction applied to undeformed perfect crystals. We deduced the equations of diffraction amplitudes (as well as intensity reflectance and transmittance) starting from basic principles via the solution of the Takagi-Taupin equations. We calculated the transfer matrix, useful to compute the diffraction of stacked crystal layers, and also the scattering matrix, of interest for the Bragg case. For completeness, our results are compared to those presented in the well-known textbook by (Zachariasen, 1994) (see appendix C). In the second part we presented crystalpy, a software library completely written in python that implements the theory previously discussed. This open source tool can be used to predict the diffraction properties of any crystal structure, like Si, Ge or diamond typically used in synchrotron beamlines, but also for any other crystal provided its crystalline structure. This library is intended to replace multiple scattered pieces of software in packages like OASYS (Rebuffi & Sanchez del Rio, 2017) and is designed The crystalpy library and its documentation are available from https://github.com/oasys-kit/crystalpy. Acknowledgements We recognize the work of Edoardo Cappelli and Mark Glass who developed the first version of crystalpy implementing the theory in (Zachariasen, 1994). We acknowledge Ali Khounsary and Yujia Ding (CSRII, Illinois Institute of Technology, Chicago, IL 60616, USA) for helpful discussions on stacked crystals. References Authier, A. (2003). _Dynamical_ _Theory_ _of_ _X-Ray_ _Diffraction_ . Oxford University Press. URL: _https://doi.org/10.1093/acprof:oso/9780198528920.001.0001_ Chubar, O. & Elleaume, P. (1998). _Proceedings_ _of_ _the_ _6th_ _European_ _Particle Accelerator Conference - EPAC-98_, pp. 1177–1179. URL: _http://accelconf.web.cern.ch/AccelConf/e98/PAPERS/THP01G.PDF_ Pinsker, Z. G. (1978). _Dynamical_ _Scattering_ _of_ _X-Rays_ _in_ _Crystals_ . Springer-Verlag. Rebuffi, L. & Sanchez del Rio, M. (2017). _Proc._ _SPIE_ _10388:_ _Advances_ _in_ _Computational_ _Methods_ _for_ _X-Ray_ _Optics_ _IV_, 10388, 169–177. URL: _http://doi.org/10.1117/12.2274263_ Sanchez del Rio, M., (2021). DABAX python library. URL: _https://github.com/oasys-kit/dabax_ Sanchez del Rio, M., Canestrari, N., Jiang, F. & Cerrina, F. (2011). _Journal of Synchrotron Radiation_, 18 (5), 708–716. URL: _http://dx.doi.org/10.1117/12.893433_ Sanchez del Rio, M., Perez-Bocanegra, N., Shi, X., Honkim¨aki, V. & Zhang, L. (2015). _Journal_ _of_ _Applied_ _Crystallography_, 48 (2), 477–491. URL: _https://doi.org/10.1107/S1600576715002782_ Schoonjans, T., Brunetti, A., Golosio, B., Sanchez del Rio, M., Sol´e, V. A., Ferrero, C. & Vincze, L. (2011). _Spectrochimica Acta Part_ _B: Atomic Spectroscopy_, 66 (11), 776–784. URL: _https://www.sciencedirect.com/science/article/pii/S0584854711001984_ Stepanov, S. A. (2004). In _Advances in Computational Methods for X-_ _Ray and Neutron Optics_, edited by M. S. del Rio, vol. 5536, pp. 16 – 26. International Society for Optics and Photonics, SPIE. URL: _https://doi.org/10.1117/12.557549_ Sutter, J. P., Chubar, O. & Suvorov, A. (2014). In _Advances in Compu-_ _tational Methods for X-Ray Optics III_, edited by M. S. del Rio & O. Chubar, vol. 9209, p. 92090L. International Society for Optics and Photonics, SPIE. URL: _https://doi.org/10.1117/12.2061646_ Takagi, S. (1962). _Acta Crystallographica_, 15 (12), 1311–1312. URL: _https://doi.org/10.1107/S0365110X62003473_ Taupin, D. (1964). _Bull. Soc. Fr. Mineral. Crystallogr._ 87, 469–511. Taupin, D. (1967). _Acta Crystallographica_, 23 (1), 25–35. URL: _https://doi.org/10.1107/S0365110X67002063_ Zachariasen, W. H. (1994). _Theory of X-ray Diffraction in Crystals_ . Appendix A Derivation of the TT equations for a rotating perfect crystal In the “rotating crystal mode”, the crystal is rotated around an axis perpendicular to the “diffraction plane” which contains the diffraction vector h and the wave-vector k 0 of the fixed incident plane-wave in vacuum. The crystal rotation from the exact geometrical Bragg position may be viewed as a special kind of the dynamic theory for perfect crystal diffraction. The x-ray wavefield inside the crystal is set as therefore, <u>2</u> _k_ <u>∂</u> _<u>ϕ</u>_ ∂ _sh_ Ψ( r ) = _e_ <sup>_i_</sup> <sup>k</sup> <sup>0</sup> <sup>_._</sup> <sup>r</sup> <sup>�</sup> _A_ 0( r ) + _e_ <sup>_i_</sup> <sup>h</sup> <sup>_B._</sup> <sup>r</sup> _Ah_ ( r ) - = = 2( i _h −_ i 0) _._ ( j _h −_ i _h_ ) = _A_ 0( r ) _e_ <sup>_i_</sup> <sup>k</sup> <sup>0</sup> <sup>_._</sup> <sup>r</sup> + _Ah_ ( r ) _e_ <sup>_i_</sup> <sup>k</sup> <sup>_hB._</sup> <sup>r</sup> _,_ (53a) h _B_ representing the diffraction vector in exact Bragg position with respect to k 0. The vector k _hB_ = k 0 + h _B_ is therefore such that _|_ k 0 _|_ = _|_ k _hB|_ = _k_ = 2 _π_ / _λ_ . The Fourier coefficients _χh_ of the perfect crystal susceptibility are replaced by the function _χh_ exp[ _iϕ_ ( r )], in which _ϕ_ ( r ) = _−_ h _B._ u ( r ), with u ( r ) the displacement field of the deformed crystal. In such conditions, the following form of the TT equations 2 _i_ k 0 _.∇A_ 0 + _χ_ 0 _k_ <sup>2</sup> _A_ 0 + _χ−hk_ <sup>2</sup> exp( _−iϕ_ ) _Ah_ =0; 2 _i_ k _hB.∇Ah_ + _χ_ 0 _k_ <sup>2</sup> _Ah_ + _χhk_ <sup>2</sup> exp(+ _iϕ_ ) _A_ 0 =0 _,_ is obtained by inserting equation (53) in (1), with the following approximations: the 2 <sup>nd</sup> -order derivatives of _A_ 0 _,h_ supposed to be slowly varying amplitudes are neglected and only the terms containing exp( _i_ k 0 _._ r ) in the product _χ_ Ψ are considered. Introducing oblique coordinates ( _s_ 0 _, sh_ ) in the diffraction plane, along the directions of k 0 and k _hB_, so that k 0 _.∇A_ 0 = _k_ <sup><u>∂</u></sup> ∂ <sup>_<u>A</u>_</sup> _s_ 0 <sup><u>0</u></sup> <sup>and</sup> 2(cos ∆ _θ −_ cos(2 _θB_ + ∆ _θ_ ) _−_ 1 + cos 2 _θB_ ) = 2[(cos ∆ _θ −_ 1)(1 _−_ cos 2 _θB_ ) + sin 2 _θB_ sin ∆ _θ_ ] = 4 sin _θB_ [sin _θB_ (cos ∆ _θ −_ 1) + cos _θB_ sin ∆ _θ_ ] = 4 sin _θB_ [sin( _θB_ + ∆ _θ_ ) _−_ sin _θB_ ] _≈_ _α_ Appendix B Solutions of TT equations (17) using the Laplace transform B.0.1. Laue solution based on Laplace transform Let denote _F_ ¯ ( _p_ ) the Laplace transform of a function _F_ ( _s_ ) _F_ ¯ ( _p_ ) = - _∞_ _ds_ exp( _−ps_ ) _F_ ( _s_ ) _._ 0 along the directions of k 0 and k _hB_, so that k 0 _.∇A_ 0 = _k_ <sup><u>∂</u></sup> ∂ <sup>_<u>A</u>_</sup> _s_ 0 <sup><u>0</u></sup> <sup>and</sup> k _hB.∇Ah_ = _k_ <sup><u>∂</u></sup> ∂ <sup>_<u>A</u>_</sup> _sh_ <sup>_<u>h</u>_</sup> <sup>, the TT equations are</sup> <sup><u>∂</u></sup> ∂ <sup>_<u>A</u>_</sup> _sh_ <sup>_<u>h</u>_</sup> <sup>, the TT equations are</sup> <u>∂</u> _<u>A</u>_ <u>0</u> ∂ _s_ 0 <u>∂</u> _<u>Ah</u>_ ∂ _sh_ = <sup>_<u>ik</u>_</sup> 2 <sup>[</sup> <sup>_χ_</sup> <sup>0</sup> <sup>_A_</sup> <sup>0 +</sup> <sup>_χ−h_</sup> <sup>exp(</sup> <sup>_−iϕ_</sup> <sup>)</sup> <sup>_Ah_</sup> <sup>] ;</sup> = <sup>_<u>ik</u>_</sup> 2 <sup>[</sup> <sup>_χ_</sup> <sup>0</sup> <sup>_Ah_</sup> <sup>+</sup> <sup>_χh_</sup> <sup>exp(+</sup> <sup>_iϕ_</sup> <sup>)</sup> <sup>_A_</sup> <sup>0]</sup> <sup>_._</sup> Performing the transformation _A_ 0 = _D_ 0 and exp( _iϕ_ ) _Ah_ = _Dh_, we obtain <u>∂</u> _<u>D</u>_ <u>0</u> ∂ _s_ 0 <u>∂</u> _<u>Dh</u>_ ∂ _sh_ = <sup>_<u>ik</u>_</sup> 2 <sup>[</sup> <sup>_χ_</sup> <sup>0</sup> <sup>_D_</sup> <sup>0 +</sup> <sup>_χ−hDh_</sup> <sup>] ;</sup> (56a) <u>∂</u> _<u>ϕ</u>_ ∂ _sh_ Applying the Laplace transform to equations (17) we get ( _p_ + _iω_ ) _B_ <sup>¯</sup> 0( _p_ ) _−_ _iu−hB_ <sup>¯</sup> _h_ ( _p_ ) =1 ( _p −_ _iω_ ) _B_ <sup>¯</sup> _h_ ( _p_ ) _−_ _ibuhB_ <sup>¯</sup> 0( _p_ ) =0 _._ The solutions are _B_ ¯0( _p_ ) = <sup><u>(</u></sup> <sup>_<u>p −</u>_</sup> <sup>_<u>iω</u>_</sup> <sup><u>)</u></sup> _p_ <sup>2</sup> + _a_ <sup>2</sup> _<u>ibuh</u>_ _B_ ¯ _h_ ( _p_ ) = _p_ <sup>2</sup> + _a_ <sup>2</sup> <sup>_,_</sup> with, <u>as</u> <u>previously</u> defined, _a_ <sup>2</sup> = _ω_ <sup>2</sup> + _buhu−h_, _a_ = - _ω_ <sup>2</sup> + _buhu−h_ hence one retrieve the same results of equations (19) using the fact that ( _p_ <sup>2</sup> + _a_ <sup>2</sup> ) <sup>_−_</sup> <sup>1</sup> and _p_ ( _p_ <sup>2</sup> + _a_ <sup>2</sup> ) <sup>_−_</sup> <sup>1</sup> are the Laplace transform of sin( _as_ )/ _a_ and cos( _as_ ), respectively. B.0.2. Bragg solution based on Laplace transform By Laplace transform of equation (17), and calling _r_ <sup>_′_</sup> = _Bh_ (0), we obtain ( _p_ + _iω_ ) _B_ <sup>¯</sup> 0( _p_ ) _−_ _iu−hB_ <sup>¯</sup> _h_ ( _p_ ) =1 ( _p −_ _iω_ ) _B_ <sup>¯</sup> _h_ ( _p_ ) _−_ _iuhB_ <sup>¯</sup> 0( _p_ ) = _r,_ or _B_ ¯0( _p_ ) = <sup>_<u>p −</u>_</sup> <sup>_<u>iω</u>_</sup> <sup><u>+</u></sup> <sup>_<u>iru−h</u>_</sup> _p_ <sup>2</sup> + _a_ <sup>2</sup> _B_ ¯ _h_ ( _p_ ) = <sup>_<u>r</u>_</sup> <sup><u>(</u></sup> <sup>_<u>p</u>_</sup> <sup><u>+</u></sup> <sup>_<u>iω</u>_</sup> <sup><u>) +</u></sup> <sup>_<u>ibuh</u>_</sup> _,_ _p_ <sup>2</sup> + _a_ <sup>2</sup> with (the same as before) _a_ <sup>2</sup> = _ω_ <sup>2</sup> + _buhu−h_ . Hence: _B_ 0( _s_ ) = cos( _as_ ) + _i_ ( _ru−h −_ _ω_ ) <sup><u>sin(</u></sup> <sup>_<u>as</u>_</sup> <sup><u>)</u></sup> _a_ ) _Dh_ + _χhD_ 0 _._ (56b) = <sup>_<u>ik</u>_</sup> 2 �( _χ_ 0 + <sup><u>2</u></sup> _k_ This is identical to equation (10) considering that _α_ = <u>2</u> _k_ ∂∂ _sϕh_ <sup>,</sup> which demonstration follows. A.1. Demonstration of _α_ = <sup><u>2</u></sup> _k_ ∂∂ _sϕh_ Let i 0 _,h_ be unit vectors along the fixed directions of k 0 an k _hB_ ; the crystal rotation transforms i 0 _,h_ into j 0 _,h_ . A position vector _s_ 0 i 0 + _sh_ i _h_ is transformed into _s_ 0 j 0 + _sh_ j _h_ . The displacement field is u ( _s_ 0 _, sh_ ) = _s_ 0( j 0 _−_ i 0) + _sh_ ( j _h_ _−_ i _h_ ); h _B_ = _k_ ( i _h_ _−_ i 0). Hence A.1. Demonstration of _α_ = <sup><u>2</u></sup> _k_ _k_ _ϕ_ ( _s_ 0 _, sh_ ) = h _B._ u = _ks_ 0( i _h −_ i 0) _._ ( j 0 _−_ i 0)+ _ksh_ ( i _h −_ i 0) _._ ( j _h −_ i _h_ ) _._ We note that i 0 _._ j 0 = i _h._ j _h_ = cos ∆ _θB_ i 0 _._ j _h_ = cos(2 _θB_ + ∆ _θ_ ) i j (2 _θ_ _θ_ ) The _r_ and then the reflected and transmitted amplitudes are obtained using the condition _Dh_ ( _T_ ) = _Bh_ ( _T_ ) = 0. With some calculation, we obtain: _r_ = <sup>_<u>Dh</u>_</sup> <sup><u>(0)</u></sup> _<u>−ibuh</u>_ <u>sin(</u> _<u>aT</u>_ <u>)</u> _D_ 0(0) <sup>=</sup> <sup>_Bh_</sup> <sup>(0) =</sup> <sup>_r_</sup> <sup>=</sup> _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) _t_ = <sup>_<u>D</u>_</sup> <sup><u>0(</u></sup> <sup>_<u>T</u>_</sup> <sup><u>)</u></sup> _<u>a</u>_ <u>exp(</u> _<u>iT</u>_ <u>(</u> _<u>u</u>_ <u>0 +</u> _<u>ω</u>_ <u>))</u> _D_ 0(0) <sup>=</sup> <sup>_B_</sup> <sup>0(</sup> <sup>_T_</sup> <sup>)</sup> <sup>exp(</sup> <sup>_iT_</sup> <sup>(</sup> <sup>_u_</sup> <sup>0 +</sup> <sup>_ω_</sup> <sup>)) =</sup> _a_ cos( _aT_ ) + _iω_ sin( _aT_ ) <sup>_,_</sup> with _a_ = ~~�~~ _ω_ <sup>2</sup> + _buhu−h_, and _T_ = _tc_ / cos( _θ_ 0) with _tc_ the crystal thickness. Appendix C Equivalence of amplitudes in equations (39) and (34) with Zachariasen theory. The diffracted and transmitted intensities (not the amplitudes) are derived in the book of Zachariasen (Zachariasen, 1994) (first edition in 1944). It is shown hereafter that the amplitudes can be easily derived from Zachariasen formalism. For that purpose, we use Zachariasen’s notation and equations. In the Laue case, using the equations [3.127] and [3.128], we obtain with _X_ = - _q_ + _z_ <sup>2</sup>, _q_ = _b_ Ψ _H_ Ψ _H_ ¯, Ψ _H_ is the Fourier com ponent of the electrical susceptibility Ψ0 and _b_ = _γ_ 0/ _γh_ is the asymmetry factor. It is easy to see that _x_ 2 _−_ _x_ 1 = 2 _X_ /Ψ _H_ ¯, _x_ 1 _x_ 2 = _−b_ Ψ _H_ /Ψ _H_ ¯ . Introducing the variables _c_ = exp( _−_ 2 _πik_ 0(Ψ0 _−_ _z_ ) _t_ /(2 _γ_ 0)) and _m_ = _−_ 2 _πk_ 0 _Xt_ /(2 _γ_ 0), we have _c_ 1 _−_ _c_ 2 = _c_ ( _e_ <sup>_im_</sup> _−_ _e_ <sup>_−im_</sup> ) = 2 _ic_ sin( _m_ ) _,_ and _<u>c</u>_ _x_ 2 _c_ 2 _−_ _x_ 1 _c_ 1 = Ψ _H_ ¯ _−_ ( _X_ + _z_ ) _e_ <sup>_−im_</sup> _−_ ( _X_ _−_ _z_ ) _e_ <sup>_im_</sup> <sup>�</sup> _<u>c</u>_ _x_ 2 _c_ 1 _−_ _x_ 1 _c_ 2 = Ψ _H_ ¯ _−_ ( _X_ + _z_ ) _e_ <sup>_im_</sup> _−_ ( _X_ _−_ _z_ ) _e_ <sup>_−im_</sup> <sup>�</sup> = <u>2</u> _<u>c</u>_ Ψ _H_ ¯ ( _−X_ cos( _m_ ) _−_ _iz_ sin( _m_ )) _._ Replacing in equation (66) the terms obtained here we finally get: _rL_ <sup>_Z_</sup> <sup>=</sup> <sup>_icb_</sup> <sup>Ψ</sup> <sup>_H_</sup> <u>sin(</u> _<u>m</u>_ <u>)</u> _,_ _X_ _tL_ <sup>_Z_</sup> <sup>=</sup> <sup>_c_</sup> <sup>[cos(</sup> <sup>_m_</sup> <sup>) +</sup> <sup>_i_</sup> <sup>_<u>z</u>_</sup> _X_ _tL_ <sup>_Z_</sup> <sup>_<u>z</u>_</sup> _X_ <sup>sin(</sup> <sup>_m_</sup> <sup>)]</sup> <sup>_._</sup> For the Bragg case, we pre-calculate = _tL_ = _c_ 1 _D_ <sup>_′_</sup> 0 <sup>+</sup> <sup>_c_</sup> <sup>2</sup> <sup>_D_</sup> 0 <sup>_′′_</sup> <sup>=</sup> <sup>_<u>c</u>_</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>c</u>_</sup> <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> _x_ 2 _−_ _x_ 1 _,_ (65a) _<u>c</u>_ <u>1</u> _<u>−</u>_ _<u>c</u>_ <u>2</u> _rL_ = _x_ 1 _c_ 1 _D_ <sup>_′_</sup> 0 <sup>+</sup> <sup>_x_</sup> <sup>2</sup> <sup>_c_</sup> <sup>2</sup> <sup>_D_</sup> 0 <sup>_′′_</sup> <sup>=</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>2</sup> _x_ 2 _−_ _x_ 1 _<u>c</u>_ <u>1</u> _<u>−</u>_ _<u>c</u>_ <u>2</u> <sup>_′_</sup> 0 <sup>+</sup> <sup>_x_</sup> <sup>2</sup> <sup>_c_</sup> <sup>2</sup> <sup>_D_</sup> 0 <sup>_′′_</sup> <sup>=</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>2</sup> _x_ 2 _−_ _x_ 1 that introduced in equation (66) we finally get: ( _−X_ cos( _m_ ) + _iz_ sin( _m_ )) _,_ _._ (65b) <u>2</u> _<u>c</u>_ Ψ _H_ ¯ Similarly, in the Bragg case, using equations [3.127] and [3.135], we obtain <sup>9</sup> _rB_ <sup>_Z_</sup> <sup>=</sup> <sup>_ib_</sup> <sup>Ψ</sup> <sup>_H_</sup> <u>sin(</u> _<u>m</u>_ <u>)</u> _−X_ cos( _m_ ) + _iz_ sin( _m_ ) <sup>_,_</sup> (72a) _<u>x</u>_ <u>2</u> _<u>−</u>_ _<u>x</u>_ <u>1</u> _tB_ = _c_ 1 _D_ <sup>_′_</sup> 0 <sup>+</sup> <sup>_c_</sup> <sup>2</sup> <sup>_D_</sup> 0 <sup>_′′_</sup> <sup>=</sup> <sup>_c_</sup> <sup>1</sup> <sup>_c_</sup> <sup>2</sup> _c_ 2 _x_ 2 _−_ _c_ 1 _x_ 1 _,_ (66a) _._ (66b) Considering the equivalence of notations between this work and Zachariasen’ book (see Table 1), we can verify that equations (65) are identical to (34) and, similarly, equations (66) are identical to (39). Table 1 Correspondences of notation in this work and (Zachariasen, 1994) Zachariasen This work exp( _−_ 2 _πi_ k 0 _._ r ) exp( _i_ k 0 _._ r ) _k_ 0 = 1/ _λ_ _k_ = 2 _π_ / _λ_ _αZ_ _−α_ Ψ0 _χ_ 0 Ψ _H_ _χh_ _z_ _−_ ( _λ_ / _π_ ) _ω_ _X_ ( _λ_ / _π_ ) _a_ _t_ 0 _tc_ = _T_ / _γ_ 0 _m_ _aT_ _c_ exp( _iT_ ( _u_ 0 + _ω_ )) _<u>−cX</u>_ _tB_ <sup>_Z_</sup> <sup>=</sup> _−X_ cos( _m_ ) + _iz_ sin( _m_ ) <sup>_._</sup> (72b) _<u>c</u>_ <u>2</u> _<u>−</u>_ _<u>c</u>_ <u>1</u> _rB_ = _x_ 1 _D_ <sup>_′_</sup> 0 <sup>+</sup> <sup>_x_</sup> <sup>2</sup> <sup>_D_</sup> 0 <sup>_′′_</sup> <sup>=</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>2</sup> _c_ 2 _x_ 2 _−_ _c_ 1 _x_ 1 The symbols _c_ and _x_ are _c_ 1 = exp( _−_ 2 _πik_ 0 _δ_ 0 <sup>_′_</sup> <sup>_t_</sup> <sup>/</sup> <sup>_γ_</sup> <sup>0)</sup> <sup>_,_</sup> _c_ 2 = exp( _−_ 2 _πik_ 0 _δ_ 0 <sup>_′′t_</sup> <sup>/</sup> <sup>_γ_</sup> <sup>0)</sup> <sup>_,_</sup> (67a) _γ_ 0 ( _γh_ ) is the direction cosine of the incident (diffracted) wave and the other quantities are defined as: - _δ_ 0 _′_ _δ_ 0 <sup>_′′_</sup> - = <sup><u>1</u></sup> 2 <sup>(Ψ0</sup> <sup>_−_</sup> <sup>_z ± X_</sup> <sup>)</sup> _x_ 1 _,_ 2 = <sup>_<u>−z ± X</u>_</sup> Ψ _H_ ¯ _z_ = <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>b</u>_</sup> <sup>_<u>b</u>_</sup> 2 <sup>_αZ_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>b</u>_</sup> Ψ0 + <sup>_<u>b</u>_</sup> 2 2 <u>1</u> _αZ_ = _|k⃗_ 0 _|_ <sup>2</sup> - _|B⃗_ _H|_ <sup>2</sup> + 2 _k⃗_ 0 _·⃗_ _BH_ _,_

섹션 본문

섹션 본문이 없습니다.

참고문헌 19건

  1. The BESSY Raytrace Program RAY Springer eBooks · Springer Nature · 2008 10.1007/978-3-540-74561-7_2
  2. A single crystal bent Laue monochromator for coronary angiography Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 1993 10.1016/0168-9002(93)91114-3
  3. High-resolution X-ray monochromators Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2005 10.1016/j.nima.2005.05.010
  4. X-ray polarization: General formalism and polarization analysis The European Physical Journal Special Topics · Springer Science+Business Media · 2012 10.1140/epjst/e2012-01630-3
  5. The xraylib library for X-ray–matter interactions. Recent developments Spectrochimica Acta Part B Atomic Spectroscopy · Elsevier BV · 2011 10.1016/j.sab.2011.09.011
  6. &lt;title&gt;X-ray server: an online resource for simulations of x-ray diffraction and scattering&lt;/title&gt; Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2004 10.1117/12.557549
  7. Prévision de quelques images de dislocations par transmission des rayons X (cas de Laue symétrique) Acta Crystallographica · Wiley · 1967 10.1107/s0365110x67002063
  8. Dynamical Scattering of X-Rays in Crystals Springer series in solid-state sciences · Springer Nature · 1978 10.1007/978-3-642-81207-1
  9. Performance of phase plates on the XMaS beamline at the ESRF Journal of Synchrotron Radiation · Wiley · 2003 10.1107/s0909049502018654
  10. A bent Laue–Laue monochromator for a synchrotron-based computed tomography system Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 1999 10.1016/s0168-9002(99)00056-x
  11. Perfect crystal propagator for physical optics simulations with Synchrotron Radiation Workshop Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2014 10.1117/12.2061646
  12. Simulation of X-ray diffraction profiles for bent anisotropic crystals Journal of Applied Crystallography · Wiley · 2015 10.1107/s1600576715002782
  13. X-ray absorption spectroscopy in the dispersive mode with synchrotron radiation: optical considerations Journal of Applied Crystallography · Wiley · 1988 10.1107/s0021889887008239
  14. Dynamical theory of diffraction applicable to crystals with any kind of small distortion Acta Crystallographica · Wiley · 1962 10.1107/s0365110x62003473
  15. <i>SHADOW3</i>: a new version of the synchrotron X-ray optics modelling package Journal of Synchrotron Radiation · Wiley · 2011 10.1107/s0909049511026306
  16. Calculating temperature-dependent X-ray structure factors of α-quartz with an extensible Python 3 package Journal of Applied Crystallography · Wiley · 2022 10.1107/s1600576722005945
  17. Dynamical Theory of X-Ray Diffraction Oxford University Press eBooks · Oxford University Press · 2003 10.1093/acprof:oso/9780198528920.001.0001
  18. Beamline simulations using monochromators with high <i>d</i>-spacing crystals Journal of Synchrotron Radiation · Wiley · 2022 10.1107/s160057752200707x
  19. New Features of <i>xrt</i> : Bent Crystals, Coherent Modes, Waves with OAM Synchrotron Radiation News · Taylor & Francis · 2023 10.1080/08940886.2023.2274735