Physics of the TransmissionModel
The TransmissionModel in the nres package is based on the fundamental principles of neutron transmission through materials. This model incorporates cross-section calculations, instrument response functions, and background parameterization to accurately describe experimental data.
Transmission Equation
The core equation for the transmission of neutrons through a material is given by:
- Where:
\(T(E)\) is the transmission as a function of energy
\(\text{norm}\) is a normalization factor
\(\sigma(E)\) is the energy-dependent cross-section
\(\text{thickness}\) is the sample thickness
\(n\) is the total atomic weight (in atoms/barn-cm)
\(\text{bg}(E)\) is the energy-dependent background function
Cross-Section Integration
The cross-section \(\sigma(E)\) is typically provided as a set of discrete points. To apply this to experimental data, we need to integrate the cross-section over the requested energy bins. This integration is performed using the integrate_cross_section function, which employs the following steps:
Extend the energy grid to accommodate the convolution kernel.
Perform trapezoidal integration over each energy bin.
Calculate the average cross-section for each bin.
If a response function is provided, convolve the result with the kernel.
Trim the result to match the original energy grid size.
This integration ensures that the cross-section is properly averaged over each energy bin, accounting for the energy resolution of the instrument.
Instrument Response Function
The instrument response function accounts for the finite resolution of the measurement apparatus. In the nres package, this is implemented in the Response class, which offers two main options:
Exponential-Gaussian Response (“expo_gauss”): This response function combines an exponential decay with a Gaussian distribution, suitable for many neutron time-of-flight instruments. It is defined as:
\[R(t) = \text{exponnorm.pdf}(t, K, \text{loc}=x_0, \text{scale}=\tau)\]Where \(K\) is the shape parameter, \(x_0\) is the location parameter, and \(\tau\) is the scale parameter.
Empty Response (“none”): This option applies no response function, useful for ideal or theoretical calculations.
The response function is convolved with the integrated cross-section to simulate the instrument’s effect on the measured transmission.
Background Parameterization
The background in neutron transmission experiments can arise from various sources, including sample-independent neutron scattering and electronic noise. The Background class in nres provides several options for modeling this background:
Constant Background: .. math:
\text{bg}(E) = b_0
Third-degree Polynomial Background: .. math:
\text{bg}(E) = b_0 + b_1\sqrt{E} + \frac{b_2}{\sqrt{E}}
Fifth-degree Polynomial Background: .. math:
\text{bg}(E) = b_0 + b_1\sqrt{E} + \frac{b_2}{\sqrt{E}} + b_3E + b_4E^2
No Background (“none”): This option assumes zero background, useful for ideal or corrected data.
The choice of background function depends on the specific experimental setup and the energy range of interest.
Model Integration
The TransmissionModel combines these components - cross-section, response function, and background - into a cohesive model:
The cross-section is integrated over the energy bins.
The integrated cross-section is convolved with the instrument response function.
The background is calculated for each energy point.
The transmission is computed using the equation provided earlier.
This integrated approach allows for accurate modeling of neutron transmission experiments, accounting for the complex interplay between material properties, instrument characteristics, and experimental conditions.
By adjusting the parameters of each component (cross-section weights, response function parameters, background coefficients, etc.), the model can be fitted to experimental data, providing insights into the sample composition and structure.