rounding errors?
Kristian Nielsen
kristian.nielsen at risoe.dk
Wed Feb 24 08:12:47 CET 1999
> I have modified the input file slightly. It is attached. I would like to
> send you my curves I produce with this file. Probrably you can solve the
> problem at once. I have it in Excel. Can you use that? Or is
> transmission via Fax better?
I managed to use the excel files using Excel 5 and a windows emulator.
Ah, now I see the problem. Your numbers are all integers, and look like
the values of N (neutron events) in the monitors with 5e7 simulated
neutrons. That will not work; because of neutron weights, the N values
are not very meaningful in McStas. You need to use the I values instead
(the 3rd column in the file).
In about half an hour, I will put up a new plot on
http://neutron.risoe.dk/mcstas/support/artus/resi2-plot.gif
for you to see.
Hm, I wonder if a better file format would have helped to avoid this
problem for you. I am in the process of designing a proper output file
format for McStas. Do you have any suggestions resulting from your
experience with McStas? I am considering NeXus, of course. There will
also be an ASCII format, the challenge of which is to remain compatible
with many different programs (excel, matlab, perldl, gnuplot, ...) while
getting as much information in as possible.
- Kristian.
More information about the mcstas-users
mailing list