<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Andrew,
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 14 Jun 2021, at 10.04, Andrew Nelson <<a href="mailto:andyfaff@gmail.com" class="">andyfaff@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">I saw that component mentioned on the user list before, but Pol_guide_mirror isn't present at the component list at
<a href="http://www.mcstas.org/download/components/" target="_blank" class="">http://www.mcstas.org/download/components/</a>. Whilst it is present as a McStas component, the GUI doesn't seem to display properly (attached) so I don't know how to set it up.</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Since it is not on the website is must be missing from the McStas 3 distribution, sorry about this.</div>
<div><br class="">
</div>
<div>I take it you are running a 2.x since it in fact exists on your system?</div>
<div><br class="">
</div>
<div>The Python mcdoc utility is a little picky wrt formatting of the documentation strings, you can try to run</div>
<div><br class="">
</div>
<div>mcdoc.pl Pol_guide_mirror </div>
<div>(or mcdoc-pl Pol_guide_mirror on windows)</div>
<div><br class="">
</div>
In a terminal and see if this gives any more information?</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>Otherwise simply have a look at the top of the actual comp file, sits in your MCSTAS/optics folder :) </div>
<div><br class="">
</div>
<div>Best,</div>
<div><br class="">
</div>
<div>Peter</div>
<div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class=""><br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 14 Jun 2021 at 17:21, Peter Kjær Willendrup <<a href="mailto:pkwi@fysik.dtu.dk" target="_blank" class="">pkwi@fysik.dtu.dk</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">Hi Andrew,<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 14 Jun 2021, at 02.22, Andrew Nelson <<a href="mailto:andyfaff@gmail.com" target="_blank" class="">andyfaff@gmail.com</a>> wrote:</div>
<br class="">
<div class="">
<div dir="ltr" class="">I am wondering about the best way to create the frame overlap mirror in McStas. The FOM I need to create consists of a non-tapered rectangular guide (m=0 on top, m=3 on the sides, m=1 on the bottom) of 500 mm in length, 20 mm high, 50
mm wide. There is then a mirror (Ni, m=1) running down the length of this guide, running from the bottom of the guide at the front (-z) to the top of the guide at the back (+z)</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">I suggest taking a look at Pol_guide_mirror.comp which is intended for exactly this purpose. I admit it is a little confusing that the component is not named anything suggesting that it can be used like this. :) </div>
<div class=""><br class="">
</div>
<div class="">I will consider making a name-change or an “alias” component to clear this up.</div>
<br class="">
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div class="">I couldn't find a previous example to go off. Would it be suitable to create a normal rectangular guide component with the host characteristics, then have a subsequent inclined mirror component that coincides with the host guide? Or would this
confuse things?</div>
<div class=""><br class="">
</div>
<div class="">How does one make composite optics components?</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">The thing is, one does not really… :) </div>
<div class=""><br class="">
</div>
<div class="">There _are_ ways to do this with a set of independent mirrors and lots of logic / programming in the instrumentfile - but it gets long and complicated, writing a fresh component from scratch is probably easier. </div>
<div class=""><br class="">
</div>
<div class="">That being said, the Union subsystem could eventually become a vehicle to implement “composite components” also for reflecting optics, but at the moment the focus in that code is on the physics of bulk material properties.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best and hope this helps,</div>
<div class="">Peter</div>
<div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br class="">
Peter Kjær Willendrup<br class="">
Forskningsingeniør, Specialkonsulent<br class="">
Næstformand for DTU Fysik LSU<br class="">
<br class="">
DTU Physics<br class="">
<br class="">
</div>
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><br class="">
<span class=""><span id="cid:17a098811434cdccc1"><image001.gif></span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">Technical
University of Denmark</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><span class=""><span id="cid:17a098811435af44d2"><image002.gif></span></span><br class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">Department
of Physics</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">Fysikvej</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">Building
307</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">DK-2800
Kongens Lyngby</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">Direct
+45 2125 4612</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">Mobil
+45 2125 4612</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class="">Fax
+45 4593 2399</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; float: none; display: inline;" class=""><a href="mailto:pkwi@fysik.dtu.dk" target="_blank" class="">pkwi@fysik.dtu.dk</a></span>
</span></span></div>
<br class="">
</div>
</blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="">_____________________________________<br class="">
Dr. Andrew Nelson<br class="">
<br class="">
<br class="">
_____________________________________</div>
<span id="cid:f_kpwbybb02"><Screen Shot 2021-06-14 at 6.02.25 pm.png></span>_______________________________________________<br class="">
mcstas-users mailing list<br class="">
<a href="mailto:mcstas-users@mcstas.org" class="">mcstas-users@mcstas.org</a><br class="">
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>