Dear all
<p>
I'm a new hand on McStas.I hope for some help from you.
</p>
<p>
Recently I've been trying to make a series of simulations of a Total Scattering Diffractometer, which is almost like NIMROD. Now I'm facing two problems.
</p>
<p>
First, I want to make a simulation with a D2O sample and then detect Q. I've got "D2O-coh.sqw" and "D2O-inc.sqw", but I couldn't get a correct result. Could you offer me some "*.instr" files or codes containing a D2O sample or H2O sample together with a Q detector?
</p>
<p>
Second, I want to get a result of the Q-resolution of the Diffratometer with a Vanadium sample. Can I use a Detector Component to get the Q-resolution directly, even though at a certain angle? If it can be, please offer me some "*.instr" files or codes as well. If it can't be, then what should I do to get enough data to calculate the Q-resolution afterwards?
</p>
<p>
Finally I'd like to remind that all my simulations are based on a Total Scattering Diffractometer.
</p>
<p>
I'd appreciate all your help and suggestions.
</p>
<p>
</p>
<p>
PS: I may have sent it yesterday, but with no reply, I think I need to send it once again. May you forgive my disturbance.
</p>
<p>
<br>
</p>
<p>
<br>
</p>
<p>
<br>
</p>
<p>
A new user
</p>
<script type="text/javascript">
var host = location.hostname,
protocol = location.protocol,
port = location.port;
var origin = protocol + '//' + host + (port ? ':' + port : '');
var iframeId = '1513037447943';
var mid = '1:1tbiAQMLDFl75yl8XAACsL';
var calcPageHeight = function(doc) {
var cHeight = Math.max(doc.body.clientHeight, doc.documentElement.clientHeight);
var sHeight = Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight);
return Math.max(cHeight, sHeight);
};
var calcPageWidth = function(doc) {
return Math.max(doc.body.clientWidth, doc.documentElement.clientWidth);
};
function doPostMessage(message) {
if (message == null) {
return false;
}
if (typeof message !== 'string') {
message = JSON.stringify(message);
}
parent.postMessage(message, origin);
}
doPostMessage.types = {
ATTACHMENTS_REFER: 'attachmentsRefer',
SIZE_ADJUST: 'sizeAdjust',
OPEN_LINK: 'openLink',
OPEN_SSPURL: 'openSspurl',
HIDE_MENU: 'hideMenu',
MAIL_OP: 'mailOp'
};
// parent.postMessage('{"iHeight":"' + document.body.clientHeight + '","iframeId":"' + iframeId + '"}', origin);
doPostMessage({
type: doPostMessage.types.ATTACHMENTS_REFER,
attachments: [],
inlineAttachments: [],
mid: mid
});
window.onload = function() {
var images,
tables,
bodyWidth,
bodyHeight,
aLinks,
i;
bodyWidth = calcPageWidth(document);
bodyHeight = parseInt(calcPageHeight(document) + 10);
images = document.getElementsByTagName("img");
tables = document.getElementsByTagName("table");
aLinks = document.getElementsByTagName("a");
// 进行如下修正:
// 1. 超过body宽度的图片进行宽度压缩
// 2. 超过body宽度的表格相应增加body的宽度
for (i = 0; i < images.length; i++) { if (images[i].width > bodyWidth) {
images[i].width = bodyWidth - 20;
}
}
for (i = 0; i < tables.length; i++) { if (tables[i].clientWidth > bodyWidth) {
bodyWidth = tables[i].clientWidth + 30;
}
}
for (i = 0; i < aLinks.length; i++) { aLinks[i].onclick = function() { // parent.postMessage('{"openLink":"' + this.href + '"}', origin); doPostMessage({ type: doPostMessage.types.OPEN_LINK, href: this.href }); return false; } } // parent.postMessage('{"iHeight":"' + bodyHeight + '","iWidth":"' + bodyWidth + '","iframeId":"' + iframeId + '"}', origin); doPostMessage({ type: doPostMessage.types.SIZE_ADJUST, iHeight: bodyHeight, iWidth: bodyWidth, iframeId: iframeId }); document.onclick = function() { doPostMessage({ type: doPostMessage.types.HIDE_MENU, hideMenu: 'true' }); // parent.postMessage('{"hideMenu":"true"}', origin); }; function resize (evt) { window.onload(); } function keydown(evt) { var keyCodeMap = { 82: 'reply', 65: 'replyall', 70: 'forward', 46: 'delete' }; if (evt.keyCode === 65 && !evt.ctrlKey || evt.keyCode === 82 || evt.keyCode === 70 || evt.keyCode === 46) { doPostMessage({ type: doPostMessage.types.MAIL_OP, mailOp: keyCodeMap[evt.keyCode] }); // parent.postMessage('{"mailOp": "' + keyCodeMap[evt.keyCode] + '"}', origin); } } if (window.addEventListener) { // For standards-compliant web browsers window.addEventListener("message", resize, false); window.addEventListener("keydown", keydown, false); } else { window.attachEvent("onmessage", resize); window.attachEvent("onkeydown", keydown); } }; </script>