Next Article in Journal
Coherent Beam Combining Using an Internally Sensed Optical Phased Array of Frequency-Offset Phase Locked Lasers
Previous Article in Journal
Theoretical Effect of Coma and Spherical Aberrations Translation on Refractive Error and Higher Order Aberrations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Super-Fast Free-Electron Laser Simulation Code for Online Optimization

1
Shanghai Institute of Applied Physics, Chinese Academy of Sciences, Shanghai 201800, China
2
University of Chinese Academy of Sciences, Beijing 100049, China
3
Shanghai Advanced Research Institute, Chinese Academy of Science, Shanghai 116023, China
4
Institute of Advanced Science Facilities, Shenzhen 518000, China
5
College of Science, Southern University of Science and Technology, Shenzhen 518055, China
*
Author to whom correspondence should be addressed.
Photonics 2020, 7(4), 117; https://doi.org/10.3390/photonics7040117
Submission received: 26 October 2020 / Revised: 17 November 2020 / Accepted: 24 November 2020 / Published: 27 November 2020
(This article belongs to the Section Lasers, Light Sources and Sensors)

Abstract

:
The X-ray free-electron lasers (FELs) have stimulated the growing interest of researchers in different fields. This gives rise to an increasing simulation work of design and optimization of FEL facilities and demonstrations of novel FEL ideas. Most of the multi-dimensional simulation codes in use require large computational resources, while one-dimensional simulation codes can merely give an acceptable description of the FEL amplification process. This paper presents the development of a super-fast time-dependent FEL simulation code, which is mainly designed for seeded FEL and its application on a seed FEL facility. The diffraction factors have been introduced in order to model the effects of radiation field diffraction and drastically simplified the working equations. Meanwhile, a specially designed module for seeded FEL has been added in order to study the laser-electron beam interactions with arbitrarily parameters. The code can also provide a fairly accurate, quasi-real-time assistant tool for online optimization.

1. Introduction

The X-ray free-electron laser (FEL) has been recognized as a unique X-ray source of choice for experts when exploring the structures and dynamics of atomic and molecular systems at femtosecond time scales. It has been widely adopted in the fields of physics [1], chemistry [2], and biology [3], due to its ultra-high intensity and ultra-fast time structure. With growing interests in FEL applications, increasing FEL facilities have been constructed and novel FEL ideas have been proposed in the last decades, leading to a growing demand for FEL simulations.
An increasing number of numerical models and simulation codes of the FEL have been developed since the late 1990s. The commonly used multi-dimensional FEL codes can be roughly categorized as slowly varying envelope approximation (SVEA) simulation codes (GENESIS 1.3 [4], GINGER [5], FAST [6], RON [7], SIMPLEX [8], MINERVA [9]), and particle-in-cell (PIC) simulation codes (Puffin [10]). The SVEA assumes that the radiation field is represented by a slowly-varying amplitude and phase with a fast oscillatory term. The averaging of the field envelope will obviate the need for calculating this rapid sinusoidal oscillation and simplifying the field equation. In contrast, the PIC codes do not average the Maxwell’s equation over the undulator period. Instead, it integrates the Newton–Lorentz equations for the particles and it is considered to be a more fundamental model of FEL physics. It is capable of analyzing effects with a broader bandwidth that cannot be modelled easily in SVEA, but it requires more computational resources.
While these codes have been used successfully to model the FEL process and they have been extensively benchmarked against each other and experiments [11,12,13], nearly all of them are rather time-consuming when optimizing FEL performances with the method of advanced optimization algorithms [14,15]. These methods require performing FEL simulations over ten thousand times, which would take couple of days or even longer when time-dependent results are expected. SIMPLEX is comparatively fast and user-friendly, but it is still somewhat of inconvenient since it is packaged.
Some one-dimensional (1D) simulation codes have been developed in order to reduce computation time (Perave [16], Perseo [17], AURORA [18], and so on [19,20]). Nevertheless, most of them omit significant effects of the diffraction of radiation, leading to an unacceptable increase of FEL power.
In this paper, the development of a super-fast time-dependent FEL simulation code, named FALCON, and its applications on the Shanghai soft X-ray FEL facility (SXFEL), have been reported. The code is especially designed for seeded FEL. The radiation field is calculated by 1D equation with the consideration of diffraction effects. This significantly reduces the computing requirements and it still gives an acceptable description of the FEL amplification process. Another important motivation in this code is to model different FEL schemes. Specifically, the laser-electron beam interaction module enables simulations for various kinds of seeded FEL schemes with arbitrary user-defined laser parameters, such as the incidence angle, transverse, and longitudinal distributions. The time-dependence effects are analyzed using the ’slice’ model and the electron slips one wavelength behind the EM wave while traveling one undulator period.
It should be noted that the primal aim for this simulation code is to provide a fairly accurate, flexible, and computational-time-saving tool that can be used to give guidance on the online optimization of FEL facilities or fast optimization of FEL parameters and to give an estimation of the FEL performance for theoretical researches.

2. Methods and Mathematical Model

2.1. The Initial Particle Generation from Shot-Noise

Macro particles are introduced in order to represent the electron beam in all dimensions of the 6D phase space ( x , y , p x , p y , θ , γ ). For convenience, the transverse momenta are normalized to m c while assuming v z = c .
Although a random distribution would be the most straightforward way to generate initial particles, a loading strategy is typically used to reduce the number of macro particles. It can reduce the computing time while keeping the numerical noise under the acceptable level.
The initial particle phase space is generated by the Hammersley sequences [21]. The electron phase is uniformly generated, while the electron energy and transverse variables are subject to Gaussian distribution by adopting the ’Box-Muller’ transformation [22]. With this method, the correlation between the longitudinal variables, electron phase ( θ ), and electron energy ( γ ) has been completely removed.
In order to correctly simulate the initial fluctuation in the longitudinal position, special care has to be taken for the modification of electron phase θ [23,24,25]. The most common method is to group several macro particles into a beamlet. Subsequently, a small variation in the evenly distributed longitudinal position θ is applied. In this simulation code, the quite loading algorithm is implemented, as in Equation (1)
θ n = θ n , i n i + A n s i n ( θ n , i n i + ϕ n ) .
The indices presentted in θ n on the right side of the equation represent the initial electron phase before introducing the loading strategy. A random shot-noise of its amplitude and phase, for the nth beamlet, is obtained by A n = 2 ln ( x n ) / N and ϕ n = 2 π y n , where x n and y n are independent uniform random numbers and N denotes the total number of electrons.

2.2. The FODO Lattice and Undulator Tapering

Although the full FODO dynamics can be incorporated into numerical simulations, some additional approximations are made in order to simplify the integration process and improve the algorithmic efficiency.
The true dynamics in the FODO lattice can be satisfied by approximating the particle trajectories by the simply harmonic motion for smooth focusing, as implied by the fact that the transverse motion is governed by the second-order differential equations. For this reason, the effect of FODO lattice is approximated by a smooth focusing field whose focusing strength (oscillator frequency) k β equals to 1 / β ¯ x [26], where the β ¯ is the average beta-function that is defined by the FODO structure. Although the electron trajectories under such an approximation can only roughly mimic those of the FODO lattice, it can give quite accurate predictions in terms of FEL radiation characteristics [26]. This is because these radiation characteristics rarely depend on a single electron, but rather on the average features of the entire electron beam.
The undulator tapering is another issue when it comes to the FEL simulations. Linear taper, quadratic taper, and fully customized taper are provided in FALCON.

2.3. Modulator and Dispersion Section

FALCON provides two methods for analyzing the energy modulation: ‘Fast sinusoidal modulation’ and ‘single-particle tracking modulation’. The latter one makes it possible to model the laser-electron beam interaction with an arbitrary incidence angle and field distributions.

2.3.1. Fast Sinusoidal Modulation

The effects of modulation and dispersion section on the phase space are specified as Equation (2) [27]:
p j = p j + A · s i n ( ζ j ) , ζ j = ζ j + B · p j ,
where p j = ( γ j γ 0 ) / σ γ 0 denotes the dimensionless energy deviation of jth particle, ζ j = 2 π θ j is the dimensionless longitudinal coordinate for jth particle, and A = Δ E / σ E and B = ( R 56 ω s σ γ ) / ( c γ 0 ) denote the energy modulation amplitude and dimensionless dispersion strength, respectively.

2.3.2. Single-Particle Tracking Modulation

A special modulator section has been introduced in order to model the laser-electron beam interaction with arbitrary parameters. The energy exchange due to the electron-radiation interaction can be calculated as
d γ d z = e m c 2 β · E s ,
where β and E s are the normalized velocity of the electron beam and the transverse electric field of seed laser, respectively. The instantaneous change of electron velocity that is caused by Lorentz force is
d β d z = e γ m c 2 [ c β × ( B u + B s ) + E s ] ,
where B u and B s are the undulator magnetic field and transverse magnetic field of seed laser, respectively.
The general electric field of seed laser is E s = E x i x + E y i y . The transverse components, E x and E y , can be written as [28]:
E x = E i s i n ( k s ( z c o s ϕ c t ) + Φ x ) , E y = E i s i n ( k s ( z c o s ϕ + x s i n ϕ c t ) + Φ y ) ,
where Φ x = k s ( z 0 c o s ϕ + y 0 s i n ϕ ) , Φ y = k s ( z 0 c o s ϕ + x 0 s i n ϕ ) , and ϕ denotes the oblique incidence angle of the seed laser.
Instead of averaging over the undulator period, each undulator period has been divided into N n steps. Integrating over the entire undulator length with the Equations (3)–(5), various kinds of seeded FEL schemes with arbitrary user-defined laser parameters, such as the incidence angle [28], transverse, and longitudinal distributions (that are especially important for the modulation with few-cycle laser pulses), can be performed.

2.4. Radiation Diffraction

The main three-dimensional (3D) effect that tends to inhibit the FEL gain process over those in one-dimensional (1D) simulation is the radiation field diffraction. Because this code is mainly designed for seeded FEL, a simple algorithm has been implemented to solve this problem in FALCON.
For seeded FELs, the transverse distribution of the radiation field is generally Gaussian. The electric field in phasor notation is given by:
E ( r , z ) = E 0 ω 0 ω ( z ) e x p ( r 2 ω 2 ( z ) ) e x p ( i k r 2 2 R ( z ) i k z + i ϕ ( z ) ) ,
where E 0 denotes the original field amplitude that is calculated by the input power of radiation field, ω 0 is the beam radius, R ( z ) denotes the radius of curvature of the beam wavefronts at z, and ω ( z ) is the beam width at z, which is shown as Equation (7):
ω ( z ) = ω 0 1 + ( z z R ) 2 ,
and z R = π ω 0 2 / λ s is the Rayleigh length of the seeding radiation field.
When the radiation field propagating one integration step size Δ z , no field is generated by electrons and, therefore, the field propagates in free space. The field radius should increase by a factor of χ r , while the amplitude is expected to decrease by a factor of χ a m p . The two factors are equivalent to
χ r = ω ( z + Δ z ) ω ( z ) = z R 2 + ( z + Δ z ) 2 z R 2 + z 2 , χ a m p = E ˜ ( r , z + Δ z ) E ˜ ( r , z ) = ω ( z ) ω ( z + Δ z ) e x p ( r 2 ω 2 ( z + Δ z ) r 2 ω 2 ( z ) ) = 1 χ r Γ ,
where
Γ = e x p ( r 2 z R 2 ω 0 2 2 z Δ z + Δ z 2 ( z R 2 + ( z + Δ z ) 2 ) ( z R 2 + z 2 ) ) .
The bending of the wavefronts is another factor that worth mentioning during the field propagation. A numerical calculation has been carried out based on Equation (6). For typical FEL simulations, the electron beam radius is less than 100 μ m and the FEL Pierce parameter, denoted as ρ , is less than 0.001. Taking the SXFEL as an example, the radiation wavelength and the undulator period are 8.8 n m and 2.35 c m. respectively. The Rayleigh length is 15 m and the FEL gain length, denoted as L g a i n , can be approximated by λ μ / 4 π 3 ρ . The field phase difference between the central and edge of the electron beam at z = L g a i n is 1 . 9 . Normally, the electron beam radius is smaller than 100 μ m and the field phase difference will drastically decrease as the electron beam radius decreases. Various examples have been considered and it is safe to conclude that the field phase difference between the central and the edge of the electron beam after one FEL gain length is smaller than 3 . Therefore, practically, the field phase differences that are caused by the bending of the wavefronts can be ignored in this research.
In FALCON, the factors χ r and χ a m p are involved in modifying the radiation field in every integration step. Such modifications can partially solve the diffraction effects in the FEL process. Figure 1 shows the FEL power gain curves with and without these diffraction modifications under the conditions of different electron beam energies and corresponding FEL wavelengths.
In this figure, the blue lines and red lines represent the FEL power with and without diffraction modifications, respectively. The black stars indicate the saturation points that are calculated by Xie’s formulas [29]. The errors of saturation power and saturation length are approximately 10 % , showing significant improvements as compared to those without diffraction modifications.

2.5. The Working Equations

With the above assumptions, the particle equations are shown as [26]:
d x d z = p , d p d z = k β 2 x , d θ d z = k u ( 1 γ r 2 γ 2 ) k s 2 ( p 2 + k β 2 x 2 ) , d γ d z = e a w [ J J ] γ r m c 2 Re ( E ( x , z ) e i θ ) ,
where x = ( x , y ) is the electron’s transverse position, p = ( p x , p y ) is the electron’s transverse momenta, k u is the undulator wavenumber ( = 2 π / λ μ ), k s denotes the fundamental radiation wavenumber ( = 2 π / λ s ), and the Bessel factor [ J J ] is equal to J 0 ( ξ ) J 1 ( ξ ) with ξ = a w 2 / ( 2 + 2 a w 2 ) .
Additionally, the radiation field equation that is based on SVEA can be derived from Ref. [30]:
( z + 2 2 i k s ) E ( x , z ) = μ 0 c 2 e a w [ J J ] 2 j = 1 N e e i θ j γ j δ ( x x j , z z j ) .
In FALCON, the diffraction effect is modelled, as described in Section 2.4, and the diffraction term, 2 , has been accordingly dropped to simplify the radiation field equation and increase the computation efficiency. Therefore, the radiation field equation is simplified as
d d z E ( x 0 , z ) = μ 0 c 2 I 0 A t r a w [ J J ] e i θ j γ j ,
where I 0 denotes the beam current, A t r is the beam cross section that equals to 2 π σ e 2 , and μ 0 is the vacuum permeability. After each integration step, the amplitude of radiation field has been modified by the diffraction factor, χ a m p . It is worth noting that there is no explicit dependence on t in the differential equation. The time-dependence effects are analyzed while using the ‘slice’ model.

2.6. Validation

Figure 2 shows a comparison of the simulation results based on the self-amplified spontaneous emission (SASE) scheme between FALCON and GENESIS. Table 1 shows the simulation parameters. The electron beam energy is 15 GeV with a relative slice energy spread of 10 4 . The normalized emittance of the electron beam is about 0.3 mm · mrad and the peak current is about 4000 A. The electron bunch length is approximately 60 f s (FWHM). The undulator period is 3 cm with a normalised undulator parameter of 2.178. The FEL radiation wavelength is 0.1 n m.
The emitted pulse energies are about 1.83 m J in GENESIS and 1.47 m J in FALCON at the first saturation points. The difference in the power level of these codes seems apparent. The saturation length of FALCON is shorter than that of GENESIS, while the saturation powers are in line with each other. According to the assumption proposed in Section 2.4, a lack of mode competition process is probably responsible for the shortening of saturation length. Although FALCON is mainly designed for seeded FELs, the longitudinal properties for the SASE mode show good consistency between these two codes. Significantly, the simulation time is approximately 200 times longer in GENESIS 1.3 (more than 4 h) than in FALCON (less than 2 min) while using the same computer (Inter(R) Core(TM) i7-6700 [email protected]).

3. Results and Discussion

3.1. Example Simulations

The echo-enabled harmonic generation (EEHG) [27] is chosen as an example to show the typical simulation capabilities of FALCON. The example is not exhaustive at all. However, FALCON can be easily modified and extended to meet researchers’ various requirements. Table 2 lists the simulation parameters.
The electron beam energy is 840 MeV, with a slice energy spread of about 50 keV. The normalized emittance is 1.5 mm · mrad and the peak current is 800 A. The FEL radiation wavelength is 8.8 n m, which is the 30th harmonic of the seed laser. The seed laser pulse that is used in the simulation is about 1 p s (FWHM), which is much longer than the electron bunch length of about 320 f s (FWHM). The energy modulation amplitudes in the modulator 1 and 2 are chosen to be A 1 = 4 and A 2 = 2 , respectively. The optimized dispersion strengths for the 30th harmonic are found to be B 1 = 16.35 and B 2 = 0.56 , corresponding to R 56 ( 1 ) = 11.58 mm and R 56 ( 2 ) = 0.40 mm , respectively. The undulator period is 23.5 cm with a normalised undulator parameter of 1.012.
The bunching factor at 30th harmonic of the seed is around 12% at the entrance of the radiator. Figure 3 shows the FEL power along radiator, FEL power profile, and spectrum at saturation. The pulse energies at saturation are 108.62 μ J and 118.88 μ J in GENESIS and FALCON, respectively.
For the seeded FEL operation mode, the seed laser should propagate co-axially with the electron beam in the modulator in order to ensure the formation of the desired microbunch. However, the drift of laser incident angle due to the mechanical vibration or the transverse position instability of the seed laser will bring about a small angle between the propagation direction of seed laser and electron beam. Such obliquely incident laser brings not only energy modulations, but also angular modulations [28]. Figure 4a,b demonstrate the transverse divergences ( Δ y ) and energy deviations ( Δ δ = Δ γ / γ ) after the first modulator with incident angle of 1 m rad in the z y plane. Figure 4c illustrates the influences of seed laser incident angle on the bunching factor and saturation power. For simplicity, the vertical laser angular drifts in both modulators are assumed to be the same. It can be seen from Figure 4c that the bunching factor at the entrance of the radiator and the saturation power decrease drastically as the incident angle increases.

3.2. Implementation at SXFEL

The primal target of this simulation code is to provide an assistant optimization tool at the Shanghai Soft X-ray FEL facility (SXFEL) [31], which aims at generating the soft X-ray radiation from a conventional seed laser through the frequency up-conversion scheme. An X-band RF deflector and a dipole magnet have been installed downstream of the undulator section, which provide a diagnostic tool for obtaining the image of time-energy longitudinal phase space of the electron beam [32]. In this section, the experiment and simulation results for the HGHG scheme at the SXFEL have been shown to demonstrate the feasibility of FALCON as an assistant online optimization tool.
The electron beam parameters can be acquired by FALCON through various diagnostic tools in real time. This enables FALCON to provide real-time predictions on the FEL performance and make comparisons between the measurements and simulations in order to analyze the experimental phenomena. The “lasing-off” longitudinal phase space images from the experiment are collected by turning off the seed laser. An example is shown in Figure 5, with the x-axis corresponding to energy and y-axis corresponding to time. The beam current (red line), central energy (black line), and energy spread (orange line) along the time axis can be derived from the image, as shown in the figure. These parameters combined with calibrated time can be used in order to generate realistic electron beam input file for FALCON.
Figure 6 shows one of the possible applications of FALCON. The longitudinal phase spaces on the screen after lasing through the experiment, GENESIS simulations, and FALCON simulations are presented in Figure 6a–c. The induced additional energy spread leaves a conspicuous imprint of the FEL radiation on the longitudinal phase space. Shouldering the main peak, there are two small sidebands that have been observed during the experiment and simulations. By analyzing the real-time simulation results, this part of electron beam developed very strong microbunching after lasing in the radiator, which was overbunched by the following chicane and emitted 266 nm coherent radiation in the downstream magnets. With these phase spaces, the longitudinal proprieties of FEL pulses can be determined by the method that was proposed in Refs. [33,34]. Figure 6d shows the reconstructed and simulated power profiles of FEL pulses. The pulse energies are about 16.22 μ J, 16.58 μ J and 17.71 μ J in experiment, GENESIS, and FALCON, respectively.
It is notable that the way we use FALCON for on-line optimization is not to calculating every single shot. Instead, it plays a useful role in commissioning and operating the FEL machine under specific circumstances. FALCON can help researchers to simultaneously estimate some FEL properties (like pulse energy and spectrum) with the realistic parameters of the electron beam (import from the emittance and longitudinal phase space measurements) and give the correlation analysis. Moreover, FALCON can give some valuable information, even without the specific diagnostics tools. For example, the code can be applied in order to estimate the possible longitudinal phase space after lasing when a combination of the RF deflector and dipole magnet installed downstream the undulator is unavailable. Additionally, FALCON can help the researchers to understand the physics behind the experiment phenomena, such as the sidebands that are discussed above. These can give the operators and researchers more information about the FEL evolution process and the machine commissioning. The fairly accurate simulation results and greatly-improved computing efficiency have made it possible for FALCON to give guidance on the commissioning of the FEL.

4. Conclusions

This paper gives an introduction to a super-fast time-dependent simulation code, named FALCON, and its applications on a seeded FEL facility. A special care has been taken for the evolution of the radiation field envelope. The introduction of the radius factor ( χ r ) and amplitude factor ( χ a m p ) has simplified the field equation and drastically reduced the required computational resources. The special designed modulation section removes the constraints on the laser-electron beam interaction with arbitrarily parameters. The present code is capable of simulating different FEL schemes within several minutes, which is about two orders of magnitude less than the time that is required by GENESIS 1.3. The validation of FALCON against GENESIS 1.3 has shown quite acceptable simulation results. FALCON shows a great potential as a fast optimization tool for FEL studies and machine operations due to the relatively high accuracy and computation efficiency.

Author Contributions

Z.Z. conceptualized the initial idea of the work. L.Z., C.F., X.W. developed the code, performed the simulations and analyzed the main results. L.Z., C.F., K.Z. and Z.Q. conducted the experiment on the accelerator and FEL at SXFEL. L.Z. and C.F. wrote the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (11975300), Shanghai Science and Technology Committee Rising-Star Program (20QA1410100) and National Key Research and Development Program of China (No. 2016YFA0401901).

Acknowledgments

The authors are deeply grateful to Bart Faatz for his valuable comments on the paper. We also thank Weijie Fan, Yujie Lu, Lingjun Tu, Lu Cao and Hao Sun for useful comments and suggestions on the mathematical method.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Young, L.; Kanter, E.P.; Krässig, B.; Li, Y.; March, A.M.; Pratt, S.T.; Santra, R.; Southworth, S.H.; Rohringer, N.; DiMauro, L.F.; et al. Femtosecond electronic response of atoms to ultra-intense X-rays. Nature 2010, 466, 56–61. [Google Scholar] [CrossRef] [PubMed]
  2. Öström, H.; Öberg, H.; Xin, H.; Larue, J.; Beye, M.; Dell’Angela, M.; Gladh, J.; Ng, M.L.; Sellberg, J.; Kaya, S.; et al. Probing the transition state region in catalytic CO oxidation on Ru. Science 2015, 347, 978–982. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Kang, Y.; Zhou, X.E.; Gao, X.; He, Y.; Liu, W.; Ishchenko, A.; Barty, A.; White, T.A.; Yefanov, O.; Han, G.W.; et al. Crystal structure of rhodopsin bound to arrestin by femtosecond X-ray laser. Nature 2015, 523, 561–567. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Reiche, S. GENESIS 1.3: A fully 3D time-dependent FEL simulation code. Nucl. Instrum. Methods A 1999, 429, 243–248. [Google Scholar] [CrossRef]
  5. Fawley, W.M. An Informal Manual for GINGER and its post-processor XPLOTGIN. CBP Tech Note-104 1995, LBID-2141, UC-414. [Google Scholar]
  6. Saldin, E.; Schneidmiller, E.; Yurkov, M. FAST: A three-dimensional time-dependent FEL simulation code. Nucl. Instrum. Methods A 1999, 429, 233–237. [Google Scholar] [CrossRef]
  7. Dejus, R.J.; Shevchenko, O.A.; Vinokurov, N.A. An integral equation based computer code for high-gain free-electron lasers. Nucl. Instrum. Methods A 1999, 429, 225–228. [Google Scholar] [CrossRef] [Green Version]
  8. Tanaka, T. SIMPLEX: Simulator and postprocessor for free-electron laser experiments. J. Synchrotron Radiat. 2015, 22, 1319–1326. [Google Scholar] [CrossRef] [Green Version]
  9. Freund, H.P.; van der Slot, P.J.M.; Grimminck, D.L.A.G.; Setija, I.D.; Falgari, P. Three-dimensional, time-dependent simulation of free-electron lasers with planar, helical, and elliptical undulators. New J. Phys. 2017, 19, 023020. [Google Scholar] [CrossRef] [Green Version]
  10. Campbell, L.T.; McNeil, B.W.J. Puffin: A three dimensional, unaveraged free electron laser simulation code. Phys. Plasmas 2012, 19, 093119. [Google Scholar] [CrossRef] [Green Version]
  11. Biedron, S.; Chae, Y.; Dejus, R.; Faatz, B.; Freund, H.; Milton, S.; Nuhn, H.D.; Reiche, S. Multi-dimensional free-electron laser simulation codes: A comparison study. Nucl. Instrum. Methods A 2000, 445, 110–115. [Google Scholar] [CrossRef] [Green Version]
  12. Biedron, S.; Chae, Y.C.; Dejus, R.; Faatz, B.; Freund, H.; Milton, S.; Nuhn, H.D.; Reiche, S. The APS SASE FEL: Modeling and code comparison. In Proceedings of the PAC99, New York, NY, USA, 27 March–2 April 1999; pp. 2486–2488. [Google Scholar]
  13. Campbell, L.; Freund, H.; Henderson, J.; McNeil, B.; Traczykowski, P.; van der Slot, P. Comparison Between, and Validation Against an Experiment of, a Slowly-Varying Envelope Approximation Code and a Particle-in-Cell Simulation Code for Free-Electron Lasers. In Proceedings of the FEL19, Hamburg, Germany, 26–30 August 2019; pp. 153–156. [Google Scholar]
  14. Zeng, L.; Feng, C.; Gu, D.; Li, J.; Zhao, Z. The beam-based alignment for soft X-ray free-electron lasers via genetic algorithm. Nucl. Instrum. Methods A 2018, 905, 104–111. [Google Scholar] [CrossRef]
  15. Jiao, Y.; Wu, J.; Cai, Y.; Chao, A.W.; Fawley, W.M.; Frisch, J.; Huang, Z.; Nuhn, H.D.; Pellegrini, C.; Reiche, S. Modeling and multidimensional optimization of a tapered free electron laser. Phys. Rev. ST Accel. Beams 2012, 15, 050704. [Google Scholar] [CrossRef] [Green Version]
  16. Emma, C. UCLA PBPL. Available online: http://pbpl.physics.ucla.edu/Computing/Code_Development/Perave (accessed on 15 October 2019).
  17. Giannessi, L. Simulation codes for high brightness electron beam free-electron laser experiments. Phys. Rev. ST Accel. Beams 2003, 6, 114802. [Google Scholar] [CrossRef]
  18. Bajlekov, S.I.; Hooker, S.M.; Bartolini, R. Simulating sub-wavelength temporal effects in a seeded FEL driven by laser-accelerated electrons. In Proceedings of the FEL2009, Liverpool, UK, 23–28 August 2009; pp. 119–122. [Google Scholar]
  19. McNeil, B.W.J.; Robb, G.R.M. Self-amplified coherent spontaneous emission in the planar wiggler free-electron laser. Phys. Rev. E 2002, 65, 046503. [Google Scholar] [CrossRef]
  20. McNeil, B.W.J.; Robb, G.R.M.; Poole, M.W. An improved 1-D model for ultra high power radiation pulse propagating in the helical wiggle free-electron laser. In Proceedings of the PAC03, Portland, OR, USA, 12–16 May 2003; pp. 953–955. [Google Scholar]
  21. Hammersley, J.M.; Handscomb, D.C. Monte Carlo Methods, 1st ed.; Springer: Dordrecht, The Netherlands, 1964. [Google Scholar]
  22. Box, G.E.P.; Muller, M.E. A Note on the Generation of Random Normal Deviates. Ann. Math. Stat. 1958, 29, 610. [Google Scholar] [CrossRef]
  23. Penman, C.; McNeil, B. Simulation of input electron noise in the free-electron laser. Opt. Commun. 1992, 90, 82. [Google Scholar] [CrossRef] [Green Version]
  24. Reiche, S. Numerical Studies for a Single Pass High Gain Free-Electron Laser. Ph.D. Thesis, University Hamburg, Hamburg, Germany, 1999. [Google Scholar]
  25. Fawley, W.M. Algorithm for loading shot noise microbunching in multidimensional, free-electron laser simulation codes. Phys. Rev. ST Accel. Beams 2002, 5, 070701. [Google Scholar] [CrossRef] [Green Version]
  26. Kim, K.J.; Huang, Z.; Lindberg, R. Synchrotron Radiation and Free-Electron Lasers: Principles and Coherent X-ray Generation, 1st ed.; Cambridge University Press: Cambridge, UK, 2017. [Google Scholar]
  27. Stupakov, G. Using the Beam-Echo Effect for Generation of Short-Wavelength Radiation. Phys. Rev. Lett. 2009, 102, 074801. [Google Scholar] [CrossRef] [Green Version]
  28. Wang, X.; Feng, C.; Tsai, C.Y.; Zeng, L.; Zhao, Z. Obliquely incident laser and electron beam interaction in an undulartor. Phys. Rev. Accel. Beams 2019, 22, 070701. [Google Scholar] [CrossRef] [Green Version]
  29. Xie, M. Exact and variational solutions of 3D eigenmodes in high gain FELs. Nucl. Instrum. Methods A 2000, 445, 59–66. [Google Scholar] [CrossRef] [Green Version]
  30. Huang, Z.; Kim, K.J. Review of X-ray free-electron laser theory. Phys. Rev. ST Accel. Beams 2007, 10, 034801. [Google Scholar] [CrossRef]
  31. Zhao, Z.; Wang, D.; Gu, Q.; Yin, L.; Gu, M.; Leng, Y.; Liu, B. Status of the SXFEL Facility. Appl. Sci. 2017, 7, 607. [Google Scholar] [CrossRef] [Green Version]
  32. Ding, Y.; Behrens, C.; Emma, P.; Frisch, J.; Huang, Z.; Loos, H.; Krejcik, P.; Wang, M.H. Femtosecond X-ray Pulse Temporal Characterization in Free-Electron Lasers Using a Transverse Deflector. Phys. Rev. ST Accel. Beams 2011, 14, 120701. [Google Scholar] [CrossRef]
  33. Behrens, C.; Decker, F.J.; Ding, Y.; Dolgashev, V.A.; Frisch, J.; Huang, Z.; Krejcik, P.; Loos, H.; Lutman, A.; Maxwell, T.J.; et al. Few-femtosecond time-resolved measurements of X-ray free-electron lasers. Nat. Commun. 2014, 5, 3762. [Google Scholar] [CrossRef]
  34. Plath, T.; Lechner, C.; Miltchev, V.; Amstutz, P.; Ekanayake, N.; Lazzarino, L.; Maltezopoulos, T.; Bödewadt, J.; Laarmann, T.; Roßbach, J. Mapping few-femtosecond slices of ultra-relativistic electron bunches. Sci. Rep. 2017, 7, 2431. [Google Scholar] [CrossRef] [Green Version]
Figure 1. The free-electron laser (FEL) power gain curves under different conditions. From (af), the electron beam energies are 15 GeV, 13.5 GeV, 3 GeV, 1 GeV, 840 MeV, 620 MeV and the corresponding FEL wavelengths are 0.1 nm, 0.15 nm, 1 nm, 5 nm, 8.8 nm, and 20 nm, respectively.
Figure 1. The free-electron laser (FEL) power gain curves under different conditions. From (af), the electron beam energies are 15 GeV, 13.5 GeV, 3 GeV, 1 GeV, 840 MeV, 620 MeV and the corresponding FEL wavelengths are 0.1 nm, 0.15 nm, 1 nm, 5 nm, 8.8 nm, and 20 nm, respectively.
Photonics 07 00117 g001
Figure 2. Comparison of the SASE simulation results with FALCON (blue) and GENESIS 1.3 (red), both of them are time-dependent simulation results. (left: the evolution of FEL power; mid: longitudinal power profile; right: spectrum at saturation.)
Figure 2. Comparison of the SASE simulation results with FALCON (blue) and GENESIS 1.3 (red), both of them are time-dependent simulation results. (left: the evolution of FEL power; mid: longitudinal power profile; right: spectrum at saturation.)
Photonics 07 00117 g002
Figure 3. The simulation results of (a) the FEL power evolution along the radiator; (b) the power profile; and, (c) the spectrum at saturation. The blue and red lines represent the FALCON and GENESIS simulations, respectively.
Figure 3. The simulation results of (a) the FEL power evolution along the radiator; (b) the power profile; and, (c) the spectrum at saturation. The blue and red lines represent the FALCON and GENESIS simulations, respectively.
Photonics 07 00117 g003
Figure 4. The effect of obliquely incident laser. (a,b) Distributions of the transverse divergences and energy deviations after the obliquely incident laser-electron interaction. The incident angle of the seed laser is 1 mrad in the z y plane; and, (c) the influence of seed laser incident angle on the bunching factor (blue) and saturation power (red).
Figure 4. The effect of obliquely incident laser. (a,b) Distributions of the transverse divergences and energy deviations after the obliquely incident laser-electron interaction. The incident angle of the seed laser is 1 mrad in the z y plane; and, (c) the influence of seed laser incident angle on the bunching factor (blue) and saturation power (red).
Photonics 07 00117 g004
Figure 5. The measured longitudinal phase space without lasing. The black, orange, and red lines represent the centroid energy, energy spread, and current, respectively.
Figure 5. The measured longitudinal phase space without lasing. The black, orange, and red lines represent the centroid energy, energy spread, and current, respectively.
Photonics 07 00117 g005
Figure 6. The result of on-line analysis. (ac) The longitudinal phase spaces after lasing through the experiment, GENESIS simulations and FALCON simulations; (d) The power profiles of FEL pulses for the experimental measurement and FALCON simulations.
Figure 6. The result of on-line analysis. (ac) The longitudinal phase spaces after lasing through the experiment, GENESIS simulations and FALCON simulations; (d) The power profiles of FEL pulses for the experimental measurement and FALCON simulations.
Photonics 07 00117 g006
Table 1. Simulation Parameters for the self-amplified spontaneous emission (SASE).
Table 1. Simulation Parameters for the self-amplified spontaneous emission (SASE).
ParametersValueUnit
Beam energy15GeV
Normalized emittance0.3mm · mrad
Relative energy spread 10 4
Peak current4000A
FEL wavelength0.1nm
Normalised undulator parameter2.178
Undulator period3cm
Table 2. Simulation Parameters for the echo-enabled harmonic generation (EEHG).
Table 2. Simulation Parameters for the echo-enabled harmonic generation (EEHG).
ParametersValueUnit
Beam energy840MeV
Slice energy spread50keV
Normalized emittance1.5mm · mrad
Peak current800A
Wavelength of seed laser265nm
Energy modulation amplitudes(A1/A2)4/2
Dimensionless dispersion strength(B1/B2)16.35/0.56
Normalised undulator parameter1.012
Undulator period23.5cm
FEL wavelength8.8nm
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zeng, L.; Feng, C.; Wang, X.; Zhang, K.; Qi, Z.; Zhao, Z. A Super-Fast Free-Electron Laser Simulation Code for Online Optimization. Photonics 2020, 7, 117. https://doi.org/10.3390/photonics7040117

AMA Style

Zeng L, Feng C, Wang X, Zhang K, Qi Z, Zhao Z. A Super-Fast Free-Electron Laser Simulation Code for Online Optimization. Photonics. 2020; 7(4):117. https://doi.org/10.3390/photonics7040117

Chicago/Turabian Style

Zeng, Li, Chao Feng, Xiaofan Wang, Kaiqing Zhang, Zheng Qi, and Zhentang Zhao. 2020. "A Super-Fast Free-Electron Laser Simulation Code for Online Optimization" Photonics 7, no. 4: 117. https://doi.org/10.3390/photonics7040117

APA Style

Zeng, L., Feng, C., Wang, X., Zhang, K., Qi, Z., & Zhao, Z. (2020). A Super-Fast Free-Electron Laser Simulation Code for Online Optimization. Photonics, 7(4), 117. https://doi.org/10.3390/photonics7040117

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop