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 Commodus_I3 McStas Component

14.25  The Commodus_I3 McStas Component

ISIS Moderators (Tested with McStas 3.1 (Windows))

Identification

  • Author: G. Skoro, based on ViewModerator4 from S. Ansell

  • Origin: ISIS

  • Date: July 2022

Description

Produces a neutron distribution at the ISIS TS1 or TS2 corresponding moderator front face position. The Face argument determines which TS1 or TS2 beamline is to be sampled by using corresponding file. Neutrons are created having a range of energies determined by the E0 and E1 arguments. Trajectories are produced such that they pass through the moderator face (defined by modXsize and modZsize) and a focusing rectangle (defined by xw, yh and dist). — HOW TO USE —

Example:   Commodus_I3(Face="TS1verBase2016_LH8020_newVM-var_South04_Merlin.mcstas", E0 = E_min, E1 = E_max,
modXsize = 0.12, modZsize = 0.12, xw = 0.094, yh = 0.094, dist = 1.6)

MERLIN simulation; TS1 baseline model. In this example, xw and yh are chosen to be identical to the shutter opening dimension. dist = 1.6 is the real distance to the shutter front face: (This is TimeOffset value (=160 [cm]) from TS1verBase2016_LH8020_newVM-var_South04_Merlin.mcstas file.)

N.B. Absolute normalization: The result of the Mc-Stas simulation will show neutron intensity for beam current of 1 uA.

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

Face

string

TS1 (or TS2) instrument McStas filename

"TS1_S04_Merlin.mcstas"

E0

meV

Lower edge of energy distribution

E1

meV

Upper edge of energy distribution

modPosition

1

Defines the initial surface for neutron distribution production. Possible values = 0 (at moderator) or 1 (at shutter insert)

0

dist

m

Distance from moderator surface to the focusing rectangle

1.7

verbose

int

Flag to output debugging information

0

beamcurrent

uA

ISIS beam current

1

modXsize

m

Moderator width

0.12

modZsize

m

Moderator height

0.12

xw

m

Width of focusing rectangle

0.094

yh

m

Height of focusing rectangle

0.094

Links

  • Component source code found in file Commodus_I3.comp.


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