[mcstas-users] Making a component GROUP-compatible
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Tue Nov 25 13:16:12 CET 2014
Dear Mads,
I am not aware if the Version tag of the component can be trusted to identify the internal revisions you and Henrik work with?
If so, what McStas 2.1 contains is Version: 0.88. (Corresponding to 88beta.comp maybe?)
Best,
Peter
> On 25 Nov 2014, at 12:57 , Mads Bertelsen <mads.bertelsen at gmail.com> wrote:
>
> Dear Sylvain
>
> I do not believe it will be easy to modify the code so that it can be used in a group for your purpose. Henrik Carlsen wrote the component, while I have tested it. The initial ambition was to allow for transparent walls, but it proved quite difficult with the way he set up the code, so I think it was abandoned, I was never asked to test it anyway. In order to make it work in a group, this transparent option would have to work. I do however see a lot of traces of this transparent option in the code, but not in the documentation, so it may be possible to get it working. I will ask Henrik the next time I see him.
>
> The remaining option is to modify the component directly to use different focal points for each wall actually seems easier, as the code is nicely split up for interactions with the 4 different sides of the ellipse. Using this method would require the left and right side of the ellipse to start at the same z coordinate.
>
> I am looking at the version I believe is the newest called 89beta.comp. McStas 2.0 contains an old version, was it updated for McStas 2.1?
>
> Best regards,
> Mads
>
> On 25. Nov, 2014, at 12:33 , Emmanuel FARHI <farhi at ill.fr> wrote:
>
>> Hello Sylvain and Peter,
>>
>> I think the only requirement for the GROUP to work is
>> 1- to ensure that all component internal variables (those in DECLARE) are
>> also in OUTPUT PARAMETERS.
>> 2- to ensure that in case of interaction, the SCATTER macro is used to
>> indicate 'this is the one to use in the GROUP'.
>>
>> You may, I think, fix these in the code.
>> If it works, think to send back the corrected component so that next time
>> you and other users can employ the component directly.
>>
>> Emmanuel.
>>
>> On Tue, November 25, 2014 11:07, Peter Kjær Willendrup wrote:
>>> Dear Sylvain,
>>>
>>> I would suggest you take a look at Elliptic_guide_gravity by Henrik Bo
>>> Hoffmann Carlsen and Mads Bertelsen from Uni Copenhagen. If I remember
>>> correctly, it has exactly the properties you are looking for (and further
>>> takes gravity into account).
>>>
>>> It is used in the following example instruments included with the last
>>> McStas release:
>>>
>>> Reflectometer.instr
>>> Test_Guides.instr
>>> Test_Guides_Curved.instr
>>>
>>> Mads is the â?oexpertâ? on using this component for various complex
>>> arrangements, I am putting him cc: here in case you need further, specific
>>> help.
>>>
>>> Best,
>>>
>>> Peter
>>>
>>>
>>>
>>> On 25 Nov 2014, at 10:49 , DESERT Sylvain
>>> <sylvain.desert at cea.fr<mailto:sylvain.desert at cea.fr>> wrote:
>>>
>>> Hi,
>>> I am using the contributed component Guide_four_side from T. Panzner of
>>> PSI which doesnâ?Tt support the GROUPing method.
>>> My need is to simulate an elliptic guide where both vertical walls donâ?Tt
>>> share the same focal point.
>>> Guide_anyshape is also not a solution since itâ?Ts not possible to get
>>> different m-values for each side of the guide.
>>> Any idea how to make the component GROUP compliant?
>>> Any other idea how to simulate such a guide?
>>> Best wishes,
>>> Sylvain
>>>
>>> _______________________________________________
>>> mcstas-users mailing list
>>> mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
>>> http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users
>>>
>>> _______________________________________________
>>> mcstas-users mailing list
>>> mcstas-users at mcstas.org
>>> http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users
>>>
>>
>>
>> --
>> FARHI Emmanuel <farhi at ill.fr>
>> Groupe DS/CS, ILL4/156, Tel 04 76 20 71 35
>> ILL, Grenoble
>>
>
More information about the mcstas-users
mailing list