<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="">
Dear Ekatarina,
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I have had a quick look at your instrument, which describes the attached geometry (top view) when visualised with mcdisplay. </div>
<div class=""><br class="">
</div>
<div class="">Is the large horizontal offset between the two guides intentional? </div>
<div class=""><br class="">
</div>
<div class="">Could you supply some more information about what you are trying to simulate?</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br class="">
</div>
<div class="">Peter Willendrup</div>
<div class=""><br class="">
</div>
<div class="">
<div><img apple-inline="yes" id="7389ACCA-1667-4287-8AC2-33A9734E9D75" src="cid:6BF1FF73-E488-4562-91BE-32509504C243@win.dtu.dk" class=""></div>
<div>On 16 Sep 2018, at 21.56, Екатерина Рувинская <<a href="mailto:ruvinskaia.e.e@mail.ru" class="">ruvinskaia.e.e@mail.ru</a>> wrote:<br class="">
<blockquote type="cite" class=""><br class="Apple-interchange-newline">
<div class="">
<div class="">Dear all,<br class="">
<br class="">
I have a problem. I need to neutron beam pass through elliptical mirrors system. I tried approach through component "Guide_tapering" and component "Mirror_Elliptic". But in both cases neutron beam does not move after the mirror. Could you say what the source
of the problem and how I can fix this. Code with "Guide_tapering" for example are attached.<br class="">
<br class="">
Thanking in advance.<br class="">
Yours faithfully, Ekaterina<em class="">.<br class="">
</em><br class="">
<br class="">
DEFINE INSTRUMENT NSE_res(double slit_w = 0.1)<br class="">
<br class="">
<br class="">
DECLARE<br class="">
%{<br class="">
<br class="">
double slit_h;<br class="">
int iter;<br class="">
double arm_lenght = 5;<br class="">
%}<br class="">
<br class="">
<br class="">
INITIALIZE<br class="">
%{<br class="">
<br class="">
%}<br class="">
<br class="">
<br class="">
TRACE<br class="">
<br class="">
<br class="">
COMPONENT Origin = Progress_bar()<br class="">
AT (0,0,0) ABSOLUTE<br class="">
<br class="">
COMPONENT source = Source_gen(<br class="">
yheight=0.00001,xwidth=slit_w, lambda0=9, dlambda=0.000000000000001,I1=1e13,<br class="">
verbose=1,focus_xw=slit_w,focus_yh=0.0001, dist = arm_lenght/4)<br class="">
AT (0, 0, 0) RELATIVE Origin<br class="">
EXTEND<br class="">
%{<br class="">
t = rand0max(1e-20); // set time from 0 to 1 ms for TOF instruments.<br class="">
%}<br class="">
<br class="">
<br class="">
COMPONENT mon_TOF_source = Monitor_nD(<br class="">
xwidth = 0.4, yheight = 0.4, restore_neutron = 1,<br class="">
options = "time, limits=[0.000000001 0.3], bins=180, lambda, limits=[8.9 9.1], bins=180")<br class="">
AT (0, 0, 0.00001) RELATIVE PREVIOUS<br class="">
<br class="">
COMPONENT monitor_lambda_source = Monitor_nD(<br class="">
xwidth = 0.4, yheight = 0.4, restore_neutron = 1,<br class="">
options = "lambda, limits = [8.99, 9.01], bins = 180")<br class="">
AT (0, 0, 0.00001) RELATIVE PREVIOUS<br class="">
<br class="">
<br class="">
COMPONENT first_arm = Arm()<br class="">
AT (0, 0, 0.000001) RELATIVE PREVIOUS<br class="">
<br class="">
COMPONENT slit_first = Slit(xwidth = slit_w, yheight = 0.00001)<br class="">
AT (0, 0, 1E-4) RELATIVE first_arm<br class="">
<br class="">
COMPONENT elliptical_1 = Guide_tapering(<br class="">
option = "elliptical", w1 = 1, h1 = 0.5, l = arm_lenght,<br class="">
linw = 0.5, loutw = 0.5, linh = 0.5, louth = 0.5,<br class="">
segno = 100, R0 = 0.995, <br class="">
Qcx = 0.0217, Qcy = 0.0217, alphax = 6.07,<br class="">
alphay = 6.07, W = 0.003, mx = 3, my = 3)<br class="">
AT (-0.5+slit_w/2, 0,1E-3) RELATIVE first_arm<br class="">
EXTEND<br class="">
%{<br class="">
if(!SCATTERED) ABSORB;<br class="">
%}<br class="">
<br class="">
<br class="">
COMPONENT second_arm = Arm()<br class="">
AT (0, 0, arm_lenght) RELATIVE first_arm<br class="">
<br class="">
COMPONENT elliptical_2 = Guide_tapering(<br class="">
option = "elliptical", w1 = 1, h1 = 0.5, l = arm_lenght,<br class="">
linw = 0.5, loutw = 0.5, linh = 0.5, louth = 0.5,<br class="">
segno = 10, R0 = 0.995, <br class="">
Qcx = 0.0217, Qcy = 0.0217, alphax = 6.07,<br class="">
alphay = 6.07, W = 0.003, mx = 3, my = 3)<br class="">
AT (0.5-slit_w/2, 0,1E-3) RELATIVE second_arm<br class="">
EXTEND<br class="">
%{<br class="">
if(!SCATTERED) ABSORB;<br class="">
%}<br class="">
<br class="">
<br class="">
COMPONENT slit_f = Slit(xwidth = slit_w, yheight = 0.00001)<br class="">
AT (0, 0, arm_lenght) RELATIVE second_arm<br class="">
<br class="">
COMPONENT mon_TOF_end = Monitor_nD(<br class="">
xwidth = 0.4, yheight = 0.4, restore_neutron = 1,<br class="">
options = "time bins=180, lambda, limits=[29 31], bins=180")<br class="">
AT (0, 0, 0.001) RELATIVE PREVIOUS<br class="">
<br class="">
COMPONENT monitor_lambda_end = Monitor_nD(<br class="">
xwidth = 0.4, yheight = 0.4, restore_neutron = 1,<br class="">
options = "lambda, limits = [8.99, 9.01], bins = 180")<br class="">
AT (0, 0, 0.001) RELATIVE PREVIOUS<br class="">
<br class="">
<br class="">
COMPONENT monitor_time_end_9 = Monitor_nD(<br class="">
xwidth = 0.4, yheight = 0.4, restore_neutron = 1,<br class="">
options = "time, limits = [0.022784, 0.022792] bins = 200")<br class="">
AT (0, 0, 0.001) RELATIVE PREVIOUS<br class="">
<br class="">
COMPONENT monitor_time_end_30 = Monitor_nD(<br class="">
xwidth = 0.4, yheight = 0.4, restore_neutron = 1,<br class="">
options = "time, limits = [0.0455305, 0.0455307] bins = 200")<br class="">
AT (0, 0, 0.001) RELATIVE PREVIOUS<br class="">
<br class="">
<br class="">
<br class="">
FINALLY<br class="">
%{<br class="">
%}<br class="">
<br class="">
END<br class="">
<br class="">
<br class="">
</div>
_______________________________________________<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 class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<br class="">
Peter Kjær Willendrup<br class="">
Forskningsingeniør, Speciakonsulent<br class="">
Næstformand for DTU Fysik LSU<br class="">
<br class="">
DTU Physics<br class="">
<br class="">
</div>
<span><img apple-inline="yes" id="7F4DFD67-1497-43F2-985D-3344BAB85094" src="cid:b6339554-7f28-441d-9f31-5944f811397c@win.dtu.dk" class=""></span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class="">Technical
University of Denmark</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span><img apple-inline="yes" id="0386A43C-77E0-48F3-8D33-8285011E473B" src="cid:e108e480-fcab-46e2-9531-b38165079572@win.dtu.dk" class=""></span>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<br class="">
<br class="">
<br class="">
Department of Physics<br class="">
Fysikvej<br class="">
Building 307<br class="">
DK-2800 Kongens Lyngby<br class="">
Direct +45 2125 4612<br class="">
Mobil +45 2125 4612<br class="">
Fax +45 4593 2399<br class="">
<a href="mailto:pkwi@fysik.dtu.dk" class="">pkwi@fysik.dtu.dk</a></div>
</div>
<br class="">
</div>
</body>
</html>