As part of the works done under the activity JRA2 of Euforia, the codes ELMFIRE and GENE have been analysed in order to be adapted to HPC environment at Barcelona Supercomputing Center.
ELMFIRE is a gyro-kinetic particle simulation (PIC) code for plasmas in toroidal geometry. The code has been built to study the development of instabilities in a quasineutral plasma, and its infuence in the transport coefficients. It is single-threaded and mainly Fortran 90 code, with some auxiliar C functions.
The GENE code (this acronym stands for gyro-kinetic electromagnetic numerical experiment) is a tool for studying problem of plasma micro turbulence from a fully kinetic point of view. To this aim, the nonlinear gyro-kinetic equations for a magnetised electron-ion plasma are solved on a fixed grid in five-dimensional phase space, employing finite-difference and pseudo-spectral techniques. All relevant electromagnetic effects are taken into account. Each simulation requires of the order of 105 grid points and up to 109 time steps, challenging even the most powerful present-day computers. GENE runs efficiently on multiple massively parallel platforms, achieving, e.g., 280 MFlops on the Hitachi SR- 8000 at Leibniz Computing Center at Munich. To reach this level of performance, it was necessary to adapt the implementation strategy to each individual machine architecture.
GENE, is a so-called continuum (or Vlasov) code. All differential operators in phase space are discretized via a combination of spectral and higher-order finite difference methods.