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
 Screenshots

Download
 Components
 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tools
 Tutorial

Workshops/conferences

Developments

Links

Report bugs

Git

McStas Ubuntu live-dvd


McStas: Multilayer_Sample Component

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

The Multilayer_Sample Component

Multilayer Reflecting sample using matrix Formula.

Identification

  • Author: Robert Dalgliesh
  • Origin: McStas 1.12b
  • Date: June 2010
  • Version: 1.0

Description


**************************************************************
** in order to get this to compile you need to link against
** the gsl and gslcblas libraries.
**
** to do this automatically edit
** /usr/local/lib/mcstas/tools/perl/mcstas_config.perl
**
** add -lgsl and -lgslcblas to the CFLAGS line
**************************************************************

Horizontal reflecting substrate defined by SLDs,Thicknesses, roughnesses
The superphase may also be determined

Example: Multilayer_Sample(xmin=-0.1, xmax=0.1,zmin=-0.1, 
zmax=0.1, nlayer=1,sldPar={0.0,2.0e-6,0.0e-6},dPar={20.0},
sigmaPar={5.0,5.0})

Example values: d1 500: sld1 (air) 0.0: sld2 (Si) 2.07e-6:
                sldf1(film Ni) 9.1e-6

WARNING: This is a contributed Component.

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
xwidth m Width of substrate 0.2
zlength m Length of substrate 0.2
nlayer 1 Number of film layers 1
sldPar 1 (Angstoms ^-2) Scattering length Density's of layers {0.0
dPar 1 (Angstroms) Thicknesses of film layers {20.0}
sigmaPar 1 (Angstroms) r.m.s roughnesses of the interfaces {5.0
frac_inc 1 Fraction of statistics to assign to incoherent scattering 0
ythick m Thickness of substrate 0
mu_inc m^-1 Incoherent scattering length 5.62
target_index 0
focus_xw 0
focus_yh 0

Output parameters

Name Unit Description Default
sldParPtr  
dParPtr  
sigmaParPtr  
tx  
ty  
tz  

Links


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

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Wed Apr 19 10:57:33 2017


Last Modified: Wednesday, 19-Apr-2017 12:57:33 CEST
Search website mailinglist archive GitHub repos