McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; Niels Bohr Institute Risø DTUDTU

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Install
 Share

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tutorial

Workshops/conferences

Developments
 Platforms

Links

Report bugs

SVN

McStas Ubuntu live-dvd


Flux_adapter

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

The Flux_adapter component

Identification

  • Author: EF, Oct 14, 1999, Rev Nov 17, 1999
  • Origin:(Unknown)
  • Date:(Unknown)
  • Version:(Unknown)

Description

The routine changes the neutron flux (weight) in order to match
a reference source table on disk. This file can be on format
(k[Angs-1],p), (omega[meV],p), (lambda[Angs],p) where p is the weight
A linear interpolation is performed during simulation.
This component should be placed after a source, in order to 
simulate a real source.

EXAMPLE : 
     (xmin = -0.1, xmax = 0.1,
      ymin = -0.1, ymax = 0.1,
      file="source.flux",
	options="")
With file "source.flux" beeing something like
      # energy multiply
      # [ meV flux_factor ]
	0   1
	2   1.2
	10  1.5
	100 1

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
xmin  
xmax  
ymin  
ymax  
file  
options  

Output parameters

Name Unit Description Default
KE_Table  
Weight_Table  
Type_table  
Mode_Table  
Length_Table  
Step_Table  

Links


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

Generated automatically by McDoc, Kristian Nielsen <kristian.nielsen@risoe.dk> / Jan 22 2001


Last Modified: Tuesday, 22-Jun-2004 14:04:09 CEST
Search website freshmeat.net McStas site RSS feed mailinglist archive SVN repos McCode Trac