-
Hello - I was wondering if a feature exists within Ncrystal to simulate scattering for a general four dimensional (Qx, Qy, Qz, Energy) space, assuming that the cross section has already been calculated for some grid of points within this space. The ultimate goal is to use this in McStas, but the current implementation (See here) is non functional. However, the described functionality is exactly what I'm looking for and I was wondering if this is possible using Ncrystal. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Hi Thomas, The short answer is unfortunately that, no, NCrystal does not currently support such 4D kernels for single crystal inelastic scattering. While we are certainly aware of the possibility, we simply have not had the manpower available to start looking into that at this point. We are of course always happy to get contributions, although I imagine that this particular issue might have non-trivial challenges in terms of both code, data representation, and input data availability. I cc @xxcai1 who might have additional comments, and @willend who might know more about the current status of the Cheers, |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the fast replies from both of you. I sort of figured it had not been implemented yet but figured that I should check anyway – this is understandably a difficult task so I will keep an eye on the project and wait. The goal would basically be to simulate complex backgrounds from effects like multiple scattering with true inelastic signals (i.e. phonons / spin waves). Thanks again!
Tom
From: Xiao Xiao ***@***.***>
Sent: Thursday, June 9, 2022 10:43 PM
To: ***@***.***>
Cc: Tom ***@***.***>; ***@***.***>
Subject: Re: [mctools/ncrystal] General Single Crystal Inelastic Material (Discussion #87)
External Email - Use Caution
Hi Thomas, Hi Thomas,
It has been an item on my long to-do list for a long time. I think the main problem is that it is difficult to make the data complete. The table may not include enough Brillouin Zones to cover all the possible scattering phase space. That can introduce "cleaner" signals on detectors. Also due to the cross section being incomplete, the neutron free mean path is likely longer than it should. It may be possible to approximate all the Brillouin Zones by the first one in order to reduce the data size, but this boils down to the manpower problem again. ;-)
Regards,
Xiao-Xiao
—
Reply to this email directly, view it on GitHub<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmctools%2Fncrystal%2Fdiscussions%2F87%23discussioncomment-2918864&data=05%7C01%7Cthallor1%40jhu.edu%7Cd10e2f0bce5d441b3ba408da4a8af5f1%7C9fa4f438b1e6473b803f86f8aedf0dec%7C0%7C0%7C637904257937145683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=N1LdmLHS63EAI25z%2BRI91eNTuKruEnGzLU89GzjJuR0%3D&reserved=0>, or unsubscribe<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGZYJSBAGQ4C52PMX7UMBHDVOKTT5ANCNFSM5YHOM7CA&data=05%7C01%7Cthallor1%40jhu.edu%7Cd10e2f0bce5d441b3ba408da4a8af5f1%7C9fa4f438b1e6473b803f86f8aedf0dec%7C0%7C0%7C637904257937145683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=S4yiolhavyCieFFWEKtamy%2Fska31hxHQmJL4mXqfWmM%3D&reserved=0>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @thallor1, In regard to Single_crystal_inelastic I am fully aware that it is not perfect, but it was included in the hope of eventually receiving contributions, optimisations etc. How exactly do you find it "non functional"? We would surely appreciate any direct bug report over at the McCode issue tracker. I would say that it most certainly works with the original 1.x releases, "should" work with 2.x but not with 3.x. (And btw "Some Guy" listed in the component text is in fact Duc Le ( @mducle / https://github.com/mducle ), currently at ISIS in the UK. Perhaps he has tips? :-) ) |
Beta Was this translation helpful? Give feedback.
-
Hi @thallor1, OK, I see. For Dirac-delta points in \vec{q}, E it can be that you can use / expand what @granrothge has implemented in his Spot_sample? Or take a look at what @farhi implemented in ILL_IN4 - 2D of course, but not knowing details about your case it might be useful? Wrt. the suggested iFit approach we experimented a bit with it and saw output that "seemed about right". I am not 100% sure we ever arrived at a final conclusion. Please use the latest iFit release of v. 2.0.2, don't attempt to use the repo directly - heavy reconstruction going on. There is also a Docker (based on a legacy Ubuntu 16.04...) that may shorten the path to getting a functional iFit these days. |
Beta Was this translation helpful? Give feedback.
-
No worries @willend, it is kind of a cross-over issue anyway. But please add a comment with a link here in case the discussion continues in another project, so interested ppl can track what's going on :-) |
Beta Was this translation helpful? Give feedback.
Hi Thomas,
The short answer is unfortunately that, no, NCrystal does not currently support such 4D kernels for single crystal inelastic scattering. While we are certainly aware of the possibility, we simply have not had the manpower available to start looking into that at this point. We are of course always happy to get contributions, although I imagine that this particular issue might have non-trivial challenges in terms of both code, data representation, and input data availability.
I cc @xxcai1 who might have additional comments, and @willend who might know more about the current status of the
Single_crystal_inelastic
component in McStas.Cheers,
Thomas