Skip to content

Commit

Permalink
update isolated doc pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kklmn committed Nov 11, 2024
1 parent 1cde1bd commit eb45e11
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
10 changes: 8 additions & 2 deletions tests/raycing/test_asymmetric_xtal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Reflection from asymmetrically cut crystal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See the script: `tests/raycing/test_asymmetric_xtal.py`.
A monochromatic beam of *E* = 2840 eV is diffracted by a Si111 crystal with
θ\ :sub:`B`\ = 44.132 deg and α = -20.054 deg, which results in *b* = -0.453.
Expand All @@ -15,8 +17,12 @@
The ray-traced deviation -106 µrad is close to the calculated refractive shift
-105 µrad.
.. imagezoom:: _images/0-zzP-source,alpha=-0.350.png
.. imagezoom:: _images/2-zzP-afterXtal,alpha=-0.350.png
+-------------------+-------------------+
| |asymXtal_before| | |asymXtal_after| |
+-------------------+-------------------+
.. |asymXtal_before| imagezoom:: _images/0-zzP-source,alpha=-0.350.png
.. |asymXtal_after| imagezoom:: _images/2-zzP-afterXtal,alpha=-0.350.png
"""
__author__ = "Konstantin Klementiev"
Expand Down
3 changes: 3 additions & 0 deletions tests/raycing/test_backcattering_xtal_Shvydko.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
Reflectivity from highly asymmetric crystal in backscattering
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See the script: `tests/raycing/test_backcattering_xtal_Shvydko.py`.
A test for the optical scheme from [ShvydkoPRL2006]_, Fig 3.
.. imagezoom:: _images/shvydko-rc-ver.png
:align: center
The blue curve was ray-traced by xrt. The dotted curve is a reconstruction from
Fig. 4 of [ShvydkoPRL2006]_. The dispersion rate was calculated from a linear
Expand Down
21 changes: 15 additions & 6 deletions tests/raycing/test_undulator_convergence.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,31 @@
shown below.
.. imagezoom:: _images/B_vs_Z.png
:align: center
The output of `IntegratedSource.test_convergence()` shows convergence of the
calculated intensity signaled by various indicators:
.. imagezoom:: _images/test_convergence.png
The transverse intensity distribution vs number of nodes:
:align: center
+-----------------+-----------------+
| |Imap_frames_t| | |Imap_flux_t| |
+-----------------+-----------------+
| |Imap_frames_v| | |Imap_flux_i| |
+-----------------+-----------------+
.. video:: _videos/Imap_frames.mp4
.. |Imap_frames_t| replace:: Transverse intensity distribution vs number of nodes
.. |Imap_frames_v| video:: _videos/Imap_frames.mp4
:controls:
:loop:
The flux distribution vs number of nodes:
.. |Imap_flux_t| replace:: Flux distribution vs number of nodes
.. |Imap_flux_i| imagezoom:: _images/Total_flux.png
:loc: lower-right-corner
.. imagezoom:: _images/Total_flux.png
"""

__author__ = "Konstantin Klementiev, Roman Chernikov"
Expand Down

0 comments on commit eb45e11

Please sign in to comment.