1 Introduction

Ultracold neutrons (UCNs) are neutrons with kinetic energies below about 300 neV, equivalent to temperatures below 3 mK. They are key probes in particle physics experiments at the low-energy frontier. UCNs are reflected at any angle of incidence from certain materials like steel, beryllium, nickel, diamond-like carbon (DLC) or alloys like nickel-molybdenum (NiMo), since they cannot penetrate a sufficiently thick nuclear potential barrier of the material which is higher than their kinetic energy. Hence, UCNs can be stored in bottles made from or coated with these materials and can be observed for hundreds of seconds [1]. This makes it possible to precisely examine the intrinsic properties of the neutron, and to search for physics beyond the Standard Model of particle physics (BSM). The most prominent example is the search for a permanent electric dipole moment of the neutron (nEDM) [2,3,4,5,6,7,8,9,10]. The best achieved sensitivity for such experiments is limited by counting statistics, and efforts are made worldwide to develop new UCN sources to provide higher intensities [11,12,13]. Besides a high source yield, a highly optimized neutron transport to beamports and experiments is a key ingredient to the performance of UCN sources.

The high intensity UCN source at the Paul Scherrer Institute (PSI) [11, 14,15,16,17] has been in operation since 2011. The main UCN-related parts of the source are shown in the center of Fig. 1. The operation scheme follows this sequence: Every 300 s the full proton beam – 590 MeV and up to 2.4 mA – is directed onto the spallation target for up to 8 s (label TAR in Fig. 1) [18]. (The measurements described here were performed at a time when only shorter pulse lengths were allowed for regulatory reasons.) Fast neutrons produced in the lead target material are thermalized at room temperature in the surrounding heavy water (D\(_2\)O). A fraction of them is further thermalized to the cold neutron regime in solid deuterium (sD\(_2\)) at 5 K, and in a last step down-scattered via superthermal conversion into the ultracold energy range. UCNs can then propagate from the sD\(_2\)-vessel upwards into vacuum through a vertical guide and fill the source storage vessel (SV). The two flaps on the bottom of the vessel are closed at the end of the proton pulse and only reopened again shortly before the next beam pulse. From the storage vessel of the source the UCNs can propagate via two guides connected to the bottom of the SV (dubbed “West-1” and “South”) to the experimental areas. Similarly, with lower intensity, UCNs reach a guide connected to the top of the SV (“West-2”), which is used for test measurements.

The UCN intensity at the PSI source was considerably increased over the last years. At the same time, we have been improving our understanding of the UCN source parameters. In a series of studies, we covered neutron production and moderation, UCN production and extraction out of the sD\(_2\) and the moderator vessel, and aspects of the UCN optics [14,15,16, 19,20,21]. The results of our measurements are overall well understood and reproduced with detailed simulation models of the UCN source. In the present work, we elaborate on the energy-dependent, absolute UCN transport efficiency of the UCN guide system, and on the UCN energy spectrum delivered at the beamports.

UCN transport characteristics of the individual neutron guides were measured prior to mounting, and the results reported in Ref. [22]. A previous characterization of the UCN optics system at the PSI source after commissioning based on Monte Carlo simulations was published in Ref. [16]. In the present study we report on further complementary measurements of the UCN density in a storage bottle at varying heights above the beam axis. A study of the UCN transport using the entire guide system of the source and a calibrated UCN quantity for absolute efficiencies supplements this report. The results allow positioning of experiments at heights optimized for UCN density. The results also improve our knowledge of the actual neutron optics parameters of the UCN guides and the source storage vessel after installation. By limiting the energy range of the neutrons to the UCN regime by the storage method, thus eliminating very cold neutrons, we could further constrain the simulation model parameters. We additionally present a realistic profile of the initial energy spectrum of neutrons exiting the sD\(_2\) moderator. In our previous work [16], this was assumed to be linear, characteristic of an ideal UCN moderator material, according to Eq. (3.9) in [1]. However, measurements and simulations indicate [21] that, along with material cracks in the bulk, a frost layer on the sD\(_2\) surface causes energy dependent losses of UCNs, due to back-reflection from crystallites. Thus in the simulations described in this work, we parametrize and fit the shape of the spectrum. In-situ measurements of the UCN transport also include all eventual inefficiencies like coating deficiencies, gaps between guide sections and shutters, or imperfect mounting. These additional losses are considered in the simulation model using effective parameters.

The obtained results provide fundamental input to better analyze the UCN source performance, help to identify sections for further improvements, and allow for more precise estimations of the statistical sensitivity of experiments. In Sect. 2, experimental setups and results will be presented, which are subsequently compared to detailed Monte Carlo simulations in Sect. 3.

2 Transmission experiments with stored UCNs

In the following we describe the two main experiments: (a) UCN transmission from beamport West-1 to beamport South, allowing to constrain the loss and diffuse reflection parameters of the guide coatings, and (b) UCN storage at different heights above beamport level, aiming to find the vertical position maximizing UCN density, and helping to constrain the shape of the energy spectrum of the UCN exiting the sD\(_2\) moderator material. Comparison of the second experiment with simulation helps to take into consideration the energy dependence of losses in experiment (a). Vice versa, the results from experiment (a) will influence the energy profile of the stored neutrons in experiment (b). Consequently, the simulation analysis has to take into account this inter-dependence of the results from the two experiments, as it will be detailed in Sect. 3.

2.1 Beamport-to-beamport transmission

2.1.1 Motivation and principle of the measurement

The measurements presented in this section test the neutron optics above the central storage vessel flaps. The idea of the measurement, with the involved parts illustrated in Fig. 1, is the following: UCNs are produced and filled into the source storage vessel (SV in Fig. 1). The neutron guide shutters (g) towards both beamports are always open and not used in this measurement. UCNs are also filled directly into an external storage vessel (b), where they are stored for \({130}\,{\mathrm{s}}\). During this time the storage vessel of the source and the guide system are cleaned of UCNs by opening the central storage vessel flaps (f), allowing the UCNs to fall back towards the solid D\(_2\) where they are lost. After this procedure, the central flaps are closed again to later allow the UCNs to traverse the storage vessel. Subsequently, the UCNs are released from the external storage vessel by opening shutter 1, permitting back-propagation towards the storage vessel of the source, and from there into the guide South. A detector mounted at beamport South detects the UCNs which traversed both guides and the source storage vessel. As the UCNs are sent first from the storage vessel of the source to beamport West-1, and then from there to beamport South, the measurement is dubbed UCN “ping-pong”.

Fig. 1
figure 1

CAD drawing of the most important parts of the UCN source installation used for the measurements described: (a) small Cascade detector connected to the storage bottle at beamport West-1 with a 300 mm long I.D. 100 mm NiMo-coated guide; (b) storage bottle made of a 1 m long glass UCN guide coated with NiMo and two DLC-coated vacuum shutters (1, 2), (c) big Cascade detector mounted at beamport South with a 150 mm long I.D. 180 mm NiMo-coated guide, (d) polarizing magnet, (e) AlMg3 vacuum safety windows, (f) central storage vessel flaps, (g) neutron guide shutters, (TAR) lead spallation target, (D\(_2\)O) heavy water container, (sD\(_2\)) solid deuterium moderator vessel, (SV) UCN source storage vessel. The biological shielding made of iron and concrete blocks is depicted in grey. The UCN guide on top of the source storage vessel towards beamport West-2 is omitted, details can be found in Ref. [16]

In order to quantify how many UCNs started towards the beamport South after their release from the external storage vessel at beamport West-1, a reference measurement was necessary. In this reference measurement the UCNs were released by opening shutter 2, on the other side of the external chamber, towards detector West-1. By using identical filling and storage times as in the ping-pong procedure, and by performing the measurements within a short time to assure UCN source stability, we made sure that the correct initial number of UCNs was obtained.

The transmission efficiency of the UCNs from one beamport to the other beamport then depends on all cumulative losses in the guides, windows, storage vessel, and possible slits between the components. Although all UCN guides were tested prior to installation and commissioning of the UCN source [23], this in-situ measurement provides additional information on unavoidable imperfections in the assembly as well as aging or contamination since the ex-situ measurements. First test measurements were reported in [23]. These were repeated after improvements using (i) an automatic timing sequence for the central storage vessel flaps, (ii) higher time resolution in the UCN detection. Additionally, the measurements reported here include operation of the polarizing magnet (d in Fig. 1) at beamport South at various field strengths. Thus we obtained the beamport-to-beamport transmissions for different UCN energy spectra, and can directly compare these to the values extracted from Monte Carlo simulations.

2.1.2 Setup

A 25 L external storage vessel made of a 1 m long piece of UCN guide (NiMo coated glass tube I.D. 180 mm) and two shutters (1,2) coated with DLC were mounted at beamport West-1. UCNs could be emptied in both directions, either towards the UCN storage vessel of the source via shutter 1 or towards a small (10 cm \(\times \) 10 cm active surface) Cascade UCN detector [24] via shutter 2. A CAD drawing of the setup is shown in Fig. 1. The total length of the UCN guides from the source storage vessel to beamport West-1 is 7090 mm, and to beamport South is 8618 mm, with the length being the sum of all parts according to construction drawings. The shutters were actuated by pressurized air and took approximately 1 s to open or close, as described in [23].

At beamport South, a big (20 cm \(\times \) 20 cm active surface) Cascade detector [24] was mounted right outside the beamport shutter, see Fig. 1, i.e. behind the 5 T polarizing magnet. Measurements without and with magnetic fields of 1.5, 2, 3, and 5 T were conducted aiming at a certain velocity discrimination of the arriving UCNs, and depending on polarization state.

2.1.3 Measurement and timing

Two separate control systems were used. The central storage vessel flaps were operated by the UCN source control system. As under normal operation conditions, the flaps were closed on a trigger from the accelerator system at a constant time before the end of the proton beam pulse. Instead of keeping the flaps closed until shortly before the next proton beam pulse, as in standard operation, the flaps were opened after shutter 1 was closed in order to drain the source from remaining UCNs. The flaps were closed again another 110 s later, before reopening the external storage vessel shutter. Once the measured UCN count rate was at background level the flaps were opened to be ready to receive the next proton beam pulse.

The shutter timing system, as described in [23] was triggered by the falling edge of the accelerator signal occurring at the end of the proton beam pulse. Both UCN detectors were triggered simultaneously on the accelerator signal generated before the beam pulse, which resulted in the time-base of the Cascade data files starting at approximately 7.7 s before the beginning of the proton beam pulse. They then ran on their internal clocks. UCN measurements at beamports South (ping-pong) and West-1 (for reference) were done in multiple groups of typically five repetitions in order to avoid systematic effects due to drifts of the source performance [21].

The time sequence of the measurement was the following (all neutron guide shutters were open all the time):

  • t = 0, start of the detector data file.

  • t = 7.7 s, start of the 3 s proton beam pulse (longer pulses were not allowed at the time of the here described measurements due to regulatory limitations).

  • t = 10.7 s, end of the proton pulse.

  • t \(\simeq \) 10.7 s, source vessel flaps close approximately at the end of the proton pulse.

  • during and after the proton beam pulse the external storage vessel is filled for 8.6 s with shutter 1 open and shutter 2 closed (this filling time was optimized beforehand for a maximum number of stored UCN).

  • t = 19.3 s, shutter 1 closes.

  • t = 20.7 s, i.e. 1.4 s later, the main flaps of the UCN storage vessel open and for 110 s the UCNs can fall down towards the solid deuterium vessel where they are absorbed. Hence, the storage vessel and connected guides are quickly emptied. The UCN count rate in detector South drops rapidly after opening the flaps and reaches the background level of \(\ll \) 1 Hz after about 100 s. The storage-time constant with open flaps is approximately 6.0 s.

  • t = 130.7 s, the storage vessel flaps close again.

  • t = 149.3 s, after a storage time of 130 s, one shutter of the external storage vessel opens, releasing the stored UCNs. When shutter 2 opens, a reference measurement of the stored UCNs is done. When shutter 1 opens, a transport measurement to beamport South is done. The detector behind the closed shutter 2 measures the background simultaneously. After traversing the source UCN guides and the source storage vessel, a fraction of the UCNs reaches the detector at beamport South. The observed number of UCN counts with respect to the time after the beam pulse is shown in Figs. 2 and 3 for both beamports. One can observe that the arrival peak of the UCNs after opening the external storage bottle is well separated from the UCN production peak, hence the cleaning of the storage vessel worked well.

  • t = 330 s, all shutters are reset into the initial position, shutter 1 open, shutter 2 closed, storage vessel flaps open.

  • t = 360 s, next proton pulse.

Fig. 2
figure 2

Sum of UCN counts of 21 measurements opening the external storage bottle towards the UCN source and 20 measurements opening towards the external detector at beamport West-1. The counts detected by the two detectors (a, c in Fig. 1) are overlayed in the time spectrum. The red and green lines represent the ping-pong signal measurements at beamports South and West-1, respectively, and the blue and magenta lines represent the corresponding background counts at the opposite beamports. (a) Few UCNs produced in the 5 ms long pilot beam kick. (b) Neutrons passing through closed shutters into the detector at beamport West-1 during the proton beam pulse and shortly after it (magenta). (c) Region indicating the background level in detector West-1. (d) Quickly decreasing UCN count rate at beamport South while storage vessel flaps are open (blue). (e) UCN counts in detector West-1 (reference measurement) after opening shutter 2 (green). (f) UCN counts measured at beamport South (ping-pong) after opening shutter 1 (red). The polarizing magnet was off

Fig. 3
figure 3

Zoom into the region of interest of Fig. 2. The first 40 s after opening the shutter of the external storage vessel are shown. The arrival time difference of about 4 s between the first UCNs detected in the directly connected detector at beamport West-1 (green line (e)) and the first UCNs detected after traversing the source at beamport South (red line (f)) is well visible. Background counts in one detector were measured when UCNs were emptied towards the other side. The background level is comparable to the one measured when the UCN source is not operating

Table 1 Results for the ping-pong measurements. The fraction of UCN counts at beamport South with respect to UCN counts at beamport West-1 and the same fraction corrected for detector efficiencies are given. Standard deviation errors are used in order to cover small non-statistical fluctuations. The number of repetitions (rep.) is given separately for signal measurements (opening shutter 1 towards beamport South) and reference measurements (opening shutter 2 towards the detector at beamport West-1). Values for the simulated fraction are explained in Sect. 3

Figure 3, a zoom of Fig. 2, shows the UCN counts for times larger than 150 s, i.e. after the release of the UCNs towards beamport South. One can see that the storage time of 130 s was long enough such that all UCNs were drained from the source storage vessel before the external vessel was opened again. One can also see the time difference of about 3.5 s between the UCNs arriving in detectors South (e) and West-1 (f) in the measurements, when emptying the external storage volume to the respective side. This corresponds to the traversing time through the source system. The different profiles of the UCN counts are caused by the different UCN path lengths, together with the time-of-flight spread from the spectrum, the geometry and wall-scattering during transport through the guides and the passage through the source storage vessel. The slope in the count rate of the detector at beamport West-1 reflects the emptying time of the external storage vessel. All measurements are done with a proton beam pulse repetition time of 360 s to ensure that all UCNs are drained from the entire system.

The big and small Cascade detectors have different detection efficiencies, due to their difference in size, different connection to the UCN guide, and different aluminum foils serving as entrance window, which can have different transmissions [23]. This resulted in different detection efficiencies, depending also on the time of UCN storage in the external storage bottle.

With detectors directly attached to the external storage bottle at beamport West-1, we measured their relative detection efficiencies, \(\epsilon \), in similar conditions, i.e. only separated by the time it took to unmount one and mount the other detector. We found a relative detection efficiency of the small to the big detector of \(\epsilon = 0.53\pm 0.01\) after 130 s storage in the external storage vessel. It is important to compare after the same storage time as in the measurement, as the UCN velocity spectrum gets slower with longer storage times and the detection efficiency depends on velocity.

2.1.4 Results and discussion

The different detection efficiencies were taken into account when we calculate the corrected fraction, R of UCNs as

$$\begin{aligned} R =\frac{N_\text {South}}{N_\text {West-1}} \times \epsilon , \end{aligned}$$
(1)

where the counts \(N_\text {South}\) (ping-pong) and \(N_\text {West-1}\) (reference) are evaluated for the entire time interval when shutter 2 is open, i.e. 149–330 s, and \(\epsilon \) is the measured ratio of detector efficiencies.

The corrected fraction of UCNs reaching the detector at beamport South is \(0.135\pm 0.011\) with the polarizing magnet off, and \(0.093\pm 0.006\) for a field strength of 5 T, where the errors stem from the standard deviation of counts per pulse and reflect the small fluctuations in the yield of the UCN source. Results for all magnetic field settings as well as the number of repetitions for both ping-pong signal and reference measurements are given in Table 1. In the reference measurements the detector at beamport South measured the background for the transmission measurement, and vice versa.

The UCN transmission of the safety window in the center of the magnet decreases with higher field-values as expected, as UCNs with the “right” spin state are accelerated by the magnetic field (‘high field seekers’) and pass, while UCNs with the “wrong” spin state (‘low field seekers’) are decelerated, and can only pass if their kinetic energy is higher than the repelling potential of 60.3 neV/T. The polarizing magnet can fully polarize the UCN beam, because the maximum magnetic field-strength of 5 T results in a potential barrier of 300 neV for the “wrong” spin state that is higher than the Fermi potential of all guide walls (about 220 neV). However, the effective transmission rate of the magnet, taking into account the vacuum safety window made of a 100 mm thick AlMg3 foil, mounted at the point of highest magnetic field in the center of the magnet, does not decrease to 0.5. This is because high-field seeking UCNs are accelerated and hence have a higher transmission through the foil.

Fig. 4
figure 4

Corrected fraction of UCNs detected at beamport South for different magnetic-field values of the polarizing magnet at beamline South, between 0 and 5 T. Filled squares are from the full simulation (see Sect. 3). The weighted mean between measurement and simulation for zero magnetic field is 0.147, and was used to normalize the corrected fractions as seen on the right hand side

The measured and corrected fractions of UCNs with respect to the magnetic field strength in the polarizing magnet are shown in Fig. 4. The observed magnetic field dependence is a result of two effects. On the one hand, with increasing magnetic field, less UCNs with the “wrong” spin can pass and the corrected fraction decreases. On the other hand, up to 1 T fields, an increasing number of “good” spin UCNs receives enough energy boost to be transmitted through the potential barrier of the AlMg3 safety foil (54 neV). For UCNs with kinetic energies below the optical potential of the bottle (220 neV), 3.7 T is sufficient to fully polarize them. Due to 130 s storage, the average kinetic energy of the UCNs is well below the optical potential, thus the polarization is completed at magnet fields lower than 3.7 T, as visible in Fig. 4.

Fitting the time distribution of the UCN counts from the external storage bottle of the reference measurement, see Fig. 3, yields an emptying time constant of 3.08 ± 0.02 s. Fitting the rate of UCNs detected at beamport South after traversing the source, excluding the rising edge, yields a time constant of 35.0 ± 1.4 s. This is compatible with measurements of the emptying time constant of the UCN source storage vessel with both beamports South and West-1 opened, at times larger than 150 s after the proton beam pulse, which is 35.8 ± 0.2 s.

As additional input for the simulation we also measured the UCN transmission through the AlMg3 foils from the same batch as the guide safety windows (marked ‘e’ in Fig. 1) installed in a similar geometry in the same setup after 130 s of storage. The result was 0.70 ± 0.03 for the integral kinetic energy spectrum.

Fig. 5
figure 5

Setup with the standard storage bottle elevated by 1200 mm above beamport West-1

Fig. 6
figure 6

The setup for the storage measurement was attached to beamport West-1 replacing the short guide and detector in Fig. 1 after shutter 2. There, a crank-shaped guide and the standard storage bottle including shutter 3, shutter 4 and the detector were mounted

2.2 UCN storage bottle measurements at various heights

2.2.1 Motivation and measurement principle

In a second experiment we conducted measurements of stored UCNs in a stainless steel UCN storage bottle with fast shutters (opening and closing times of less than 300 ms and less than 100 ms, respectively), which was built to compare UCN densities at various UCN sources [11] and hence was transportable. We performed measurements to determine the UCN density at different heights above beamport West-1. One goal was to find the optimal height with maximal UCN density. Another goal was to derive information about the UCN spectrum itself. The storage bottle, as “standard volume”, was characterized in detail in [11, 25], and hereafter will be referred to as “standard storage bottle”. The idea behind varying the height of the standard storage bottle is to adapt the UCN energy spectrum delivered by the UCN source to its storage properties. At beamport West-1, the energy spectrum is cut off at 54 neV at the lower end by the AlMg3 vacuum safety window located approximately 530 mm upstream of the beamport shutter. As the maximal storable UCN energy is given by the neutron optical potential of the surface material of the standard storage bottle, such a lower cutoff effectively limits the phase space of UCNs that can contribute to the UCN density. A rise in height shifts all UCN energies to lower values due to gravity, 102.5 neV per meter rise, and thus can compensate for this lower energy cutoff. If UCN losses in the guides between the beamport and the elevated standard storage bottle are low, the net density inside the latter can be increased.

2.2.2 Setup

The \({\sim 31.4}\,\hbox {L}\) standard storage bottle, made from a cylindrical stainless steel tube with inside diameter of 200 mm and a length of 1000 mm, could be mounted at various positions and heights, as shown in Figs. 5 and 6. A crank-shaped UCN guide made from electropolished stainless steel tubes was used to connect the standard storage bottle to the beamport. It consisted of two \({45}^{\circ }\) bends and a 2 m long straight tube. By rotation of the second \({45}^{\circ }\) bend around the first \({45}^{\circ }\) bend, heights in the range \(-50\) mm to \(+1700\) mm with respect to the beamport could be selected with only one set of neutron guides. The inner diameter of all parts was 200 mm with 2 mm wall thickness. They were specified as DIN 11865/11866 hygiene class H3, but in addition were electropolished to reduce the already low surface roughness.

A sketch of the setup is shown in Fig. 6 along with the additional shutters 3 and 4. The small Cascade detector was mounted on an L-shaped tube with 100 mm inside diameter, made of acrylic glass, behind shutter 4. This NiMo-coated UCN guide allowed a 1m fall of UCNs in order to increase their energy accordingly and hence increase transmission through the aluminum entrance window of the detector.

2.2.3 Measurements

The measurements were performed over a period of several days and thus the UCN source performance changed during this time, e.g., due to changing proton current or sD2 surface degradation [21]. In order to compensate for these changes, the measurements were scaled such that the counts measured simultaneously at beamport West-2 would match the value of \({2\times 10^{6}}\) UCNs/pulse, an average value measured at beamport West-2 during this period. In addition, in Ref. [21] it was found and explained that the ratio of count rates between beamports West-1 and West-2 is constant for a certain integrated beam current on target after conditioning and then decreases linearly over time as visible in Fig. 8 of Ref. [21]. This behavior was parametrized and used as correction for the West-2 normalization, however with an assumed large absolute error of up to 0.05 on the correction factor. In most of the cases, measurements were repeated three times at a specific height. Proton beam pulses of 5.4 s length every 300 s, the longest ones allowed at the time of these measurements, were used with a proton beam current of 2.2 mA. A 1 m guide connecting beamport shutter 1 and shutter 2, namely the storage bottle from the ping-pong measurement described in Sect. 2.1, were part of the beamline at the time of the measurements. Shutter 1 stayed always open during the storage measurement. Shutter 2 closed in a storage measurement at the same time as shutter 3 at the start of the storage period in order to minimize the number of UCNs leaking into the storage bottle. In order to determine the number of leaked UCNs, we performed leakage measurements during which shutter 3 stayed permanently closed, while the other shutters were operated like in a storage measurement.

Fig. 7
figure 7

UCN counts after \(t_s = 2, 20\) and 50 s of storage in the standard storage bottle as measured at various heights above the beamport. The full symbols represent the measured data and the open symbols the simulation (MC), see Sect. 3. The counts were normalized as described in the text

Fig. 8
figure 8

Corrected UCN counts (full symbols: measurement; open symbols: MC simulation) at various heights (H) above beamport West-1 versus storage time. The lines are one-exponential fits to the measurements with indicated storage-time constants, \(\tau \)

Table 2 Measured counts per proton pulse at the given height of the standard storage bottle above the beamport West-1. The storage time was 2 s. The correction factor (Corr.factor) compensated the decrease with time of the UCN source performance after conditioning [21]. The UCN density was calculated as described in the text

2.2.4 Results and discussion

The height dependence of the UCN density measured after storage times of 2 s, 20 s, 50 s is plotted in Fig. 7. The corresponding storage curves can be seen in Fig. 8. The detected UCN counts after 2 s storage and the corresponding corrections are compiled in Table 2. As mentioned above, the leakage counts were measured at every height and subtracted from the counts of the regular measurement and then normalized and corrected with the West-2 counts obtained in the same proton beam pulse.

The elevated height was measured from the bottom edge of the UCN guide at the exit of shutter 2 to the bottom of the UCN guide at the entrance of the standard storage bottle at shutter 3. UCN densities between \({6}\,{\hbox {UCN}/{\mathrm{cm}}^3}\) and \({15}\,{\hbox {UCN}/{\mathrm{cm}}^3}\) were measured after a 2 s storage time. The simulated values peak at a height of around 800 mm, suggesting that the UCN density reported in Ref. [11], measured at 400 mm was not optimal. The counts and densities given in Table 2 were not corrected for detector inefficiency and UCN transmission of the crank-shaped guide, and not extrapolated to zero storage time. The values given here were regularly achieved after longer source operation periods.

The storage-time constant in any storage bottle depends on the kinetic energy spectrum of the UCNs. This spectrum in turn depends on the elevation of the volume above the beamport, since the UCNs are slowed down by gravity. This implies lower bounce-rate and thus smaller losses. The storage-time constants obtained from discrete storage times were confirmed using the leakage rate of UCNs through shutter 4 during the storage measurements of times up to 100 s and fitting with a single-exponential function.

Figure 8 summarizes the storage curves obtained at various heights, applying the described normalization method. The legend contains the storage-time constants, \(\tau \), from an exponential fit to the measurement. We use only a single exponential fit to the data in order to demonstrate the expected behavior that, at a higher position of the standard storage bottle, the average UCN energy is smaller. The storage-time constants at 1200 and 1700 mm heights agree within errors, indicating no relevant change of the spectrum.

The UCN transmission of the crank-shaped UCN guide was measured in storage mode by comparing the horizontal storage measurement to a storage measurement without the crank-shaped guide. At the height of the beamport, a transmission of \(0.72\pm 0.02\) was found for different storage times between 2 and 20 s.

3 Further analysis of the experimental results by Monte Carlo simulations

The MCUCN code used in this work was developed at PSI. The code and its physical parameters are described in detail in [26]. The simulation model of the UCN source volume and beam guides was benchmarked with a first set of test experiments as reported in [16]. For a better overview, we give here the list of experiments that were considered in the new benchmark of the model: (i) ping-pong (Sect. 2.1), (ii) time spectra from direct emptying of the UCN source vessel from reference [16], (iii) UCN storage with NiMo-coated bottle reported in Table F.8 of [23], (iv) standard storage bottle as a function of height (Sect. 2.2), (v) dedicated wall loss measurements [27], and (vi) transmission through AlMg3 foils for the safety windows as reported in [28] and confirmed in measurements at PSI, see Fig. 28 in [16].

Experiments (i)–(iv) were used to determine the wall loss coefficient, \(\eta \), the ratio of imaginary and real parts of the optical potential, and the probability of Lambert diffuse reflections [1], \(p_{diff}\) in the beam guides as free parameters. Results reported in (v) were used as a complementary constraint on the wall loss coefficient. The transmission loss in AlMg3 from experiment (vi) was used as an input parameter.

We need two independent model sections for the simulation of the two measurement setups described in the previous chapters. Both are added after the beamport in separate simulations, attaching them to the first part of the MCUCN model that includes the entire system of UCN source and its UCN guides. On the one hand, the coating parameters of the guides up to the beamports − constrained from the ping-pong experiment − influence the energy spectrum of the UCNs which can be stored in the second experiment, with the standard storage bottle placed at various heights. On the other hand, this energy spectrum will determine the transmission of UCNs which is detected in the ping-pong experiment. Therefore, in the simulations we performed several iterations in scanning the parameter space aiming to minimize the deviation between measured and simulated UCN counts.

Fig. 9
figure 9

MC scans of the relative deviation from experiment in the \(\eta _{\text {source guides}}-p_{\text {diff,source guides}}\) parameter plane of the beam guides combining the cases polarizer magnet off and on. The color scale shows the deviation in 1\(\sigma \) unit, the 2\(\sigma \) second darkest border is indicated

3.1 Simulation model of the ping-pong measurement

The MC simulation of the ping-pong measurement followed the same steps as taken in the experiment: 8.6 s filling of the external storage volume, 130 s of UCN storage, cleaning the source volume via the main flapper valves, and counting of UCNs released after storage towards the detector at beamport South. In the simulation model the reference counts were simulated by opening shutter 2 towards the big Cascade detector at beamport West-1 and using this to fit the model parameters to best match the corrected fractions from the measurement listed in Table 1.

The time-dependent fraction of the opened area of the two UCN shutters of the external storage vessel [23, 25] was implemented in the simulation model. The simulated opening function reproduced the measured one well. We set the closing time profile of the flaps in the SV according to mechanical measurements, and kept it constant in all simulations mentioned in this paper. Furthermore, the field of the polarizing magnet was simplified to a rectangular potential profile along the beam axis located at the position of the safety window, as justified in [16].

The parameters of the source storage vessel were set to the values obtained in [16]. UCN depolarization on the walls was assumed to be irrelevant upstream of the polarizer magnet and negligible in the short guide section between polarizer and detector, and thus set to zero. Changing the fraction of Lambert diffuse reflections in the source storage vessel in a range 0.1–0.5 had no discernible influence on the following results. The simulated transmission efficiency of the UCNs propagated from beamport West-1 to beamport South shows a strong dependency on two parameters: the loss-per-bounce parameter \(\eta _\text {source guides}\) and the Lambert diffuse fraction of reflection in the two UCN guides, \(p_\text {diff,source guides}\).

We performed MC scans in the 2D parameter space, see Fig. 9. The runtime of one configuration lasted several hours, thus we calculated a grid of parameters, and interpolated with triangular interpolation. The goodness of the MC fit was estimated by calculating the quadratic deviation from the measured counts in detector South and detector West-1. This deviation was expressed in units of the square root of the quadratic sum of the errors from the simulation and measurement (1\(\sigma \)). The result is shown in Fig. 9 combining the cases with polarizer magnet off and on quadratically. The color scale shows the deviation in units of 1\(\sigma \).

We identify in the 2D plot a linearly-shaped valley displaying a linear anti-correlation between the loss parameter and the fraction of diffuse reflections.

A second constraint was obtained from a very similar parameter scan in which we fitted the emptying time-profile in detector South in a supplementary measurement to ping-pong, see Figs. 10 and 11. This was done similarly as in [16] using two time constants, \(\tau _1\) and \(\tau _2\), separately for two consecutive time ranges, see rectangles in Fig. 10, where we expect only UCNs, i.e. neutron energies smaller than 250 neV (see Fig. 16) but still have sufficient statistics. In this work we generated an initial energy spectrum from the sD\(_2\) moderator by using a free parameter, \(\alpha \) as exponent: \(P(E)dE\propto E^{\alpha } dE\), in contrast to a linear spectrum (\(\alpha =1\)) as assumed in Ref. [16]. This can be motivated by a smaller extraction efficiency for the slowest UCNs due to for example back-reflections expected at crack walls in a polycrystalline sD\(_2\).

Fig. 10
figure 10

Measured and simulated time profiles of UCN counts observed with the big Cascade detector at beamport South. In the simulation \(\alpha =2.7\) for the initial spectrum. The rectangles indicate the fit intervals in which the time constants, used in the comparison, are determined

Fig. 11
figure 11

MC-scan obtained from fitting the time profile of UCN counts observed with the detector at beamport South (Fig. 10). \(\alpha =2.7\) is set for the initial spectrum. The color scale shows the deviations in 1\(\sigma \) unit, the 2\(\sigma \) second darkest border is indicated

The combined results from the previous constraints are shown in Fig. 12. This resulting parameter constraint can be overlapped with a third one from the measurement of the loss parameter for NiMo (85/15 weight percent) coatings from Ref. [27], \((2.0\pm 0.4)\times 10^{-4}\). There we added \((1\pm 1)\times 10^{-4}\) from a rough estimation of perfectly absorbing gaps at the guide flanges, which cannot be excluded. The estimation of 100% absorbing gaps and its uncertainty is based on mechanical measurements after guide installation at the UCN source, consistent with analysis results in Ref. [23].

The violet area in Fig. 12 indicates the deviations around \(p_\text {diff,source guides} = 0.05\), where all three constraints overlap within 1\(\sigma \). This relatively high value can be explained by the non-ideal roughness of the stainless steel guide sections consisting of about 20% and 25% of the full flight path in the UCN guides South and West-1, respectively. The loss parameter for the NiMo storage bottle, as an independent parameter in the iterations, was estimated to be around \(5.5\times 10^{-4}\), effectively including gaps from the shutters and pin holes in the coating.

Fig. 12
figure 12

Combination of the 2\(\sigma \) regions separate from (i) the ping-pong (Fig. 9) and (ii) the direct emptying (Fig. 11) represented by the contours of the aforementioned constraints. The horizontal lines at \((3\pm 1)\times 10^{-4}\) indicate the value and its uncertainty obtained from [27] but adding a contribution from possible gaps along the guides (see text). The violet spot indicates the region where all three constraints overlap within their 1\(\sigma \)

In a next set of simulations, the count fractions in detector South as a function of the magnetic field in the polarizer were compared to the measurements. The results were compiled in Table 1 and plotted in Fig. 4. The simulated values were obtained by using the final fit parameters: a fraction of diffuse reflections of 0.05, a loss parameter 3\(\times \)10\(^{-4}\) and an exponent \(\alpha =2.7\) in the initial energy spectrum of UCNs exiting the sD\(_2\), obtained in the parameter fit discussed in Sect. 3.2. The simulation fits the measured data sufficiently well.

As a cross-check of the ping-pong simulation results, independent of the MC fitting procedure, we compared the measured and simulated time-profiles in the ping-pong experiment. For this we used the final fit parameters. The simulated peak in the detector at beamport South, shown in Fig. 13, is located about 2 s prior to the measured peak position. This is probably due to the fact that on a short time-scale below 25 s, UCNs experience only a small number of diffuse reflections. Thus the details of the diffuse reflection model are important. In this short time range, utilizing the Lambert model that implies “memory loss” for the trajectories after a single diffuse reflection, instead of e.g. a smearing of the specular angle of reflection, seems to be less appropriate. At times considerably larger than the flight time between two diffuse reflections (about 2 s assuming a fraction of diffuse reflections of 0.05), we obtain a close match between the emptying time constants from simulation and measurement: \(38.6\pm 0.4\) s simulated, and \(39.6\pm 0.7\) s measured.

The transmission of UCNs through AlMg3 foils for the safety windows was measured as reported in [28]. We used the loss factor obtained in [28] as input parameter for the simulations, see Table 3. However, we also checked whether the simulated UCN transmission through the foil after 130 s storage time using the loss factor from [28] was consistent with a similar measurement. In the simulation we obtained a value of \(0.60\pm 0.01,\) which is 14% away from the measured transmission. The latter was \(0.70\pm 0.03,\) see Fig. 3–13 in Ref. [29]. The difference may come on one hand from the limited accuracy of the simulation (using a limited number of effective parameters) and on the other hand from the reproducibility in the quality of aluminum foils.

Fig. 13
figure 13

Observed and simulated UCN time spectra in the ping-pong measurement with the big Cascade detector at beamport South. The green and blue labels indicate the single-exponential time constants of the measured and simulated data, respectively

3.2 Simulations of the UCN storage experiment at various heights

In the MCUCN simulation model of the storage bottle measurement at various heights we reproduced the full storage measurement procedure, including setting the height above the beamport by rotation of the crank-shaped UCN guide, according to details described in the experimental section. We used separate parameters for this setup starting at the beamport with the stainless steel guide bend, and the source part upstream of the beamport with parameters determined in the ping-pong measurement.

Since we were interested in simulations of relative counts, the vertical detector arm connected by a 90 deg bend to the standard storage bottle was simplified in the model to an ideal UCN counter (without an aluminum foil) just after the diameter-reduction piece. A detailed model of the L-shaped tube would have needed additional uncalibrated parameters e.g. for diffuse reflections and gaps. We assumed a negligible change in the detection efficiency of the measurement at different heights thanks to the about 1 m vertical acceleration of the UCNs before the detector foil.

The simulated height dependence of the UCN density after 2 s, 20 s, and 50 s of storage is shown in Fig. 7, displaying for the standard storage bottle a flat optimum around 800 mm at 2 s storage time. The simulated storage-time dependence of the UCN counts as a function of the height is shown in Fig. 8. In both figures all curves have a common factor between measured and simulated counts, obtained from the fit of the simulations to the 2 s storage measurement shown in Fig. 7.

Fig. 14
figure 14

Deviation between the measured and simulated data obtained at 2 s storage time at four different heights (Fig. 7), expressed in \(\chi ^2_{\text {red}}\), as a function of the spectral parameter \(\alpha \). The dotted line serves as guide to the eye, the horizontal lines indicate the 68 and 95% CL, respectively

Table 3 Parameters of the coatings used in the simulations: optical potential (\(V_{\text {F}}\)), loss parameter (\(\eta =W/V_{\text {F}}\)), fraction of diffuse (Lambert) reflections (\(p_{\text {diff}}\)), and attenuation constant of the material (\(\varSigma _{\text {atten}}\)) for 1 m/s. These numbers represent (i) theoretical values [1] (calc.), (ii) measurements discussed in this paper and in [27, 28] (meas.), (iii) simulations benchmarked with measurements in this work (meas. + MC), (iv) geometrical estimations of gaps (gaps.), and (v) rough estimations with a low dependency of the outcome (low dep.)

The fit parameters and their uncertainties for the stainless steel walls and the spectral exponent, \(\alpha \), introduced in Sect. 3.1, are obtained from several iterations comparing to the storage measurements at various heights (see summary of all material parameters in Table 3):

  • a loss parameter for steel, \(\eta =W/V_{\text {F}}=(3.4\pm 0.5)\times 10^{-4}\), along with an energy-independent loss-per-bounce probability \((3.0\pm 0.8)\times 10^{-4}\) due to gaps;

  • an optical potential of \(174\pm 5\) neV for steel i.e. about 10 neV lower than the literature value in Table 9.2 in [30], but within the range for possible different steel alloys and measurement uncertainties;

  • in order to reproduce the measured transmission of the crank-shaped guide, \(0.72\pm 0.02,\) the parameter for diffuse reflections, \(p_{\text {diff}}\) is set to 0.40 in these guide sections;

  • an exponent \(\alpha =2.7\pm 0.2\) for the initial energy spectrum of the UCNs at the surface of the sD\(_2\) moderator, obtained via sampling \(\alpha \) as shown in Fig. 14 to simultaneously fit the four data points (four heights) at 2 s storage time in Fig. 7. The 68% CL was estimated using the Fisher method (F-test) for four data points and one fit parameter [31], yielding the quoted uncertainty of \(\pm 0.2\). The 95% CL is also indicated.

From Figs. 7 and 8 we conclude that the simulation model reproduces the distribution of the measured data. The minimal \(\chi ^2_\text {red}\approx 4\) in Fig. 14 indicates a 2\(\sigma \) deviation between simulation and measured data, where \(\sigma \) is the square root of the quadratic sum of errors from the measurement and simulation. The relative deviation between measured and simulated data is mostly below 18%. The deviation at longer storage times is larger, however, still indicates a close qualitative agreement. We remind here that the simulation model is based on a reduced number of global parameters, see calibrated parameters in Table  3, and thus does not take account of each individual section, the local variation of surface quality and the exact mechanism of diffuse reflections. Nevertheless, the simulations closely reproduce the measurements.

3.3 Applications of the MCUCN model of the PSI UCN source

By comparing the MCUCN simulation model to a series of experimental data, we were able to reproduce various measurements within about 2\(\sigma \) deviation and to constrain the loss and diffuse reflection parameters for guides South and West-1 between the source vessel and the beamports, demonstrating that the UCN optics parameters are in a reasonable range. For the energy spectrum of the UCNs generated at the sD\(_2\) surface we obtained in this simulation analysis a function \(P(E)dE\propto E^{2.7\pm 0.2}dE\), which we used instead of the textbook distribution assuming linear dependence. Further work is planned in order to improve our model of diffuse reflections to better match the experimental data at short flight times.

Based on the benchmarks presented in the previous sections, see calibrated parameters in Table  3, the MCUCN model of the PSI UCN source can be used to predict the neutron density in the experiments assuming typical parameters for the experiment volume. To this end, a conversion factor between the number of sampling trajectories in the simulation and the real UCN counts has to be obtained. This can be done by comparing the simulated and measured arrival-time-spectra at beamport West-1 in direct detection mode, see Fig. 15. The conversion factor is then the scaling used to match the simulated curve to the measured one. We do this in a range of arrival times in the detector larger than 12  s, i.e. 4 s after the end of the proton pulse, once the spectrum is cleaned from neutrons faster than UCNs present mainly during the proton beam pulse. The conversion factor is a function of four input values: (i) the maximal UCN energy generated at the sD\(_2\) surface, (ii) the proton pulse length and beam current, (iii) the number of generated trajectories, (iv) the measured counts at the beamport West-1, which depends on the state of the sD\(_2\) [17, 21]. The conversion factor obtained at the beamport was found to be compatible with the simulation of the measurements of the UCN density in the standard storage bottle within 15%. Hence we take this value as the uncertainty on the predictions of the UCN yield at the beamport. The fit quality in Fig. 15 for arrival times in the detector below 12 s, i.e. for a region with many neutrons above the UCN energy, depends on the parameter of diffuse reflections in the source storage vessel (set here 50%), which otherwise had no influence on the benchmark procedure when only considering the UCN energy range. This means that faster UCNs that undergo multiple reflections at low angles, have a chance to be directed into the UCN guides, and to propagate further at low reflection angles to the beamport. This arrival-time range below 12 s, however, is not reliably reproduced by the Lambert-model for diffuse reflections.

Fig. 15
figure 15

Time spectrum of UCN counts used for the conversion of simulated sampling counts into real UCN counts. The vertical line at 12 s indicates the lower end of the time interval which was considered to fit the simulation to the data. The proton pulse was on for 8 s

Fig. 16
figure 16

Simulated kinetic energy of UCNs at the beamport versus arrival time in the detector. A cleaning effect removing higher energy neutrons is visible. The insert is a zoom-in to the region with the highest counts displayed in a linear scale. Two regions can be discerned: times below 12 s when the fastest neutrons can arrive, and times after 12 s (4 s after the 8 s long proton pulse) when the spectrum almost only consists of UCNs

Fig. 17
figure 17

The kinetic energy spectra of UCNs calculated after the detector window. Black line: maximal arrival times of 12 s. Blue line: minimal arrival times of 12 s. Green dashed line: case of perfect transmission i.e. the spectral profile of neutrons exiting the sD\(_2\) moderator

Fig. 18
figure 18

Simulated percentage of neutrons starting at the sD\(_2\) arriving in the detector (including the detector window) as a function of kinetic energy at the height of the beam axis. The black line represents all the transmitted neutrons independent of the arrival time. The red and green lines represent the fractions arriving before and after 12 s in the detector

Table 4 Localization of UCN losses in the various components of the MCUCN model. The fraction of the UCNs lost over a cycle was calculated for 200 neV at the beam axis and for the interval 50–300 neV (compare to spectra in Fig. 17) relative to the initial number of UCNs, \(N_0\), started at the sD\(_2\) surface during the pulse. The guide shutter South was closed, and the guide shutters West-1 and West-2 were open

The spectrum is cleaned from neutrons above the UCN energy range about 12 s after the start of the proton pulse, as shown in Fig. 16. The spectrum profiles at the beamport for UCNs arriving before 12 s and after 12 s in the detector are displayed in Fig. 17. The kinetic energy was calculated at the level of the beam axis. The green dashed line represents the energy spectrum generated at the sD\(_2\) surface, and was shifted according to the height of the beamport.

It can also be useful for the analysis of the UCN source output to calculate the transmission of UCNs between the sD\(_2\) moderator and the detector as a function of the kinetic energy. Figure 18 shows the simulated energy dependence of the UCN transmission between the sD\(_2\) surface and detection position just after the detector window. The black solid line is the transmission of the UCNs in the entire 300 s period between the pulses, \(N/N_0\), where N is the ratio of the counts integrated over all arrival times and, \(N_0\) is the number of UCNs escaping through the surface of the sD\(_2\). In order to only measure neutrons in the UCN energy range, it can be useful in the data-analysis to cut the time spectrum in the detector at 12 s. Therefore, in the simulation it is reasonable to calculate the part of the transmission that is only related to the UCNs detected 12 s after the start of the pulse, \(N_{t>12\,s}/N_0\). This is represented by the green line in Fig. 18. The black solid line indicates that the maximal transmission, 3 % is reached around 200 neV, a 25% lower value than previously obtained [16], when an effective fraction of diffuse reflections of 0.02 was assumed in the source guides. Table 4 summarizes the location of UCN losses during the 300 s period between the pulses, including the fraction of decayed and detected neutrons. For various components of the UCN optics, we counted the events in the competing loss channels: absorption or up-scattering at reflection or transmission, and beta decay. This number is divided by \(N_0\). The largest part of the UCNs lost is identified during transmission through the lid of the moderator vessel (counted in both flight directions), which is indispensable for safety reasons. The second largest loss is due to UCNs returning to the sD\(_2\) during the 8 s pulse, when the storage vessel flaps must be open. The third largest loss fraction is in the vertical guide between the lid and the central storage vessel flaps (including the support structure), see Fig. 1, caused by exceeding the optical potential barrier at large emission angles.

4 Conclusions

Our UCN transport and storage measurements, and their reproductions in simulations presented here constitute an important part of a series of studies aiming at the characterization of the UCN source components at PSI in view of further improvement of their performance.

Measurements of the UCN transmission from beamport-to-beamport through the guide system and central storage vessel of the PSI UCN source were performed with high statistics. The timing was chosen such that signal and background regions were well separated. The transmitted fraction of UCNs agrees well with detailed Monte Carlo simulations, which were benchmarked along with additional measurements.

A second type of experiment, UCN storage at different heights above the beamport in a standard storage bottle, allowed maximizing the UCN density in this storage bottle by optimizing its vertical position. The UCN density shows a flat maximum at around 800 mm of height. This optimization procedure enabled estimating an approximate function for the energy spectrum of the UCNs exiting the moderator. This obtained function indicates a loss of neutrons in the lowest energy range, as expected, considering the poly-crystalline structure of the sD\(_2\) moderator [32, 33].

By comparing the MCUCN simulation model to experimental data, we were able to reproduce various measurements and extract UCN loss and diffuse reflection parameters for the South and West-1 source guides. This demonstrates that the UCN optics of the PSI UCN source is well understood. The present study provides a guideline for possible improvements of source components.

We could also derive the energy spectrum of UCNs arriving at the detector at the beamport. It is clearly shown that UCNs with energies well above the neutron optical potential of the UCN guides arrive at the beamport despite of the UCN guide length of about 8 m. We have shown that these neutrons disappear within about 12 s and a storable UCN energy spectrum remains.

As main application, the benchmarked MCUCN model presented here was employed to predict the statistical sensitivity of the n2EDM apparatus connected to the UCN source model and to find the optimal height of the double-chamber, assuming typical parameters for the UCN optics of the experiment [34]. Our simulation model will be used to support the planning and analysis of future experiments at the UCN source.