ApplyDetailedBalance v1¶
Summary¶
Transform scattering intensity to dynamic susceptibility.
Properties¶
Name |
Direction |
Type |
Default |
Description |
---|---|---|---|---|
InputWorkspace |
Input |
Mandatory |
An input workspace. |
|
Temperature |
Input |
string |
SampleLog variable name that contains the temperature, or a number |
|
OutputWorkspace |
Output |
Mandatory |
An output workspace. |
|
OutputUnits |
Input |
string |
Energy |
Susceptibility as a function of energy (meV) or frequency (GHz). Allowed values: [‘Energy’, ‘Frequency’] |
Description¶
The fluctuation dissipation theorem [1,2] relates the dynamic susceptibility to the scattering function
where
[1] S. W. Lovesey - Theory of Neutron Scattering from Condensed Matter, vol 1
[2] I. A. Zaliznyak and S. H. Lee - Magnetic Neutron Scattering in “Modern techniques for characterizing magnetic materials”
Usage¶
Example - Run Applied Detailed Balance
ws = CreateWorkspace(DataX='-5,-4,-3,-2,-1,0,1,2,3,4,5',DataY='2,2,2,2,2,2,2,2,2,2',DataE='1,1,1,1,1,1,1,1,1,1',UnitX='DeltaE')
ows = ApplyDetailedBalance(InputWorkspace='ws',OutputWorkspace='ows',Temperature='100', OutputUnits='Frequency')
print("The Y values in the Output Workspace are")
print(ows.readY(0)[0:5])
print(ows.readY(0)[5:10])
Output:
The Y values in the Output Workspace are
[-4.30861792 -3.14812682 -2.11478496 -1.19466121 -0.37535083]
[0.35419179 1.00380206 1.58223777 2.09729717 2.55592407]
Categories: AlgorithmIndex | Inelastic\Corrections
Source¶
C++ header: ApplyDetailedBalance.h
C++ source: ApplyDetailedBalance.cpp