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

[ Identification | Description | Input parameters | Links ]

The SANS_AnySamp Component

Sample for Small Angle Neutron Scattering. To be customized.

Identification

  • Site:
  • Author: Henrich Frielinghaus
  • Origin: FZ-Juelich/FRJ-2/IFF/KWS-2
  • Date: Sept 2004

Description

Sample for Small Angle Neutron Scattering.
May be customized for Any Sample model.
Copy this component and modify it to your needs.
Just give shape of scattering function.
Normalization of scattering will be done in INITIALIZE.

Some remarks:
Scattering function should be a defined the same way in INITIALIZE and TRACE sections
There exist maybe better library functions for the integral.

Here for comparison: Guinier.
Transmitted paths set to 3% of all paths. In this simulation method paths are
well distributed among transmission and scattering (equally in Q-space).

Sample components leave the units of flux for the probability
of the individual paths. That is more consitent than the
Sans_spheres routine. Furthermore one can simulate the
transmitted beam. This allows to determine the needed size of
the beam stop. Only absorption has not been included yet to
these sample-components. But thats really nothing.

Example: SANS_AnySamp(transm=0.5, Rg=100, qmax=0.03, xwidth=0.01, yheight=0.01, zdepth=0.001)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
transm1coherent transmission of sample for the optical path "zdepth"0.5
RgAngsRadius of Gyration100
qmaxAA-1Maximum scattering vector0.03
xwidthmhorizontal dimension of sample, as a width0.01
yheightmvertical dimension of sample, as a height0.01
zdepthmthickness of sample0.001
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links

  • Source code for SANS_AnySamp.comp.
  • Sans_spheres component

[ Identification | Description | Input parameters | Links ]

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


Last Modified: Wednesday, 03-Jan-2024 19:59:11 CET
Search website mailinglist archive GitHub repos