Skip to content

Commit 7a10fc3

Browse files
committed
Gemini AI run to attempt sync of comp->tex doc snippets, McXtrace
1 parent 9c5d7e9 commit 7a10fc3

25 files changed

+225
-26
lines changed

doc/manuals/mcxtrace/misc/Air.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
\section{Air: A component simulating atmospheric air}
2+
\label{s:air}
3+
\index{Misc!Air}
4+
\mcdoccomp{misc/Air.parms}
5+
6+
The component \textbf{Air} simulates the scattering of X-rays from atmospheric air. The air is assumed to be a dry mixture of nitrogen, oxygen, and argon. The component can be used to estimate the background signal from air scattering in an experiment.
7+
8+
The air volume can be defined as a box, a cylinder, or a sphere. The dimensions of the air volume are specified by the \textit{xwidth}, \textit{yheight}, \textit{zdepth}, and \textit{radius} parameters. The pressure and temperature of the air can be specified by the \textit{pressure} and \textit{temperature} parameters, respectively.
9+
10+
The component also allows for the use of a target window, which is defined by the \textit{target_x}, \textit{target_y}, \textit{target_z}, \textit{focus_xw}, \textit{focus_yh}, \textit{focus_aw}, \textit{focus_ah}, and \textit{focus_r} parameters. The \textit{frac} parameter controls the fraction of rays to be scattered from the air.

doc/manuals/mcxtrace/misc/File.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
\section{File: A component for generating input files}
4+
\label{s:file}
5+
\index{Misc!File}
6+
\mcdoccomp{misc/File.parms}
7+
8+
The component \textbf{File} allows for the generation of input files from METADATA blocks. The component reads the content of a METADATA block and writes it to a file.
9+
10+
The component is defined by the \textit{filename} and \textit{metadatakey} parameters. The \textit{filename} parameter specifies the name of the output file, and the \textit{metadatakey} parameter specifies the key of the METADATA block to be read. The \textit{keep} parameter can be used to keep the generated file after the simulation is finished.
11+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
\section{Focus: A component for focusing X-rays}
3+
\label{s:focus}
4+
\index{Misc!Focus}
5+
\mcdoccomp{misc/Focus.parms}
6+
7+
The component \textbf{Focus} turns a photon into a Huygens wavelet. The component changes the direction of the photon to a random direction towards a specified target area. This component is intended to be used in coherent simulations, preferably with the SPLIT keyword.
8+
9+
The target area is defined by the \textit{dist}, \textit{focus_xw}, \textit{focus_yh}, \textit{focus_x0}, and \textit{focus_y0} parameters. The \textit{focus_absolute} parameter can be used to specify whether the target coordinates are absolute or relative to the component's position.
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
\section{MCPL_input: An interface for MCPL}
3+
\label{s:mcpl_input}
4+
\index{Misc!MCPL_input}
5+
\mcdoccomp{misc/MCPL_input.parms}
6+
7+
The component \textbf{MCPL_input} is a source-like component that reads photon state parameters from a binary mcpl-file. MCPL is a format for sharing events between different Monte Carlo simulation codes.
8+
9+
The component is defined by the \textit{filename} parameter, which specifies the name of the mcpl-file to be read. The component can also be used to smear the energy, position, and direction of the photons by using the \textit{E_smear}, \textit{pos_smear}, and \textit{dir_smear} parameters, respectively. The \textit{repeat_count} parameter can be used to repeat the events in the mcpl-file multiple times.
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
\section{MCPL_output: An interface for MCPL}
3+
\label{s:mcpl_output}
4+
\index{Misc!MCPL_output}
5+
\mcdoccomp{misc/MCPL_output.parms}
6+
7+
The component \textbf{MCPL_output} is a detector-like component that writes photon state parameters into an mcpl-format binary file. MCPL is a format for sharing events between different Monte Carlo simulation codes.
8+
9+
The component is defined by the \textit{filename} parameter, which specifies the name of the output file. The component allows for several flags to tweak the output file. The \textit{polarisationuse} parameter can be used to store the polarisation vector of the photons. The \textit{doubleprec} parameter can be used to store the data as 32-bit floating points. The \textit{userflag} and \textit{userflagcomment} parameters can be used to attach extra information to each photon.
10+

doc/manuals/mcxtrace/misc/Shadow_input.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ \section{Shadow\_input: Reading input from Shadow}
33
\label{s:shadow-input}
44
\mcdoccomp{misc/Shadow_input.parms}
55

6-
Documentation pending
6+
The component \textbf{Shadow_input} is a source-like component that reads x-ray state parameters from a SHADOW x-ray event file. This component can be used to interface McXtrace components or simulations into SHADOW.
7+
8+
The component is defined by the \textit{file} parameter, which specifies the name of the SHADOW file to be read. The \textit{bufsize} parameter can be used to specify the size of the input buffer, and the \textit{repeat_count} parameter can be used to repeat each x-ray read multiple times.

doc/manuals/mcxtrace/misc/Shadow_output.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ \section{Shadow\_output: Saving the photon rays for use with SHADOW}
33
\index{Sources!Virtual source}
44
\mcdoccomp{misc/Shadow_output.parms}
55

6-
Documentation pending.
6+
The component \textbf{Shadow_output} is a detector-like component that writes x-ray state parameters to a SHADOW x-ray event file. This component can be used to interface McXtrace components or simulations into SHADOW.
7+
8+
The component is defined by the \textit{file} parameter, which specifies the name of the output file. The \textit{bufsize} parameter can be used to specify the size of the output buffer, and the \textit{progress} parameter can be used to output dots as a progress indicator.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
\section{Shape: A geometric shape for display purposes}
4+
\label{s:shape}
5+
\index{Misc!Shape}
6+
\mcdoccomp{misc/Shape.parms}
7+
8+
The component \textbf{Shape} is an inactive geometrical shape for drawing purposes only. It does not propagate X-rays, nor interact with them.
9+
10+
The shape can be a cylinder, a sphere, a box, or any other shape defined by an OFF file. The dimensions of the shape are specified by the \textit{radius}, \textit{xwidth}, \textit{yheight}, \textit{zdepth}, and \textit{thickness} parameters. The \textit{geometry} parameter can be used to specify the name of an OFF file for complex geometries.
11+

doc/manuals/mcxtrace/optics/Beamstop.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ \section{Beamstop: A photon absorbing area}
1616
Further, the holder of the beamstop is not simulated.
1717

1818
\textbf{Beamstop} can be either circular or rectangular.
19-
The input parameters of \textbf{Beamstop} are either height and width \textit{(xwidth, yheight)} or the four coordinates,\textit{(xmin, xmax, ymin, ymax)}
20-
defining the opening of a rectangle, or the \textit{radius} of
21-
a circle, depending on which parameters are specified.
19+
The input parameters of \textbf{Beamstop} can be either circular or rectangular. If the \textit{radius} is specified, the beamstop is circular. Otherwise, it is rectangular. The rectangular geometry can be defined by either the \textit{xwidth} and \textit{yheight} parameters, which define the width and height of the beamstop, or by the \textit{xmin}, \textit{xmax}, \textit{ymin}, and \textit{ymax} parameters, which define the absolute limits of the beamstop. If both sets of parameters are specified, \textit{xwidth} and \textit{yheight} take precedence.
2220

2321
If the "direct beam" (e.g. after a monochromator or sample) should not be
2422
simulated, it is possible to emulate an ideal beamstop
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
\section{Capillary: A capillary tube}
3+
\label{s:capillary}
4+
\index{Optics!Capillary}
5+
\mcdoccomp{optics/Capillary.parms}
6+
7+
The component \textbf{Capillary} models a capillary tube that allows for multiple reflections along its inner surface. The capillary is a hollow cylinder with a given \textit{radius} and \textit{length}.
8+
9+
The inner surface of the capillary can be coated with a material to enhance its reflectivity. The optical properties of the coating are defined by the \textit{coating} parameter, which should be the name of a file containing the material's complex refractive index data (f1 and f2). Alternatively, a pre-calculated reflectivity table can be provided by setting the \textit{rtable} parameter to a non-zero value. In this case, the \textit{coating} file should contain a 2D matrix of reflectivities as a function of energy and incident angle. If no coating is specified, a constant reflectivity can be set using the \textit{R0} parameter.
10+
11+
The component also models surface waviness, which can be introduced using the \textit{waviness} parameter. This parameter defines the maximum angular deviation of the surface normal from its ideal orientation. The waviness can be either longitudinal (along the capillary axis) or isotropic, as determined by the \textit{longw} parameter.
12+

0 commit comments

Comments
 (0)