Skip to content

Commit 680bf35

Browse files
committed
Improvements to doc header and add repeat_count for MCPL input
1 parent bffbab8 commit 680bf35

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

mcstas-comps/examples/ESS/ESS_KVASIR/ESS_KVASIR.instr

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,31 @@
77
* Instrument: ESS_KVASIR
88
*
99
* %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
1414
*
15-
* !!Please write a short instrument description (1 line) here!!
15+
* Model of the proposed ESS instrument KVASIR.
1616
*
1717
* %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
2024
*
2125
* %Parameters
22-
* t: [unit]
23-
*
26+
* t: [1] Number of simulated KVASIR 'wedges'
27+
* repeats: [1] Repeat count for MCPL input file
28+
*
2429
* %Link
2530
*
2631
* %End
2732
********************************************************************************/
2833

29-
DEFINE INSTRUMENT KVASIR (
30-
t = 0
31-
)
34+
DEFINE INSTRUMENT ESS_KVASIR (t=50, int repeats=100)
3235

3336
DECLARE
3437
%{
@@ -362,7 +365,7 @@ dtA_58 = acos( (az_58*bz_58 + ay_58*by_58) / (len[58]* sqrt(az_58*az_58 + ay_58*
362365
TRACE
363366
COMPONENT source = MCPL_input(
364367
filename = "Virtual_output_example.mcpl.gz", pos_smear = 0.005,
365-
dir_smear = 0.05)
368+
dir_smear = 0.05, repeat_count=repeats)
366369
AT (0, 0, 0) ABSOLUTE
367370

368371
COMPONENT Arm_sample = Arm()

0 commit comments

Comments
 (0)