Skip to content

Create NCrystalFilter component for McStas #338

Description

@tkittel

Opening this sub-issue to collect ideas and progress concerning the planned NCrystalFilter component.

The idea was: Add NCrystalFilter component (name to be finalised), which takes an NCrystal-cfgstr for an isotropic material and caches the cross section curve during initialisation. During TRACE it then simply attenuates the beam accordingly. This provides a way to use NCrystal x-sect curves in a context where one does not care about the scattered neutrons, and where multiple scattering is unimportant. We could even consider using the minimc to make it possible to use multiple scattering effects or more flexible definitions of what is scattered (i.e. only attenuate anything scattering more than 0.1degree). Notably this would work on GPU. This would for instance be useful for Al-windows or Be-filters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions