[ Identification | Description | Input parameters | Output parameters | Links ]

# The `Bender` Component

Models a curved neutron guide.

## Identification

- Author: Philipp Bernhardt
- Origin: Uni. Erlangen (Germany)
- Date: Februar 7 1999
- Version: 1.0

## Description

    Models a curved neutron guide.The entrance lies in the X-Y plane, centered
    on the Z axis. The neutrons will also leave the bender in the X-Y plane at
    the z-value l=r*Win, so you don't have to calculate the real exit coordinates
    and you do not need a new arm. The bender is bent to the negative X axis;
    it behaves like a parallel guide in the Y axis.
    You may either enter the deviation angle 'Win' or the length 'l'.
    The bender is shown straight, even if the implemented model is curved.
    Thus, you don't have to shift the following component by the curved deviation.

    Example: Bender(w=0.05,h=0.12,r=250,d=0.001,Win=0.04,k=1,
      R0a=0.99,Qca=0.021,alphaa=6.07,ma=2,Wa=0.003,
      R0i=0.99,Qci=0.021,alphai=6.07,mi=2,Wi=0.003,
      R0s=0.99,Qcs=0.021,alphas=6.07,ms=2,Ws=0.003)

    See also Additional note from Philipp Bernhardt.

## Input parameters

Parameters in boldface are required; the others are optional.

Name | Unit | Description | Default
--- | --- | --- | ---
w | m | Width at the bender entry and exit |
h | m | Height at the bender entry and exit |
r | m | Radius of the bender |
d | m | Thickness of the partition, which separates the channels | 0.001
Win | rad | Angle of the deflection of the whole bender | 0.04
k | 1 | Number of channels inside the bender | 1
R0a | 1 | Low-angle reflectivity at the bender concave side | 0.99
Qca | AA-1 | Critical scattering vector | 0.021
alphaa | AA | Slope of reflectivity | 6.07
ma | 1 | m-value of material | 2
Wa | AA-1 | Width of supermirror cut-off | 0.003
R0i | 1 | Low-angle reflectivity at the bender convex side | 0.99
Qci | AA-1 | Critical scattering vector | 0.021
alphai | AA | Slope of reflectivity | 6.07
mi | 1 | m-value of material | 2
Wi | AA-1 | Width of supermirror cut-off | 0.003
R0s | 1 | Low-angle reflectivity at bender top and bottom side | 0.99
Qcs | AA-1 | Critical scattering vector | 0.021
alphas | AA | Slope of reflectivity | 6.07
ms | 1 | m-value of material | 2
Ws | AA-1 | Width of supermirror cut-off | 0.003
l | m | length of bender l=r*Win | 0

## Output parameters

Name | Unit | Description | Default
--- | --- | --- | ---
bk |  |  |
mWin |  |  |

## Links

- Source code for `Bender.comp`.

[ Identification | Description | Input parameters | Output parameters | Links ]