Expand description
Transmission forward model via the Beer-Lambert law.
Computes theoretical neutron transmission spectra from resonance parameters, applying cross-section calculation, Doppler broadening, resolution broadening, and the Beer-Lambert attenuation law.
§Beer-Lambert Law
For a single isotope: T(E) = exp(-n·d·σ(E))
For multiple isotopes: T(E) = exp(-Σᵢ nᵢ·dᵢ·σᵢ(E))
where n is number density (atoms/cm³), d is thickness (cm), and σ(E) is the total cross-section in barns (1 barn = 10⁻²⁴ cm²).
In practice, the product n·d is expressed as “areal density” in atoms/barn, so T(E) = exp(-thickness × σ(E)) with thickness in atoms/barn.
§SAMMY Reference
cro/andxxx/modules — cross-section to transmission conversion- Manual Section II (cross-section theory); transmission experiments Section III.E.1
Structs§
- Instrument
Params - Optional instrument resolution parameters.
- Sample
Params - Sample description for the forward model.
- Working
Grid Layout - The working energy grid used for broadening, plus the map back to the data grid.
- Working
Grid Xs - Working-grid Doppler-broadened cross-sections plus the data-grid map.
- Working
Grid XsWith Derivative - Working-grid Doppler-broadened cross-sections and their analytical temperature derivative, plus the data-grid map.
Enums§
- Sample
Params Error - Errors from
SampleParamsconstruction. - Transmission
Error - Errors from the transmission forward model.
Functions§
- beer_
lambert - Compute transmission from cross-sections via Beer-Lambert law.
- beer_
lambert_ multi - Compute transmission for multiple isotopes.
- broadened_
cross_ sections - Compute Doppler-broadened cross-sections for each isotope.
- broadened_
cross_ sections_ for_ transmission - Compute Doppler+resolution-broadened cross-sections using SAMMY’s Beer-Lambert-aware pipeline for transmission data.
- broadened_
cross_ sections_ from_ base - Compute Doppler-broadened cross-sections from precomputed unbroadened cross-sections.
- broadened_
cross_ sections_ from_ base_ on_ working_ grid - Like
broadened_cross_sections_from_basebut returns the Doppler-broadened σ on the working grid (auxiliary extended grid when Gaussian resolution is active, else the data grid) together with theWorkingGridLayout. - broadened_
cross_ sections_ on_ working_ grid - Like
broadened_cross_sectionsbut returns the Doppler-broadened σ on the working grid (auxiliary extended grid when Gaussian resolution is active, else the data grid) together with theWorkingGridLayout. - broadened_
cross_ sections_ with_ analytical_ derivative_ from_ base - Compute Doppler-broadened cross-sections and their analytical temperature derivative from precomputed unbroadened cross-sections.
- broadened_
cross_ sections_ with_ analytical_ derivative_ from_ base_ on_ working_ grid - Like
broadened_cross_sections_with_analytical_derivative_from_basebut returns σ and ∂σ/∂T on the working grid (auxiliary extended grid when Gaussian resolution is active, else the data grid) together with theWorkingGridLayout. - forward_
model - Compute a complete theoretical transmission spectrum.
- forward_
model_ from_ base_ xs - Compute a transmission spectrum from precomputed unbroadened cross-sections.
- resolution_
working_ grid - Compute the working-grid layout for
(energies, instrument, resonance_data). - resonance_
center_ energies - Distinct resonance center energies (eV) across every isotope and formalism, sorted ascending.
- unbroadened_
cross_ sections - Compute unbroadened (raw Reich-Moore) cross-sections for each isotope.
Type Aliases§
- Broadened
XsWith Derivative - Broadened cross-sections and their temperature derivative.