-
Notifications
You must be signed in to change notification settings - Fork 62
Description
The position in angle-space of a disc chopper in time is, e.g.,
where
Equivalently, one can write
where the timing offset
It is therefore clear that we can relate
or
Contrary to these relationships, the DiscChopper.comp definition treats calculation of
McCode/mcstas-comps/optics/DiskChopper.comp
Lines 122 to 132 in 731e8ce
| /* Calulate delay from phase and vice versa */ | |
| if (phase) { | |
| if (delay) { | |
| fprintf (stderr, "DiskChopper: %s WARNING: delay AND phase specified. Using phase setting\n", NAME_CURRENT_COMP); | |
| } | |
| phase *= DEG2RAD; | |
| /* 'Delay' should always be a delay, taking rotation direction into account: */ | |
| delay = phase / fabs (omega); | |
| } else { | |
| phase = delay * omega; /* rad */ | |
| } |
There are two closed issues related to the DiscChopper phase, neither of which seems to directly relate to this problem:
- DiskChopper, rotation seems to be left-handed with positive frequency #1128
- DiskChopper: Phase is not calculated correctly from delay it seems... #377
Possible relevant supporting information is available in scippneutron's documentation