<div dir="ltr">Hi all,<div><br></div><div>        I now have my reflectivity file working and I'm trying to understand how many reflections happened in the guide. I followed the example in the component manual in the end of section 9.8.7. It didn't work. I attached the .instr and .rfl file to this email.</div><div>        Thanks for all the great help.</div><div><br></div><div>Sincerely,</div><div>Lingnan Shen</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 9, 2019 at 2:42 AM Kim Lefmann <<a href="mailto:lefmann@nbi.ku.dk">lefmann@nbi.ku.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hi Shen,</p>
    <p>It is also my understanding that the k value is the momentum
      transfer.</p>
    <p>Sorry, I do not have the time to look into you problem now.</p>
    <p>best, Kim</p>
    <p><br>
    </p>
    <div class="gmail-m_8136492318901333945moz-cite-prefix">On 2/7/19 4:53 PM, <a class="gmail-m_8136492318901333945moz-txt-link-abbreviated" href="mailto:ls8vm@virginia.edu" target="_blank">ls8vm@virginia.edu</a>
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      
      
      <div class="gmail-m_8136492318901333945WordSection1">
        <p class="MsoNormal"><span>Hi all,<u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>            I checked the
            supermirror_m3.rfl file and it ranges from 0 to 0.09
            [Angs-1] so I’m really confused with the k value in the
            first column of reflectivity file. I thought it represent
            the total momentum transferred. Can you explain more on
            “better the k values in the reflectivity file to be around
            e.g. 1.0 Angs-1.” Does the guide_gravity component have a
            different definition on reflectivity file? My actual source
            wavelength ranges from 0 to 10 [Angs].<u></u><u></u></span></p>
        <p class="MsoNormal" style="text-indent:0.5in"><span style="font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
        <p class="MsoNormal" style="text-indent:0.5in"><span style="font-family:"Times New Roman",serif">And
            also for Peter, my actual problem is to optimize a polarizer
            which is built by stack of supermirror. I’m trying to find a
            way to get the most transmission through that setup. So I
            want to calculate the ratio neutron_out/neutron_in. Now it
            seems that I should just divide the intensity instead of
            event numbers?<u></u><u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span><u></u> <u></u></span></p>
        <p class="MsoNormal"><span>Happy Lunar New Year,<u></u><u></u></span></p>
        <p class="MsoNormal"><span>Lingnan Shen<u></u><u></u></span></p>
        <p class="MsoNormal"><u></u> <u></u></p>
        <div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
          <p class="MsoNormal" style="border:none;padding:0in"><b>From:
            </b><a href="mailto:pkwi@fysik.dtu.dk" target="_blank">Peter Kjær Willendrup</a><br>
            <b>Sent: </b>Tuesday, February 5, 2019 4:20 AM<br>
            <b>To: </b><a href="mailto:ls8vm@virginia.edu" target="_blank">Lingnan Shen</a><br>
            <b>Cc: </b><a href="mailto:farhi@ill.fr" target="_blank">Emmanuel Farhi</a><br>
            <b>Subject: </b>Re: [mcstas-users] Guide_gravity Problem</p>
        </div>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal">Hello again, <u></u><u></u></p>
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
        </div>
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
        </div>
        <div>
          <p class="MsoNormal">A better starting point for understanding
            Guide_gravity and reflectivity files may be the instrument
            file Test_Guides which is included with your McStas
            installation, in combination with one of the example
            reflectivity files from the data folder - e.g.
            supermirror_m3.rdl.<u></u><u></u></p>
        </div>
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
        </div>
        <div>
          <p class="MsoNormal">Also, for a pencil beam with controllable
            divergence, an option is to use Source_div.<u></u><u></u></p>
        </div>
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
        </div>
        <div>
          <p class="MsoNormal">Hope this helps - otherwise you are
            welcome to write again, preferably with a good description
            of what exact problem you are trying to solve. :-)<u></u><u></u></p>
        </div>
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
        </div>
        <div>
          <p class="MsoNormal">Best,<u></u><u></u></p>
        </div>
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
        </div>
        <div>
          <p class="MsoNormal">Peter<u></u><u></u></p>
          <div>
            <p class="MsoNormal"><br>
              <br>
              <u></u><u></u></p>
            <blockquote style="margin-top:5pt;margin-bottom:5pt">
              <div>
                <p class="MsoNormal">On 5 Feb 2019, at 10.12, Peter Kjær
                  Willendrup <<a href="mailto:pkwi@fysik.dtu.dk" target="_blank">pkwi@fysik.dtu.dk</a>>
                  wrote:<u></u><u></u></p>
              </div>
              <p class="MsoNormal"><u></u> <u></u></p>
              <div>
                <div>
                  <p class="MsoNormal">Hello Lingnan, <u></u><u></u></p>
                  <div>
                    <p class="MsoNormal"><u></u> <u></u></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><u></u> <u></u></p>
                  </div>
                  <div>
                    <div>
                      <p class="MsoNormal">Agree with Emmanuel. <u></u><u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><u></u> <u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal">Further, the combination of a
                        pencil-beam, i.e. almost non-divergent source
                        and using 500 channels in a rotated
                        Guide_gravity means that transport through the
                        guide becomes close to impossible. <u></u><u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><u></u> <u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal">With regard to your second
                        question you should always consider the
                        transported intensity I. The event count is
                        simply a measure of statistics (of "neutron
                        rays", not “neutrons”).<u></u><u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><u></u> <u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><u></u> <u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal">Best,<u></u><u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><u></u> <u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal">Peter Willendrup<u></u><u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><u></u> <u></u></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><u></u> <u></u></p>
                    </div>
                    <div>
                      <blockquote style="margin-top:5pt;margin-bottom:5pt">
                        <div>
                          <p class="MsoNormal">On 5 Feb 2019, at 10.01,
                            Emmanuel FARHI <<a href="mailto:farhi@ill.fr" target="_blank">farhi@ill.fr</a>>
                            wrote:<u></u><u></u></p>
                        </div>
                        <p class="MsoNormal"><u></u> <u></u></p>
                        <div>
                          <div>
                            <p class="MsoNormal">Hello
                              Lingnan,</p>
                            <p class="MsoNormal">Your
                              reflectivity file is given for k=0 to 0.14
                              Angs-1. This is very small and covers
                              neutrons around lambda=60 Angs, which are
                              not even created by your source. Change
                              either the lambda setting at the source,
                              or better the k values in the reflectivity
                              file to be around e.g. 1.0 Angs-1.</p>
                            <p class="MsoNormal">Cheers,
                              Emmanuel.</p>
                            <p class="MsoNormal"><u></u> <u></u></p>
                            <div>
                              <p class="MsoNormal">On 2/5/19 7:17 AM,
                                Lingnan Shen wrote:<u></u><u></u></p>
                            </div>
                            <blockquote style="margin-top:5pt;margin-bottom:5pt">
                              <div>
                                <p class="MsoNormal">Hi all, <u></u><u></u></p>
                                <div>
                                  <p class="MsoNormal"><u></u> <u></u></p>
                                </div>
                                <div>
                                  <p class="MsoNormal">        I was
                                    trying to learn how to use the
                                    guide_gravity component. I tried to
                                    define the reflectivity curve but I
                                    get zero neutrons at the wavelength
                                    monitor in the end of guide. I have
                                    attached my .instr and .rfl file. I
                                    also found that even if the neutron
                                    beam just go through the guide. The
                                    detector at the end still see
                                    nothing.<u></u><u></u></p>
                                </div>
                                <div>
                                  <p class="MsoNormal">        Also
                                    another question about transmission
                                    of certain setup. To calculate the
                                    ratio of neutron_in / neutron_out. I
                                    want to know how much neutron
                                    remained after passing through that
                                    setup. Should I use the flux or the
                                    events count?<u></u><u></u></p>
                                </div>
                                <div>
                                  <p class="MsoNormal"><u></u> <u></u></p>
                                </div>
                                <div>
                                  <p class="MsoNormal">Sincerely,<u></u><u></u></p>
                                </div>
                                <div>
                                  <p class="MsoNormal">Lingnan Shen<u></u><u></u></p>
                                </div>
                              </div>
                              <p class="MsoNormal"><br>
                                <br>
                                <u></u><u></u></p>
                              <pre>_______________________________________________</pre>
                              <pre>mcstas-users mailing list</pre>
                              <pre><a href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a></pre>
                              <pre><a href="https://mailman2.mcstas.org/mailman/listinfo/mcstas-users" target="_blank">https://mailman2.mcstas.org/mailman/listinfo/mcstas-users</a></pre>
                            </blockquote>
                            <pre>-- </pre>
                            <pre>Emmanuel FARHI,                                           \|/ ____ \|/</pre>
                            <pre>Spectroscopy Group Institut Laue-Langevin (ILL) Grenoble  ~@-/ oO \-@~</pre>
                            <pre>71 av des Martyrs,CS 20156,38042 Grenoble Cedex 9,France  /_( \__/ )_\</pre>
                            <pre>Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06     \__U_/ </pre>
                          </div>
                          <p class="MsoNormal">_______________________________________________<br>
                            mcstas-users mailing list<br>
                            <a href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a><br>
                            <a href="https://mailman2.mcstas.org/mailman/listinfo/mcstas-users" target="_blank">https://mailman2.mcstas.org/mailman/listinfo/mcstas-users</a><u></u><u></u></p>
                        </div>
                      </blockquote>
                    </div>
                    <p class="MsoNormal"><u></u> <u></u></p>
                    <div>
                      <div>
                        <p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:9pt;font-family:Helvetica,sans-serif"><br>
                            Peter Kjær Willendrup<br>
                            Forskningsingeniør, Specialkonsulent<br>
                            Næstformand for DTU Fysik LSU<br>
                            <br>
                            DTU Physics<u></u><u></u></span></p>
                      </div>
                      <p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif"><br>
                          <image001.gif><br>
                          <br>
                          <br>
                          Technical University of Denmark<br>
                          <br>
                          <br>
                          <image002.gif><br>
                          <br>
                          <br>
                          <br>
                          Department of Physics<br>
                          Fysikvej<br>
                          Building 307<br>
                          DK-2800 Kongens Lyngby<br>
                          Direct +45 2125 4612<br>
                          Mobil +45 2125 4612<br>
                          Fax +45 4593 2399<br>
                          <a href="mailto:pkwi@fysik.dtu.dk" target="_blank">pkwi@fysik.dtu.dk</a>
                        </span><u></u><u></u></p>
                    </div>
                    <p class="MsoNormal"><u></u> <u></u></p>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <p class="MsoNormal"><u></u> <u></u></p>
          <div>
            <div>
              <p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:black"><br>
                  Peter Kjær Willendrup<br>
                  Forskningsingeniør, Specialkonsulent<br>
                  Næstformand for DTU Fysik LSU<br>
                  <br>
                  DTU Physics<u></u><u></u></span></p>
            </div>
            <p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:black"><br>
                <img style="width: 4.1666in; height: 0.0104in;" id="gmail-m_8136492318901333945_x0037_F2B9384-5B9D-4EB7-89FC-07916BD8CDEA" alt="cid:b6339554-7f28-441d-9f31-5944f811397c@win.dtu.dk" width="400" height="1" border="0"><br>
                <br>
                <br>
                Technical University of Denmark<br>
                <br>
                <br>
                <img style="width: 0.375in; height: 0.552in;" id="gmail-m_8136492318901333945E6FBFD88-6E07-4AB2-AEDD-6E71B78B1972" alt="cid:e108e480-fcab-46e2-9531-b38165079572@win.dtu.dk" width="36" height="53" border="0"><br>
                <br>
                <br>
                <br>
                Department of Physics<br>
                Fysikvej<br>
                Building 307<br>
                DK-2800 Kongens Lyngby<br>
                Direct +45 2125 4612<br>
                Mobil +45 2125 4612<br>
                Fax +45 4593 2399<br>
                <a href="mailto:pkwi@fysik.dtu.dk" target="_blank">pkwi@fysik.dtu.dk</a> </span><u></u><u></u></p>
          </div>
        </div>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
      </div>
      <br>
      <fieldset class="gmail-m_8136492318901333945mimeAttachmentHeader"></fieldset>
      <pre class="gmail-m_8136492318901333945moz-quote-pre">_______________________________________________
mcstas-users mailing list
<a class="gmail-m_8136492318901333945moz-txt-link-abbreviated" href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a>
<a class="gmail-m_8136492318901333945moz-txt-link-freetext" href="https://mailman2.mcstas.org/mailman/listinfo/mcstas-users" target="_blank">https://mailman2.mcstas.org/mailman/listinfo/mcstas-users</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
mcstas-users mailing list<br>
<a href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a><br>
<a href="https://mailman2.mcstas.org/mailman/listinfo/mcstas-users" rel="noreferrer" target="_blank">https://mailman2.mcstas.org/mailman/listinfo/mcstas-users</a><br>
</blockquote></div>