Sources
Kristian Nielsen
kristian.nielsen at risoe.dk
Wed Jan 27 11:29:47 CET 1999
> Yes, you're right, creating a rectangular source is very easy (just
> change angle and radius directly into dimentions for the two first
> random numbers). For a Maxwellian distribution, I hesitate between
> using a flat energy distribution, but weightening with
> p=cte.exp(-E/T), or using E = -T log(rand01/cte), in order to produce
> more neutrons of certain energies. The first solution is simpler, but
> some neutrons with low weight are not very useful. The second solution
> appears to me more efficient in computation. What do you think about
> it ?
My thoughts on the matter are quite complex! I have been thinking for a
long time about writing a much better source component. The component
would take a tabulated energy distribution as an input parameter, so it
could be flat, Maxwellian, measured or anything desired. It would use
adaptive importance sampling to select the neutron energy, so that it
would automatically select a "useful" energy for most neutrons. I have
most of the details in place, but I do not know when I will get the time
to actually implement it; hopefully sometimes this spring.
I think you are definitely right that the correct approach to selecting
the neutron energy is the key to good performance. But which approach is
the right one will in general depend on the application. For example, in
a full tripple-axis setup, it will be necessary to select neutrons
energies from a small range appropriate to the monochromator setting. To
test a guide system, a wide range might be appropriate.
In any case, the way to select neutron energies is to pick the energy
from whatever random number distribution gives the best efficiency, and
then adjust the weight accordingly to match a flat or Maxwellian or
whatever distribution.
- Kristian.
More information about the mcstas-users
mailing list