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

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)


The SANSCurve McStas Component

14.77  The SANSCurve McStas Component

A component mimicking the scattering from a given I(q)-curve by using linear interpolation between the given points.

Identification

  • Author: Søren Kynde (kynde@nbi.dk)

  • Origin: KU-Science

  • Date: October 17, 2012

Description

A box-shaped component simulating the scattering from any given I(q)-curve. The component uses linear interpolation to generate the points necessary to compute the scattering of any given neutron.

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

DeltaRho

cm/Å\(^{3}\)

Excess scattering length density of the particles.

1.0e-14

Volume

Å\(^{3}\)

Volume of the particles.

1000.0

Concentration

mM

Concentration of sample.

0.01

AbsorptionCrosssection

1/m

Absorption cross section of the sample.

0.0

xwidth

m

Dimension of component in the x-direction.

yheight

m

Dimension of component in the y-direction.

zdepth

m

Dimension of component in the z-direction.

SampleToDetectorDistance

m

Distance from sample to detector (for focusing the scattered neutrons).

DetectorRadius

m

Radius of the detector (for focusing the scattered neutrons).

FileWithCurve

Datafile with the given I(q).

"Curve.dat"

Links

  • Component source code found in file SANSCurve.comp.


Last Modified: Tuesday, 06-Oct-2026 21:19:11 CEST
Search website mailinglist archive GitHub repos