VesuvioThickness v1

../_images/VesuvioThickness-v1_dlg.png

VesuvioThickness dialog.

Summary

Produces the sample density for vesuvio based on sample transmission and composite masses

Properties

Name Direction Type Default Description
Masses Input dbl list   The masses that make up the sample
Amplitudes Input dbl list   The amplitudes of the peaks
TransmissionGuess Input number 1 Initial guess for the transmission
Thickness Input number 5 The thickness of the sample in centimetres (cm)
NumberDensity Input number 1 The Number Density of the sample material
DensityWorkspace Output TableWorkspace Mandatory Output Workspace containing the iterative approximations for Sample Density. The final Y value in the first spectrum will be the last iteration
TransmissionWorkspace Output TableWorkspace Mandatory Output Workspace containing the iterative approximation for Transmission.

Description

Determines the sample density for vesuvio based on sample transmission and composite masses

Usage

Example - VesuvioThickness

# Algorithm inputs
masses = [1.0079,27.0,91.0]
amplitudes = [0.9301589,2.9496644e-02,4.0345035e-02]
trans_guess = 0.831
thickness = 5.0
number_density = 1.0

# Run algorithm
dens_tbl, trans_tbl = VesuvioThickness(masses, amplitudes, trans_guess, thickness, number_density)

# Test output
print "The final density is: %.4f" % dens_tbl.cell(9,1)
print "The final transmission is: %.4f" % trans_tbl.cell(9,1)

Output:

 The final density is: 24.4515
 The final transmission is: 0.8310

Categories: Algorithms | Inelastic\Indirect\Vesuvio