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

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_sitesFile name containing the atoms present in the unit cell. Use0
geometryName of an Object File Format (OFF) file for complex geometry.NULL
xwidthWidth of crystal [m]0
yheightHeight of crystal [m]0
zdepthDepth of crystal (no extinction simulated) [m]0
radiusOuter radius of sample in (x,z) plane [m]0
delta_d_dLattice spacing variance, gaussian RMS [1]1e-4
mosaicCrystal mosaic (isotropic), gaussian RMS [arc minutes]-1
mosaic_hHorizontal (rotation around Y) mosaic (anisotropic),-1
mosaic_vVertical (rotation around Z) mosaic (anisotropic),-1
mosaic_nOut-of-plane (Rotation around X) mosaic (anisotropic),-1
recip_cellChoice of direct/reciprocal (0/1) unit cell definition [1]0
q_min[AA^⁻1] lower boundary of momentum transfer range to generate hkls in0
q_max[AA^⁻1] upper boundary of momentum transfer range to generate hkls in-1
mx0
my1
mz0
na1
nbUnit cell multipliers. The specified unit cell vectors are scaled by these factors.1
nc1
ax0
ayCoordinates of first (direct/recip) unit cell vector [AA or AA^-1]0
az0
bx0
byCoordinates of second (direct/recip) unit cell vector [AA or AA^-1]0
bz0
cx0
cyCoordinates of third (direct/recip) unit cell vector [AA or AA^-1]0
cz0
p_transmitMonte Carlo probability for neutrons to be transmitted-1
sigma_absabsorption cross-section per unit cell at 2200 m/s [barns]0
sigma_incincoherent scattering cross-section per unit cell [barns]0
orderlimit multiple scattering up to given order0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on 2025-05-08 13:31:31


Last Modified: Thursday, 08-May-2025 13:32:08 CEST
Search website mailinglist archive GitHub repos