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

McStas
site 2

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

[ Identification | Description | Input parameters | Links ]

The Template_process Component

A template process for building Union processes

Identification

  • Site:
  • Author: Mads Bertelsen
  • Origin: University of Copenhagen
  • Date: 20.08.15

Description

This is a template for a new contributor to create their own physical process.
The comments in this file are meant to teach the user about creating their own
process file, rather than explaining this one. For comments on how this code works,
look in the Incoherent_process.comp.

Part of the Union components, a set of components that work together and thus
sperates geometry and physics within McStas.
The use of this component requires other components to be used.

1) One specifies a number of processes using process components like this one
2) These are gathered into material definitions using Union_make_material
3) Geometries are placed using Union_box / Union_cylinder, assigned a material
4) A Union_master component placed after all of the above

Only in step 4 will any simulation happen, and per default all geometries
defined before the master, but after the previous will be simulated here.

There is a dedicated manual available for the Union_components


Algorithm:
Described elsewhere

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
sigmabarnsIncoherent scattering cross section5.08
packing_factor1How dense is the material compared to optimal 0-11
unit_cell_volumeAA^3Unit_cell_volume13.8
interact_fraction1How large a part of the scattering events should use this process 0-1 (sum of all processes in material = 1)-1
initstringName of Union_init component (typically "init", default)"init"
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on 2022-12-15 07:34:57


Last Modified: Friday, 31-Mar-2023 14:24:14 CEST
Search website mailinglist archive GitHub repos