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

McStas
site 2

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: Multilayer_Sample

[ Identification | Description | Input parameters | Links ]

The Multilayer_Sample Component

Multilayer Reflecting sample using matrix Formula.

Identification

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

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: d1 500: sld1 (air) 0.0: sld2 (Si) 2.07e-6: sldf1(film Ni) 9.1e-6

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
sldPar1(Angstoms ^-2) Scattering length Density's of layers{0.0,2.0e-6,0.0e-6}
dPar1(Angstroms) Thicknesses of film layers{20.0}
xwidthmWidth of substrate0.2
zlengthmLength of substrate0.2
nlayer1Number of film layers1
frac_inc1Fraction of statistics to assign to incoherent scattering0
ythickmThickness of substrate0
mu_incm^-1Incoherent scattering length5.62
target_index1relative index of component to focus at, e.g. next is +1.0
focus_xwmWidth of target0
focus_yhmHeight of target0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on 2024-01-03 11:47:43


Last Modified: Tuesday, 17-Sep-2024 05:31:14 CEST
Search website mailinglist archive GitHub repos