McStas source definitions by facility - mccode-dev/McCode GitHub Wiki

McStas source definitions by facility

The below table is the result of a partly AI-generated survey of mcstas-comps/{sources,contrib,data,examples} right after release of McStas v3.10.0 in October 2026.

McStas has no separate repository of moderator profiles; facility sources come as dedicated components with data files, or as generic components set up per beamport in the example instruments.

Facility Type Source component Source data / parameters Status Example instruments
ESS Spallation, long pulse ESS_butterfly (older: ESS_moderator); MCPL_input Analytic butterfly brilliance (cold and thermal, per sector/beamline); MCPL event files from neutronics Included ESS_butterfly_*, ESS_IN5_reprate, ESS_BEER_MCPL, ESS_KVASIR
ISISTS1 / TS2 Spallation, short pulse ViewModISIS, ISIS_moderator (contrib) Many moderator files are in mcstas-comps/data/ISIS_tables, including ones no example instrument uses. Current files for ViewModISIS: TS1_*.mcstas / TS1Mark8_*.mcstas (TS1 Mark8, 2017) and *_TS2_HydroMod_Upgrade202[12]_*.mcstas (TS2 hydrogen moderator upgrade). Legacy files for ISIS_moderator: TS1.* / TS2.* Included MERLIN, IMAT, GEM, CRISP, HET, SANS2d, OSIRIS, TOSCA, TS1/TS2_Brilliance
SNS Spallation, short pulse SNS_source, SNS_source_analytic (contrib) Moderator files shipped in mcstas-comps/data/: source_sct091_tu_02_1.dat, source_sct091_tu_11_1.dat, source_sct21a_td_05_1.dat, source_sct41a_bd_14_1.dat; analytic fits a1Gw2-*_fit_fit.dat Included ARCS, BASIS, SNS_test, Granroth_/Gallmeier_SNS_*
J-PARCMLF Spallation, short pulse SNS_source Moderator files in the same format as the SNS files; not distributed with McStas Files from facility —
CSNS Spallation, short pulse SNS_source Moderator files in the same format as the SNS files; not distributed with McStas Files from facility —
ILL Reactor Source_gen Parameter sets for the hot, thermal and cold (HCS/VCS) sources (1–3 Maxwellians per beamport); reusable ILL_Hxx front ends Included IN4/5/6, D2B, D1A/B, D11, D22, H5–H53 series
FRM-II Reactor Source_gen Thermal port, 3 Maxwellians (SPODI) Included SPODI, SPODI_MULTI
PSISINQ Spallation, continuous Source_Maxwell_3, Source_gen, Source_gen4 Thermal and cold Maxwellian sets Included DMC, Focus, ICON, RITA-II
HZBBER-II Reactor (closed) Source_gen, Source_Maxwell_3 Cold Maxwellians Included FLEX, NEAT, V20 test beamline
LLBOrphée Reactor (closed) Source_gen 3 Maxwellians Included 6T2
NecsaSAFARI-1 Reactor Source_gen (+ Virtual_input) Flat spectrum Included PITSI, MPISI
TU DelftRID Reactor Source_gen 300 K Maxwellian Included RTP_DIF, Laue, SANS, Radiography
ANSTOOPAL Reactor Source_gen Maxwellian parameters (T, I per component) needed from facility staff Not included —
HFIRORNL Reactor Source_gen Maxwellian parameters needed from facility staff Not included —
NISTNCNR Reactor Source_gen Maxwellian parameters needed from facility staff Not included —

Generic route for any facility: have the facility's MCNP or PHITS output converted to MCPL and read it with MCPL_input, or use a tabulated spectrum with Source_gen (flux_file), Source_custom or Source_pulsed.