Error in Calculation of absolute Flux (Source_flux) ???
Kristian Nielsen
kristian.nielsen at risoe.dk
Wed Jan 27 08:38:41 CET 1999
> Here is what beamline does:
Ok thanks for the explanation of Beamline.
> You can transform the McStas output monitor_I to the Beamline output by
> dividing by the monitor area and teh wavelength range (2*dE in AA). It
> fits very well! We have tried it with several guides.
Ok. I have modified the Monitor component to create a Monitor_flux
component that does exactly this. It takes two extra input parameters:
the lower and upper limit of the wavelength range to consider (eg. lmin
= sqrt(81.81/(E+dE)), lmax = sqrt(81.81/(E-dE)) in your case). I think
that letting the user supply the wavelength range is more general than
just taking the values from the source component (ie. what happens if
another source component with no dE is used?).
I tried running the two test instruments you send in the first mail,
modified to use the Monitor_flux component (and with the height typo
fixed). The results, including the correct units, match those you gave
for Beamline:
straight 3.5 1.69E+09
focusing 2.9 1.80E+09
I put the Monitor_flux, as well as the modified test instruments, on our
web page at
http://neutron.risoe.dk/mcstas/support/artus/
The unit for lmin and lmax of the Monitor_flux component is AA and the
output is in n/cm**2/AA, which is what you need, I think. There is
starting to be a lot of inconsistency between using neutron energies in
meV and neutron wavelengths in AA in the different components, but that
I something I have to sort out in some way. One idea I have is to build
in knowledge about common units in McStas so that the user can just say
"20 [meV]" or "4 [AA]" or "2000 [m/s]" and McStas will sort it out by
itself, but that is for the future.
> I hope this all is not too much trouble! I am glad that I have to think
> again about things I thought to be a matter of course. They are not...
>
> Probably you know already that Ralph Gilles (vis a vis to my desk) and
> Peter Link (next door) are starting with McStas!
No trouble at all, we measure the success of McStas to a large degree on
the extent to which it is used by others. So we are very happy that you
are using the program, and quite willing to help. And as you, I find it
very useful to discuss these things and get to think about them, I have
now a much clearer idea how to handle absolute flux better in McStas in
future releases.
- Kristian.
More information about the mcstas-users
mailing list