McStasMcXtrace / McCode

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.
https://github.com/McStasMcXtrace/McCode/wiki
GNU General Public License v3.0
76 stars 54 forks source link

McStas 2018 Survey Feedback 5 #730

Open willend opened 5 years ago

willend commented 5 years ago

More intuitive use of multi processor / grid computing. New feature: allow neutrons to go back to previous components

mads-bertelsen commented 5 years ago

Allowing neutrons to go back to previous components would require changes in many components that simply assume the neutrons are originating upstream. If your requirements are related to samples or sample environment, the Union components may be able to help. Here one can have for example co aligned samples and sample environment where the ray can go back and forth between these components until it naturally leaves.

willend commented 5 years ago

Agreed @mads-bertelsen, Union is a way forward here.

Another way that has been applied in the past is the use of:

But this is typically very involved and requires lots of thinking and experimentation.

( Another semi- relevant note is that we in fact are considering to go through all components to ensure that they work both in a "forward" and "backward" application, which would allow the same type of "reverse transport" that SIMRES uses, i.e.: