|
7 | 7 | * Instrument: ESS_KVASIR |
8 | 8 | * |
9 | 9 | * %Identification |
10 | | -* Written by: Python McStas Instrument Generator |
11 | | -* Date: 09:29:58 on May 18, 2026 |
12 | | -* Origin: ESS DMSC |
13 | | -* %INSTRUMENT_SITE: Generated_instruments |
| 10 | +* Written by: Amalie Falkenberg (McStasScript), adapted by Peter Willendrup |
| 11 | +* Date: May 2026 |
| 12 | +* Origin: NBI |
| 13 | +* %INSTRUMENT_SITE: ESS |
14 | 14 | * |
15 | | -* !!Please write a short instrument description (1 line) here!! |
| 15 | +* Model of the proposed ESS instrument KVASIR. |
16 | 16 | * |
17 | 17 | * %Description |
18 | | -* Please write a longer instrument description here! |
19 | | -* |
| 18 | +* Model of the proposed ESS instrument KVASIR, implemented using McStasScript / |
| 19 | +* a Jupyter notebook. The flat ESS_KVASIR.instr runs from off an MCPL file from |
| 20 | +* a BIFROST guide guide simulation and adds the secondary spectrometer from |
| 21 | +* the proposed KVASIR instrument. |
| 22 | +* |
| 23 | +* %Example: t=50 Detector: det_He3_0_ToF_I=0.0302392 |
20 | 24 | * |
21 | 25 | * %Parameters |
22 | | -* t: [unit] |
23 | | -* |
| 26 | +* t: [1] Number of simulated KVASIR 'wedges' |
| 27 | +* repeats: [1] Repeat count for MCPL input file |
| 28 | +* |
24 | 29 | * %Link |
25 | 30 | * |
26 | 31 | * %End |
27 | 32 | ********************************************************************************/ |
28 | 33 |
|
29 | | -DEFINE INSTRUMENT KVASIR ( |
30 | | -t = 0 |
31 | | -) |
| 34 | +DEFINE INSTRUMENT ESS_KVASIR (t=50, int repeats=100) |
32 | 35 |
|
33 | 36 | DECLARE |
34 | 37 | %{ |
@@ -362,7 +365,7 @@ dtA_58 = acos( (az_58*bz_58 + ay_58*by_58) / (len[58]* sqrt(az_58*az_58 + ay_58* |
362 | 365 | TRACE |
363 | 366 | COMPONENT source = MCPL_input( |
364 | 367 | filename = "Virtual_output_example.mcpl.gz", pos_smear = 0.005, |
365 | | - dir_smear = 0.05) |
| 368 | + dir_smear = 0.05, repeat_count=repeats) |
366 | 369 | AT (0, 0, 0) ABSOLUTE |
367 | 370 |
|
368 | 371 | COMPONENT Arm_sample = Arm() |
|
0 commit comments