HRPDSlabCanAbsorption
From MantidProject
Contents |
Summary
Calculates attenuation due to absorption and scattering in an HRPD 'slab' can.
Properties
| Order | Name | Direction | Type | Default | Description |
|---|---|---|---|---|---|
| 1 | InputWorkspace | Input | Workspace | Mandatory | The name of the input workspace. The input workspace must have X units of wavelength. |
| 2 | OutputWorkspace | Output | Workspace | Mandatory | The name to use for the output workspace. |
| 3 | SampleAttenuationXSection | Input | double | Mandatory | The attenuation cross-section ( σA ) for the sample material in barns, at a wavelength of 1.798 Angstroms. |
| 4 | SampleScatteringXSection | Input | double | Mandatory | The scattering cross-section ( σs ) for the sample material in barns. |
| 5 | SampleNumberDensity | Input | double | Mandatory | The number density ( ρ ) of the sample in .
|
| 6 | NumberOfWavelengthPoints | Input | integer | All points | The number of wavelength points for which the numerical integral is calculated |
| 7 | ExpMethod | Input | string | Normal | Method to use to calculate exponentials, normal or a fast approximation |
| 8 | Thickness | Input | double | Mandatory | The thickness of the sample holder in centimetres. |
| 9 | ElementSize | Input | double | 1 | The side dimension of an integration element cube in mm. |
Description
This algorithm is a refinement of the FlatPlateAbsorption algorithm for the specific case of an HRPD 'slab can' sample holder. It uses the aforementioned generic algorithm to calculate the correction due to the sample itself, using numerical integration. This is done using the standard height x width dimensions of an HRPD sample holder of 23 x 18 mm. Valid values of the thickness are 2,5,10 & 15 mm, although this is not currently enforced.
Further corrections are then carried out to account for the 0.125mm Vanadium windows at the front and rear of the sample, and for the aluminium of the holder itself (which is traversed by neutrons en route to the 90 degree bank). This is carried out using an analytical approximation for a flat plate, the correction factor being calculated as
, where λ is the wavelength, θ the angle between the detector and the normal to the plate and the other symbols are as given in the property list above. The assumption is that the neutron enters the plate along the normal.
Restrictions on the input workspace
The input workspace must have units of wavelength. The instrument associated with the workspace must be fully defined because detector, source & sample position are needed.
Subalgorithms used
The FlatPlateAbsorption algorithm is used to calculate the correction due to the sample itself.
Source Code
Header HRPDSlabCanAbsorption.h
Source HRPDSlabCanAbsorption.cpp
.
