<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 12, 2017 at 1:53 PM, Kim Lefmann <span dir="ltr"><<a href="mailto:lefmann@nbi.ku.dk" target="_blank">lefmann@nbi.ku.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Santiago,<br>
<br>
The short answer is that SPLIT is meant to function at the instrument level, e.g. for users that will not need to worry about programming components themselves.<br>
<br>
To make a SPLIT inside a component, much more bookkeeping is needed, in particular for the fractional rays that would emerge in the middle of a component, and this has only been imagined and never implemented (Peter may correct me here if some test fragments exist?).<br>
<br>
However, most of the computational work done by the simulation at (almost) any given point in the instrument lies in all the rays that were lost earlier in the simulation, e.g. in the guide system, the slits, the monochromator, and so on. Therefore, in most cases not much actual running time would be gained by an in-component SPLIT compared to the existing instrument-level SPLIT. This analysis is roughly what lies behind the fact that the in-component SPLIT has never been implemented.<br>
<br>
best, Kim<span class="m_-8445465339936907262im m_-8445465339936907262HOEnZb"><br>
<br>
<br>
On 05/12/2017 06:31 PM, Santiago Gómez wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello<br>
<br>
I would like to split a neutron inside component.<br>
<br>
As far I see it is possible to split a neutron that reaches a specific component using the SPLIT macro before the component declaration in the instrument file, but it cannot be used inside de component.<br>
<br>
I would prefer to split the neutron inside my component because if I do the SPLIT outside, a series of calculations already done be my components will be redundant (I would say more than 50% of all the calculation of the component).<br>
<br>
The idea of the split is to do a variance reduction which optimizes the time, so for my component will be much more better to do that inside the component code.<br>
<br>
Is it possible to performs it? I think that a similar issue is the possibility to have more than one source component in a single instrument file.<br>
<br>
Best regards<br>
<br>
</blockquote>
<br></span><div class="m_-8445465339936907262HOEnZb"><div class="m_-8445465339936907262h5">
______________________________<wbr>_________________<br>
mcstas-users mailing list<br>
<a href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a><br>
<a href="http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users" rel="noreferrer" target="_blank">http://mailman.mcstas.org/cgi-<wbr>bin/mailman/listinfo/mcstas-us<wbr>ers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="m_-8445465339936907262gmail_signature" data-smartmail="gmail_signature"><font size="2"><font face="arial,helvetica,sans-serif">Santiago Miguel Gómez</font></font><font size="2"><font face="arial,helvetica,sans-serif"><br></font></font><div><font size="2"><font face="arial,helvetica,sans-serif"><br></font></font></div><div><font size="2"><font face="arial,helvetica,sans-serif">Si queremos un mundo de paz y de justicia hay que poner decididamente la </font></font><font size="2"><font face="arial,helvetica,sans-serif">inteligencia al servicio del amor. Antoine de Saint-Exupery</font></font></div></div>
</div></div>