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


About McStas
 Conditions of use
 Project funding

 Other Downloads (share)

Mailing list

Search web/mailinglist

 Wiki (GitHub)
 McStas manual


Report bugs (GitHub)

Code-repository (GitHub)

McStas: Multilayer_Sample Component

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

The Multilayer_Sample Component

Multilayer Reflecting sample using matrix Formula.


  • Author: Robert Dalgliesh
  • Origin: McStas 1.12b
  • Date: June 2010
  • Version:(Unknown)


in order to get this to compile you need to link against
the gsl and gslcblas libraries.

to do this automatically edit

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

WARNING: This is a contributed Component.

Input parameters



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

Generated automatically by McDoc, Peter Willendrup <> / Wed Jan 12 15:13:20 2022

Last Modified: Wednesday, 12-Jan-2022 16:13:20 CET
Search website mailinglist archive GitHub repos