McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics NEXMAP

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


McStas: Pol_guide_mirror Component

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

The Pol_guide_mirror Component

Polarising guide with a supermirror along its diagonal.

Identification

  • Author: Erik B Knudsen
  • Origin: DTU Physics
  • Date: July 2018
  • Version:(Unknown)

Description

Based on Pol_guide_vmirror by P. Christiansen.
Models a rectangular guide with entrance centered on the Z axis and
with one supermirros sitting on the diagonal inside.
The entrance lies in the X-Y plane.  Draws a true depiction
of the guide with mirror and trajectories.
The polarisation is handled similar to in Monochromator_pol.
The reflec functions are handled similar to Pol_mirror.
The up direction is hardcoded to be along the y-axis (0, 1, 0)

Note that this component can also be used as a frame overlap-mirror
if the up and down reflectivities are set equal. In this case the wall
refletivity (rPar) should probably be set to absorb. 

The parameters can either be
double pointer initializations (e.g. {R0, Qc, alpha, m, W})
or table names (e.g."supermirror_m2.rfl" AND useTables=1).
NB! This might cause warnings by the compiler that can be ignored.

GRAVITY: YES

%BUGS
No absorption by mirror.

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
xwidth m Width at the guide entry  
yheight m Height at the guide entry  
length m length of guide  
rFunc 1 Guide Reflection function StdReflecFunc
rUpFunc 1 Mirror Reflection function for spin up StdReflecFunc
rDownFunc 1 Mirror Reflection function for spin down StdReflecFunc
rPar 1 Guide Parameters for rFunc {1.0
rUpPar 1 Mirror Parameters for rUpFunc {1.0
rDownPar 1 Mirror Parameters for rDownFunc {0.1
useTables 1 Parameters are 0: Values, 1: Table names 0
debug 1 if debug > 0 print out some internal runtime parameters 0

Output parameters

Name Unit Description Default
localG m/s/s Gravity vector in guide reference system  
normalTop 1 One of several normal vectors used for defining the geometry  
normalBot  
normalLeft  
normalRight  
normalInOut  
pointTop 1 One of several points used for defining the geometry  
pointBot  
pointLeft  
pointRight  
pointIn  
pointOut  
rParPtr  
rUpParPtr  
rDownParPtr  

Links


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

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Fri Sep 23 18:47:27 2022


Last Modified: Friday, 23-Sep-2022 20:47:27 CEST
Search website mailinglist archive GitHub repos