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)


McStas: Single_magnetic_crystal

[ Identification | Description | Input parameters | Links ]

The Single_magnetic_crystal Component

Release: McStas 2.6 Mosaic magnetic single crystal with multiple scattering vectors.

Identification

  • Site:
  • Author: Erik B Knudsen and Linda Udby
  • Origin: DTU Physics
  • Date: Jan 2020

Description

WARNING: This is an experimental component - no experimental validation has yet been done

Single magnetic crystal with mosaic. Delta-D/D option for finite-size effects.
Multiple scattering and secondary extinction included.
The mosaic may EITHER be specified isotropic by setting the mosaic input
parameter, OR anisotropic by setting the mosaic_h, mosaic_v, and mosaic_n
parameters.

The scattering is computed solely in an spin up-down configuration. That is the
scattering is considered in relation to the externally defined vector (mx,my,mz), where it
can be either SF or NSF.
Simplifications and comments :
Lande splitting factor is assumed to be g=2
Magnetic form factors are set =1

Sample shape:
Sample shape may be a cylinder, a sphere, a box or any other shape
box/plate:       xwidth x yheight x zdepth
cylinder:        radius x yheight
sphere:          radius (yheight=0)
any shape:       geometry=OFF file

The complex geometry option handles any closed non-convex polyhedra.
It computes the intersection points of the neutron ray with the object
transparently, so that it can be used like a regular sample object.
It supports the OFF and NOFF file format but not COFF (colored faces).
Such files may be generated from XYZ data using qhull/powercrust, and
viewed with geomview
The default size of the object depends of the OFF file data, but its
bounding box may be resized using xwidth,yheight and zdepth.

Also, always use a non-zero value of delta_d_d.

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
atom_sitesstrFile name containing the atoms present in the unit cell. Use empty ("") or NULL for sigma_inc scattering only0
geometrystrName of an Object File Format (OFF) file for complex geometry. The OFF file may be generated from XYZ coordinates using qhull/powercrustNULL
xwidthmWidth of crystal0
yheightmHeight of crystal0
zdepthmDepth of crystal (no extinction simulated)0
radiusmOuter radius of sample in (x,z) plane0
delta_d_d1Lattice spacing variance, gaussian RMS1e-4
mosaicarcminCrystal mosaic (isotropic), gaussian RMS-1
mosaic_harcminHorizontal (rotation around Y) mosaic (anisotropic), gaussian RMS-1
mosaic_varcminVertical (rotation around Z) mosaic (anisotropic), gaussian RMS-1
mosaic_narcminOut-of-plane (Rotation around X) mosaic (anisotropic), gaussian RMS-1
recip_cell1Choice of direct/reciprocal (0/1) unit cell definition0
q_minAA^-1lower boundary of momentum transfer range to generate hkls in0
q_maxAA^-1upper boundary of momentum transfer range to generate hkls in-1
mx10
my1Coordinates of vector defining the SF/NSF direction1
mz10
na11
nb1Unit cell multipliers. The specified unit cell vectors are scaled by these factors. Note that the mulitpliers are applied directly to the raw input data. I.e. if recip. cell vectors are given, multipliers should be <1 (= 1/n). F.i. used to specify a magnetic unit cell which is larger than the chemical unit cell.1
nc11
axAA or AA^-10
ayAA or AA^-1Coordinates of first (direct/recip) unit cell vector0
azAA or AA^-10
bxAA or AA^-10
byAA or AA^-1Coordinates of second (direct/recip) unit cell vector0
bzAA or AA^-10
cxAA or AA^-10
cyAA or AA^-1Coordinates of third (direct/recip) unit cell vector0
czAA or AA^-10
p_transmit1Monte Carlo probability for neutrons to be transmitted without any scattering. Used to improve statistics from weak reflections-1
sigma_absbarnsabsorption cross-section per unit cell at 2200 m/s0
sigma_incbarnsincoherent scattering cross-section per unit cell0
order1limit multiple scattering up to given order (0: all, 1: first, 2: second, ...)0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on mcstas 3.6.1


Last Modified: Friday, 12-Dec-2025 12:58:06 CET
Search website mailinglist archive GitHub repos