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

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)



McStas: test_File

[ Identification | Description | Examples | Input parameters | Links ]

The test_File Instrument

Demonstrates how to use the File.comp component for storing instrument input-files as METADATA blocks

Identification

  • Site: Tests_other
  • Author: Greg Tucker
  • Origin: ESS
  • Date: 2024

Description

Demonstrates how to use the File.comp component for storing instrument
input-files as METADATA blocks, of a component instance or of the instrument.
The last File writes a uniform 0.5 opacity table that Mask reads in its
INITIALIZE, so the monitor after the mask sees half the incoming beam.

Examples

(Test cases in bold)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault

Links

  • Source code for test_File.instr.
  • From https://github.com/g5t/mccode-file

[ Identification | Description | Examples | Input parameters | Links ]

Generated for mcstas 3.10.5


Last Modified: Wed Dec 2 00:25:28 2026
Search website mailinglist archive GitHub repos