PyHEADTAIL Meeting #08
There was mainly a brief follow-up of development activities in PyHEADTAIL during the past 2 weeks. Mainly these were
- Inclusion of a new Fast Polar Poisson Solver in PyPIC
- Synchrotron radiation in PyHEADTAIL
The FPPS was developed by Adrien Florio in C++. We made a Cython wrapper around these classes to interface them with PyPIC. Tests show excellent agreement. The main advantage of the code is the adaptivity of the mesh for problems with radial symmetry that require fine resolution towards the center and the expected speed-up. A link to the talk given by Adrien is provided below.
Synchrotron radiation was developed for the CLIC studies by Andrea Passarelli. They are now available in the radiation module of PyHEADTAIL. Test scripts are provided under testing/script-tests. The module was tested and benchmarked and so far behaves as expected. Sychrotron radiation is included in all three planes.
General follow-up:
- The **kwargs in the new BaseSynchrotron class led to some confusion. It allows any kwarg to be accepted and gives the user the impression that certain values have been set which is not the case if the user kwarg does not match the internal kwarg used for this setting. This will not raise an error. The **kwarg will be removed.
- Particle IDs for multiple bunches was discussed. Combining several bunches leads to the IDs no longer being unique. This should not be the case. To solve the problem we will implement a check to be done at every addition of bunches to ensure the IDs are unique (e.g. make a set and check whether len(set)==macroparticlenumber). We will provide an additional kwarg to set the start value for the ID numbering. This gives lots of flexibility and potential to the user (i.e. subsequent identification of particles according to their original bunches etc.).
Next meeting is foreseen in two weeks.
KL