[neutron-mc] Monochromator_flat

Lorenzo Ciampolini v-ciampo at ill.fr
Wed Apr 21 17:44:48 CEST 2004


Hi Ulrich,

For me too that's a bug, the first values up to 0 should be negative. I
did not search for the literature, but I know what Gauss quadrature is and
those X values should be the integration abscissae, which should be
definitely symmetrical around zero (an additional argument is used to
later offset the stuff).

However, you might verify that (at least at the present moment) in the
rest of the component code the Gaussian curves are centered at zero so the
bug is effectless.

Best regards,
Lorenzo
> Send neutron-mc mailing list submissions to
> 	neutron-mc at risoe.dk
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://neutron.risoe.dk/mailman/listinfo/neutron-mc
> or, via email, send a message with subject or body 'help' to
> 	neutron-mc-request at risoe.dk
>
> You can reach the person managing the list at
> 	neutron-mc-admin at risoe.dk
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of neutron-mc digest..."
>
>
> Today's Topics:
>
>    1. Monochromator_flat (Ulrich C. Wildgruber MPI fuer Metallforschung
> Stuttgart)
>
> --__--__--
>
> Message: 1
> Date: Tue, 20 Apr 2004 16:29:21 +0200
> From: "Ulrich C. Wildgruber MPI fuer Metallforschung Stuttgart"
>  <wildgrub at dxray.mpi-stuttgart.mpg.de>
> To: neutron-mc at risoe.dk
> Organization: MPI fuer Metallforschung Stuttgart
> Reply-To: neutron-mc at risoe.dk
>
> Dear colleagues,
>
> just today I looked at the source code of "Monochromator_flat.comp" and
> got stuck at:
>
>   double Gauss_X[] = {-0.987992518020485, 0.937273392400706,
> 0.848206583410427,
>                  0.724417731360170, 0.570972172608539,
> 0.394151347077563, 0.201194093997435, 0,
> 0.201194093997435,
>                  0.394151347077563, 0.570972172608539,
> 0.724417731360170, 0.848206583410427,
> 0.937273392400706, 0.987992518020485};
>
> Could it be that the lonely minus-sign attached to the first element is
> wrong or that other minus signs are missing? I wasn't able to get hold
> of the literature mentioned in the source listing.
> (/* Values for Gauss quadrature. Taken from Brice Carnahan, H. A. Luther
> and
>       James O Wilkes, "Applied numerical methods", Wiley, 1996, page
> 103. */)
>
> Can anybody please confirm that everything is all right?
>
> Thanks!
>
> Uli
>
> --
> Ulrich WILDGRUBER
> wildgrub at dxray.mpi-stuttgart.mpg.de
> wwwmf.mpi-stuttgart.mpg.de/abteilungen/dosch/dosch.html
> -----------------------------------------------------------------------------
> Max-Planck-Institut für Metallforschung	| Technische Universität München
> Heisenbergstr. 3		        | ZWE Neue Forschungs-Neutronenquelle
> 					| Instrumentierung
> D-70569 Stuttgart			| D-85747 Garching/München
> Tel.: (+49)-711-689-1900		| Tel.: (+49)-89-289-14681
> Fax.: (+49)-711-689-1902		| Fax.: (+49)-89-289-14666
>
>
>
>
> --__--__--
>
> _______________________________________________
> neutron-mc mailing list
> neutron-mc at risoe.dk
> http://neutron.risoe.dk/mailman/listinfo/neutron-mc
>
>
> End of neutron-mc Digest

**********************************
Lorenzo Ciampolini, Dr. Sc. Techn.
Ingénieur Calcul et Développement
Università di Parma
Tel: +33 4 76 20 70 71
c/o Institut Laue-Langevin
6, rue Jules Horowitz BP 156
F-38042 Grenoble cedex 9
*********************************






More information about the mcstas-users mailing list