<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="line-break:after-white-space">Hi Erxi,
<div>(Hope it is OK that I cc <a href="mailto:mcstas-users@mcstas.org">mcstas-users@mcstas.org</a> since your observation/issue may be relevant to other McStas users also. :-) )<br id="x_lineBreakAtBeginningOfMessage">
<div><br>
</div>
<div><br>
</div>
<div>Which version of McStas are you running? As I remember a minor fix was made (relating only to the printed orientation output I think) somewhere between  ~ McStas 3.4 and now.</div>
<div><br>
</div>
<div>With the attached instrument (adapted from templateLaue.instr) and the latest McStas (i.e. 3.5.24 or 25) seem to get reasonable output with:</div>
<div><br>
</div>
<div>Your wanted orientation:</div>
<div>mcrun templateLaue.instr ay=0 -d all_pars_default --autoplot</div>
<div>i.e.</div>
<div>
<div>Direct space lattice orientation:</div>
<div>  a = [-7.1422 0 7.1422]</div>
<div>  b = [7.1422 0 7.1422]</div>
<div>  c = [0 10.1006 0]</div>
<div>Reciprocal space lattice orientation:</div>
<div>  a* = [-0.439863 0 0.439863]</div>
<div>  b* = [0.439863 -0 0.439863]</div>
<div>  c* = [0 0.622061 -0]</div>
</div>
<div><br>
</div>
<div>The default orientation from the .lau file:</div>
<div>mcrun templateLaue.instr ax=0 ay=0 az=0 bx=0 by=0 bz=0 cx=0 cy=0 cz=0 -d all_pars_0 --autoplot</div>
<div>i.e.:</div>
<div>
<div>Direct space lattice orientation:</div>
<div>  a = [0 10.1006 6.18483e-16]</div>
<div>  b = [0 0 10.1006]</div>
<div>  c = [10.1006 6.18483e-16 6.18483e-16]</div>
<div>Reciprocal space lattice orientation:</div>
<div>  a* = [-3.80902e-17 0.622061 0]</div>
<div>  b* = [-3.80902e-17 -3.80902e-17 0.622061]</div>
<div>  c* = [0.622061 0 0]</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I attach the instrumentfile used, plots and datasets.</div>
<div><br>
</div>
<div>Best,</div>
<div>Peter</div>
<div><br>
</div>
<div></div>
</div>
</div>
<div style="line-break:after-white-space">
<div>
<div class="x_AppleOriginalContents"></div>
</div>
</div>
<div style="line-break:after-white-space">
<div>
<div class="x_AppleOriginalContents"></div>
</div>
</div>
<div><img src="cid:f11ed2c4-7392-4543-9dbe-ce8d6822b25d@EURP192.PROD.OUTLOOK.COM">
</div>
<div style="line-break:after-white-space">
<div>
<div class="x_AppleOriginalContents"></div>
</div>
</div>
<div><img src="cid:eb787252-4a5e-45a9-85c2-f6d395b8604f@EURP192.PROD.OUTLOOK.COM">
</div>
<div style="line-break:after-white-space">
<div>
<div></div>
<div><br>
<blockquote type="cite">
<div>On 3 Apr 2025, at 11.02, Erxi Feng <fengex@ihep.ac.cn> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div class="x_WordSection1" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">Dear Peter</div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"> </div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">I tried to use Single_crystal component in Mcstas to simulate the time-of-flight single-crystal diffraction with incident wavelength 0.5 to 6.5 AA. I used cif2hkl to generate the lau file
 of Ho2Ti2O7. However, I cannot rotate the lattice by setting the ax, ay, az, bx, by, bz, cx, cy, cz. Parameter. No matter what numbers I input to Single-crystal component, Mcstas always using the orientation with a-axis in y, b in c, and c in x. Is there something
 wrong or bugs? Could you please help me to solve the problem? See detail in the attachment.</div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"> </div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">Best</div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">Erxi Feng</div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"></div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div><img src="cid:0a3d39e0-c1cc-423f-97be-a651cffe6cb2@EURP192.PROD.OUTLOOK.COM">
</div>
<div style="line-break:after-white-space">
<div>
<div class="x_AppleOriginalContents">
<blockquote type="cite">
<div>
<div class="x_WordSection1" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"> </div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"></div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div><img src="cid:9876a189-c491-41ef-b326-bcb21cb5c41b@EURP192.PROD.OUTLOOK.COM">
</div>
<div style="line-break:after-white-space">
<div>
<div class="x_AppleOriginalContents">
<blockquote type="cite">
<div>
<div class="x_WordSection1" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"> </div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"> </div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span style="">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span lang="ZH-CN" style="font-family:宋体">冯尔玺</span><span style=""></span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span lang="ZH-CN" style="font-family:宋体">中科院高能物理研究所东莞研究部</span><span style=""></span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span lang="ZH-CN" style="font-family:宋体">散裂中子源科学中心</span><span style=""></span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span lang="ZH-CN" style="font-family:宋体">联系电话:</span><span style="">0769-8893 1537</span><span lang="ZH-CN" style="font-family:宋体">(分机:</span><span style="">1537</span><span lang="ZH-CN" style="font-family:宋体">)</span><span style=""></span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span lang="ZH-CN" style="font-family:宋体">邮箱:</span><span style=""><a href="mailto:fengex@ihep.ac.cn"><span style="color:blue">fengex@ihep.ac.cn</span></a><br>
</span><span lang="ZH-CN" style="font-family:宋体">地址:广东省东莞市大朗镇中子源路</span><span style="">1</span><span lang="ZH-CN" style="font-family:宋体">号</span><span lang="ZH-CN" style=""><span class="x_Apple-converted-space"> </span></span><span lang="ZH-CN" style="font-family:宋体">中国散裂中子源园区</span><span style="">A1-628 </span></div>
<p class="x_MsoNormal" style="margin:0in 0in 12pt; font-size:11pt; font-family:Calibri,sans-serif">
<span lang="ZH-CN" style="font-family:宋体">邮编:</span><span style="">523803</span></p>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span style="">Erxi Feng <br>
China Spallation Neutron Source (CSNS)<br>
No.1 Zhongziyuan Road, Dalang,<br>
Dongguan, 523803<br>
Guangdong Province, China</span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span style="">E-mail:<span class="x_Apple-converted-space"> </span><a href="mailto:fengex@ihep.ac.cn"><span style="color:blue">fengex@ihep.ac.cn</span></a></span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"><span style="">Tel: +(86) 0769-89156971<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></div>
<div style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif"> </div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div style="line-break:after-white-space">
<div>
<div class="x_AppleOriginalContents">
<blockquote type="cite">
<div></div>
</blockquote>
</div>
</div>
</div>
<div style="line-break:after-white-space">
<div>
<div>
<blockquote type="cite">
<div></div>
</blockquote>
</div>
<br>
<div>
<div dir="auto" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); line-break:after-white-space">
<div><br>
Peter Kjær Willendrup<br>
Forskningsingeniør, Specialkonsulent<br>
<br>
DTU Physics<br>
</div>
</div>
<span style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none"></span><br class="x_Apple-interchange-newline">
<span></span></div>
</div>
</div>
<div><img src="cid:7cce87e4-7b2a-4f35-9d56-6d8825b241ac@EURP192.PROD.OUTLOOK.COM">
</div>
<div style="line-break:after-white-space">
<div>
<div id="x_AppleMailSignature"><span></span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Technical
 University of Denmark</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none"></span><span></span></div>
</div>
</div>
<div><img src="cid:a120cfd5-0aab-42de-be38-172b9fcfb70b@EURP192.PROD.OUTLOOK.COM">
</div>
<div style="line-break:after-white-space">
<div>
<div><span></span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Department
 of</span><span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important"> </span><span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Physics</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Fysikvej</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Building
 307</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">DK-2800
 Kongens Lyngby</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Main
 office at</span><span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important"> </span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">ESS
 DMSC</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; display:inline!important; float:none">Building
 305</span><br style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none">
<span style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; display:inline!important; float:none">DK-2800
 Kongens Lyngby</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Direct
 +45 2125 4612</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Mobil
 +45 2125 4612</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">Fax
 +45 4593 2399</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0)">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; text-decoration:none; color:rgb(0,0,0); float:none; display:inline!important">pkwi@fysik.dtu.dk</span>
</div>
<br>
</div>
</div>
</body>
</html>