Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide builtin simple stepping MC #101

Open
tkittel opened this issue Sep 9, 2022 · 0 comments
Open

Provide builtin simple stepping MC #101

tkittel opened this issue Sep 9, 2022 · 0 comments

Comments

@tkittel
Copy link
Member

tkittel commented Sep 9, 2022

For various reasons it might be useful to provide a simple utility for doing MC stepping simulations in very simple geometries and with all physics models coming from NCrystal. The code for this might look very similar to the code used in the NCrystal component for McStas (NCrystal_sample.comp), providing just simple boxes, spheres and cubes as geometrical options as well as options for how to handle absorption and single/multiple scattering.

The code should be accessible from both python and c++, with array-based python interfaces so python-only projects can also easily perform such simulations. One idea is to potentially allow C++-level multithreading, for a speedup.

Potential applications for this feature which were already discussed in various fora are: the ability of ncrystal_inspectfile to produce angular distributions plots similar to those encountered at a neutron scattering instrument, usage at an upcoming school concerning scattering kernels under the https://highnessproject.eu/ project, and usage in a potential backend for https://easydiffraction.org/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant