-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Ideal instrument #24
Comments
|
I have started thinking about this and what I am not clear on is how exactly the model should work. For example, given the Gaussian model, should it
|
Assuming the first case above (constant kernel), the question becomes how to handle the triangular distribution - in but the triangular distribution is not (it is instead set up so that the slope starts at 0): So, should they all be left as-is (and therefore have different centerings), or should the triangular one be re-centered, and if so, should it be centered on its peak or its STD? (these are at different places in non-isosceles triangles) |
For this purpose I would expect we are generally dealing with isosceles triangles; they represent the convolution of two equal-width boxcars. Do you know of any codes using skewed triangles, @oerc0122 ? Shifting the mean to zero is a bit more general, and works out to equal the peak in that case. |
I don't know anything using skewed triangles, no, if you're reducing the approximation as far as a triangle (fundamentally unphysical as undifferentiable at the peak) it doesn't make much sense to have a skew. |
Is there a particular Ikeda-Carpenter resolution function you have in mind? As described in the paper, the function is in time and not symmetric about zero, so not a suitable kernel for energy resolution. We probably want a TOF resolution function that is derived from this using some instrument parameter(s)? |
Regarding the Ikeda-Carpenter function - it's complicated...
Yes, that's right. In addition one of the parameters which enter into the function vs ToF (alpha) is neutron energy (wavelength) dependent - so the Ikeda-Carpenter function is both a function of neutron energy and ToF. What this means for us is that the peak profile (width) will change with energy transfer. An additional complication is the difference between the direct (e.g. MAPS/MERLIN/LET) and indirect (e.g. TOSCA/VISION/IRIS/OSIRIS) spectrometers. In the direct geometry spectrometers a narrow band of incident neutron energies (velocities) are selected by a mechanical chopper. You can imagine this as a gate which opens at a particular time to let neutrons with a specific velocity pass (if they are all emitted at a particular time t0). However, as neutrons are not all emitted at t0 neutrons which are emitted later have to have a faster velocity to pass through the chopper. This means that the peak shape in a direct geometry instrument is "flipped"/opposite to the normal Ikeda-Carpenter form. That is there is a gradual slope on the negative (neutron energy gain / shorter ToF / faster neutrons) side and a sharp drop off on the positive (neutron energy loss / longer ToF / slower neutrons) side. This "flip" does not occur for an indirect instrument like VISION hence they can use the standard Ikeda-Carpenter form. Another simplification in the form you quoted seems to be ignoring the energy/wavelength dependence of the width. This dependence is approximately proportional to the neutron velocity so it is proportional to the square-root of the energy transfer... I guess this is a relatively slow function that within a narrow enough energy it can be ignored (particularly if you're looking at higher energies). Anyway, as far as I know we don't really use the proper Ikeda-Carpenter function for resolution because of the complications above. In TobyFit/Horace the Ikeda-Carpenter formulism is used to derive an energy dependent width which is then used to fix a Gaussian or pseudo-voigt lineshape. There is an alternative option in TobyFit/Horace to use a look-up table calculated from McStas which gives the full lineshape as a function of neutron energy and ToF - I guess this could be calculated from the Ikeda-Carpenter function but we'd have to do some measurements to fix the alpha and beta parameters and we haven't done that for most of our instruments. |
Thanks, Duc, very helpful! For this particular feature (an "ideal" instrument for testing and benchmarking) I think we want an energy-independent form anyway; it can be matched to individual peaks. Flipping the direction is also simple enough. What worries me more is that you mention one of the parameters (alpha) being energy-dependent --- but presumably not the beta and R parameters? So this energy form has three parameters at work while our uniform scaling only gives one adjustment point. That suggests we don't have enough degrees of freedom here to match other data/models. Do you know where we can find an equally flexible energy-domain function? I'm currently working on a look-up table resolution function for TOSCA based on McStas data. Interestingly the long tails are on the low-energy-transfer side, as you described for direct-geometry? Presumably they arise by a different mechanism. If similar tables are available for other instruments in TobyFit it would be great to incorporate them into ResINS; how many dimensions (q,ω) do they describe? |
Add an ideal instrument that will have models such as:
The text was updated successfully, but these errors were encountered: